@giro3d/piero 1.0.0-beta.4 → 1.0.0-beta.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/assets/piero.css +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1906 -1871
- package/dist/index.es.js.map +1 -1
- package/dist/modules.cjs.js +1 -1
- package/dist/modules.cjs.js.map +1 -1
- package/dist/modules.es.js +93 -82
- package/dist/modules.es.js.map +1 -1
- package/dist/src/components/StatusBar.vue.d.ts +7 -9
- package/dist/src/stores/search.d.ts +4 -1
- package/package.json +1 -1
package/dist/modules.es.js
CHANGED
|
@@ -3,7 +3,7 @@ var xe = (a, t, e) => t in a ? Ce(a, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var c = (a, t, e) => xe(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { K as Ie, a1 as se, P as Pe, V as F, I as q, O as Ee, a2 as K, a3 as ce, a4 as R, a5 as Se, i as J, a6 as oe, F as k, l as Te, t as $, G as ue, f as ee, M as Fe, n as ke, J as Me, a7 as Le, N as ie, U as W, W as De, _ as te, r as Be, X as Ne, a8 as de, a9 as Oe, aa as Ae, ab as ze, C as je, h as $e } from "./Components.es.js";
|
|
5
5
|
import { ac as Wn } from "./Components.es.js";
|
|
6
|
-
import { defineComponent as D, ref as I, createElementBlock as P, openBlock as
|
|
6
|
+
import { defineComponent as D, ref as I, createElementBlock as P, openBlock as w, createElementVNode as m, toDisplayString as pe, createCommentVNode as L, createBlock as V, shallowRef as Z, Fragment as Y, createVNode as T, unref as b, resolveComponent as He, normalizeClass as ae, withCtx as re, renderList as he, onMounted as Re, onUnmounted as Ve } from "vue";
|
|
7
7
|
import H from "@giro3d/giro3d/core/geographic/Coordinates";
|
|
8
8
|
import { defineStore as me } from "pinia";
|
|
9
9
|
import fe, { isEntity3D as ge } from "@giro3d/giro3d/entities/Entity3D";
|
|
@@ -17,7 +17,7 @@ import { fromLonLat as le } from "ol/proj";
|
|
|
17
17
|
import { OSM as rt } from "ol/source";
|
|
18
18
|
import lt from "@giro3d/giro3d/entities/PointCloud";
|
|
19
19
|
import ct from "@giro3d/giro3d/sources/PotreeSource";
|
|
20
|
-
import
|
|
20
|
+
import x from "shepherd.js";
|
|
21
21
|
const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class: "input-group" }, ht = ["value"], mt = ["value"], ft = ["value"], gt = /* @__PURE__ */ D({
|
|
22
22
|
__name: "CoordinateInput",
|
|
23
23
|
props: {
|
|
@@ -29,8 +29,8 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:coordinates"],
|
|
31
31
|
setup(a, { emit: t }) {
|
|
32
|
-
var
|
|
33
|
-
const e = a, n = I(((
|
|
32
|
+
var f, _, E;
|
|
33
|
+
const e = a, n = I(((f = e.initialValue) == null ? void 0 : f.x) ?? 0), s = I(((_ = e.initialValue) == null ? void 0 : _.y) ?? 0), o = I(((E = e.initialValue) == null ? void 0 : E.z) ?? 0), i = t, l = new Pe(), d = I(!1), p = () => {
|
|
34
34
|
i(
|
|
35
35
|
"update:coordinates",
|
|
36
36
|
new H(se(e.instance).referenceCrs, n.value, s.value, o.value)
|
|
@@ -38,17 +38,17 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
38
38
|
}, r = () => {
|
|
39
39
|
const y = se(e.instance);
|
|
40
40
|
d.value = !0;
|
|
41
|
-
const
|
|
41
|
+
const C = (G) => {
|
|
42
42
|
var B, N, O, ne;
|
|
43
43
|
const S = (N = (B = l.getFirstFeatureAt(y, G)) == null ? void 0 : B.at(0)) == null ? void 0 : N.point;
|
|
44
44
|
S && (n.value = S.x, s.value = S.y, o.value = S.z, (O = e.cursorManager) == null || O.setCursor("location"), (ne = e.cursorManager) == null || ne.setCursorLocation(S));
|
|
45
|
-
},
|
|
45
|
+
}, v = (G) => {
|
|
46
46
|
var B, N, O;
|
|
47
|
-
(B = e.cursorManager) == null || B.setCursor(null), y.domElement.removeEventListener("click",
|
|
47
|
+
(B = e.cursorManager) == null || B.setCursor(null), y.domElement.removeEventListener("click", v), y.domElement.removeEventListener("mousemove", C), d.value = !1;
|
|
48
48
|
const S = (O = (N = l.getFirstFeatureAt(y, G)) == null ? void 0 : N.at(0)) == null ? void 0 : O.point;
|
|
49
49
|
S && (n.value = S.x, s.value = S.y, o.value = S.z, p());
|
|
50
50
|
};
|
|
51
|
-
y.domElement.addEventListener("mousemove",
|
|
51
|
+
y.domElement.addEventListener("mousemove", C), y.domElement.addEventListener("click", v);
|
|
52
52
|
};
|
|
53
53
|
function u(y) {
|
|
54
54
|
n.value = y, p();
|
|
@@ -56,10 +56,10 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
56
56
|
function h(y) {
|
|
57
57
|
s.value = y, p();
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function g(y) {
|
|
60
60
|
o.value = y, p();
|
|
61
61
|
}
|
|
62
|
-
return (y,
|
|
62
|
+
return (y, C) => (w(), P("div", ut, [
|
|
63
63
|
m("label", dt, pe(e.label), 1),
|
|
64
64
|
m("div", pt, [
|
|
65
65
|
m("input", {
|
|
@@ -67,24 +67,24 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
67
67
|
class: "form-control",
|
|
68
68
|
id: "plane-center-x",
|
|
69
69
|
value: n.value.toFixed(2),
|
|
70
|
-
onInput:
|
|
70
|
+
onInput: C[0] || (C[0] = (v) => u(Number.parseFloat(v.target.value)))
|
|
71
71
|
}, null, 40, ht),
|
|
72
72
|
m("input", {
|
|
73
73
|
type: "number",
|
|
74
74
|
class: "form-control",
|
|
75
75
|
id: "plane-center-y",
|
|
76
76
|
value: s.value.toFixed(2),
|
|
77
|
-
onInput:
|
|
77
|
+
onInput: C[1] || (C[1] = (v) => h(Number.parseFloat(v.target.value)))
|
|
78
78
|
}, null, 40, mt),
|
|
79
|
-
e.showZ === !0 ? (
|
|
79
|
+
e.showZ === !0 ? (w(), P("input", {
|
|
80
80
|
key: 0,
|
|
81
81
|
type: "number",
|
|
82
82
|
class: "form-control",
|
|
83
83
|
id: "plane-center-z",
|
|
84
84
|
value: o.value.toFixed(2),
|
|
85
|
-
onInput:
|
|
85
|
+
onInput: C[2] || (C[2] = (v) => g(Number.parseFloat(v.target.value)))
|
|
86
86
|
}, null, 40, ft)) : L("", !0),
|
|
87
|
-
e.instance != null ? (
|
|
87
|
+
e.instance != null ? (w(), V(Ie, {
|
|
88
88
|
key: 1,
|
|
89
89
|
title: "Pick point in scene",
|
|
90
90
|
icon: "fg-location",
|
|
@@ -139,7 +139,7 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
139
139
|
const n = (s) => {
|
|
140
140
|
t.setCenter(s.toVector3());
|
|
141
141
|
};
|
|
142
|
-
return (s, o) => (
|
|
142
|
+
return (s, o) => (w(), P(Y, null, [
|
|
143
143
|
m("div", yt, [
|
|
144
144
|
T(q, {
|
|
145
145
|
"model-value": b(t).enable,
|
|
@@ -192,7 +192,7 @@ const ut = { class: "input-group" }, dt = { class: "form-label" }, pt = { class:
|
|
|
192
192
|
}, null, 40, Ct)
|
|
193
193
|
]),
|
|
194
194
|
o[7] || (o[7] = m("hr", null, null, -1)),
|
|
195
|
-
b(t).instance != null ? (
|
|
195
|
+
b(t).instance != null ? (w(), V(gt, {
|
|
196
196
|
key: 0,
|
|
197
197
|
label: "Center",
|
|
198
198
|
"initial-value": b(t).center,
|
|
@@ -359,7 +359,7 @@ const be = me("floodingPlane", () => {
|
|
|
359
359
|
function e(n) {
|
|
360
360
|
t.setHeight(n);
|
|
361
361
|
}
|
|
362
|
-
return (n, s) => (
|
|
362
|
+
return (n, s) => (w(), P(Y, null, [
|
|
363
363
|
m("div", St, [
|
|
364
364
|
T(q, {
|
|
365
365
|
"model-value": b(t).enable,
|
|
@@ -604,8 +604,8 @@ const A = new Fe(), $t = {
|
|
|
604
604
|
if (!Object.keys(o).length)
|
|
605
605
|
return;
|
|
606
606
|
for (const u of Object.keys(o)) {
|
|
607
|
-
const
|
|
608
|
-
n.addMesh(
|
|
607
|
+
const g = s.list[u].fragments.bbox;
|
|
608
|
+
n.addMesh(g.mesh);
|
|
609
609
|
}
|
|
610
610
|
const i = n.get(), { y: l, z: d } = i.min, { y: p, z: r } = i.max;
|
|
611
611
|
return i.min.y = -r, i.max.y = -d, i.min.z = l, i.max.z = p, i.translate(this._model.position), this.clearHighlight("bbox"), i;
|
|
@@ -786,11 +786,11 @@ const A = new Fe(), $t = {
|
|
|
786
786
|
for (const d of Object.keys(l)) {
|
|
787
787
|
const p = { ...n, [i]: [d] }, r = await this._fragmentClassifier.find(p);
|
|
788
788
|
if (Object.keys(r).length > 0) {
|
|
789
|
-
const
|
|
789
|
+
const g = i[0].toUpperCase() + i.slice(1), f = await this.regenerateClassification(
|
|
790
790
|
e.slice(1),
|
|
791
791
|
p
|
|
792
792
|
);
|
|
793
|
-
o.push({ children:
|
|
793
|
+
o.push({ children: f, fragments: r, name: d, treeItemName: g });
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
return o;
|
|
@@ -854,8 +854,8 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
854
854
|
u && !u.isEmpty() && o.lookTopDownAt(u);
|
|
855
855
|
}
|
|
856
856
|
return (u, h) => {
|
|
857
|
-
const
|
|
858
|
-
return
|
|
857
|
+
const g = He("IfcSubtree", !0);
|
|
858
|
+
return w(), P("div", null, [
|
|
859
859
|
m("div", Zt, [
|
|
860
860
|
m("span", {
|
|
861
861
|
class: ae([
|
|
@@ -864,7 +864,7 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
864
864
|
]),
|
|
865
865
|
title: u.classificationElement.treeItemName
|
|
866
866
|
}, pe(u.classificationElement.treeItemName), 11, Qt),
|
|
867
|
-
u.classificationElement.children.length > 0 ? (
|
|
867
|
+
u.classificationElement.children.length > 0 ? (w(), V(ie, { key: 0 }, {
|
|
868
868
|
default: re(() => [
|
|
869
869
|
T(W, {
|
|
870
870
|
title: "Expand group",
|
|
@@ -890,7 +890,7 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
890
890
|
icon: "bi-highlighter",
|
|
891
891
|
onClick: p
|
|
892
892
|
}),
|
|
893
|
-
b(l) != null ? (
|
|
893
|
+
b(l) != null ? (w(), V(W, {
|
|
894
894
|
key: 0,
|
|
895
895
|
title: "Clip to",
|
|
896
896
|
icon: "bi-bounding-box",
|
|
@@ -900,16 +900,16 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
900
900
|
_: 1
|
|
901
901
|
})
|
|
902
902
|
]),
|
|
903
|
-
u.classificationElement.children.length > 0 ? (
|
|
903
|
+
u.classificationElement.children.length > 0 ? (w(), P("div", {
|
|
904
904
|
key: 0,
|
|
905
905
|
id: b(e),
|
|
906
906
|
class: "collapse show"
|
|
907
907
|
}, [
|
|
908
908
|
m("ul", Kt, [
|
|
909
|
-
(
|
|
910
|
-
T(
|
|
909
|
+
(w(!0), P(Y, null, he(u.classificationElement.children, (f, _) => (w(), P("li", { key: _ }, [
|
|
910
|
+
T(g, {
|
|
911
911
|
"ifc-entity": t.ifcEntity,
|
|
912
|
-
"classification-element":
|
|
912
|
+
"classification-element": f
|
|
913
913
|
}, null, 8, ["ifc-entity", "classification-element"])
|
|
914
914
|
]))), 128))
|
|
915
915
|
])
|
|
@@ -932,9 +932,9 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
932
932
|
const i = t.getEntity(e.dataset);
|
|
933
933
|
return i ?? null;
|
|
934
934
|
}
|
|
935
|
-
return (i, l) => b(n) ? (
|
|
935
|
+
return (i, l) => b(n) ? (w(), P("div", nn, [
|
|
936
936
|
m("ul", null, [
|
|
937
|
-
(
|
|
937
|
+
(w(!0), P(Y, null, he(s(), (d, p) => (w(), P("li", { key: p }, [
|
|
938
938
|
T(tn, {
|
|
939
939
|
"ifc-entity": o(),
|
|
940
940
|
"classification-element": d
|
|
@@ -960,7 +960,7 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
960
960
|
type: "ifc",
|
|
961
961
|
visible: !0
|
|
962
962
|
}), ln = (a, t) => {
|
|
963
|
-
var d, p, r, u, h,
|
|
963
|
+
var d, p, r, u, h, g, f, _, E;
|
|
964
964
|
if (!we(a))
|
|
965
965
|
return;
|
|
966
966
|
const e = (d = a.features) == null ? void 0 : d.at(0);
|
|
@@ -974,9 +974,9 @@ const Zt = { class: "d-flex" }, Qt = ["title"], Xt = ["id"], Kt = { class: "list
|
|
|
974
974
|
}), n.push({
|
|
975
975
|
key: "IFCType",
|
|
976
976
|
value: nt[o.type] ?? i
|
|
977
|
-
}), n.push({ key: "Name", value: l }), n.push({ key: "ID", value: o.expressID }), n.push({ key: "GlobalId", value: ((h = o.GlobalId) == null ? void 0 : h.value) ?? i }), ((
|
|
978
|
-
for (const { name: y, parentName:
|
|
979
|
-
t.has(
|
|
977
|
+
}), n.push({ key: "Name", value: l }), n.push({ key: "ID", value: o.expressID }), n.push({ key: "GlobalId", value: ((h = o.GlobalId) == null ? void 0 : h.value) ?? i }), ((g = o.Description) == null ? void 0 : g.value) != null && n.push({ key: "Description", value: o.Description.value }), ((f = o.PredefinedType) == null ? void 0 : f.value) != null && n.push({ key: "PredefinedType", value: o.PredefinedType.value }), ((_ = o.ObjectType) == null ? void 0 : _.value) != null && n.push({ key: "ObjectType", value: o.ObjectType.value });
|
|
978
|
+
for (const { name: y, parentName: C, value: v } of s)
|
|
979
|
+
t.has(C) || t.set(C, []), (E = t.get(C)) == null || E.push({ key: y, value: v });
|
|
980
980
|
}, cn = (a) => {
|
|
981
981
|
const t = a.dataset, e = t.config, n = de(e.source.position ?? t.get("position")), s = new X({
|
|
982
982
|
...e.source,
|
|
@@ -1016,7 +1016,9 @@ const un = /* @__PURE__ */ D({
|
|
|
1016
1016
|
[5e4, 10],
|
|
1017
1017
|
[1e5, 8],
|
|
1018
1018
|
[4e5, 6],
|
|
1019
|
-
[8e5, 4]
|
|
1019
|
+
[8e5, 4],
|
|
1020
|
+
[16e5, 3],
|
|
1021
|
+
[3e6, 1]
|
|
1020
1022
|
];
|
|
1021
1023
|
function o(i) {
|
|
1022
1024
|
for (const [l, d] of s)
|
|
@@ -1025,9 +1027,12 @@ const un = /* @__PURE__ */ D({
|
|
|
1025
1027
|
return s[s.length - 1][1];
|
|
1026
1028
|
}
|
|
1027
1029
|
return Re(() => {
|
|
1030
|
+
const i = new at({
|
|
1031
|
+
source: new rt()
|
|
1032
|
+
});
|
|
1028
1033
|
e.value = new ot({
|
|
1029
1034
|
controls: [],
|
|
1030
|
-
layers: [
|
|
1035
|
+
layers: [i],
|
|
1031
1036
|
target: t.value,
|
|
1032
1037
|
view: new it({
|
|
1033
1038
|
center: le([4, 44]),
|
|
@@ -1035,37 +1040,43 @@ const un = /* @__PURE__ */ D({
|
|
|
1035
1040
|
zoom: 5
|
|
1036
1041
|
})
|
|
1037
1042
|
});
|
|
1038
|
-
let
|
|
1039
|
-
const
|
|
1040
|
-
var
|
|
1041
|
-
const
|
|
1042
|
-
if (!
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
).as("EPSG:4326"), C = o(
|
|
1049
|
-
|
|
1043
|
+
let l = new F(), d;
|
|
1044
|
+
const p = () => {
|
|
1045
|
+
var E;
|
|
1046
|
+
const h = n.context.view.getInstance(), f = n.context.view.getCameraController().getCameraPosition(), _ = f.camera.z;
|
|
1047
|
+
if (!f.camera.equals(l)) {
|
|
1048
|
+
l = f.camera.clone();
|
|
1049
|
+
const y = new H(
|
|
1050
|
+
h.referenceCrs,
|
|
1051
|
+
l.x,
|
|
1052
|
+
l.y
|
|
1053
|
+
).as("EPSG:4326"), C = o(_), v = (E = e.value) == null ? void 0 : E.getView();
|
|
1054
|
+
v == null || v.setCenter(le([y.longitude, y.latitude])), v == null || v.setZoom(C);
|
|
1050
1055
|
}
|
|
1051
1056
|
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
+
let r = !1;
|
|
1058
|
+
const u = () => {
|
|
1059
|
+
clearTimeout(d), r || (d = setTimeout(p, 200));
|
|
1060
|
+
};
|
|
1061
|
+
n.context.events.addEventListener("updated", u), t.value && (t.value.onclick = () => {
|
|
1062
|
+
var h, g, f, _;
|
|
1063
|
+
r = !r, r ? ((h = t.value) == null || h.classList.add("collapsed"), (g = t.value) == null || g.classList.remove("expanded")) : ((f = t.value) == null || f.classList.remove("collapsed"), (_ = t.value) == null || _.classList.add("expanded"));
|
|
1057
1064
|
});
|
|
1058
1065
|
}), Ve(() => {
|
|
1059
1066
|
var i;
|
|
1060
1067
|
(i = e.value) == null || i.dispose(), e.value = void 0;
|
|
1061
|
-
}), (i, l) => (
|
|
1068
|
+
}), (i, l) => (w(), P("div", {
|
|
1062
1069
|
ref_key: "target",
|
|
1063
1070
|
ref: t,
|
|
1064
1071
|
title: "Toggle minimap",
|
|
1065
1072
|
class: "minimap expanded"
|
|
1066
|
-
},
|
|
1073
|
+
}, [...l[0] || (l[0] = [
|
|
1074
|
+
m("div", { class: "crosshair position-absolute top-50 start-50 translate-middle" }, [
|
|
1075
|
+
m("i", { class: "bi bi-crosshair" })
|
|
1076
|
+
], -1)
|
|
1077
|
+
])], 512));
|
|
1067
1078
|
}
|
|
1068
|
-
}), dn = /* @__PURE__ */ te(un, [["__scopeId", "data-v-
|
|
1079
|
+
}), dn = /* @__PURE__ */ te(un, [["__scopeId", "data-v-aada3678"]]);
|
|
1069
1080
|
class $n {
|
|
1070
1081
|
constructor() {
|
|
1071
1082
|
c(this, "id", "builtin-minimap-openlayers");
|
|
@@ -1211,41 +1222,41 @@ class Un {
|
|
|
1211
1222
|
this._context = t, t.events.addEventListener("ready", this.start.bind(this));
|
|
1212
1223
|
}
|
|
1213
1224
|
buildTours() {
|
|
1214
|
-
const t = this._camera, e = new
|
|
1225
|
+
const t = this._camera, e = new x.Tour({
|
|
1215
1226
|
tourName: "main",
|
|
1216
1227
|
useModalOverlay: !0
|
|
1217
|
-
}), n = new
|
|
1228
|
+
}), n = new x.Tour({
|
|
1218
1229
|
tourName: "navigating",
|
|
1219
1230
|
useModalOverlay: !0
|
|
1220
|
-
}), s = new
|
|
1231
|
+
}), s = new x.Tour({
|
|
1221
1232
|
tourName: "analyzing",
|
|
1222
1233
|
useModalOverlay: !0
|
|
1223
1234
|
}), o = [
|
|
1224
1235
|
{ action: () => {
|
|
1225
1236
|
var r;
|
|
1226
|
-
return (r =
|
|
1237
|
+
return (r = x.activeTour) == null ? void 0 : r.next();
|
|
1227
1238
|
}, text: "Next" },
|
|
1228
1239
|
{ action: () => {
|
|
1229
1240
|
var r;
|
|
1230
|
-
return (r =
|
|
1241
|
+
return (r = x.activeTour) == null ? void 0 : r.cancel();
|
|
1231
1242
|
}, secondary: !0, text: "Exit" }
|
|
1232
1243
|
], i = () => {
|
|
1233
|
-
var
|
|
1234
|
-
const r = (
|
|
1235
|
-
if (r == null || u == null || h == null ||
|
|
1244
|
+
var E, y;
|
|
1245
|
+
const r = (E = x.activeTour) == null ? void 0 : E.getCurrentStep(), u = r == null ? void 0 : r.getElement(), h = u == null ? void 0 : u.querySelector(".shepherd-text"), g = (y = x.activeTour) == null ? void 0 : y.steps;
|
|
1246
|
+
if (r == null || u == null || h == null || g == null)
|
|
1236
1247
|
return;
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1248
|
+
const f = document.createElement("div");
|
|
1249
|
+
f.className = "progress mt-3", f.setAttribute("role", "progressbar"), f.style.height = "2px";
|
|
1250
|
+
const _ = document.createElement("div");
|
|
1251
|
+
_.className = "progress-bar bg-success", _.style.width = `${100 * (g.indexOf(r) / g.length)}%`, f.appendChild(_), h.appendChild(f);
|
|
1241
1252
|
}, l = async (r, u) => new Promise((h) => {
|
|
1242
|
-
const
|
|
1243
|
-
if (
|
|
1253
|
+
const g = document.getElementById(r);
|
|
1254
|
+
if (g && !g.classList.contains("active") && g.click(), document.querySelector(u))
|
|
1244
1255
|
return h(document.querySelector(u));
|
|
1245
|
-
const
|
|
1246
|
-
document.querySelector(u) && (
|
|
1256
|
+
const f = new MutationObserver(() => {
|
|
1257
|
+
document.querySelector(u) && (f.disconnect(), h(document.querySelector(u)));
|
|
1247
1258
|
});
|
|
1248
|
-
|
|
1259
|
+
f.observe(document.body, {
|
|
1249
1260
|
childList: !0,
|
|
1250
1261
|
subtree: !0
|
|
1251
1262
|
});
|
|
@@ -1255,21 +1266,21 @@ class Un {
|
|
|
1255
1266
|
{
|
|
1256
1267
|
action: () => {
|
|
1257
1268
|
var r;
|
|
1258
|
-
(r =
|
|
1269
|
+
(r = x.activeTour) == null || r.complete(), n.show(0);
|
|
1259
1270
|
},
|
|
1260
1271
|
text: "Navigating"
|
|
1261
1272
|
},
|
|
1262
1273
|
{
|
|
1263
1274
|
action: () => {
|
|
1264
1275
|
var r;
|
|
1265
|
-
(r =
|
|
1276
|
+
(r = x.activeTour) == null || r.complete(), s.show(0);
|
|
1266
1277
|
},
|
|
1267
1278
|
text: "Analyzing data"
|
|
1268
1279
|
},
|
|
1269
1280
|
{
|
|
1270
1281
|
action: () => {
|
|
1271
1282
|
var r;
|
|
1272
|
-
return (r =
|
|
1283
|
+
return (r = x.activeTour) == null ? void 0 : r.cancel();
|
|
1273
1284
|
},
|
|
1274
1285
|
secondary: !0,
|
|
1275
1286
|
text: "Exit"
|
|
@@ -1309,7 +1320,7 @@ class Un {
|
|
|
1309
1320
|
let r = 0;
|
|
1310
1321
|
this._cameraCallback = () => {
|
|
1311
1322
|
var u;
|
|
1312
|
-
r += 1, r > 2 && ((u =
|
|
1323
|
+
r += 1, r > 2 && ((u = x.activeTour) == null || u.next());
|
|
1313
1324
|
}, t.addEventListener("interaction-end", this._cameraCallback), i();
|
|
1314
1325
|
}
|
|
1315
1326
|
}
|
|
@@ -1393,14 +1404,14 @@ class Un {
|
|
|
1393
1404
|
{
|
|
1394
1405
|
action: () => {
|
|
1395
1406
|
var r;
|
|
1396
|
-
(r =
|
|
1407
|
+
(r = x.activeTour) == null || r.complete(), s.show(0);
|
|
1397
1408
|
},
|
|
1398
1409
|
text: "Analyzing data"
|
|
1399
1410
|
},
|
|
1400
1411
|
{
|
|
1401
1412
|
action: () => {
|
|
1402
1413
|
var r;
|
|
1403
|
-
return (r =
|
|
1414
|
+
return (r = x.activeTour) == null ? void 0 : r.complete();
|
|
1404
1415
|
},
|
|
1405
1416
|
secondary: !0,
|
|
1406
1417
|
text: "Exit"
|
|
@@ -1455,7 +1466,7 @@ class Un {
|
|
|
1455
1466
|
beforeShowPromise: () => l("toolbar-analysis", "#panel-container .card"),
|
|
1456
1467
|
buttons: [{ action: () => {
|
|
1457
1468
|
var r;
|
|
1458
|
-
return (r =
|
|
1469
|
+
return (r = x.activeTour) == null ? void 0 : r.complete();
|
|
1459
1470
|
}, text: "Done!" }],
|
|
1460
1471
|
id: "analysis",
|
|
1461
1472
|
text: "In the <strong>Analysis</strong> panel you'll find some advanced analysis tools.",
|