@idmwx/idmui-gl4 2.9.5 → 2.9.7
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/{chunk-3VYIPD3A-f19df3a8.js → chunk-3VYIPD3A-02984ebb.js} +1 -1
- package/dist/{chunk-ANSXOGKI-d5718512.js → chunk-ANSXOGKI-7a84edd4.js} +1 -1
- package/dist/{chunk-T4JIPPZO-ac710f17.js → chunk-T4JIPPZO-3571eaa0.js} +1 -1
- package/dist/download-fe8391ab.js +31 -0
- package/dist/{index-cc8dd8ad.js → index-7aaf33ab.js} +7800 -5202
- package/dist/index.js +17 -15
- package/dist/index.umd.cjs +27 -24
- package/dist/mapbox/src/components/marker/deleteDialog.vue.d.ts +31 -0
- package/dist/mapbox/src/components/marker/draw.vue.d.ts +176 -0
- package/dist/mapbox/src/components/marker/groupDialog.vue.d.ts +45 -0
- package/dist/mapbox/src/components/marker/import.vue.d.ts +62 -0
- package/dist/mapbox/src/components/marker/index.vue.d.ts +122 -0
- package/dist/mapbox/src/components/tropical/index.vue.d.ts +2 -2
- package/dist/{toBlob-6a17061c.js → rasterize-JS5G2XHH-08321933.js} +6 -4
- package/dist/style.css +1 -1
- package/dist/{rasterize-JS5G2XHH-f4cb9d90.js → toBlob-9b2b385f.js} +6 -4
- package/dist/{toCanvas-54969d48.js → toCanvas-40b86645.js} +5 -3
- package/dist/{toImg-9011a382.js → toImg-4c2a5772.js} +15 -13
- package/package.json +7 -2
- package/dist/download-95054bfe.js +0 -29
- /package/dist/mapbox/src/components/{capture → bottombar/capture}/gifRecorder.d.ts +0 -0
- /package/dist/mapbox/src/components/{capture → bottombar/capture}/index.vue.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-3VYIPD3A-
|
|
1
|
+
import { W as a } from "./chunk-3VYIPD3A-02984ebb.js";
|
|
2
2
|
async function o(r, t) {
|
|
3
3
|
let i = await a(r, t), e = new Image();
|
|
4
4
|
return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { m as d } from "./chunk-T4JIPPZO-3571eaa0.js";
|
|
2
|
+
import { W as f } from "./chunk-3VYIPD3A-02984ebb.js";
|
|
3
|
+
import "./index-7aaf33ab.js";
|
|
4
|
+
import "axios";
|
|
5
|
+
import "vuetify";
|
|
6
|
+
import "vue";
|
|
7
|
+
import "mapbox-gl";
|
|
8
|
+
import "moment";
|
|
9
|
+
import "@idm-plugin/geo";
|
|
10
|
+
import "@idm-plugin/meteo";
|
|
11
|
+
import "echarts";
|
|
12
|
+
import "@turf/turf";
|
|
13
|
+
import "@idm-plugin/tag2";
|
|
14
|
+
import "@mapbox/sphericalmercator";
|
|
15
|
+
import "@idm-plugin/tag";
|
|
16
|
+
import "shpjs";
|
|
17
|
+
import "gif.js";
|
|
18
|
+
import "@idm-plugin/aliclient";
|
|
19
|
+
async function C(p, o) {
|
|
20
|
+
let a = ((o == null ? void 0 : o.format) || (o == null ? void 0 : o.type) || "").toLowerCase(), r = a === "jpg" ? "jpeg" : a || "png", t = (o == null ? void 0 : o.filename) || `snapdom.${r}`, e = { ...o || {}, format: r, type: r };
|
|
21
|
+
if (e.dpr = 1, r === "svg") {
|
|
22
|
+
let l = await d(p, { ...e, type: "svg" }), n = URL.createObjectURL(l), i = document.createElement("a");
|
|
23
|
+
i.href = n, i.download = t, i.click(), URL.revokeObjectURL(n);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
let c = await f(p, e), m = document.createElement("a");
|
|
27
|
+
m.href = c.toDataURL(`image/${r}`, o == null ? void 0 : o.quality), m.download = t, m.click();
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
C as download
|
|
31
|
+
};
|