@idmwx/idmui-gl4 2.9.4 → 2.9.5

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.
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-76620a2c.js";
1
+ import { l as b } from "./index-cc8dd8ad.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-3VYIPD3A-0de18e7f.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-f19df3a8.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,4 +1,4 @@
1
- import { W as m } from "./chunk-3VYIPD3A-0de18e7f.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-f19df3a8.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,6 +1,6 @@
1
- import { m as d } from "./chunk-T4JIPPZO-ff312610.js";
2
- import { W as f } from "./chunk-3VYIPD3A-0de18e7f.js";
3
- import "./index-76620a2c.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-ac710f17.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-f19df3a8.js";
3
+ import "./index-cc8dd8ad.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -2779,6 +2779,10 @@ const yn = /* @__PURE__ */ ne(gn, [["render", fn]]), bn = {
2779
2779
  },
2780
2780
  show: {
2781
2781
  type: Boolean
2782
+ },
2783
+ locale: {
2784
+ type: String,
2785
+ default: "zhHans"
2782
2786
  }
2783
2787
  },
2784
2788
  data() {
@@ -2799,7 +2803,7 @@ const yn = /* @__PURE__ */ ne(gn, [["render", fn]]), bn = {
2799
2803
  methods: {
2800
2804
  handleRender() {
2801
2805
  var e, t, o;
2802
- (e = this.map) != null && e.getLayer(this.lineLayer) && this.map.setLayoutProperty(this.lineLayer, "visibility", "visible"), (t = this.map) != null && t.getLayer(this.fillLayer) && this.map.setLayoutProperty(this.fillLayer, "visibility", "visible"), (o = this.map) != null && o.getLayer(this.labelLayer) && this.map.setLayoutProperty(this.labelLayer, "visibility", "visible");
2806
+ (e = this.map) != null && e.getLayer(this.lineLayer) && this.map.setLayoutProperty(this.lineLayer, "visibility", "visible"), (t = this.map) != null && t.getLayer(this.fillLayer) && this.map.setLayoutProperty(this.fillLayer, "visibility", "visible"), (o = this.map) != null && o.getLayer(this.labelLayer) && (this.map.setLayoutProperty(this.labelLayer, "visibility", "visible"), this.map.setLayoutProperty(this.labelLayer, "text-field", this.locale === "en" ? "{route_name_en}" : "{route_name}"));
2803
2807
  },
2804
2808
  handleClear() {
2805
2809
  var e, t, o;
@@ -17272,52 +17276,52 @@ Ce.capture = async (e, t, o) => {
17272
17276
  if (o !== wr)
17273
17277
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17274
17278
  let i = await br(e, t), a = { img: async (f, d) => {
17275
- let { toImg: u } = await import("./toImg-89ab08fa.js");
17279
+ let { toImg: u } = await import("./toImg-9011a382.js");
17276
17280
  return u(i, { ...f, ...d || {} });
17277
17281
  }, svg: async (f, d) => {
17278
- let { toSvg: u } = await import("./toImg-89ab08fa.js");
17282
+ let { toSvg: u } = await import("./toImg-9011a382.js");
17279
17283
  return u(i, { ...f, ...d || {} });
17280
17284
  }, canvas: async (f, d) => {
17281
- let { toCanvas: u } = await import("./toCanvas-1c1e7e2b.js");
17285
+ let { toCanvas: u } = await import("./toCanvas-54969d48.js");
17282
17286
  return u(i, { ...f, ...d || {} });
17283
17287
  }, blob: async (f, d) => {
17284
- let { toBlob: u } = await import("./toBlob-5caaf1a6.js");
17288
+ let { toBlob: u } = await import("./toBlob-6a17061c.js");
17285
17289
  return u(i, { ...f, ...d || {} });
17286
17290
  }, png: async (f, d) => {
17287
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-b0901938.js");
17291
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17288
17292
  return u(i, { ...f, ...d || {}, format: "png" });
17289
17293
  }, jpeg: async (f, d) => {
17290
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-b0901938.js");
17294
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17291
17295
  return u(i, { ...f, ...d || {}, format: "jpeg" });
17292
17296
  }, webp: async (f, d) => {
17293
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-b0901938.js");
17297
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17294
17298
  return u(i, { ...f, ...d || {}, format: "webp" });
17295
17299
  }, download: async (f, d) => {
17296
- let { download: u } = await import("./download-f0be3119.js");
17300
+ let { download: u } = await import("./download-95054bfe.js");
17297
17301
  return u(i, { ...f, ...d || {} });
17298
17302
  } }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
17299
- let { toSvg: d } = await import("./toImg-89ab08fa.js");
17303
+ let { toSvg: d } = await import("./toImg-9011a382.js");
17300
17304
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17301
17305
  }, canvas: async (f) => {
17302
- let { toCanvas: d } = await import("./toCanvas-1c1e7e2b.js");
17306
+ let { toCanvas: d } = await import("./toCanvas-54969d48.js");
17303
17307
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17304
17308
  }, png: async (f) => {
17305
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-b0901938.js");
17309
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17306
17310
  return d(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
17307
17311
  }, jpeg: async (f) => {
17308
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-b0901938.js");
17312
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17309
17313
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17310
17314
  }, jpg: async (f) => {
17311
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-b0901938.js");
17315
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17312
17316
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17313
17317
  }, webp: async (f) => {
17314
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-b0901938.js");
17318
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-f4cb9d90.js");
17315
17319
  return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17316
17320
  }, blob: async (f) => {
17317
- let { toBlob: d } = await import("./toBlob-5caaf1a6.js");
17321
+ let { toBlob: d } = await import("./toBlob-6a17061c.js");
17318
17322
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17319
17323
  }, img: async (f) => {
17320
- let { toImg: d } = await import("./toImg-89ab08fa.js");
17324
+ let { toImg: d } = await import("./toImg-9011a382.js");
17321
17325
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17322
17326
  } } }, l = await yp("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...a, ...c };
17323
17327
  s.jpeg && !s.jpg && (s.jpg = (f, d) => s.jpeg(f, d));
@@ -20433,7 +20437,7 @@ class T0 {
20433
20437
  },
20434
20438
  source: "composite",
20435
20439
  "source-layer": "china_route-bdtx5d",
20436
- filter: ["match", ["get", "featureType"], ["route"], !0, !1],
20440
+ filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
20437
20441
  layout: {
20438
20442
  visibility: "none"
20439
20443
  }
@@ -20443,13 +20447,11 @@ class T0 {
20443
20447
  type: "symbol",
20444
20448
  paint: {
20445
20449
  "text-color": "rgba(0, 0, 0, 1)"
20446
- // 'text-halo-width': 1,
20447
- // 'text-color': 'rgba(119, 239, 157, 1)',
20448
20450
  },
20449
20451
  source: "composite",
20450
20452
  "source-layer": "china_route-bdtx5d",
20451
20453
  layout: {
20452
- "text-field": ["to-string", ["get", "RouteName"]],
20454
+ "text-field": ["to-string", ["get", "route_name"]],
20453
20455
  "text-size": 10,
20454
20456
  "text-offset": [0, 1.6],
20455
20457
  visibility: "none"
@@ -20514,23 +20516,11 @@ class T0 {
20514
20516
  "text-color": "rgb(0, 0, 0)"
20515
20517
  },
20516
20518
  layout: {
20517
- "text-field": [
20518
- "to-string",
20519
- [
20520
- "get",
20521
- "name"
20522
- ]
20523
- ],
20519
+ "text-field": ["to-string", ["get", "name"]],
20524
20520
  "text-size": 10,
20525
- "text-font": [
20526
- "DIN Pro Regular",
20527
- "Arial Unicode MS Regular"
20528
- ],
20521
+ "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"],
20529
20522
  visibility: "none",
20530
- "text-offset": [
20531
- 0,
20532
- 1
20533
- ]
20523
+ "text-offset": [0, 1]
20534
20524
  },
20535
20525
  source: "composite",
20536
20526
  "source-layer": "loadlines-b6mgr8"
@@ -20543,25 +20533,14 @@ class T0 {
20543
20533
  paint: {
20544
20534
  "fill-color": [
20545
20535
  "match",
20546
- [
20547
- "get",
20548
- "val"
20549
- ],
20550
- [
20551
- "LLGreen"
20552
- ],
20536
+ ["get", "val"],
20537
+ ["LLGreen"],
20553
20538
  "rgba(164, 214, 217, 0.6)",
20554
- [
20555
- "LLBlue"
20556
- ],
20539
+ ["LLBlue"],
20557
20540
  "rgba(53, 121, 194, 0.6)",
20558
- [
20559
- "LLRed"
20560
- ],
20541
+ ["LLRed"],
20561
20542
  "rgba(217, 150, 151, 0.6)",
20562
- [
20563
- "LLSUMMER"
20564
- ],
20543
+ ["LLSUMMER"],
20565
20544
  "rgba(111, 110, 212, 0.6)",
20566
20545
  "rgba(255, 255, 255, 0.6)"
20567
20546
  ],
@@ -21964,7 +21943,7 @@ class T0 {
21964
21943
  },
21965
21944
  source: "composite",
21966
21945
  "source-layer": "china_route-bdtx5d",
21967
- filter: ["match", ["get", "featureType"], ["route"], !0, !1],
21946
+ filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
21968
21947
  layout: {
21969
21948
  visibility: "none"
21970
21949
  }
@@ -21974,13 +21953,11 @@ class T0 {
21974
21953
  type: "symbol",
21975
21954
  paint: {
21976
21955
  "text-color": "rgb(255, 255, 255)"
21977
- // 'text-halo-width': 1,
21978
- // 'text-color': 'rgb(11, 168, 121)',
21979
21956
  },
21980
21957
  source: "composite",
21981
21958
  "source-layer": "china_route-bdtx5d",
21982
21959
  layout: {
21983
- "text-field": ["to-string", ["get", "RouteName"]],
21960
+ "text-field": ["to-string", ["get", "route_name"]],
21984
21961
  "text-size": 10,
21985
21962
  "text-offset": [0, 1.6],
21986
21963
  visibility: "none"
@@ -22045,23 +22022,11 @@ class T0 {
22045
22022
  "text-color": "rgb(255, 255, 255)"
22046
22023
  },
22047
22024
  layout: {
22048
- "text-field": [
22049
- "to-string",
22050
- [
22051
- "get",
22052
- "name"
22053
- ]
22054
- ],
22025
+ "text-field": ["to-string", ["get", "name"]],
22055
22026
  "text-size": 10,
22056
- "text-font": [
22057
- "DIN Pro Regular",
22058
- "Arial Unicode MS Regular"
22059
- ],
22027
+ "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"],
22060
22028
  visibility: "none",
22061
- "text-offset": [
22062
- 0,
22063
- 1
22064
- ]
22029
+ "text-offset": [0, 1]
22065
22030
  },
22066
22031
  source: "composite",
22067
22032
  "source-layer": "loadlines-b6mgr8"
@@ -22074,25 +22039,14 @@ class T0 {
22074
22039
  paint: {
22075
22040
  "fill-color": [
22076
22041
  "match",
22077
- [
22078
- "get",
22079
- "val"
22080
- ],
22081
- [
22082
- "LLGreen"
22083
- ],
22042
+ ["get", "val"],
22043
+ ["LLGreen"],
22084
22044
  "rgba(164, 214, 217, 0.6)",
22085
- [
22086
- "LLBlue"
22087
- ],
22045
+ ["LLBlue"],
22088
22046
  "rgba(53, 121, 194, 0.6)",
22089
- [
22090
- "LLRed"
22091
- ],
22047
+ ["LLRed"],
22092
22048
  "rgba(217, 150, 151, 0.6)",
22093
- [
22094
- "LLSUMMER"
22095
- ],
22049
+ ["LLSUMMER"],
22096
22050
  "rgba(111, 110, 212, 0.6)",
22097
22051
  "rgba(255, 255, 255, 0.6)"
22098
22052
  ],
@@ -26613,7 +26567,7 @@ class T0 {
26613
26567
  visibility: "none"
26614
26568
  },
26615
26569
  source: "composite",
26616
- filter: ["match", ["get", "featureType"], ["route"], !0, !1],
26570
+ filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
26617
26571
  "source-layer": "china_route-bdtx5d"
26618
26572
  },
26619
26573
  {
@@ -26623,7 +26577,7 @@ class T0 {
26623
26577
  "text-color": "rgb(255, 255, 255)"
26624
26578
  },
26625
26579
  layout: {
26626
- "text-field": ["to-string", ["get", "RouteName"]],
26580
+ "text-field": ["to-string", ["get", "route_name"]],
26627
26581
  "text-size": 10,
26628
26582
  "text-offset": [0, 1.6],
26629
26583
  visibility: "none"
@@ -26690,23 +26644,11 @@ class T0 {
26690
26644
  "text-color": "rgb(255, 255, 255)"
26691
26645
  },
26692
26646
  layout: {
26693
- "text-field": [
26694
- "to-string",
26695
- [
26696
- "get",
26697
- "name"
26698
- ]
26699
- ],
26647
+ "text-field": ["to-string", ["get", "name"]],
26700
26648
  "text-size": 10,
26701
- "text-font": [
26702
- "DIN Pro Regular",
26703
- "Arial Unicode MS Regular"
26704
- ],
26649
+ "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"],
26705
26650
  visibility: "none",
26706
- "text-offset": [
26707
- 0,
26708
- 1
26709
- ]
26651
+ "text-offset": [0, 1]
26710
26652
  },
26711
26653
  source: "composite",
26712
26654
  "source-layer": "loadlines-b6mgr8"
@@ -26719,25 +26661,14 @@ class T0 {
26719
26661
  paint: {
26720
26662
  "fill-color": [
26721
26663
  "match",
26722
- [
26723
- "get",
26724
- "val"
26725
- ],
26726
- [
26727
- "LLGreen"
26728
- ],
26664
+ ["get", "val"],
26665
+ ["LLGreen"],
26729
26666
  "rgba(164, 214, 217, 0.6)",
26730
- [
26731
- "LLBlue"
26732
- ],
26667
+ ["LLBlue"],
26733
26668
  "rgba(53, 121, 194, 0.6)",
26734
- [
26735
- "LLRed"
26736
- ],
26669
+ ["LLRed"],
26737
26670
  "rgba(217, 150, 151, 0.6)",
26738
- [
26739
- "LLSUMMER"
26740
- ],
26671
+ ["LLSUMMER"],
26741
26672
  "rgba(111, 110, 212, 0.6)",
26742
26673
  "rgba(255, 255, 255, 0.6)"
26743
26674
  ],
@@ -37253,17 +37184,8 @@ class T0 {
37253
37184
  url: "mapbox://neatchenheng.dlkkohie",
37254
37185
  type: "vector",
37255
37186
  data: {
37256
- bounds: [
37257
- -180.0443283402411,
37258
- -80,
37259
- 180.00284240174312,
37260
- 90
37261
- ],
37262
- center: [
37263
- -0.020742969248985332,
37264
- 5,
37265
- 0
37266
- ],
37187
+ bounds: [-180.0443283402411, -80, 180.00284240174312, 90],
37188
+ center: [-0.020742969248985332, 5, 0],
37267
37189
  created: 1756711198438,
37268
37190
  created_by_client: "studio",
37269
37191
  filesize: 38990,
@@ -37277,9 +37199,7 @@ class T0 {
37277
37199
  private: !0,
37278
37200
  scheme: "xyz",
37279
37201
  tilejson: "3.0.0",
37280
- tiles: [
37281
- "mapbox://tiles/neatchenheng.dlkkohie/{z}/{x}/{y}.vector.pbf"
37282
- ],
37202
+ tiles: ["mapbox://tiles/neatchenheng.dlkkohie/{z}/{x}/{y}.vector.pbf"],
37283
37203
  upload_id: "cmforrscu3fwp1pqw2ibccowm",
37284
37204
  vector_layers: [
37285
37205
  {
@@ -37470,7 +37390,7 @@ class T0 {
37470
37390
  visibility: "none"
37471
37391
  },
37472
37392
  source: "mapbox://neatchenheng.27issko0",
37473
- filter: ["match", ["get", "featureType"], ["route"], !0, !1],
37393
+ filter: ["match", ["geometry-type"], ["Polygon"], !0, !1],
37474
37394
  "source-layer": "china_route-bdtx5d"
37475
37395
  },
37476
37396
  {
@@ -37480,7 +37400,7 @@ class T0 {
37480
37400
  "text-color": "rgb(0, 0, 0)"
37481
37401
  },
37482
37402
  layout: {
37483
- "text-field": ["to-string", ["get", "RouteName"]],
37403
+ "text-field": ["to-string", ["get", "route_name"]],
37484
37404
  "text-size": 10,
37485
37405
  "text-offset": [0, 1.6],
37486
37406
  visibility: "none"
@@ -37547,23 +37467,11 @@ class T0 {
37547
37467
  "text-color": "rgb(0, 0, 0)"
37548
37468
  },
37549
37469
  layout: {
37550
- "text-field": [
37551
- "to-string",
37552
- [
37553
- "get",
37554
- "name"
37555
- ]
37556
- ],
37470
+ "text-field": ["to-string", ["get", "name"]],
37557
37471
  "text-size": 10,
37558
- "text-font": [
37559
- "DIN Pro Regular",
37560
- "Arial Unicode MS Regular"
37561
- ],
37472
+ "text-font": ["DIN Pro Regular", "Arial Unicode MS Regular"],
37562
37473
  visibility: "none",
37563
- "text-offset": [
37564
- 0,
37565
- 1
37566
- ]
37474
+ "text-offset": [0, 1]
37567
37475
  },
37568
37476
  source: "mapbox://neatchenheng.dlkkohie",
37569
37477
  "source-layer": "loadlines-b6mgr8"
@@ -37576,25 +37484,14 @@ class T0 {
37576
37484
  paint: {
37577
37485
  "fill-color": [
37578
37486
  "match",
37579
- [
37580
- "get",
37581
- "val"
37582
- ],
37583
- [
37584
- "LLGreen"
37585
- ],
37487
+ ["get", "val"],
37488
+ ["LLGreen"],
37586
37489
  "rgba(164, 214, 217, 0.6)",
37587
- [
37588
- "LLBlue"
37589
- ],
37490
+ ["LLBlue"],
37590
37491
  "rgba(53, 121, 194, 0.6)",
37591
- [
37592
- "LLRed"
37593
- ],
37492
+ ["LLRed"],
37594
37493
  "rgba(217, 150, 151, 0.6)",
37595
- [
37596
- "LLSUMMER"
37597
- ],
37494
+ ["LLSUMMER"],
37598
37495
  "rgba(111, 110, 212, 0.6)",
37599
37496
  "rgba(255, 255, 255, 0.6)"
37600
37497
  ],
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-76620a2c.js";
1
+ import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-cc8dd8ad.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";