v0.7.0
Pre-release
Pre-release
Breaking Changes
- The dependency on Chart.js is now declared as a
peerDependency. This means thatchart.jswill need to be installed alongsidechartjs-plugin-zoom updatemust be called after changing options
Bug Fixes
- Fix pan at limits of range (#211)
- Fix range min and max when zooming time scale (#208)
- Fix errors when only pan is enabled (#212)
- Make
resetZoomwork with added scales (#201). Thanks @jannisgt - Don't delete
dataset._meta(#204) - Ensure pan works when zoom is disabled (#203)
- Fix pan on category scale when
offsetGridLines=false(#198) - Fix the calculation of the zoom center coordinate when dragging (#161). Thanks @nagix
- Fix mouseup outside chart element (#150). Thanks @jledentu
- Options can now be specified under
plugins.zoom(#221)
Enhancements
- Speed option (#215). Thanks @jledentu
- Allow switching between wheel/drag modes of the zoom (#196). Thanks @jledentu
- Added
onZoom/onPanargs (#178). Thanks @Techn1x - Add options to customize drag-to-zoom area (#148). Thanks @jledentu
- Enable zoom on vertical axis. Thanks @jledentu