@abi-software/map-utilities 1.0.1-beta.1 → 1.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/map-utilities.js
CHANGED
|
@@ -12043,10 +12043,17 @@ const D2 = /* @__PURE__ */ $t(y2, [["render", F2], ["__scopeId", "data-v-aa649ea
|
|
|
12043
12043
|
let e = !0;
|
|
12044
12044
|
this.autoHideTimeout = 600;
|
|
12045
12045
|
try {
|
|
12046
|
-
|
|
12046
|
+
const t = this.content.replaceAll(`
|
|
12047
|
+
`, ""), n = document.createElement("div");
|
|
12048
|
+
n.innerHTML = this.content;
|
|
12049
|
+
const o = n.textContent || n.innerText || "", r = new Blob([t], { type: "text/html" }), i = new Blob([o], { type: "text/plain" }), s = new ClipboardItem({
|
|
12050
|
+
"text/html": r,
|
|
12051
|
+
"text/plain": i
|
|
12052
|
+
});
|
|
12053
|
+
await navigator.clipboard.write([s]);
|
|
12047
12054
|
} catch (t) {
|
|
12048
12055
|
console.error(
|
|
12049
|
-
"Error when trying to use navigator.clipboard.
|
|
12056
|
+
"Error when trying to use navigator.clipboard.write()",
|
|
12050
12057
|
t
|
|
12051
12058
|
), e = !1;
|
|
12052
12059
|
}
|
|
@@ -12087,7 +12094,7 @@ function N2(e, t, n, o, r, i) {
|
|
|
12087
12094
|
_: 1
|
|
12088
12095
|
}, 8, ["content", "hide-after", "onHide"]);
|
|
12089
12096
|
}
|
|
12090
|
-
const B2 = /* @__PURE__ */ $t(I2, [["render", N2], ["__scopeId", "data-v-
|
|
12097
|
+
const B2 = /* @__PURE__ */ $t(I2, [["render", N2], ["__scopeId", "data-v-de3b5311"]]);
|
|
12091
12098
|
export {
|
|
12092
12099
|
B2 as CopyToClipboard,
|
|
12093
12100
|
P2 as DrawToolbar,
|