Skip to content

Releases: chartjs/chartjs-plugin-zoom

v2.0.1

22 Mar 13:27
5efef6e
Compare
Choose a tag to compare

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

23 Nov 20:31
a3cbb60
Compare
Choose a tag to compare

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

24 Mar 11:42
5849dda
Compare
Choose a tag to compare

Essential Links

Bugs Fixed

  • #630 Fix initial call to isZoomedOrPanned
  • #598 Re-attach event handlers only when needed

Development

  • #646 Bump version to 1.2.1

Thanks to @dependabot, @dependabot[bot], @joshkel and @kurkle

v1.2.0

16 Nov 15:12
b1cbd8a
Compare
Choose a tag to compare

Essential Links

Enhancements

  • #585 Add chart method for getting initial scale bounds

Bugs Fixed

  • #574 Avoid zooming in when zooming out over certain areas of chart

Documentation

  • #585 Add chart method for getting initial scale bounds

Development

  • #594 Bump version to 1.2.0, update dependencies

Thanks to @0b10011, @MrJohz and @kurkle

v1.1.1

04 Jul 10:15
786c34f
Compare
Choose a tag to compare

Essential Links

Types

  • #563 Fix strict mode errors from typings

Thanks to @kurkle

v1.1.0

01 Jul 08:45
dbfd1db
Compare
Choose a tag to compare

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

Thanks to @joshkel and @kurkle

v1.0.1

01 Jun 12:48
6241b7c
Compare
Choose a tag to compare

Essential Links

Bugs Fixed

  • #526 Fix: modifierKey is not required to end panning
  • #527 Fix: drag below threshold left dragging state on

Thanks to @kurkle

v1.0.0

24 May 08:07
4fde5dc
Compare
Choose a tag to compare

Essential Links

⚠️ Important note for users upgrading from version prior to 1.0.0-rc: the wheel/pinch/drag zoom behaviors are now configured separately, so some options have been moved an renamed:

  • zoom.enabled -> zoom.wheel.enabled and zoom.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

Development

  • #518 Bump version to 1.0, update dependencies
  • #488 Fix drag-zoom and pan for non-linear scales
  • #455 Refactor startHammer
  • #454 Use fallback configration for scale types
  • #452 Refactor to logical entities
  • #416 Remove Bower
  • #365 Fix no-mixed-operators lint warnings

v1.0.0-rc

17 May 12:45
d47e6e6
Compare
Choose a tag to compare
v1.0.0-rc Pre-release
Pre-release

Essential Links

  • #501 Adds note to click zoom sample
  • #497 Adds drag effect options to the documentation

⚠️ Important note for users upgrading from previous versions: the wheel/pinch/drag zoom behaviors are now configured separately, so some options have been moved an renamed:

  • zoom.enabled -> zoom.wheel.enabled and zoom.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

Enhancements

  • #507 Add the ability to enable both wheel and drag modes at the same time

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

Types

  • #502 Add missing modifierKey properties to Options

Documentation

  • #505 Remove speed property from pan options in the samples

Development

  • #513 Bump version to 1.0.0-rc, update dependencies

Thanks to @jbelien, @jledentu, @kurkle and @stockiNail

v1.0.0-beta.5

02 May 14:26
48e16ec
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release

Essential Links

Enhancements

  • #487 Add onPanStart and onZoomStart callbacks
  • #484 Drag-to-zoom: filter clicks and pan.modifierKey
  • #483 Make resetZoom accept UpdateMode argument

Bugs Fixed

  • #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

Documentation

  • #486 Add click-to-zoom example

Development

  • #490 Bump version to 1.0.0-beta.5
  • #488 Fix drag-zoom and pan for non-linear scales

Thanks to @kurkle and @nagix