Skip to content

Releases: mnogueron/react-easy-panzoom

v0.4.4

Choose a tag to compare

@mnogueron mnogueron released this 13 Oct 20:39

Contributors

Thanks to @n1ru4l for his contribution to this new version! 🎉

Changes

  • fix keys not persisted to state after release (#25)
  • add new tests for PanZoom (#30)

v0.4.3

Choose a tag to compare

@mnogueron mnogueron released this 13 Aug 08:40

Contributors

Thanks to @n1ru4l for his contribution to this new version! 🎉

Changes

v0.4.2

Choose a tag to compare

@mnogueron mnogueron released this 02 Aug 23:41

Changes

  • Fix warning introduced in v0.4.1

v0.4.1

Choose a tag to compare

@mnogueron mnogueron released this 01 Aug 07:18

Contributors

Thanks to @emilyzhong for her contribution to this new version! 🎉

Changes

  • add disableScrollZoom feature (#16)
  • fix url to repository for NPM

v0.4.0

Choose a tag to compare

@mnogueron mnogueron released this 29 Jun 07:27

Breaking changes

autoCenter no longer animates on componentDidMount but the animation can be manually triggered with

autoCenter(1, true)

See the dedicated story for an example.

Changes

  • add animate optional parameter to autoCenter to enable animation - thanks to @n1ru4l (#11)
  • add zoomSpeed optional parameter to zoomIn and zoomOut (#12)

v0.3.0

Choose a tag to compare

@mnogueron mnogueron released this 09 Jun 09:02

Contributors

Thanks to @n1ru4l for all his contributions for this new version! 🎉

Changes

  • add disableDoubleClickZoom feature (#5)
  • add onStateChange prop to support on state change listener (#6)
  • propagate unsupported props to the container div element and propagate event onDoubleClick, onMouseDown, onKeyDown, onTouchStart through props (#7)
  • fix flow types and some other minor code styling (#8)

v0.2.5

Choose a tag to compare

@mnogueron mnogueron released this 02 May 16:23

Change

  • Fix faulty missing offsetX and offsetY in getBoundCoordinates in 0.2.4

v0.2.4

Choose a tag to compare

@mnogueron mnogueron released this 02 May 16:09

Important changes

This new version introduces a PoC for the rotation. This feature can only be controlled using the rotate method available through the PanZoom ref.

Minor changes

  • Rewrite transform calculation to support rotation
  • Fix Chrome 73 issue with default passive behaviour of onWheel #2
  • Improve overall performances

v0.2.3

Choose a tag to compare

@mnogueron mnogueron released this 11 Apr 22:51

Changes

  • add enableBoundingBox prop to support pan bounds
  • update documentation accordingly

0.2.2

Choose a tag to compare

@mnogueron mnogueron released this 25 Mar 23:37

Changes

  • fix preventPan for touch events
  • add story for control UI and use for zoomIn, zoomOut, autoCenter, reset and moveByRatio
  • invert key mapping for keyboard events (set to non-inverted control)
  • fix the scaling and position for autoCenter