@abi-software/mapintegratedvuer 1.10.1-beta.0 → 1.10.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.
- package/cypress.config.js +5 -2
- package/dist/{ContentMixin-DXXhWj3L.js → ContentMixin-BjWQ5hyW.js} +146 -134
- package/dist/{Flatmap-DTJJHOZJ.js → Flatmap-CRBl8Mce.js} +68 -76
- package/dist/{Iframe-BvIYJdxM.js → Iframe-Oiu2HnRZ.js} +2 -2
- package/dist/{MultiFlatmap-DYUAs7aa.js → MultiFlatmap-vWte5WUA.js} +70 -86
- package/dist/{Plot-B3waT3eW.js → Plot-CEBNX8B0.js} +2 -2
- package/dist/{Scaffold-D1SvYdhM.js → Scaffold-Ckfm9HCl.js} +38 -44
- package/dist/{Simulation-DEcCnsZ0.js → Simulation-DCqdDHl8.js} +2 -2
- package/dist/{index-_BTFPzpV.js → index-Dg5B_ClS.js} +6224 -6128
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +130 -130
- package/dist/{style-DqJAtv3f.js → style-B7PIw3HT.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -7
- package/src/components/ContentVuer.vue +31 -0
- package/src/components/DialogToolbarContent.vue +30 -41
- package/src/components/SplitDialog.vue +110 -40
- package/src/components/SplitFlow.vue +17 -27
- package/src/components/viewers/Flatmap.vue +38 -55
- package/src/components/viewers/MultiFlatmap.vue +30 -82
- package/src/components/viewers/Scaffold.vue +6 -21
- package/src/mixins/ContentMixin.js +35 -10
- package/src/stores/settings.js +7 -0
@@ -1,13 +1,13 @@
|
|
1
|
-
import { _ as
|
2
|
-
import { C as
|
3
|
-
import { ScaffoldVuer as
|
4
|
-
import { resolveComponent as
|
5
|
-
const
|
1
|
+
import { _ as h, E as p, a as c } from "./index-Dg5B_ClS.js";
|
2
|
+
import { C as u } from "./ContentMixin-BjWQ5hyW.js";
|
3
|
+
import { ScaffoldVuer as g } from "@abi-software/scaffoldvuer";
|
4
|
+
import { resolveComponent as l, openBlock as f, createElementBlock as m, createVNode as y, createBlock as S, createCommentVNode as M } from "vue";
|
5
|
+
const w = {
|
6
6
|
name: "Scaffold",
|
7
|
-
mixins: [
|
7
|
+
mixins: [u],
|
8
8
|
components: {
|
9
|
-
ScaffoldVuer:
|
10
|
-
HelpModeDialog:
|
9
|
+
ScaffoldVuer: g,
|
10
|
+
HelpModeDialog: p
|
11
11
|
},
|
12
12
|
methods: {
|
13
13
|
onResize: function() {
|
@@ -25,8 +25,8 @@ const v = {
|
|
25
25
|
searchSuggestions: function(e, o) {
|
26
26
|
if (e === "" || !this.$refs.scaffold)
|
27
27
|
return o;
|
28
|
-
this.$refs.scaffold.fetchSuggestions(e).forEach((
|
29
|
-
|
28
|
+
this.$refs.scaffold.fetchSuggestions(e).forEach((n) => {
|
29
|
+
n.suggestion && o.push(n.suggestion);
|
30
30
|
});
|
31
31
|
},
|
32
32
|
/**
|
@@ -34,13 +34,13 @@ const v = {
|
|
34
34
|
*/
|
35
35
|
handleSyncPanZoomEvent: function(e) {
|
36
36
|
if (!this.mouseHovered && e.type !== this.entry.type) {
|
37
|
-
const o = e.payload.origin, t = e.payload.size,
|
38
|
-
(
|
39
|
-
(0.5 -
|
40
|
-
],
|
37
|
+
const o = e.payload.origin, t = e.payload.size, n = [o[0] + t[0] / 2, o[1] + t[1] / 2], i = [
|
38
|
+
(n[0] - 0.5) * 2,
|
39
|
+
(0.5 - n[1]) * 2
|
40
|
+
], a = 1 / Math.max(t[0], t[1]);
|
41
41
|
this.$refs.scaffold.$module.setSyncControlCenterZoom(
|
42
42
|
i,
|
43
|
-
|
43
|
+
a
|
44
44
|
);
|
45
45
|
}
|
46
46
|
},
|
@@ -59,9 +59,9 @@ const v = {
|
|
59
59
|
scaffoldIsReady: function() {
|
60
60
|
if (this.scaffoldLoaded = !0, this.$refs.scaffold.$module.graphicsHighlight.highlightColour = [1, 0, 1], this.isVisible()) {
|
61
61
|
let e = "free";
|
62
|
-
this.entry.rotation && (e = this.entry.rotation), this.$refs.scaffold.toggleSyncControl(this.splitFlowStore.globalCallback, e), this.splitFlowStore.syncMode && this.$refs.scaffold.fitWindow()
|
62
|
+
this.entry.rotation && (e = this.entry.rotation), this.$refs.scaffold.toggleSyncControl(this.splitFlowStore.globalCallback, e), this.splitFlowStore.syncMode && this.$refs.scaffold.fitWindow();
|
63
63
|
}
|
64
|
-
|
64
|
+
this.updateViewerSettings(), c.emit("mapLoaded", this.$refs.scaffold);
|
65
65
|
},
|
66
66
|
requestSynchronisedEvent: function(e) {
|
67
67
|
if (this.scaffoldLoaded) {
|
@@ -73,14 +73,14 @@ const v = {
|
|
73
73
|
* Callback when the vuers emit a selected event.
|
74
74
|
*/
|
75
75
|
scaffoldHighlighted: function(e, o) {
|
76
|
-
var
|
76
|
+
var n, i, a;
|
77
77
|
const t = {
|
78
78
|
paneIndex: this.entry.id,
|
79
79
|
type: e,
|
80
80
|
resource: o,
|
81
81
|
internalName: void 0
|
82
82
|
};
|
83
|
-
o && o[0] && ((((
|
83
|
+
o && o[0] && ((((n = o[0].data) == null ? void 0 : n.id) === void 0 || ((i = o[0].data) == null ? void 0 : i.id) === "") && (o[0].data.id = (a = o[0].data) == null ? void 0 : a.group), t.internalName = o[0].data.id, t.eventType = "highlighted"), this.$emit("resource-selected", t);
|
84
84
|
},
|
85
85
|
/**
|
86
86
|
* Callback when the vuers emit a selected event.
|
@@ -105,12 +105,14 @@ const v = {
|
|
105
105
|
changeViewingMode: function(e) {
|
106
106
|
this.$refs.scaffold.changeViewingMode(e);
|
107
107
|
},
|
108
|
-
|
108
|
+
updateViewerSettings: function() {
|
109
109
|
const {
|
110
110
|
backgroundDisplay: e,
|
111
|
-
|
111
|
+
organsDisplay: o,
|
112
|
+
outlinesDisplay: t,
|
113
|
+
viewingMode: n
|
112
114
|
} = this.settingsStore.globalSettings;
|
113
|
-
this.$refs.scaffold.backgroundChangeCallback(e), this.$refs.scaffold.changeViewingMode(o);
|
115
|
+
this.$refs.scaffold.backgroundChangeCallback(e), this.$refs.scaffold.changeViewingMode(n), this.$refs.scaffold.setColour(o), this.$refs.scaffold.setOutlines(t);
|
114
116
|
}
|
115
117
|
},
|
116
118
|
computed: {
|
@@ -129,28 +131,20 @@ const v = {
|
|
129
131
|
};
|
130
132
|
},
|
131
133
|
mounted: function() {
|
132
|
-
this.scaffoldCamera = this.$refs.scaffold.$module.scene.getZincCameraControls()
|
133
|
-
this.startHelp();
|
134
|
-
}), l.on("hoverUpdate", () => {
|
135
|
-
this.scaffoldLoaded && (this != null && this.alive) && this.cardHoverHighlight();
|
136
|
-
}), l.on("backgroundDisplayUpdate", (e) => {
|
137
|
-
this != null && this.alive && this.$refs.scaffold.backgroundChangeCallback(e);
|
138
|
-
}), l.on("viewingModeUpdate", (e) => {
|
139
|
-
this != null && this.alive && this.$refs.scaffold.changeViewingMode(e);
|
140
|
-
});
|
134
|
+
this.scaffoldCamera = this.$refs.scaffold.$module.scene.getZincCameraControls();
|
141
135
|
}
|
142
|
-
},
|
143
|
-
function
|
144
|
-
const
|
145
|
-
return
|
146
|
-
y(
|
136
|
+
}, v = { class: "viewer-container" };
|
137
|
+
function A(e, o, t, n, i, a) {
|
138
|
+
const r = l("ScaffoldVuer"), d = l("HelpModeDialog");
|
139
|
+
return f(), m("div", v, [
|
140
|
+
y(r, {
|
147
141
|
state: e.entry.state,
|
148
142
|
url: e.entry.resource,
|
149
143
|
region: e.entry.region,
|
150
144
|
onScaffoldSelected: o[0] || (o[0] = (s) => e.resourceSelected(e.entry.type, s, !0)),
|
151
|
-
onScaffoldHighlighted: o[1] || (o[1] = (s) =>
|
152
|
-
onScaffoldNavigated: o[2] || (o[2] = (s) =>
|
153
|
-
onOnReady:
|
145
|
+
onScaffoldHighlighted: o[1] || (o[1] = (s) => a.scaffoldHighlighted(e.entry.type, s)),
|
146
|
+
onScaffoldNavigated: o[2] || (o[2] = (s) => a.scaffoldNavigated(e.entry.type, s)),
|
147
|
+
onOnReady: a.scaffoldIsReady,
|
154
148
|
onOpenMap: e.openMap,
|
155
149
|
ref: "scaffold",
|
156
150
|
"background-toggle": !0,
|
@@ -167,28 +161,28 @@ function b(e, o, t, a, i, n) {
|
|
167
161
|
onShownMapTooltip: e.onMapTooltipShown,
|
168
162
|
render: e.visible,
|
169
163
|
"display-latest-message": !0,
|
170
|
-
"warning-message":
|
164
|
+
"warning-message": a.warningMessage,
|
171
165
|
"display-minimap": !1,
|
172
166
|
"display-markers": !1,
|
173
167
|
enableOpenMapUI: !0,
|
174
168
|
"view-u-r-l": e.entry.viewUrl,
|
175
169
|
markerCluster: !0,
|
176
|
-
markerLabels:
|
170
|
+
markerLabels: a.markerLabels,
|
177
171
|
flatmapAPI: e.flatmapAPI,
|
178
172
|
showLocalSettings: e.showLocalSettings,
|
179
173
|
showOpenMapButton: e.showOpenMapButton
|
180
174
|
}, null, 8, ["state", "url", "region", "onOnReady", "onOpenMap", "helpMode", "helpModeActiveItem", "helpModeDialog", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "annotationSidebar", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "render", "warning-message", "view-u-r-l", "markerLabels", "flatmapAPI", "showLocalSettings", "showOpenMapButton"]),
|
181
|
-
e.helpMode && e.useHelpModeDialog ? (
|
175
|
+
e.helpMode && e.useHelpModeDialog ? (f(), S(d, {
|
182
176
|
key: 0,
|
183
177
|
ref: "scaffoldHelp",
|
184
178
|
scaffoldRef: e.scaffoldRef,
|
185
179
|
lastItem: e.helpModeLastItem,
|
186
180
|
onShowNext: e.onHelpModeShowNext,
|
187
181
|
onFinishHelpMode: e.onFinishHelpMode
|
188
|
-
}, null, 8, ["scaffoldRef", "lastItem", "onShowNext", "onFinishHelpMode"])) :
|
182
|
+
}, null, 8, ["scaffoldRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : M("", !0)
|
189
183
|
]);
|
190
184
|
}
|
191
|
-
const I = /* @__PURE__ */
|
185
|
+
const I = /* @__PURE__ */ h(w, [["render", A], ["__scopeId", "data-v-d397d121"]]);
|
192
186
|
export {
|
193
187
|
I as default
|
194
188
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { C as i } from "./ContentMixin-
|
1
|
+
import { C as i } from "./ContentMixin-BjWQ5hyW.js";
|
2
2
|
import { SimulationVuer as t } from "@abi-software/simulationvuer";
|
3
3
|
import { resolveComponent as e, openBlock as r, createBlock as a } from "vue";
|
4
|
-
import { _ as m } from "./index-
|
4
|
+
import { _ as m } from "./index-Dg5B_ClS.js";
|
5
5
|
const c = {
|
6
6
|
name: "Simulation",
|
7
7
|
mixins: [i],
|