@abi-software/mapintegratedvuer 1.1.0-beta.5 → 1.1.0

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.
Files changed (31) hide show
  1. package/README.md +15 -2
  2. package/dist/{ContentMixin-C35Jowvp.js → ContentMixin-Belbk7R9.js} +97 -61
  3. package/dist/Flatmap-BEStr9DR.js +146 -0
  4. package/dist/{Iframe-fcNscihB.js → Iframe-CNeqS04g.js} +2 -2
  5. package/dist/{MultiFlatmap-BIT2tVyE.js → MultiFlatmap-CFF8nyw2.js} +81 -64
  6. package/dist/{Plot-B9xsWP2v.js → Plot-BpS4tvSe.js} +2 -2
  7. package/dist/{Scaffold-DYoxAJI0.js → Scaffold-BXY9_HO6.js} +10925 -10528
  8. package/dist/{Simulation-s1KOrb80.js → Simulation-Di2xaBxJ.js} +2 -2
  9. package/dist/{flatmapvuer-BM5z_95w.js → flatmapvuer-C67b_5lI.js} +11707 -11453
  10. package/dist/{index-DIFC-Q9x.js → index-CpppckRD.js} +4349 -4325
  11. package/dist/mapintegratedvuer.js +1 -1
  12. package/dist/mapintegratedvuer.umd.cjs +479 -479
  13. package/dist/style-CdEDV2B6.js +62 -0
  14. package/dist/style.css +1 -1
  15. package/package.json +7 -4
  16. package/src/App.vue +10 -1
  17. package/src/components/FlatmapContextCard.vue +22 -10
  18. package/src/components/MapContent.vue +20 -2
  19. package/src/components/SplitDialog.vue +4 -4
  20. package/src/components/SplitFlow.vue +6 -9
  21. package/src/components/viewers/Flatmap.vue +23 -5
  22. package/src/components/viewers/MultiFlatmap.vue +31 -11
  23. package/src/components/viewers/Scaffold.vue +17 -2
  24. package/src/components.d.ts +0 -1
  25. package/src/mixins/ContentMixin.js +72 -3
  26. package/src/mixins/DynamicMarkerMixin.js +44 -25
  27. package/src/services/tagging.js +3 -4
  28. package/src/stores/settings.js +5 -1
  29. package/src/stores/splitFlow.js +42 -30
  30. package/dist/Flatmap-9P71mP5D.js +0 -128
  31. package/dist/style-B-Ps72EF.js +0 -50
@@ -0,0 +1,62 @@
1
+ import { m as i } from "./ContentMixin-Belbk7R9.js";
2
+ import { mapStores as n } from "pinia";
3
+ import { u as f } from "./index-CpppckRD.js";
4
+ const p = (e, r, t, o) => {
5
+ r && r.forEach((a) => {
6
+ let s = !1;
7
+ for (let m = 0; m < i.length; m++)
8
+ if (i[m].id === a) {
9
+ if (s = !0, t >= i[m].showAtZoom) {
10
+ let l = "standard-marker";
11
+ o.includes(a) && (l = "hovered-marker"), e.addMarker(a, { className: l, cluster: !1 });
12
+ }
13
+ break;
14
+ }
15
+ s || e.addMarker(a, { className: "standard-marker", cluster: !1 });
16
+ });
17
+ }, k = {
18
+ computed: {
19
+ ...n(f)
20
+ },
21
+ methods: {
22
+ flatmapPanZoomCallback: function(e) {
23
+ if (this.mouseHovered) {
24
+ const r = {
25
+ paneIndex: this.entry.id,
26
+ eventType: "panZoom",
27
+ payload: e,
28
+ type: this.entry.type
29
+ };
30
+ this.flatmapMarkerZoomUpdate(!1, void 0), this.$emit("resource-selected", r);
31
+ }
32
+ },
33
+ /**
34
+ * Function used for updating the flatmap markers.
35
+ * It will only update the markers if zoom level has changed or
36
+ * the force flag is true.
37
+ */
38
+ flatmapMarkerZoomUpdate(e, r) {
39
+ if (!this.flatmapReady)
40
+ return;
41
+ let t = r;
42
+ if (t || (t = this.getFlatmapImp()), t) {
43
+ let o = t.getZoom().zoom;
44
+ if (e || this.zoomLevel !== o) {
45
+ this.zoomLevel = o, t.clearMarkers();
46
+ let a = this.settingsStore.markers, s = this.settingsStore.hoveredMarkers;
47
+ p(t, a, this.zoomLevel, s), this.entry.type === "MultiFlatmap" && this.restoreFeaturedMarkers(t);
48
+ }
49
+ }
50
+ },
51
+ flatmapReadyForMarkerUpdates: function(e) {
52
+ if (e) {
53
+ e.enablePanZoomEvents(!0), this.flatmapReady = !0;
54
+ const r = e.mapImp;
55
+ this.flatmapMarkerZoomUpdate(!0, r);
56
+ }
57
+ }
58
+ }
59
+ };
60
+ export {
61
+ k as D
62
+ };