From 5da9a5451bbc7ce6e1827272123842c8d02c344b Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Thu, 17 Aug 2023 23:48:49 +0200 Subject: [PATCH] Update to iD v2.27.1 --- vendor/assets/iD/iD.css.erb | 10 ++++++++++ vendor/assets/iD/iD.js | 19 ++++--------------- vendor/assets/iD/iD/img/fa-sprite.svg | 2 +- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/vendor/assets/iD/iD.css.erb b/vendor/assets/iD/iD.css.erb index 851b8cf1c..b1a0176ee 100644 --- a/vendor/assets/iD/iD.css.erb +++ b/vendor/assets/iD/iD.css.erb @@ -2749,9 +2749,11 @@ background-position: center; background-repeat: no-repeat; } + .ideditor #ideditor-viewer-mapilio-simple-wrap { height: 100%; } + .ideditor #ideditor-viewer-mapilio-simple { width: 100%; height: 100%; @@ -2760,6 +2762,14 @@ transform-origin: 0 0; } +.ideditor #ideditor-viewer-mapilio-simple img { + width: 100%; + height: 100%; + -o-object-fit: cover; + object-fit: cover; + overflow: hidden +} + /* Streetside Viewer (pannellum) */ .ideditor .ms-wrapper .photo-attribution .image-link { display: block; diff --git a/vendor/assets/iD/iD.js b/vendor/assets/iD/iD.js index d89cd30da..0401484a0 100644 --- a/vendor/assets/iD/iD.js +++ b/vendor/assets/iD/iD.js @@ -22820,7 +22820,7 @@ // package.json var package_default = { name: "iD", - version: "2.27.0", + version: "2.27.1", description: "A friendly editor for OpenStreetMap", main: "dist/iD.min.js", repository: "github:openstreetmap/iD", @@ -22897,7 +22897,7 @@ "@fortawesome/free-regular-svg-icons": "~6.4.2", "@fortawesome/free-solid-svg-icons": "~6.4.2", "@mapbox/maki": "^8.0.1", - "@openstreetmap/id-tagging-schema": "^6.3.0", + "@openstreetmap/id-tagging-schema": "^6.4.1", "@rapideditor/temaki": "~5.4.0", "@transifex/api": "^5.4.0", autoprefixer: "^10.4.15", @@ -22931,7 +22931,7 @@ "node-fetch": "^2.6.12", "npm-run-all": "^4.0.0", "osm-community-index": "~5.5.4", - postcss: "^8.4.27", + postcss: "^8.4.28", "postcss-selector-prepend": "^0.5.0", shelljs: "^0.8.0", shx: "^0.3.0", @@ -25869,24 +25869,13 @@ } return value2 === null || value2 === void 0 ? valueNull : typeof value2 === "function" ? valueFunction : valueConstant; } - function stickyCursor(func) { - const supportedTypes = ["text", "search", "url", "tel", "password"]; - if (!supportedTypes.includes(selection2.node()?.type)) { - return func; - } - return function() { - const cursor = { start: this.selectionStart, end: this.selectionEnd }; - func.apply(this, arguments); - this.setSelectionRange(cursor.start, cursor.end); - }; - } if (arguments.length === 1) { return selection2.property("value"); } if (shouldUpdate === void 0) { shouldUpdate = (a2, b2) => a2 !== b2; } - return selection2.each(stickyCursor(setValue(value, shouldUpdate))); + return selection2.each(setValue(value, shouldUpdate)); } // modules/util/keybinding.js diff --git a/vendor/assets/iD/iD/img/fa-sprite.svg b/vendor/assets/iD/iD/img/fa-sprite.svg index 7b4442c91..941c5c649 100644 --- a/vendor/assets/iD/iD/img/fa-sprite.svg +++ b/vendor/assets/iD/iD/img/fa-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file -- 2.45.1