Skip to content

Releases: bumbu/svg-pan-zoom

v3.6.1 Update deps. Use Prettier.

21 Sep 22:21
Compare
Choose a tag to compare

Very minor update. No change to svg-pan-zoom source code other than using Prettier styling.

v3.6.0 Passive mouse events listeners

07 Oct 10:35
Compare
Choose a tag to compare

Now mouse events listeners are passive when preventEventsDefaults: false.
This should help with performance in SVGs with lots of elements.

v3.5.2 Better handling of multitouch panning

26 Jul 16:50
Compare
Choose a tag to compare
  • Now when panning using multiple fingers, only first touch is considered - this way you don't get the jiggle. Thank to @KoenkookpotPlasmans for that!

v3.5.1 Small fixes

08 May 16:35
Compare
Choose a tag to compare
  • Update typescript testing
  • Fix scope leak in _removeWheelListener (uniwheel.js)
  • Prevent pan event if before pan made is unnecessary

Thank you to @Yimiprod, @jci-jnewell and @smargovsky for descriptive issues and contributions!

v3.5.0

15 Mar 21:53
Compare
Choose a tag to compare
  • Added onUpdatedCTM callback that is fired when SVG's pan and zoom updates are rendered
  • Now if an action triggers both onPan and onZoom - they're called in that order and can be canceled/mutated as when they were happening separately. This makes the behaviour consistent
  • Some fixes and updates to the typings

v3.4.1 Update ts definitions

16 Jan 21:01
Compare
Choose a tag to compare
Merge pull request #230 from ariutta/fix-typescript

fix: typescript definition, add getSizes

v3.4.0 Update viewBox cache on resize

21 Nov 22:14
Compare
Choose a tag to compare

Now resize method should behave in a more expected manner. See #185

This may be a breaking change for some apps that are relying on some constraints to be maintained when calling resize. Old behavior was wrong.
There were 2 solutions to this issue:

  • destroying and reinitializing the plugin
  • dynamically updating the constraints (min/max)

The number of affected apps should be minimal. Those apps could stay on 3.3.x until they'll be able to update.

v3.3.0 Use real x and y viewBox values on updateBBox

03 Oct 21:33
Compare
Choose a tag to compare

This may be a breaking change for some apps that are updating elements on the fly that change the viewBox x and y positioning. Old behavior was wrong. The only solution prior this version was to destroy and reinitialize the plugin.
The number of affected apps should be minimal. Those apps could stay on 3.2.x until they'll be able to update.

V3.2.11 Don't add multiple style elements

03 Oct 21:20
Compare
Choose a tag to compare

v3.2.10 Fix double click

03 Sep 16:23
Compare
Choose a tag to compare

Fixes double click when clicking in different places