@abi-software/scaffoldvuer 1.13.1-beta.5 → 1.13.1-beta.7
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/scaffoldvuer.js +32 -22
- package/dist/scaffoldvuer.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +2 -1
- package/src/components/ScaffoldTreeControls.vue +1 -0
- package/src/components/ScaffoldVuer.vue +10 -6
- package/src/scripts/GraphicsHighlight.js +31 -22
package/dist/scaffoldvuer.js
CHANGED
|
@@ -39706,6 +39706,7 @@ function c5(n, e, t, i, r, s) {
|
|
|
39706
39706
|
class: Te(["tree-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
|
|
39707
39707
|
}, [
|
|
39708
39708
|
Ne("div", l5, [
|
|
39709
|
+
He(n.$slots, "treeSlot", {}, void 0, !0),
|
|
39709
39710
|
le(o, {
|
|
39710
39711
|
mapType: "scaffold",
|
|
39711
39712
|
title: "Regions",
|
|
@@ -39735,7 +39736,7 @@ function c5(n, e, t, i, r, s) {
|
|
|
39735
39736
|
], 2)
|
|
39736
39737
|
], 2);
|
|
39737
39738
|
}
|
|
39738
|
-
const LM = /* @__PURE__ */ ki(a5, [["render", c5], ["__scopeId", "data-v-
|
|
39739
|
+
const LM = /* @__PURE__ */ ki(a5, [["render", c5], ["__scopeId", "data-v-28bffe7b"]]), Nd = sw("main", {
|
|
39739
39740
|
state: () => ({
|
|
39740
39741
|
userProfile: {
|
|
39741
39742
|
token: ""
|
|
@@ -40069,18 +40070,22 @@ Zn.prototype.removeChangedCallback = function(n) {
|
|
|
40069
40070
|
Zn.prototype.addNotifier = function(n) {
|
|
40070
40071
|
this.eventNotifiers.push(n);
|
|
40071
40072
|
};
|
|
40072
|
-
const wc = (n, e, t) => {
|
|
40073
|
-
for (let
|
|
40074
|
-
if (n[
|
|
40075
|
-
let
|
|
40076
|
-
|
|
40077
|
-
|
|
40078
|
-
|
|
40073
|
+
const wc = (n, e, t, i) => {
|
|
40074
|
+
for (let r = 0; r < n.length; r++)
|
|
40075
|
+
if (n[r] && n[r].material && n[r].material.emissive) {
|
|
40076
|
+
let s = n[r].userData;
|
|
40077
|
+
if (s && s.isZincObject) {
|
|
40078
|
+
let o = e;
|
|
40079
|
+
i === "highlight" && "highlightColour" in s.userData && (o = s.userData.highlightColour), i === "select" && "selectedColour" in s.userData && (o = s.userData.selectedColour), o && s.setEmissiveRGB(o);
|
|
40080
|
+
} else n[r].material && n[r].material.emissive && n[r].material.emissive.setRGB(...e);
|
|
40081
|
+
t && n[r].material.depthFunc && (n[r].material.depthFunc = Pr.THREE.LessEqualDepth), n[r].children.forEach((o) => {
|
|
40082
|
+
const a = o.userData;
|
|
40083
|
+
a && a.isZincObject && o.material && o.material.emissive && o.material.emissive.setRGB(...e);
|
|
40079
40084
|
});
|
|
40080
40085
|
}
|
|
40081
40086
|
}, y5 = function() {
|
|
40082
40087
|
let n = [], e = [];
|
|
40083
|
-
this.highlightColour = [
|
|
40088
|
+
this.highlightColour = [0.5, 0, 0], this.selectColour = [0, 0.5, 0], this.originalColour = [0, 0, 0];
|
|
40084
40089
|
const t = [], i = [], r = this, s = function(c, l) {
|
|
40085
40090
|
if (c.length == 0 && l.length == 0)
|
|
40086
40091
|
return !1;
|
|
@@ -40114,12 +40119,12 @@ const wc = (n, e, t) => {
|
|
|
40114
40119
|
const l = [...n];
|
|
40115
40120
|
this.setNervesStyle(l), r.resetHighlighted();
|
|
40116
40121
|
const p = o(c, e), h = a(p);
|
|
40117
|
-
return this.setNervesStyle(p, Ai.HIGHLIGHTED_COLOUR), wc(h, r.highlightColour, !1), n = p, s(n, l);
|
|
40122
|
+
return this.setNervesStyle(p, Ai.HIGHLIGHTED_COLOUR), wc(h, r.highlightColour, !1, "highlight"), n = p, s(n, l);
|
|
40118
40123
|
}, this.setSelected = function(c) {
|
|
40119
40124
|
const l = [...e];
|
|
40120
40125
|
this.setNervesStyle(l), r.resetHighlighted(), r.resetSelected();
|
|
40121
40126
|
const p = a(c);
|
|
40122
|
-
return this.setNervesStyle(c, Ai.SELECTED_COLOUR), wc(p, r.selectColour, !1), e = c, s(e, l);
|
|
40127
|
+
return this.setNervesStyle(c, Ai.SELECTED_COLOUR), wc(p, r.selectColour, !1, "select"), e = c, s(e, l);
|
|
40123
40128
|
};
|
|
40124
40129
|
const a = function(c) {
|
|
40125
40130
|
i.length = 0;
|
|
@@ -40142,10 +40147,10 @@ const wc = (n, e, t) => {
|
|
|
40142
40147
|
}
|
|
40143
40148
|
}, this.resetHighlighted = function() {
|
|
40144
40149
|
const c = a(n);
|
|
40145
|
-
this.setNervesStyle(n), wc(c, r.originalColour, !0), n = [];
|
|
40150
|
+
this.setNervesStyle(n), wc(c, r.originalColour, !0, "reset"), n = [];
|
|
40146
40151
|
}, this.resetSelected = function() {
|
|
40147
40152
|
const c = a(e);
|
|
40148
|
-
this.setNervesStyle(n), wc(c, r.originalColour, !0), e = [];
|
|
40153
|
+
this.setNervesStyle(n), wc(c, r.originalColour, !0, "reset"), e = [];
|
|
40149
40154
|
}, this.getSelected = function() {
|
|
40150
40155
|
return e;
|
|
40151
40156
|
}, this.reset = function() {
|
|
@@ -43821,7 +43826,7 @@ const B5 = [
|
|
|
43821
43826
|
createEditTemporaryPoint: function(n) {
|
|
43822
43827
|
const e = n[0].extraData.worldCoords;
|
|
43823
43828
|
if (e && (this.createData.shape === "Point" || this.createData.editingIndex > -1) && this.createData.points.length === 0)
|
|
43824
|
-
if (this.showRegionTooltipWithAnnotations(n, !
|
|
43829
|
+
if (this.showRegionTooltipWithAnnotations(n, !1, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint) {
|
|
43825
43830
|
const t = this._tempPoint.geometry.getAttribute("position");
|
|
43826
43831
|
t.setXYZ(0, e[0], e[1], e[2]), t.needsUpdate = !0;
|
|
43827
43832
|
} else
|
|
@@ -43833,7 +43838,7 @@ const B5 = [
|
|
|
43833
43838
|
createEditTemporaryLines: function(n) {
|
|
43834
43839
|
const e = n[0].extraData.worldCoords;
|
|
43835
43840
|
if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1) && this.createData.points.length === 1)
|
|
43836
|
-
if (this.showRegionTooltipWithAnnotations(n, !
|
|
43841
|
+
if (this.showRegionTooltipWithAnnotations(n, !1, !1), this._tempLine) {
|
|
43837
43842
|
const t = this._tempLine.geometry.getAttribute("position");
|
|
43838
43843
|
t.setXYZ(1, e[0], e[1], e[2]), t.needsUpdate = !0;
|
|
43839
43844
|
} else
|
|
@@ -43849,10 +43854,10 @@ const B5 = [
|
|
|
43849
43854
|
n && n.length > 0 && n[0].data.group && n[0].extraData.worldCoords && (this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1 ? this.drawLine(n[0].extraData.worldCoords, n) : (this.createData.shape === "Point" || this.createData.editingIndex > -1 && this.createData.faceIndex === -1) && this.drawPoint(n[0].extraData.worldCoords, n));
|
|
43850
43855
|
},
|
|
43851
43856
|
drawPoint: function(n, e) {
|
|
43852
|
-
this.createData.toBeConfirmed === !1 && (this.createData.points.length = 0, this.createData.points.push(n), this.createData.editingIndex === -1 && !this.createData.renaming && (this.createData.tempGroupName = void 0), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(e, !
|
|
43857
|
+
this.createData.toBeConfirmed === !1 && (this.createData.points.length = 0, this.createData.points.push(n), this.createData.editingIndex === -1 && !this.createData.renaming && (this.createData.tempGroupName = void 0), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(e, !1, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint || (this._tempPoint = this.$module.scene.addTemporaryPoints([n], 16776960)));
|
|
43853
43858
|
},
|
|
43854
43859
|
drawLine: function(n, e) {
|
|
43855
|
-
this.createData.toBeConfirmed === !1 && (this.createData.points.length === 1 ? (this.createData.points.push(n), this.createData.editingIndex === -1 && !this.createData.renaming && (this.createData.tempGroupName = void 0), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(e, !
|
|
43860
|
+
this.createData.toBeConfirmed === !1 && (this.createData.points.length === 1 ? (this.createData.points.push(n), this.createData.editingIndex === -1 && !this.createData.renaming && (this.createData.tempGroupName = void 0), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(e, !1, !1), this.tData.x = 50, this.tData.y = 200) : (this._tempPoint = this.$module.scene.addTemporaryPoints([n], 16776960), this.createData.points.push(n)));
|
|
43856
43861
|
},
|
|
43857
43862
|
/**
|
|
43858
43863
|
* Return renderer information
|
|
@@ -43890,7 +43895,7 @@ const B5 = [
|
|
|
43890
43895
|
},
|
|
43891
43896
|
activateRenamingMode: function(n) {
|
|
43892
43897
|
let e = Tv(n);
|
|
43893
|
-
e || (e = Ev(n)), e && (this._editingZincObject = e.zincObject, this.createData.faceIndex = -1, this.createData.editingIndex = -1, this.createData.renaming = !0, this.createData.tempGroupName = this._editingZincObject.groupName, this.createData.regionPrefix = this._editingZincObject.region.getFullPath(), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(n, !
|
|
43898
|
+
e || (e = Ev(n)), e && (this._editingZincObject = e.zincObject, this.createData.faceIndex = -1, this.createData.editingIndex = -1, this.createData.renaming = !0, this.createData.tempGroupName = this._editingZincObject.groupName, this.createData.regionPrefix = this._editingZincObject.region.getFullPath(), this.createData.toBeConfirmed = !0, this.showRegionTooltipWithAnnotations(n, !1, !1), this.tData.x = 50, this.tData.y = 200);
|
|
43894
43899
|
},
|
|
43895
43900
|
activateAnnotationMode: function(n, e) {
|
|
43896
43901
|
if (this.authorisedUser || this.offlineAnnotationEnabled)
|
|
@@ -44762,9 +44767,14 @@ function eU(n, e, t, i, r, s) {
|
|
|
44762
44767
|
onObjectSelected: s.objectSelected,
|
|
44763
44768
|
onObjectHovered: s.objectHovered,
|
|
44764
44769
|
onDrawerToggled: s.drawerToggled
|
|
44765
|
-
},
|
|
44770
|
+
}, {
|
|
44771
|
+
treeSlot: fe(() => [
|
|
44772
|
+
He(n.$slots, "treeSlot", {}, void 0, !0)
|
|
44773
|
+
]),
|
|
44774
|
+
_: 3
|
|
44775
|
+
}, 8, ["isReady", "show-colour-picker", "onObjectSelected", "onObjectHovered", "onDrawerToggled"])
|
|
44766
44776
|
]),
|
|
44767
|
-
_:
|
|
44777
|
+
_: 3
|
|
44768
44778
|
}, 8, ["visible"]),
|
|
44769
44779
|
Ne("div", G5, [
|
|
44770
44780
|
le(g, {
|
|
@@ -45177,12 +45187,12 @@ function eU(n, e, t, i, r, s) {
|
|
|
45177
45187
|
[mn, t.displayUI && !n.isTransitioning]
|
|
45178
45188
|
])
|
|
45179
45189
|
]),
|
|
45180
|
-
_:
|
|
45190
|
+
_: 3
|
|
45181
45191
|
}, 8, ["positionalRotation", "onOnRotationModeChange"])), [
|
|
45182
45192
|
[F, n.loading]
|
|
45183
45193
|
]);
|
|
45184
45194
|
}
|
|
45185
|
-
const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-
|
|
45195
|
+
const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-613bf078"]]);
|
|
45186
45196
|
export {
|
|
45187
45197
|
oU as ScaffoldVuer
|
|
45188
45198
|
};
|