Releases: publiclab/Leaflet.DistortableImage
v0.21.10 (New release)
What's Changed
- v0.21.9 release with L.CRS.Simple projection and related fixes to _cornerExceedsMapLats() by @jywarren in #1036
- Replaced
var
keyword withconst
in RotateHandle.js by @Tammy-Ajoko in #1089 - Revert "Replaced
var
keyword withconst
in RotateHandle.js" by @jywarren in #1097 - Replaced var keywords with let or const - /src/DistortableCollection.js by @RealRichi3 in #1096
- Update ExportAction.js var keywords by @OluwatuyiAbiola in #1093
- fix #1086- on file: RestoreAction.js -changed var keywords to const by @Ibom99 in #1090
- Replaced var keyword with const/let on src/util/Utils.js file by @sainamercy in #1105
- Replace
var
keyword withlet
/const
by @tiffieangel in #1101 - updated DragHandle.js by @mutmainaho in #1092
- Update DistortableImage.Edit.js by @leilayesufu in #1088
- Update ScaleHandle.js by @leumasxxx in #1100
- replaced var keyword with const by @Ranecodes in #1094
- Changed var to let in DoubleClickZoom.js by @Jennifer-tech in #1095
- updated variable declaration from 'var' to 'const' by @THEDARKMAN007 in #1099
- Update LockAction.js var keywords by @chemistry-notfun in #1102
- feat: Update FreeRotateAction with ES6 by @adetyaz in #1108
- Update BoxCollector.js by @Munnachienyi in #1114
- Update DistortHandle.js by @ChiomaNwosisi in #1109
- Update variable declaration by @Thesaleem in #1116
- updating file from es5 to es6 by @abdelquodr in #1118
- changed variable declaration from var to let and const by @Lovelyfin00 in #1120
- Updated DoubleClickLabels.js by @TomisinAjayi in #1111
- Update DragAction.js by @belfarz in #1104
- Update IconUtil.js change var to const by @xiaodaiweiwei in #1128
- Replace var keyword with let/const by @codeinvoke7 in #1121
- update first time issue template by @leilayesufu in #1122
- Update RotateAction.js by @titiodus in #1087
- changed var to const & let by @ijayhub in #1134
- changed some variable declarations in Leaflet.DistortableImage/src/components/DistortableImage.Keymapper.js by @jesutobi in #1123
- Update GeolocateAction.js by @klaus139 in #1098
- Switching var to let and const by @meggiddy in #1107
- add: font awesome v4 CSS to Archive demo - archive.html by @RealRichi3 in #1138
- change var to let or const by @obueto in #1125
- Add lang attribute to the html element#1133 by @Straw4yu in #1143
- 'var' changed to ES6 'let' keyword by @segun-codes in #1152
- Replaced
var
keyword withconst
in RotateHandle.js by @Tammy-Ajoko in #1159 - Update DistortableImage.PopupBar.js by @julianavmgiusti in #1165
- feat(Refactor): Replace
var
withlet
/const
in EditAction.js by @sahilbansal17 in #1168 - geocoding search box by @vanithaak in #1158
- Update --first-timers-issue-template.md by @oryxwhite in #1157
- Changing var keyword to const by @haszankauna in #1170
- Displayed url of image origin, in MapKnitter Lite interface by @7malikk in #1154
- follow-up fix in conditional for v0.21.9 by @themacboy in #1141
- Transfer js code in index.html into separate .js file by @segun-codes in #1186
- Added spining icon for
place on map
button by @RealRichi3 in #1169 - Change var to let/const by @am-png in #1189
- Update listeners.html by @Bhaybhiisparks in #1179
- Replaced var keywords with let or const - / src / edit / toolbars /DistortableImage.PopupBar.js #1086 by @Achele in #1196
- Replace 'var' keywords with 'const' in lockhandle.js by @Mootconn in #1197
- update 'comments to single line' by @Oluwaseun241 in #1208
- updated variable declaration and also updated creation method syntax to ES6 by @fonkwe in #1113
- Create a new header in the Readme linking to Mapknitter Lite by @tolubishops0 in #1211
- Update README.md by @liliyao2022 in #1209
- Update listeners.html by @Emmanuel-Lud in #1201
- Update method creation syntax to ES6 EditHandle.js by @ashish-parjapat in #1173
- Update index.js to include missing code by @segun-codes in #1214
- When this.options.rotation.deg = 0 default to deg (FTO) by @vanithaak in #1207
- Update first-timers-issue-template.md by @liliyao2022 in #1223
- replace var with let/const where appropriate. by @dayopius in #1091
- Transfered js codes in pixelorigin.html into a seperate by @Jennifer-tech in #1216
- Change nameless functions to arrow functions by @jssol in #1252
- Update select.html by Adding the closing body tag in the select.html file by @olamideazeez in #1247
- Update export.html by @olamideazeez in #1248
- Show/hide sidebar functionality by @7malikk in #1177
- detect key from longer URL by @vanithaak in #1175
- Changed var keyword to let or const #1253 by @krishan-1 in #1259
- Changed Regular functions to arrow function by @boluwatifee in #1257
- fix #1183 transfer js code in export.html into separe .js file (commit name export files) by @Sally-N in #1221
- Update UnlockAction.js by @yukiyuli in #1256
- Removed logical NOT operator where unnecessary and modified code by @Josephsanya in #1265
- Update archive.html to support url correction from http to https by @segun-codes in #1263
- convert regular to arrow function by @Ashism766 in #1267
- Re-ordered collections array to match when using StackAction to re-order images by @7malikk in #1233
- Added search location feature to archive.html by @hs05june in #1286
- Create select.js by @Ninad-Patil in #1284
- Bump @babel/preset-env from 7.18.9 to 7.20.2 by @dependabot in #1268
- Bump socket.io-parser from 4.0.4 to 4.0.5 by @dependabot in #1271
- Bump loader-utils from 2.0.2 to 2.0.4 by...
v0.21.9 release with L.CRS.Simple projection and related fixes to _cornerExceedsMapLats()
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
- Update L.ScaleHandle method creation to ES6 syntax. by @theodumont in #691
- Fixed #630 - MapMixins.js method creation to ES6 syntax by @jscastanos in #635
- Update L.ScaleAction method creation to ES6 syntax by @tannerdolby in #692
- Update travis config by @sashadev-sky in #695
- Fix toolbar width css bug (chrome) by @sashadev-sky in #696
- Bump webpack from 4.43.0 to 4.44.1 by @dependabot-preview in #707
- Bump @babel/core from 7.9.0 to 7.11.0 by @dependabot-preview in #704
- Bump @babel/core from 7.11.0 to 7.11.1 by @dependabot-preview in #712
- Updated L.DomUtil methods to ES6 by @McZenith in #703
- Fix toolbar icons in multi-image view are not selectable by @sashadev-sky in #699
- Update L.DistortableImage.Edit.js function syntax to ES6 by @greg-krulin in #724
- Issue-587: update trigUtil method syntax to ES6 by @javed24 in #726
- Update L.DistortableImage.Edit.js method creation to ES6 syntax IV by @dixittarun81 in #723
- Updated L.Utils method creation to ES6 syntax by @AdityaAshvin in #729
- Updating L.DistortableImage.Edit.js method creation to ES6 syntax III by @SMAKSS in #731
- Update to karma-chrome-launcher, removal of GitPod, refactor of export example to remove jQuery by @sashadev-sky in #716
- Testing updates by @sashadev-sky in #742
- re-add GitPod w --no-sandbox headless chrome option by @jywarren in #750
- Bump eslint from 7.3.1 to 7.9.0 by @dependabot-preview in #749
- Bump uglify-js from 3.10.0 to 3.10.4 by @dependabot-preview in #745
- Bump @babel/core from 7.11.1 to 7.11.6 by @dependabot-preview in #743
- Bump grunt from 1.1.0 to 1.3.0 by @dependabot-preview in #717
- Bump webpack-cli from 3.3.11 to 3.3.12 by @dependabot-preview in #679
- Bump mocha from 7.1.1 to 8.1.3 by @dependabot-preview in #728
- Bump grunt-webpack from 3.1.3 to 4.0.2 by @dependabot-preview in #693
- Bump @babel/preset-env from 7.9.5 to 7.11.5 by @dependabot-preview in #739
- Bump webpack from 4.44.1 to 4.44.2 by @dependabot-preview in #755
- Bump husky from 4.2.5 to 4.3.0 by @dependabot-preview in #754
- Bump karma from 5.1.1 to 5.2.2 by @dependabot-preview in #753
- Bump leaflet from 1.6.0 to 1.7.1 by @dependabot-preview in #752
- Update L.DistortableImage.Edit.js method creation to ES6 syntax V by @romance939913 in #744
- Updated mentioned methods to ES6 syntax VI by @chethanagopinath in #748
- Bump sinon from 9.0.3 to 9.1.0 by @dependabot-preview in #760
- Updating L.DistortableImage.Edit.js to ES6 syntax by @SeaverDahlgren in #761
- Bump webpack-merge-and-include-globally from 2.1.25 to 2.1.26 by @dependabot-preview in #759
- Bump eslint from 7.9.0 to 7.10.0 by @dependabot-preview in #757
- Bump karma from 5.2.2 to 5.2.3 by @dependabot-preview in #756
- Bump uglify-js from 3.10.4 to 3.11.1 by @dependabot-preview in #769
- removed function keyword from 6 function definitions by @Ritesh055 in #770
- Changed syntax to ES6 for 6 functions by @KhushalPShah in #768
- Removed function keyword from setMode, nextMode methods and updated t… by @nicobelo91 in #766
- changed in DistortableImage.Keymapper- by removing the function by @shivarajloni in #783
- [Security] Bump lodash from 4.17.19 to 4.17.21 by @dependabot-preview in #883
- [Security] Bump url-parse from 1.4.7 to 1.5.1 by @dependabot-preview in #882
- [Security] Bump ssri from 6.0.1 to 6.0.2 by @dependabot-preview in #874
- [Security] Bump socket.io from 2.3.0 to 2.4.1 by @dependabot-preview in #824
- Setup Github actions for CI by @aliciapaz in #929
- Bump browserslist from 4.14.2 to 4.16.7 by @dependabot in #930
- Bump url-parse from 1.5.1 to 1.5.3 by @dependabot in #931
- Bump color-string from 1.5.3 to 1.6.0 by @dependabot in #932
- Bump dns-packet from 1.3.1 to 1.3.4 by @dependabot in #933
- Bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #928
- Bump y18n from 4.0.0 to 4.0.3 by @dependabot in #934
- Bump elliptic from 6.5.3 to 6.5.4 by @dependabot in #935
- Bump ini from 1.3.5 to 1.3.8 by @dependabot in #936
- Bump ajv from 6.12.0 to 6.12.6 by @dependabot in #945
- Bump karma from 5.2.3 to 6.3.14 by @dependabot in #944
- Bump pathval from 1.1.0 to 1.1.1 by @dependabot in #943
- Bump websocket-extensions from 0.1.3 to 0.1.4 by @dependabot in #937
- Bump ws from 6.2.1 to 6.2.2 by @dependabot in #947
- Bump url-parse from 1.5.3 to 1.5.10 by @dependabot in #950
- Bump karma from 6.3.14 to 6.3.16 by @dependabot in #951
- Bump follow-redirects from 1.11.0 to 1.14.8 by @dependabot in #946
- Bump grunt from 1.3.0 to 1.5.3 by @dependabot in #954
- Bump async from 2.6.3 to 2.6.4 by @dependabot in #955
- Bump grunt-svgmin from 6.0.0 to 6.0.1 by @dependabot in #957
- Bump webpack-dev-server from 3.11.0 to 4.9.0 by @dependabot in #958
- Bump grunt-karma from 4.0.0 to 4.0.2 by @dependabot in #960
- Bump glob from 7.1.6 to 8.0.3 by @dependabot in #956
- Bump webpack-cli from 3.3.12 to 4.9.2 by @dependabot in #959
- Bump clean-webpack-plugin from 3.0.0 to 4.0.0 by @dependabot in #961
- Bump eslint from 7.10.0 to 8.16.0 by @dependabot in #964
- Bump @babel/core from 7.11.6 to 7.18.2 by @dependabot in #963
- Bump karma-babel-preprocessor from 8.0.1 to 8.0.2 by @dependabot in #962
- Bump grunt-webpack from 4.0.2 to 5.0.0 by ...
Minor Dev Workflow and Dependency Update
v0.17.7
-
Dependencies
- Re-wrote function using jQuery (
$.ajax
) to use the JavaScript Fetch API instead (#540 by @carlo-ev) to allow removal of jQuery as a dependency (#626 by @sashadev-sky)
- Re-wrote function using jQuery (
-
Development Workflow
-
Enhancements
- Update method creation to ES6 syntax for the
L.Map.DoubleClickZoom
(#633 by @calvincodes),L.ScaleHandle
(#691 by @theodumont),L.Map
(#635 by @jscastanos) andL.ScaleAction
(#692 by @tannerdolby) classes.
- Update method creation to ES6 syntax for the
v0.16.7
-
Development Workflow
- Update the pre-commit hook to automatically build and commit the
dist
file (#611 by @sashadev-sky)
- Update the pre-commit hook to automatically build and commit the
-
Enhancements
Modes Part 1: Single Image Interface + Drop Node 8
Stay tuned for - Modes Part 2: Collection Interface! 🚀
v0.16.6
- CI
- Drop Node.js 8 support (#609 by @sashadev-sky)
- Enhancements
- Update method creation to ES6 syntax for the
L.IconUtil
(#610 by @Alexjake660),L.UnlockAction
(#615 by @TejaSwaroopArukoti),L.StackAction
(#620 by @h-khoza), andL.FreeRotateHandle
(#614 by @Manwej) classes.
- Update method creation to ES6 syntax for the
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
- Features: You can now limit the usable modes via the pre-existing
-
Enhancements
- Update method creation syntax from ES5 to ES6 for the
L.DistortHandle
(#601 by @GSKSan) andL.DragHandle
(#606 by @terror) classes, and theL.MatrixUtil
(#599 by @AkzharkynDM) andL.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)
- Update method creation syntax from ES5 to ES6 for the
-
Features
- Enable passing a function for custom toolbar translations (#573 by @adriankwiat)
Restore API
v0.14.6
- Breaking Changes
L.RevertAction
tool has been updated toL.RestoreAction
and is no longer a WIP (#581 by @sashadev-sky)
- API
#restore
action added forL.DistortableImageOverlay
and exposed to API (#581)
Rotation API
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)
- A new
Webpack and ES6 Support + Major updates to exporting
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
- Add Webpack module bundler to compile code (#512 by @VladimirMikulic)
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
- Bug Fixes
- Allow moving of images at high zoom levels (#517 by @anthony-zhou, #526)
- Enhancements
- Add custom translation functionality for toolbar tools (#504 by @VladimirMikulic, #527)
- Features
- Exporting! - Create customizable export UI, Add cancel export functionality, Make collection export option dynamic (#485 / #528 by @jywarren, #494 / #523 by @VladimirMikulic, #519 / #521 by @sashadev-sky)
v0.9.0
- Enhancements
- Add tooltips for
lock
mode to indicate image is locked (#482 by @sashadev-sky)
- Add tooltips for
v0.8.9
- API
- Add a
#setAngle
method (#502 by @VladimirMikulic)
- Add a
- Bug Fixes
- Documentation
- Add documentation for testing LDI (#513 by @VladimirMikulic)
- Enhancements
- Remove unnecessary
try...catch
statement from#addToolbar
(#490 by @alexbertis)
- Remove unnecessary
v0.8.8
- API
- Update toolbar API methods
#addTool
,#removeTool
, and#replaceTool
to return meaningful values (#481 by @tsparksh) - Add a
#getAngle
method (#480 by @VladimirMikulic)
- Update toolbar API methods
- Bug Fixes
- Remove loading spinner after image export (#477 by @VladimirMikulic)
- Enhancements
- Add Code of Conduct badge to README (#483 by @ee9957)
- Add polyfill for ES6 promises (#477 by @VladimirMikulic)
- Allow swapping between
boxZoom
andboxCollector
(#476 by @sashadev-sky)
v0.8.6
- API
- Add a
#replaceTool
method (#468 by @chen-robert)
- Add a
Major API updates & additions + new "drag" mode
v0.8.4
- Bug Fixes
- Fix Leaflet library bug where
doubleTap
events don't work in Chrome (#438 by @sashadev-sky)
- Fix Leaflet library bug where
- Documentation
- Document
singleclick
- Document
- Enhancements
- Add a new
drag
mode, which allows dragging the overlay by a set of handles (#371 by @themacboy)
- Add a new
v0.8.3
- Major API update - naming & hotkeys for actions (#393 by @sashadev-sky):
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 renamedboxCollector
(#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)
- Image
- Enhancements
v0.7.8
- Bug Fixes
- Fix a bug where the image becomes distorted close to the map edges (#424 by @sashadev-sky)
- Dependencies
- Relocate jQuery from
devDepencies
todependencies
(#428 by @GianCastle)
- Relocate jQuery from
v0.7.7
- API Changes
- Add
suppressToolbar
option toDistortableCollection
for more refined control over that functionality (#415 by @sashadev-sky)
- Add
- Bug Fixes
- Keymapper is no longer rendered on mobile devices (#405 by @sashadev-sky)
- Documentation
- Update Code of Conduct
- Enhancements
API Updates & scale/rotate/rotateScale distortions fixed!
v0.7.4
- Bug Fixes
- Update
rgb
torgba
(#399 by adriankwiat)
- Update
- Enhancements
- Update
index.html
andselect.html
to use a Google satellite base layer superimposed with a toner labels layer (#370 by sashadev-sky)
- Update
v0.7.3
- Enhancements
v0.7.2
- Bug Fixes
- Move
#startExport
toDistortableCollection.Edit
(#384 by sashadev-sky)
- Move
- Development Workflow
v0.7.1
- API Changes
- Make
corners
option forDistortableImageOverlay
initialization optional (#381 by sashadev-sky) - Move the listener to enable image editing on
load
out of the html demo files and intoDistortableImageOverlay
as a default internal behavior. Add an initialization optioneditable
to allow the user to disable it if needed (#381) - Add a
DistortableCollection.Edit
handler to matchDistortableImageOverlay.Edit
and add additional logic to their#enable
and#disable
methods so that they work together coherently (#381)
- Make
v0.6.9
- API Changes
- Standardize and expose
#setCorner
,#setCorners
,#scaleBy
, and#rotateBy
to API (#380 by sashadev-sky)
- Standardize and expose
- 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
v0.6.7
- API Changes
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
-
Bug Fixes
- Box selector now allows selection from any angle (#344, by @sashadev-sky )
- fix zoom animation in Firefox (#347, by @sashadev-sky )
-
Enhancements
- Appending Image using
getPane()
method (#355, by @gowtham5699)
- Appending Image using
v0.6.2
-
Bug Fixes
-
API Changes
- Changed name of
Restore
action toRevert
(#346 by @sashadev-sky)
- Changed name of