@idmwx/idmui-gl4 0.8.3 → 0.8.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.
package/dist/index.js CHANGED
@@ -378,8 +378,8 @@ const Va = {
378
378
  watch: {
379
379
  zone: {
380
380
  handler() {
381
- var t, e;
382
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
381
+ var t, e, o, i, a, r;
382
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
383
383
  },
384
384
  immediate: !0
385
385
  }
@@ -408,9 +408,9 @@ const Va = {
408
408
  source: this.source,
409
409
  filter: ["all", ["==", "$type", "Polygon"], ["!=", "disabled", !0]],
410
410
  paint: {
411
- "fill-outline-color": this.Theme.current.value.colors["map-warning"],
411
+ "fill-outline-color": this.Theme.current.value.colors["map-red"],
412
412
  "fill-opacity": 0.4,
413
- "fill-color": this.Theme.current.value.colors["map-warning"]
413
+ "fill-color": this.Theme.current.value.colors["map-red"]
414
414
  }
415
415
  }, this.beforeLayer), this.map.addLayer({
416
416
  id: this.polygonLayer + "-border",
@@ -419,7 +419,7 @@ const Va = {
419
419
  filter: ["all", ["==", "$type", "Polygon"], ["!=", "disabled", !0]],
420
420
  paint: {
421
421
  "line-width": 1,
422
- "line-color": this.Theme.current.value.colors["map-warning"]
422
+ "line-color": this.Theme.current.value.colors["map-red"]
423
423
  }
424
424
  }, this.beforeLayer), this.map.addLayer({
425
425
  id: this.lineLayer,
@@ -427,7 +427,7 @@ const Va = {
427
427
  source: this.source,
428
428
  filter: ["all", ["==", "$type", "LineString"], ["!=", "disabled", !0]],
429
429
  paint: {
430
- "line-color": this.Theme.current.value.colors["map-warning"],
430
+ "line-color": this.Theme.current.value.colors["map-red"],
431
431
  "line-width": 2
432
432
  }
433
433
  }, this.beforeLayer), this.map.addLayer({
@@ -479,6 +479,12 @@ const Va = {
479
479
  },
480
480
  handleClear() {
481
481
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
482
+ },
483
+ handleHover() {
484
+ this.map.getCanvas().style.cursor = "pointer";
485
+ },
486
+ handleLeave() {
487
+ this.map.getCanvas().style.cursor = "grab";
482
488
  }
483
489
  }
484
490
  }, Ya = ["innerHTML"];
@@ -564,8 +570,8 @@ const qa = {
564
570
  watch: {
565
571
  port: {
566
572
  handler() {
567
- var t, e;
568
- this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
573
+ var t, e, o, i, a, r;
574
+ this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
569
575
  },
570
576
  immediate: !0
571
577
  }
@@ -622,6 +628,12 @@ const qa = {
622
628
  },
623
629
  handleClickMeteo(t) {
624
630
  t.forecastModel = this.forecastModel, this.$emit("meteoMore", t);
631
+ },
632
+ handleHover() {
633
+ this.map.getCanvas().style.cursor = "pointer";
634
+ },
635
+ handleLeave() {
636
+ this.map.getCanvas().style.cursor = "grab";
625
637
  }
626
638
  }
627
639
  }, Ka = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Qa = { class: "d-flex justify-start align-center" }, Ja = { class: "d-flex justify-start align-center" }, $a = { class: "d-flex justify-start align-center" }, ei = { class: "d-flex justify-start align-center" };
@@ -692,7 +704,7 @@ function ti(t, e, o, i, a, r) {
692
704
  [We, a.showInfo]
693
705
  ]);
694
706
  }
695
- const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a856b640"]]), ai = {
707
+ const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a88fe459"]]), ai = {
696
708
  name: "IdmLoadLine",
697
709
  props: {
698
710
  map: {
@@ -1390,8 +1402,8 @@ const Ci = {
1390
1402
  watch: {
1391
1403
  show: {
1392
1404
  handler() {
1393
- var t, e;
1394
- this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
1405
+ var t, e, o, i, a, r;
1406
+ this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
1395
1407
  },
1396
1408
  immediate: !0
1397
1409
  },
@@ -1421,6 +1433,12 @@ const Ci = {
1421
1433
  handleClear() {
1422
1434
  var t;
1423
1435
  this.showInfo = !1, (t = this.map) != null && t.getLayer(this.layer) && this.map.setLayoutProperty(this.layer, "visibility", "none");
1436
+ },
1437
+ handleHover() {
1438
+ this.map.getCanvas().style.cursor = "pointer";
1439
+ },
1440
+ handleLeave() {
1441
+ this.map.getCanvas().style.cursor = "grab";
1424
1442
  }
1425
1443
  }
1426
1444
  }, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ai = { class: "d-flex justify-start align-center" };
@@ -1469,7 +1487,7 @@ function Ri(t, e, o, i, a, r) {
1469
1487
  [We, a.showInfo]
1470
1488
  ]);
1471
1489
  }
1472
- const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-ca81f9bd"]]), Oi = {
1490
+ const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-824556f3"]]), Oi = {
1473
1491
  name: "IdmIceAreas",
1474
1492
  props: {
1475
1493
  map: {
@@ -7617,7 +7635,7 @@ function is(t, e, o, i, a, r) {
7617
7635
  onClick: r.handleMenuToggle
7618
7636
  }), {
7619
7637
  default: u(() => e[4] || (e[4] = [
7620
- l("i", { class: "iconfont icon-a-Tropicalcyclone text-h4" }, null, -1)
7638
+ l("i", { class: "iconfont icon-Tropical text-h4" }, null, -1)
7621
7639
  ])),
7622
7640
  _: 2,
7623
7641
  __: [4]
@@ -9767,7 +9785,7 @@ function Gs(t, e, o, i, a, r) {
9767
9785
  onClick: r.handleClickFastMore
9768
9786
  }), {
9769
9787
  default: u(() => [
9770
- l("i", B(x, { class: "iconfont icon-Weather-11" }), null, 16)
9788
+ l("i", B(x, { class: "iconfont icon-dots-align" }), null, 16)
9771
9789
  ]),
9772
9790
  _: 2
9773
9791
  }, 1040, ["onClick"])