@idmwx/idmui-gl4 3.8.2 → 3.8.4
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-f3c90593.js → chunk-3VYIPD3A-fa905f95.js} +1 -1
- package/dist/{chunk-ANSXOGKI-02183312.js → chunk-ANSXOGKI-b00702e8.js} +1 -1
- package/dist/{chunk-T4JIPPZO-25c7d9fb.js → chunk-T4JIPPZO-6e95a046.js} +1 -1
- package/dist/{download-a8d2dc8d.js → download-b8de6399.js} +3 -3
- package/dist/{index-a6959b8a.js → index-c5a4c55d.js} +41 -34
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/mapbox/src/components/map/index.vue.d.ts +3 -3
- package/dist/mapbox/src/components/other/index.vue.d.ts +10 -3
- package/dist/{rasterize-JS5G2XHH-90e5dfc4.js → rasterize-JS5G2XHH-a6fae19b.js} +3 -3
- package/dist/{toBlob-15aac33f.js → toBlob-5b17355f.js} +3 -3
- package/dist/{toCanvas-944333ee.js → toCanvas-2d35d06f.js} +2 -2
- package/dist/{toImg-351e9073.js → toImg-d1960399.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-3VYIPD3A-
|
|
1
|
+
import { W as a } from "./chunk-3VYIPD3A-fa905f95.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as d } from "./chunk-T4JIPPZO-
|
|
2
|
-
import { W as f } from "./chunk-3VYIPD3A-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { m as d } from "./chunk-T4JIPPZO-6e95a046.js";
|
|
2
|
+
import { W as f } from "./chunk-3VYIPD3A-fa905f95.js";
|
|
3
|
+
import "./index-c5a4c55d.js";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "vuetify";
|
|
6
6
|
import "vue";
|
|
@@ -3274,6 +3274,9 @@ const dc = {
|
|
|
3274
3274
|
},
|
|
3275
3275
|
platform: {
|
|
3276
3276
|
type: String
|
|
3277
|
+
},
|
|
3278
|
+
mapFeather: {
|
|
3279
|
+
type: String
|
|
3277
3280
|
}
|
|
3278
3281
|
},
|
|
3279
3282
|
emits: ["map", "other", "menuToggle", "mapFeather", "theme", "followLayerList", "otherCheckList"],
|
|
@@ -3281,20 +3284,20 @@ const dc = {
|
|
|
3281
3284
|
return {
|
|
3282
3285
|
right: 10,
|
|
3283
3286
|
toggle: !1,
|
|
3284
|
-
|
|
3287
|
+
mapboxFeather: void 0,
|
|
3285
3288
|
tagLayers: [...qa.OTHER_LAYERS.filter((t) => t.enabled)],
|
|
3286
3289
|
layerWeight: 0,
|
|
3287
3290
|
otherLayers: {},
|
|
3288
3291
|
activeOtherLayers: [],
|
|
3289
3292
|
cache: {
|
|
3290
|
-
v: "0.0.
|
|
3293
|
+
v: "0.0.2",
|
|
3291
3294
|
versionKey: "otherLayerCacheVersionGL4",
|
|
3292
3295
|
checkListKey: "otherChecklistCacheGL4",
|
|
3293
3296
|
followListKey: "otherFollowListCacheGL4",
|
|
3294
3297
|
mapFeatherKey: "mapFeathersCacheGL4",
|
|
3295
3298
|
nauticalKey: "nauticalLayerCacheGL4"
|
|
3296
3299
|
},
|
|
3297
|
-
|
|
3300
|
+
featherOptions: [
|
|
3298
3301
|
{ name: "Light Map", value: "light", locale: "lightMap" },
|
|
3299
3302
|
{ name: "Dark Map", value: "dark", locale: "darkMap" },
|
|
3300
3303
|
{ name: "Satelite Map", value: "satellite", locale: "satelliteMap", hide: this.platform === "ops", replace: "dark" },
|
|
@@ -3325,16 +3328,20 @@ const dc = {
|
|
|
3325
3328
|
},
|
|
3326
3329
|
theme: {
|
|
3327
3330
|
handler() {
|
|
3328
|
-
this.theme === "light" ? this.
|
|
3331
|
+
this.theme === "light" ? this.mapboxFeather = ["light", "nautical"].includes(this.mapboxFeather) ? this.mapboxFeather : "light" : this.theme === "dark" && (this.mapboxFeather = ["dark", "satellite"].includes(this.mapboxFeather) ? this.mapboxFeather : "dark");
|
|
3329
3332
|
}
|
|
3330
|
-
// immediate: true,
|
|
3331
3333
|
},
|
|
3332
3334
|
mapFeather: {
|
|
3333
|
-
handler() {
|
|
3334
|
-
|
|
3335
|
+
handler(t, e) {
|
|
3336
|
+
t !== e && (this.mapboxFeather = this.mapFeather);
|
|
3335
3337
|
},
|
|
3336
3338
|
immediate: !0
|
|
3337
3339
|
},
|
|
3340
|
+
mapboxFeather: {
|
|
3341
|
+
handler() {
|
|
3342
|
+
console.log(33333, this.mapboxFeather), localStorage.setItem(this.cache.mapFeatherKey, this.mapboxFeather), this.$emit("mapFeather", this.mapboxFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapboxFeather) ? "light" : "dark");
|
|
3343
|
+
}
|
|
3344
|
+
},
|
|
3338
3345
|
checkList: {
|
|
3339
3346
|
handler(t, e) {
|
|
3340
3347
|
localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), this.activeOtherLayers = this.tagLayers.filter((r) => this.checkList.includes(r.key)) || [];
|
|
@@ -3359,14 +3366,14 @@ const dc = {
|
|
|
3359
3366
|
this.cache.v !== t && (localStorage.removeItem(this.cache.checkListKey), localStorage.removeItem(this.cache.followListKey), localStorage.removeItem(this.cache.mapFeatherKey), localStorage.removeItem(this.cache.nauticalKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
|
|
3360
3367
|
let e = localStorage.getItem(this.cache.checkListKey);
|
|
3361
3368
|
this.checkList = JSON.parse(e || '["eca-zones"]'), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), e = localStorage.getItem(this.cache.mapFeatherKey);
|
|
3362
|
-
const a = this.
|
|
3369
|
+
const a = this.featherOptions.some((o) => o.value === e && !o.hide) ? e : ((i = this.featherOptions.find((o) => o.value === e)) == null ? void 0 : i.replace) || "dark";
|
|
3363
3370
|
this.$emit("mapFeather", a), localStorage.setItem(this.cache.mapFeatherKey, a);
|
|
3364
3371
|
},
|
|
3365
3372
|
handleMenuToggle() {
|
|
3366
3373
|
this.$emit("menuToggle", "otherLayers");
|
|
3367
3374
|
},
|
|
3368
3375
|
handleToggleMapFeather(t) {
|
|
3369
|
-
this.
|
|
3376
|
+
this.mapboxFeather = t.value;
|
|
3370
3377
|
},
|
|
3371
3378
|
async fetchOtherLayers() {
|
|
3372
3379
|
var e, a;
|
|
@@ -3493,7 +3500,7 @@ function Ac(t, e, a, i, o, r) {
|
|
|
3493
3500
|
default: x(() => [
|
|
3494
3501
|
w(c, { class: "text-h6" }, {
|
|
3495
3502
|
default: x(() => [
|
|
3496
|
-
N(b(t.$t("layer.
|
|
3503
|
+
N(b(t.$t("layer.featherOptions")), 1)
|
|
3497
3504
|
]),
|
|
3498
3505
|
_: 1
|
|
3499
3506
|
})
|
|
@@ -3505,13 +3512,13 @@ function Ac(t, e, a, i, o, r) {
|
|
|
3505
3512
|
var ae;
|
|
3506
3513
|
return [
|
|
3507
3514
|
n("div", gc, [
|
|
3508
|
-
(v(!0), D(Me, null, Se((ae = o.
|
|
3515
|
+
(v(!0), D(Me, null, Se((ae = o.featherOptions) == null ? void 0 : ae.filter((ce) => !ce.hide), (ce) => (v(), D("div", {
|
|
3509
3516
|
key: ce.value,
|
|
3510
3517
|
class: "mb-4 feather-item",
|
|
3511
3518
|
onClick: (Ae) => r.handleToggleMapFeather(ce)
|
|
3512
3519
|
}, [
|
|
3513
3520
|
n("div", {
|
|
3514
|
-
class: ye([o.
|
|
3521
|
+
class: ye([o.mapboxFeather === ce.value ? "active" : "", "img-box"])
|
|
3515
3522
|
}, [
|
|
3516
3523
|
ce.value === "dark" ? (v(), D("img", yc)) : ce.value === "nautical" ? (v(), D("img", bc)) : ce.value === "satellite" ? (v(), D("img", wc)) : (v(), D("img", xc))
|
|
3517
3524
|
], 2),
|
|
@@ -17794,52 +17801,52 @@ Te.capture = async (t, e, a) => {
|
|
|
17794
17801
|
if (a !== tl)
|
|
17795
17802
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17796
17803
|
let i = await el(t, e), o = { img: async (u, h) => {
|
|
17797
|
-
let { toImg: y } = await import("./toImg-
|
|
17804
|
+
let { toImg: y } = await import("./toImg-d1960399.js");
|
|
17798
17805
|
return y(i, { ...u, ...h || {} });
|
|
17799
17806
|
}, svg: async (u, h) => {
|
|
17800
|
-
let { toSvg: y } = await import("./toImg-
|
|
17807
|
+
let { toSvg: y } = await import("./toImg-d1960399.js");
|
|
17801
17808
|
return y(i, { ...u, ...h || {} });
|
|
17802
17809
|
}, canvas: async (u, h) => {
|
|
17803
|
-
let { toCanvas: y } = await import("./toCanvas-
|
|
17810
|
+
let { toCanvas: y } = await import("./toCanvas-2d35d06f.js");
|
|
17804
17811
|
return y(i, { ...u, ...h || {} });
|
|
17805
17812
|
}, blob: async (u, h) => {
|
|
17806
|
-
let { toBlob: y } = await import("./toBlob-
|
|
17813
|
+
let { toBlob: y } = await import("./toBlob-5b17355f.js");
|
|
17807
17814
|
return y(i, { ...u, ...h || {} });
|
|
17808
17815
|
}, png: async (u, h) => {
|
|
17809
|
-
let { rasterize: y } = await import("./rasterize-JS5G2XHH-
|
|
17816
|
+
let { rasterize: y } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17810
17817
|
return y(i, { ...u, ...h || {}, format: "png" });
|
|
17811
17818
|
}, jpeg: async (u, h) => {
|
|
17812
|
-
let { rasterize: y } = await import("./rasterize-JS5G2XHH-
|
|
17819
|
+
let { rasterize: y } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17813
17820
|
return y(i, { ...u, ...h || {}, format: "jpeg" });
|
|
17814
17821
|
}, webp: async (u, h) => {
|
|
17815
|
-
let { rasterize: y } = await import("./rasterize-JS5G2XHH-
|
|
17822
|
+
let { rasterize: y } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17816
17823
|
return y(i, { ...u, ...h || {}, format: "webp" });
|
|
17817
17824
|
}, download: async (u, h) => {
|
|
17818
|
-
let { download: y } = await import("./download-
|
|
17825
|
+
let { download: y } = await import("./download-b8de6399.js");
|
|
17819
17826
|
return y(i, { ...u, ...h || {} });
|
|
17820
17827
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
|
|
17821
|
-
let { toSvg: h } = await import("./toImg-
|
|
17828
|
+
let { toSvg: h } = await import("./toImg-d1960399.js");
|
|
17822
17829
|
return h(i, { ...e, ...u || {}, [da]: !0 });
|
|
17823
17830
|
}, canvas: async (u) => {
|
|
17824
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17831
|
+
let { toCanvas: h } = await import("./toCanvas-2d35d06f.js");
|
|
17825
17832
|
return h(i, { ...e, ...u || {}, [da]: !0 });
|
|
17826
17833
|
}, png: async (u) => {
|
|
17827
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17834
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17828
17835
|
return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
|
|
17829
17836
|
}, jpeg: async (u) => {
|
|
17830
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17837
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17831
17838
|
return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
|
|
17832
17839
|
}, jpg: async (u) => {
|
|
17833
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17840
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17834
17841
|
return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
|
|
17835
17842
|
}, webp: async (u) => {
|
|
17836
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17843
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-a6fae19b.js");
|
|
17837
17844
|
return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
|
|
17838
17845
|
}, blob: async (u) => {
|
|
17839
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17846
|
+
let { toBlob: h } = await import("./toBlob-5b17355f.js");
|
|
17840
17847
|
return h(i, { ...e, ...u || {}, [da]: !0 });
|
|
17841
17848
|
}, img: async (u) => {
|
|
17842
|
-
let { toImg: h } = await import("./toImg-
|
|
17849
|
+
let { toImg: h } = await import("./toImg-d1960399.js");
|
|
17843
17850
|
return h(i, { ...e, ...u || {}, [da]: !0 });
|
|
17844
17851
|
} } }, l = await qf("defineExports", r), s = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), c = { ...o, ...s };
|
|
17845
17852
|
c.jpeg && !c.jpg && (c.jpg = (u, h) => c.jpeg(u, h));
|
|
@@ -39338,7 +39345,7 @@ const M1 = {
|
|
|
39338
39345
|
},
|
|
39339
39346
|
mapFeather: {
|
|
39340
39347
|
handler() {
|
|
39341
|
-
this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.
|
|
39348
|
+
this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.map = void 0, this.mapFeather && this.$nextTick(() => {
|
|
39342
39349
|
this.initOnlineMap();
|
|
39343
39350
|
});
|
|
39344
39351
|
},
|
|
@@ -39350,15 +39357,15 @@ const M1 = {
|
|
|
39350
39357
|
},
|
|
39351
39358
|
immediate: !0
|
|
39352
39359
|
},
|
|
39353
|
-
|
|
39354
|
-
handler(t) {
|
|
39355
|
-
this
|
|
39360
|
+
nautical: {
|
|
39361
|
+
handler(t, e) {
|
|
39362
|
+
this.vendor = t;
|
|
39356
39363
|
},
|
|
39357
39364
|
immediate: !0
|
|
39358
39365
|
},
|
|
39359
|
-
|
|
39366
|
+
vendor: {
|
|
39360
39367
|
handler(t, e) {
|
|
39361
|
-
|
|
39368
|
+
this.handleNauticalToggle(t, e), this.$emit("nautical", t);
|
|
39362
39369
|
}
|
|
39363
39370
|
}
|
|
39364
39371
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-
|
|
1
|
+
import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-c5a4c55d.js";
|
|
2
2
|
import "axios";
|
|
3
3
|
import "vuetify";
|
|
4
4
|
import "vue";
|