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

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 (32) hide show
  1. package/README.md +15 -2
  2. package/dist/{ContentMixin-C35Jowvp.js → ContentMixin-mZX2duoM.js} +97 -61
  3. package/dist/Flatmap-9QQ19krS.js +146 -0
  4. package/dist/{Iframe-fcNscihB.js → Iframe-c0h0PhkG.js} +2 -2
  5. package/dist/{MultiFlatmap-BIT2tVyE.js → MultiFlatmap-ft_NGtN3.js} +82 -65
  6. package/dist/{Plot-B9xsWP2v.js → Plot-BmyzQ7ix.js} +2 -2
  7. package/dist/{Scaffold-DYoxAJI0.js → Scaffold-B7UCL6S4.js} +10924 -10527
  8. package/dist/{Simulation-s1KOrb80.js → Simulation-OLJ83BaS.js} +2 -2
  9. package/dist/{flatmapvuer-BM5z_95w.js → flatmapvuer-BAx-xO4L.js} +11714 -11457
  10. package/dist/{index-DIFC-Q9x.js → index-nmieCwQF.js} +4369 -4335
  11. package/dist/mapintegratedvuer.js +1 -1
  12. package/dist/mapintegratedvuer.umd.cjs +479 -479
  13. package/dist/style-UwGHggI4.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/ContentVuer.vue +10 -10
  18. package/src/components/FlatmapContextCard.vue +22 -10
  19. package/src/components/MapContent.vue +20 -2
  20. package/src/components/SplitDialog.vue +4 -4
  21. package/src/components/SplitFlow.vue +6 -9
  22. package/src/components/viewers/Flatmap.vue +50 -25
  23. package/src/components/viewers/MultiFlatmap.vue +59 -32
  24. package/src/components/viewers/Scaffold.vue +46 -24
  25. package/src/components.d.ts +0 -1
  26. package/src/mixins/ContentMixin.js +72 -3
  27. package/src/mixins/DynamicMarkerMixin.js +44 -25
  28. package/src/services/tagging.js +3 -4
  29. package/src/stores/settings.js +5 -1
  30. package/src/stores/splitFlow.js +42 -30
  31. package/dist/Flatmap-9P71mP5D.js +0 -128
  32. package/dist/style-B-Ps72EF.js +0 -50
@@ -0,0 +1,62 @@
1
+ import { m as i } from "./ContentMixin-mZX2duoM.js";
2
+ import { mapStores as n } from "pinia";
3
+ import { u as f } from "./index-nmieCwQF.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
+ };