Skip to content

Major API updates & additions + new "drag" mode

Compare
Choose a tag to compare
@sashadev-sky sashadev-sky released this 18 Nov 04:38
· 559 commits to main since this release

v0.8.4

  • Bug Fixes
    • Fix Leaflet library bug where doubleTap events don't work in Chrome (#438 by @sashadev-sky)
  • Documentation
  • Enhancements
    • Add a new drag mode, which allows dragging the overlay by a set of handles (#371 by @themacboy)

v0.8.3

Orig. Action Name New Name old key new key comments
L.EditAction
var ToggleTransparency L.OpacityAction t o
var ToggleOutline L.BorderAction o b
var Delete and var Deletes L.DeleteAction backspace backspace 1 action internally handles single & group deletion
var ToggleRotate L.RotateAction CAPS LOCK r No toggle
var ToggleRotateScale L.FreeRotateAction r, d f No toggle
N/A L.DistortAction N/A d
var ToggleScale L.ScaleAction s s No toggle
var ToggleLock and var Locks L.LockAction l toggled Lock mode l: locks, u:unlocks. Can still toggle via toolbar icon click/tap 1 action internally handles locking & unlocking
var Export and var Exports L.ExportAction N/A e
var EnableEXIF L.GeolocateAction
var Revert L.RevertAction
var ToggleOrder L.StackAction j, k both toggled stacking order up or down q: stack up, a: stack down
  • API
    • boxSelector handler renamed boxCollector (#431 by @sashadev-sky)
    • #setMode, #nextMode, #setCornersFromPoints, #select & #deselect methods exposed to API & documented. General refactoring of previously exposed API methods. (#431, #434, #433)
  • Bug Fixes
    • Image dblclick now iterates through all available modes in order (#393)
  • Enhancements
    • Highlight a mode's toolbar tool when it's active (#393)
    • Re-activate the initially set mode when exiting out of lock mode (#393)

v0.7.8

  • Bug Fixes
    • Fix a bug where the image becomes distorted close to the map edges (#424 by @sashadev-sky)
  • Dependencies

v0.7.7

  • API Changes
    • Add suppressToolbar option to DistortableCollection for more refined control over that functionality (#415 by @sashadev-sky)
  • Bug Fixes
  • Documentation
  • Enhancements
    • Add a generic method for simulating mouse events in tests (#410 by @Sri-V)
    • Remove redundantly stored images (#418 by @galvc)