From 87f50767aeb5670b2070e6daf5cc26cba7303eb8 Mon Sep 17 00:00:00 2001 From: Vanitha K Date: Mon, 17 Oct 2022 00:52:07 +0530 Subject: [PATCH 1/6] detect key from longer URL --- examples/archive.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/archive.html b/examples/archive.html index c1607f63f..dbe5edf80 100644 --- a/examples/archive.html +++ b/examples/archive.html @@ -95,6 +95,9 @@

Images

form.addEventListener('submit', (event) => { event.preventDefault(); const url = input.value.replace('details', 'metadata'); + let splitUrl = url.split('/'); + let detectKey = splitUrl[splitUrl.length - 2]; + console.log(detectKey); axios.get(url) .then((response) => { if (response.data.files && response.data.files.length != 0) { From 7cbcb80b30553762c3ebf126028d07350cbfbfec Mon Sep 17 00:00:00 2001 From: Vanitha K Date: Thu, 20 Oct 2022 22:04:20 +0530 Subject: [PATCH 2/6] fixes --- examples/listeners.html | 2 +- src/edit/handles/LockHandle.js | 16 ++++++++-------- src/edit/toolbars/DistortableImage.PopupBar.js | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/listeners.html b/examples/listeners.html index 92cc46ae3..59da15279 100644 --- a/examples/listeners.html +++ b/examples/listeners.html @@ -23,7 +23,7 @@
@@ -17,6 +18,8 @@ + +
diff --git a/examples/js/index.js b/examples/js/index.js index bfea75aec..dee46a9c4 100644 --- a/examples/js/index.js +++ b/examples/js/index.js @@ -1,3 +1,5 @@ +const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="top"]') +const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl)) let map; (function() { diff --git a/src/edit/actions/EditAction.js b/src/edit/actions/EditAction.js index 963f2524f..6888c2d29 100644 --- a/src/edit/actions/EditAction.js +++ b/src/edit/actions/EditAction.js @@ -39,8 +39,11 @@ L.EditAction = L.Toolbar2.Action.extend({ } this._link.setAttribute('href', '#'); - this._link.setAttribute('title', iconOptions.tooltip); + // this._link.setAttribute('title', iconOptions.tooltip); this._link.setAttribute('role', 'button'); + this._link.setAttribute('data-bs-toggle', 'top') + this._link.setAttribute('data-bs-placement', 'bottom') + this._link.setAttribute('data-bs-title', iconOptions.tooltip) L.DomUtil.addClass(this._link, this.constructor.baseClass); From 8a74edba082ffc0cd6ab953a0fc6c0212637c36c Mon Sep 17 00:00:00 2001 From: Vanitha K Date: Thu, 27 Oct 2022 16:30:12 +0530 Subject: [PATCH 5/6] error fixes --- dist/leaflet.distortableimage.js | 2 +- src/edit/actions/EditAction.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/leaflet.distortableimage.js b/dist/leaflet.distortableimage.js index f6435d639..67876f357 100644 --- a/dist/leaflet.distortableimage.js +++ b/dist/leaflet.distortableimage.js @@ -7262,7 +7262,7 @@ module.exports.formatError = function (err) { /******/ /******/ /* webpack/runtime/getFullHash */ /******/ !function() { -/******/ __webpack_require__.h = function() { return "2bc6040703af30745ee2"; } +/******/ __webpack_require__.h = function() { return "b221ef1d217ffbd4c281"; } /******/ }(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ diff --git a/src/edit/actions/EditAction.js b/src/edit/actions/EditAction.js index 6888c2d29..f54bb8e2a 100644 --- a/src/edit/actions/EditAction.js +++ b/src/edit/actions/EditAction.js @@ -41,9 +41,9 @@ L.EditAction = L.Toolbar2.Action.extend({ this._link.setAttribute('href', '#'); // this._link.setAttribute('title', iconOptions.tooltip); this._link.setAttribute('role', 'button'); - this._link.setAttribute('data-bs-toggle', 'top') - this._link.setAttribute('data-bs-placement', 'bottom') - this._link.setAttribute('data-bs-title', iconOptions.tooltip) + this._link.setAttribute('data-bs-toggle', 'top'); + this._link.setAttribute('data-bs-placement', 'bottom'); + this._link.setAttribute('data-bs-title', iconOptions.tooltip); L.DomUtil.addClass(this._link, this.constructor.baseClass); From 87ab889f5575adb0248f6e9d55ba80e993812297 Mon Sep 17 00:00:00 2001 From: Vanitha K Date: Fri, 28 Oct 2022 21:51:51 +0530 Subject: [PATCH 6/6] data-bs-toggle: tooltip, instead of top --- dist/leaflet.distortableimage.js | 6 +++--- src/edit/actions/EditAction.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/leaflet.distortableimage.js b/dist/leaflet.distortableimage.js index 67876f357..5b66ad741 100644 --- a/dist/leaflet.distortableimage.js +++ b/dist/leaflet.distortableimage.js @@ -2467,9 +2467,9 @@ L.EditAction = L.Toolbar2.Action.extend({ this._link.setAttribute('role', 'button'); - this._link.setAttribute('data-bs-toggle', 'top'); + this._link.setAttribute('data-bs-toggle', 'tooltip'); - this._link.setAttribute('data-bs-placement', 'bottom'); + this._link.setAttribute('data-bs-placement', 'top'); this._link.setAttribute('data-bs-title', iconOptions.tooltip); @@ -7262,7 +7262,7 @@ module.exports.formatError = function (err) { /******/ /******/ /* webpack/runtime/getFullHash */ /******/ !function() { -/******/ __webpack_require__.h = function() { return "b221ef1d217ffbd4c281"; } +/******/ __webpack_require__.h = function() { return "2805f7beafd7453f7d08"; } /******/ }(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ diff --git a/src/edit/actions/EditAction.js b/src/edit/actions/EditAction.js index f54bb8e2a..d2fc5c842 100644 --- a/src/edit/actions/EditAction.js +++ b/src/edit/actions/EditAction.js @@ -41,8 +41,8 @@ L.EditAction = L.Toolbar2.Action.extend({ this._link.setAttribute('href', '#'); // this._link.setAttribute('title', iconOptions.tooltip); this._link.setAttribute('role', 'button'); - this._link.setAttribute('data-bs-toggle', 'top'); - this._link.setAttribute('data-bs-placement', 'bottom'); + this._link.setAttribute('data-bs-toggle', 'tooltip'); + this._link.setAttribute('data-bs-placement', 'top'); this._link.setAttribute('data-bs-title', iconOptions.tooltip); L.DomUtil.addClass(this._link, this.constructor.baseClass);