Skip to content

Releases: publiclab/Leaflet.DistortableImage

v0.21.10 (New release)

20 Dec 16:36
4235213
Compare
Choose a tag to compare

What's Changed

Read more

v0.21.9 release with L.CRS.Simple projection and related fixes to _cornerExceedsMapLats()

10 Oct 10:34
c28182b
Compare
Choose a tag to compare

Release re: #1007

First release since #742

  • Push dragend event to overlay #1014
  • Multiple changes re: MapKnitter Lite: fetch images from Internet Archive #998
  • changed in DistortableImage.Keymapper- by removing the function #783
  • Removed function keyword from setMode, nextMode methods and updated t… #766
  • Conversions to ES6, from #372

And from v0.21.8:

What's Changed

Read more

Minor Dev Workflow and Dependency Update

25 Jul 16:28
40b2818
Compare
Choose a tag to compare

v0.17.7

v0.16.7

  • Development Workflow

    • Update the pre-commit hook to automatically build and commit the dist file (#611 by @sashadev-sky)
  • Enhancements

    • Update L.DragHandle initializer to class factory syntax (#624 by @iAmmar7)

Modes Part 1: Single Image Interface + Drop Node 8

15 Apr 04:44
0e6fcd6
Compare
Choose a tag to compare

Stay tuned for - Modes Part 2: Collection Interface! 🚀

v0.16.6

v0.15.6

  • Modes! Part 1: Single Image Interface (#586 by @sashadev-sky)

    • Features: You can now limit the usable modes via the pre-existing actions option. Details on this have been added to the README
    • API: Additional methods for interacting with mode - #getModes and #hasMode.
    • Breaking changess: L.UnlocksAction -> L.UnlockAction
    • Bug Fixes:
      • #nextMode (triggered via function or dblclick) won't iterate over modes that are removed from the image
      • Disable interactions with hidden image handles
    • Enhancements: Lock icons are now only visible when the image is deselected
  • Enhancements

    • Update method creation syntax from ES5 to ES6 for the L.DistortHandle (#601 by @GSKSan) and L.DragHandle (#606 by @terror) classes, and the L.MatrixUtil (#599 by @AkzharkynDM) and L.ImageUtil (#598 by @neelesh17) objects
    • Update L.FreeRotateHandle initialization to use class factory syntax (#589 by @imrishabh18)
    • Consolidate code for disabling image dragging into a single method (#585 by @prncvrm)
  • Features

    • Enable passing a function for custom toolbar translations (#573 by @adriankwiat)

Restore API

30 Mar 23:51
0e6fcd6
Compare
Choose a tag to compare

v0.14.6

  • Breaking Changes
    • L.RevertAction tool has been updated to L.RestoreAction and is no longer a WIP (#581 by @sashadev-sky)
  • API
    • #restore action added for L.DistortableImageOverlay and exposed to API (#581)

Rotation API

29 Mar 11:45
0e6fcd6
Compare
Choose a tag to compare

v0.13.6

  • API
    • A new rotation option is now available to pass on image initialization. (#579 by @sashadev-sky)
    • Breaking changes to the #getAngle, #setAngle, and #rotateBy methods. (#579)

Webpack and ES6 Support + Major updates to exporting

22 Mar 01:35
0e6fcd6
Compare
Choose a tag to compare

For this release I wanted to say a HUGE thank you to all of the students who contributed as a part of Google Code-In (GCI) 2019. We wouldn't have made it here without your work; you have made lasting improvements to GCI ❤️🚀

@alexbertis, @anthony-zhou, @chen-robert, @ee9957, @tsparksh, @VladimirMikulic

v0.12.6

Up to this point, we have been writing old ES5.
This change introduces Webpack, Webpack development server, Babel...
From now on, we will be able to write modern JavaScript.

v0.11.6

v0.9.0

  • Enhancements

v0.8.9

v0.8.8

v0.8.6

Major API updates & additions + new "drag" mode

18 Nov 04:38
Compare
Choose a tag to compare

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)

API Updates & scale/rotate/rotateScale distortions fixed!

28 Aug 00:03
Compare
Choose a tag to compare

v0.7.4

  • Bug Fixes
  • Enhancements
    • Update index.html and select.html to use a Google satellite base layer superimposed with a toner labels layer (#370 by sashadev-sky)

v0.7.3

  • Enhancements
    • Restructure keymapping code to move towards dynamic hotkey functionality (#387 by rexagod)

v0.7.2

  • Bug Fixes
  • Development Workflow

v0.7.1

  • API Changes
    • Make corners option for DistortableImageOverlay initialization optional (#381 by sashadev-sky)
    • Move the listener to enable image editing on load out of the html demo files and into DistortableImageOverlay as a default internal behavior. Add an initialization option editable to allow the user to disable it if needed (#381)
    • Add a DistortableCollection.Edit handler to match DistortableImageOverlay.Edit and add additional logic to their #enable and #disable methods so that they work together coherently (#381)

v0.6.9

  • API Changes
    • Standardize and expose #setCorner, #setCorners, #scaleBy, and #rotateBy to API (#380 by sashadev-sky)
  • Bug Fixes

v0.6.8

  • Enhancements
    • Add rotate and scale tools to make them accessible via the toolbar "addon" API (#373 by sashadev-sky)

Bower Support Deprecated

30 Jul 23:10
Compare
Choose a tag to compare

v0.6.7

  • API Changes
    • Major updates to keymapper component - now a separate component for the map, and not part of any image instance's API. Also not instantiated by default anymore. See README for updated usage (#243 by @rexagod)

v0.6.4

  • Development Workflow
    • Major updates to SVG stack - SVG is now inlined and injected during runtime, and icons are created through helpers. See SVG Icon System wiki for updated documentation on usage. (#353 by @sashadev-sky)
    • Bower support is now deprecated. Bower components and bower.json are removed. (#241 by @scw248)

v0.6.3

v0.6.2

  • Bug Fixes

    • An improvement towards calculating the optimal edgeMinWidth for scaling proportions (#340 by @jywarren)
  • API Changes