@abi-software/scaffoldvuer 1.13.1-beta.5 → 1.13.1-beta.6

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.
@@ -40069,18 +40069,22 @@ Zn.prototype.removeChangedCallback = function(n) {
40069
40069
  Zn.prototype.addNotifier = function(n) {
40070
40070
  this.eventNotifiers.push(n);
40071
40071
  };
40072
- const wc = (n, e, t) => {
40073
- for (let i = 0; i < n.length; i++)
40074
- if (n[i] && n[i].material && n[i].material.emissive) {
40075
- let r = n[i].userData;
40076
- r && r.isZincObject ? r.setEmissiveRGB(e) : n[i].material && n[i].material.emissive && n[i].material.emissive.setRGB(...e), t && n[i].material.depthFunc && (n[i].material.depthFunc = Pr.THREE.LessEqualDepth), n[i].children.forEach((s) => {
40077
- const o = s.userData;
40078
- o && o.isZincObject && s.material && s.material.emissive && s.material.emissive.setRGB(...e);
40072
+ const wc = (n, e, t, i) => {
40073
+ for (let r = 0; r < n.length; r++)
40074
+ if (n[r] && n[r].material && n[r].material.emissive) {
40075
+ let s = n[r].userData;
40076
+ if (s && s.isZincObject) {
40077
+ let o = e;
40078
+ i === "highlight" && "highlightColour" in s.userData && (o = s.userData.highlightColour), i === "select" && "selectedColour" in s.userData && (o = s.userData.selectedColour), o && s.setEmissiveRGB(o);
40079
+ } else n[r].material && n[r].material.emissive && n[r].material.emissive.setRGB(...e);
40080
+ t && n[r].material.depthFunc && (n[r].material.depthFunc = Pr.THREE.LessEqualDepth), n[r].children.forEach((o) => {
40081
+ const a = o.userData;
40082
+ a && a.isZincObject && o.material && o.material.emissive && o.material.emissive.setRGB(...e);
40079
40083
  });
40080
40084
  }
40081
40085
  }, y5 = function() {
40082
40086
  let n = [], e = [];
40083
- this.highlightColour = [1, 0, 0], this.selectColour = [0, 1, 0], this.originalColour = [0, 0, 0];
40087
+ this.highlightColour = [0.5, 0, 0], this.selectColour = [0, 0.5, 0], this.originalColour = [0, 0, 0];
40084
40088
  const t = [], i = [], r = this, s = function(c, l) {
40085
40089
  if (c.length == 0 && l.length == 0)
40086
40090
  return !1;
@@ -40114,12 +40118,12 @@ const wc = (n, e, t) => {
40114
40118
  const l = [...n];
40115
40119
  this.setNervesStyle(l), r.resetHighlighted();
40116
40120
  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);
40121
+ return this.setNervesStyle(p, Ai.HIGHLIGHTED_COLOUR), wc(h, r.highlightColour, !1, "highlight"), n = p, s(n, l);
40118
40122
  }, this.setSelected = function(c) {
40119
40123
  const l = [...e];
40120
40124
  this.setNervesStyle(l), r.resetHighlighted(), r.resetSelected();
40121
40125
  const p = a(c);
40122
- return this.setNervesStyle(c, Ai.SELECTED_COLOUR), wc(p, r.selectColour, !1), e = c, s(e, l);
40126
+ return this.setNervesStyle(c, Ai.SELECTED_COLOUR), wc(p, r.selectColour, !1, "select"), e = c, s(e, l);
40123
40127
  };
40124
40128
  const a = function(c) {
40125
40129
  i.length = 0;
@@ -40142,10 +40146,10 @@ const wc = (n, e, t) => {
40142
40146
  }
40143
40147
  }, this.resetHighlighted = function() {
40144
40148
  const c = a(n);
40145
- this.setNervesStyle(n), wc(c, r.originalColour, !0), n = [];
40149
+ this.setNervesStyle(n), wc(c, r.originalColour, !0, "reset"), n = [];
40146
40150
  }, this.resetSelected = function() {
40147
40151
  const c = a(e);
40148
- this.setNervesStyle(n), wc(c, r.originalColour, !0), e = [];
40152
+ this.setNervesStyle(n), wc(c, r.originalColour, !0, "reset"), e = [];
40149
40153
  }, this.getSelected = function() {
40150
40154
  return e;
40151
40155
  }, this.reset = function() {
@@ -43821,7 +43825,7 @@ const B5 = [
43821
43825
  createEditTemporaryPoint: function(n) {
43822
43826
  const e = n[0].extraData.worldCoords;
43823
43827
  if (e && (this.createData.shape === "Point" || this.createData.editingIndex > -1) && this.createData.points.length === 0)
43824
- if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint) {
43828
+ if (this.showRegionTooltipWithAnnotations(n, !1, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint) {
43825
43829
  const t = this._tempPoint.geometry.getAttribute("position");
43826
43830
  t.setXYZ(0, e[0], e[1], e[2]), t.needsUpdate = !0;
43827
43831
  } else
@@ -43833,7 +43837,7 @@ const B5 = [
43833
43837
  createEditTemporaryLines: function(n) {
43834
43838
  const e = n[0].extraData.worldCoords;
43835
43839
  if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1) && this.createData.points.length === 1)
43836
- if (this.showRegionTooltipWithAnnotations(n, !0, !1), this._tempLine) {
43840
+ if (this.showRegionTooltipWithAnnotations(n, !1, !1), this._tempLine) {
43837
43841
  const t = this._tempLine.geometry.getAttribute("position");
43838
43842
  t.setXYZ(1, e[0], e[1], e[2]), t.needsUpdate = !0;
43839
43843
  } else
@@ -43849,10 +43853,10 @@ const B5 = [
43849
43853
  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
43854
  },
43851
43855
  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, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint || (this._tempPoint = this.$module.scene.addTemporaryPoints([n], 16776960)));
43856
+ 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
43857
  },
43854
43858
  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, !0, !1), this.tData.x = 50, this.tData.y = 200) : (this._tempPoint = this.$module.scene.addTemporaryPoints([n], 16776960), this.createData.points.push(n)));
43859
+ 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
43860
  },
43857
43861
  /**
43858
43862
  * Return renderer information
@@ -43890,7 +43894,7 @@ const B5 = [
43890
43894
  },
43891
43895
  activateRenamingMode: function(n) {
43892
43896
  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, !0, !1), this.tData.x = 50, this.tData.y = 200);
43897
+ 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
43898
  },
43895
43899
  activateAnnotationMode: function(n, e) {
43896
43900
  if (this.authorisedUser || this.offlineAnnotationEnabled)
@@ -45182,7 +45186,7 @@ function eU(n, e, t, i, r, s) {
45182
45186
  [F, n.loading]
45183
45187
  ]);
45184
45188
  }
45185
- const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-5ef7cb7b"]]);
45189
+ const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-bf13619b"]]);
45186
45190
  export {
45187
45191
  oU as ScaffoldVuer
45188
45192
  };