Releases: chartjs/chartjs-plugin-zoom
Releases · chartjs/chartjs-plugin-zoom
v2.2.0
v2.1.0
Essential Links
Enhancements
- #861 feat(drag): maintainAspectRatio
- #780 Add a function for getting zoom range
- #823 Add isZoomingOrPanning method
Bugs Fixed
- #891 fix: filter only one click after drag/pan is completed
- #889 fix: trigger onZoom from zoomScale
- #888 fix: incorrect zoom out factor when using using wheel
- #868 fix: stop zooming (panning) at limit
- #864 fix: wheel zoom on logarighmic scale
- #863 fix: enabling pan after chart initialization
- #811 Fix zoom outside of chart area
- #856 fix: explicit passive: false for wheel events to prevent warnings on console
- #835 fixed missing args to onZoomComplete callback
- #810 fix: trigger `onZoomStart` from `pinchStart`
- #774 fix "original" scale limits with nonlinear pan
- #772 Don't trigger the zoom on legends area
Types
- #822 More descriptive types for Hammer.js events
Documentation
- #890 chore: add sample for rejecting drag start outside chartArea
- #873 chore: add sample for minRange on category scale
- #784 fix: typo in drag options documentation
Development
- #808 chore: update rollup
- #885 chore: split ci to more steps
- #862 chore: build cleanup, include homepage
Thanks to @ZaLiTHkA, @bavoco, @dependabot, @dependabot[bot], @gopal-panigrahi, @ikkala, @joshkel, @krystxf, @kurkle and @trullock
v2.0.1
Essential Links
Bugs Fixed
- #736 Modify UpdateModeEnum to not be const
- #732 Fix drag rectangle calculation when inside shadow BOM / WebComponent
- #708 Handling zoom edge cases (#690)
Development
- #746 Bump version to 2.0.1
Thanks to @AsturaPhoenix, @CodingMarco, @SebastiaanSafeguard, @dependabot, @dependabot[bot] and @shrujalshah28
v2.0.0
Essential Links
Breaking Changes
- #658 Replace overScaleMode with more flexible scaleMode
Enhancements
- #672 Allow canceling drag-to-zoom on Escape key
- #680 Add drawTime option to zoom drag configuration
- #695 add-v4-compatibility
- #671 Only drag zoom on left mouse button
- #659 Export zoomRect and make it more configurable
- #658 Replace overScaleMode with more flexible scaleMode
Thanks to @LeeLenaleee, @dependabot, @dependabot[bot], @joshkel, @kurkle and @stockiNail
v1.2.1
Essential Links
Bugs Fixed
Development
- #646 Bump version to 1.2.1
Thanks to @dependabot, @dependabot[bot], @joshkel and @kurkle
v1.2.0
v1.1.1
v1.1.0
Essential Links
Enhancements
- #555 Add modifierKey option for drag-to-zoom
- #536 Add getZoomLevel function
- #524 Multi-axis zoom and original zoom limits
Bugs Fixed
- #557 Fix initial zoom level and pan with drag modifier
- #553 Fix resetZoom after manual scale limits update
- #544 Fix errors from zero-dimension scales
- #541 Fix removing event listeners
Types
- #534 Documentation and type definitions for zoomFunctions and panFunctions
Documentation
- #558 Add fetch-data example
- #547 Fix click to zoom sample
- #534 Documentation and type definitions for zoomFunctions and panFunctions
Development
- #560 Bump version to 1.1.0
v1.0.1
v1.0.0
Essential Links
zoom.enabled
->zoom.wheel.enabled
andzoom.pinch.enabled
zoom.drag
->zoom.drag.enabled
(enabling drag mode no longer disables the wheel/pinch modes)zoom.speed
->zoom.wheel.speed
zoom.wheelModifierKey
->zoom.wheel.modifierKey
zoom.threshold
->zoom.drag.threshold
Breaking Changes
- #507 Add the ability to enable both wheel and drag modes at the same time
- #478 Add zoomScale, rename doPan to pan, doZoom to zoom
- #476 Fix category panning
- #470 Combine range options, add minimum scale range
Enhancements
- #487 Add onPanStart and onZoomStart callbacks
- #484 Drag-to-zoom: filter clicks and pan.modifierKey
- #483 Make resetZoom accept UpdateMode argument
- #478 Add zoomScale, rename doPan to pan, doZoom to zoom
- #481 Expose zoomFunctions and panFunctions for customization
- #464 Refactor & export pan and zoom functions
- #457 Internal state handling
- #399 Feature: Zoom each scale separately
- #382 Added optional modifier keys
- #414 Add an ESM build
- #411 Use `start` and `stop` plugin hooks instead of `beforeInit`, `afterInit` and `destroy`
- #408 Compatible with Chart.js 3.0.0-beta7
- #390 Porting to CHART.JS 3 (using master)
Bugs Fixed
- #512 Fix drag threshold for single axis modes
- #504 Fixes invalid context onZoomComplete invocation
- #502 Add missing modifierKey properties to Options
- #495 Cancel all chart events while panning or dragging
- #494 Fix delta calculation at direction change
- #488 Fix drag-zoom and pan for non-linear scales
- #484 Drag-to-zoom: filter clicks and pan.modifierKey
- #485 Fix calling of onZoomComplete from wheel event
- #476 Fix category panning
- #474 Use static offsets for panning rounded time scale
- #472 Fix hook parameters
- #455 Refactor startHammer
- #451 Remove animationDuration option
- #429 Fix non-zoomable charts eating scroll events
- #434 Fix zoom on category scale
- #410 Properly call onZoom & onZoomComplete when pinching
Types
- #502 Add missing modifierKey properties to Options
- #469 Add missing return types
- #439 Reuse types from Chart.ts
- #438 adding typings for Zoom analog to chartjs-plugin-annotation
Documentation
- #505 Remove speed property from pan options in the samples
- #501 Adds note to click zoom sample
- #497 Adds drag effect options to the documentation
- #486 Add click-to-zoom example
- #477 Add API documentation (typedoc)
- #475 Add a sample for drag-to-zoom in docs
- #515 Removes 'undefined' as default because is not undefined
- #467 Fix minor typo errors in docs
- #466 Remove API section in README
- #462 Add sample on time scale
- #463 Correct zoom modifierKey docs
- #461 Changes zoom.threshold default to 0
- #459 Update README
- #456 Add initial docs
- #428 Changes script URLs for chart.js and hammer in order to use node_modules