@abi-software/scaffoldvuer 1.13.0 → 1.13.1-beta.0

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.
@@ -38857,27 +38857,18 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
38857
38857
  watch: {
38858
38858
  boundingDims: {
38859
38859
  handler: function(n) {
38860
- const e = n.centre, t = n.size;
38861
- this.min = [
38862
- e[0] - t[0],
38863
- e[1] - t[1],
38864
- e[2] - t[2]
38865
- ], this.max = [
38866
- e[0] + t[0],
38867
- e[1] + t[1],
38868
- e[2] + t[2]
38869
- ];
38860
+ this.calculateMinAndMax();
38870
38861
  },
38871
38862
  immediate: !0,
38872
38863
  deep: !0
38873
38864
  }
38874
38865
  },
38875
38866
  methods: {
38876
- setObject: function(n) {
38877
- if (n.isZincObject) {
38878
- this.zincObject = An(n);
38879
- const e = this.zincObject.getGroup(), t = this.zincObject.userData.originalPos;
38880
- e && e.position && (this.x = e.position.x, this.y = e.position.y, this.z = e.position.z, this.zincObject.isGlyphset ? this.scale = this.zincObject.globalScale : this.scale = e.scale.x, this.enableScaling = !this.zincObject.isTextureSlides, t && this.boundingDims && (this.min = [
38867
+ calculateMinAndMax: function() {
38868
+ var n, e;
38869
+ if (this.zincObject) {
38870
+ const t = (e = (n = this.zincObject) == null ? void 0 : n.userData) == null ? void 0 : e.originalPos;
38871
+ t && this.boundingDims && (this.min = [
38881
38872
  t[0] - this.boundingDims.size[0],
38882
38873
  t[1] - this.boundingDims.size[1],
38883
38874
  t[2] - this.boundingDims.size[2]
@@ -38885,7 +38876,14 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
38885
38876
  t[0] + this.boundingDims.size[0],
38886
38877
  t[1] + this.boundingDims.size[1],
38887
38878
  t[2] + this.boundingDims.size[2]
38888
- ]));
38879
+ ]);
38880
+ }
38881
+ },
38882
+ setObject: function(n) {
38883
+ if (n.isZincObject) {
38884
+ this.zincObject = An(n);
38885
+ const e = this.zincObject.getGroup();
38886
+ this.zincObject.userData.originalPos, e && e.position && (this.x = e.position.x, this.y = e.position.y, this.z = e.position.z, this.zincObject.isGlyphset ? this.scale = this.zincObject.globalScale : this.scale = e.scale.x, this.enableScaling = !this.zincObject.isTextureSlides, this.calculateMinAndMax());
38889
38887
  } else
38890
38888
  this.zincObject = void 0, this.x = 0, this.y = 0, this.z = 0, this.scale = 1;
38891
38889
  },
@@ -39109,7 +39107,7 @@ function q4(n, e, t, i, r, s) {
39109
39107
  _: 1
39110
39108
  });
39111
39109
  }
39112
- const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-cd88ead8"]]), Q4 = {
39110
+ const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-caf40e87"]]), Q4 = {
39113
39111
  name: "OpacityControls",
39114
39112
  components: {
39115
39113
  Container: zi,
@@ -43435,6 +43433,10 @@ const N5 = [
43435
43433
  for (let o = 0; o < i.length; o++)
43436
43434
  s.includes(i[o].toLowerCase()) ? (n.userData.isNerves = !0, n.userData.defaultColour = `#${n.getColourHex()}`, n.userData.isGreyScale = !1, e in Ov && n.setAnatomicalId(Ov[e])) : n.userData.isNerves = !1;
43437
43435
  }
43436
+ if (this.isReady) {
43437
+ const { centre: s, size: o } = this.$module.getCentreAndSize();
43438
+ this.boundingDims.centre = s, this.boundingDims.size = o;
43439
+ }
43438
43440
  this.$emit("zinc-object-added", n);
43439
43441
  },
43440
43442
  /**
@@ -45074,7 +45076,7 @@ function Q5(n, e, t, i, r, s) {
45074
45076
  [_, n.loading]
45075
45077
  ]);
45076
45078
  }
45077
- const sU = /* @__PURE__ */ ki(k5, [["render", Q5], ["__scopeId", "data-v-75641bca"]]);
45079
+ const sU = /* @__PURE__ */ ki(k5, [["render", Q5], ["__scopeId", "data-v-3953753f"]]);
45078
45080
  export {
45079
45081
  sU as ScaffoldVuer
45080
45082
  };