@abi-software/scaffoldvuer 1.13.0 → 1.13.1-beta.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.
@@ -9143,7 +9143,7 @@ function S3(n, e, t, i, r, s) {
9143
9143
  ], 544)) : ke("", !0)
9144
9144
  ], 512);
9145
9145
  }
9146
- const My = /* @__PURE__ */ ki(M3, [["render", S3], ["__scopeId", "data-v-24f88254"]]);
9146
+ const My = /* @__PURE__ */ ki(M3, [["render", S3], ["__scopeId", "data-v-f06acb4f"]]);
9147
9147
  var wy = { exports: {} }, Wm = {}, jm;
9148
9148
  function _3() {
9149
9149
  return jm || (jm = 1, function(n) {
@@ -31804,7 +31804,7 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31804
31804
  /* 2 */
31805
31805
  /***/
31806
31806
  (o) => {
31807
- o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.16.2","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
31807
+ o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.16.3","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
31808
31808
  },
31809
31809
  /* 3 */
31810
31810
  /***/
@@ -32687,9 +32687,12 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32687
32687
  this._lod.setMaterial(u);
32688
32688
  }, p.prototype.getClosestVertexIndex = function() {
32689
32689
  var u = -1, y = this.getMorph();
32690
- if (y && y.geoemtry) {
32690
+ if (y && y.geometry) {
32691
32691
  var v = y.geometry.attributes.position;
32692
- if (this._b1.setFromBufferAttribute(v), this._b1.getCenter(this._v1), v) for (var m = -1, x = 0, w = 0; w < v.count; w++) this._v2.fromArray(v.array, 3 * w), x = this._v2.distanceTo(this._v1), m == -1 ? m = x : m > x && (m = x, u = w);
32692
+ if (v) {
32693
+ this._b1.setFromBufferAttribute(v), this._b1.getCenter(this._v1);
32694
+ for (var m = -1, x = 0, w = 0; w < v.count; w++) this._v2.fromArray(v.array, 3 * w), x = this._v2.distanceTo(this._v1), m == -1 ? m = x : m > x && (m = x, u = w);
32695
+ }
32693
32696
  }
32694
32697
  return u;
32695
32698
  }, p.prototype.getClosestVertex = function(u) {
@@ -32703,7 +32706,7 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32703
32706
  if (w) return u ? y.applyMatrix4(v.matrixWorld) : y;
32704
32707
  } else return y.fromArray(v.geometry.attributes.position.array, 3 * this.closestVertexIndex), u ? y.applyMatrix4(v.matrixWorld) : y;
32705
32708
  }
32706
- return this.getBoundingBox(), y.copy(this.center), u ? y.applyMatrix4(this.morph.matrixWorld) : y;
32709
+ return this.getBoundingBox(), y.copy(this.center), y;
32707
32710
  }, p.prototype.getBoundingBox = function() {
32708
32711
  if (this.visible) {
32709
32712
  var u = this._lod.getCurrentMorph();
@@ -32761,7 +32764,7 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32761
32764
  return v;
32762
32765
  }, p.prototype.setPosition = function(u, y, v) {
32763
32766
  var m = this.getGroup();
32764
- m && (m.position.set(u, y, v), m.updateMatrix(), this.boundingBoxUpdateRequired = !0);
32767
+ m && (m.position.set(u, y, v), m.matrixWorldNeedsUpdate = !0, m.updateMatrix(), m.updateWorldMatrix(!0, !0), this.boundingBoxUpdateRequired = !0);
32765
32768
  }, p.prototype.loadAdditionalSources = function(u) {
32766
32769
  u.load(h(filename), meshloader(region, colour, opacity, localTimeEnabled, localMorphColour, void 0, void 0, void 0, void 0, finishCallback), this.onProgress(filename), this.onError(finishCallback));
32767
32770
  }, p.prototype.setScaleAll = function(u) {
@@ -37739,32 +37742,41 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37739
37742
  const t = n[0] - e[0], i = n[1] - e[1], r = n[2] - e[2];
37740
37743
  return Math.sqrt(t * t + i * i + r * r);
37741
37744
  }, B4 = (n) => {
37742
- const e = n.zincObjects;
37743
- if (e.length > 0 && e[0]) {
37744
- const t = e[0];
37745
- if (t.isEditable && t.isLines2) {
37746
- const i = n.identifiers[0].extraData.intersected;
37747
- if (i && i.faceIndex > -1) {
37748
- const r = t.getVerticesByFaceIndex(i.faceIndex), s = n.identifiers[0].extraData.intersected.pointOnLine;
37749
- if (r.length > 1) {
37750
- const o = Id(r[0], [s.x, s.y, s.z]), a = Id(r[1], [s.x, s.y, s.z]);
37751
- return o > a ? { zincObject: t, faceIndex: i.faceIndex, vertexIndex: i.faceIndex * 2 + 1, point: r[0] } : { zincObject: t, faceIndex: i.faceIndex, vertexIndex: i.faceIndex * 2, point: r[1] };
37752
- }
37753
- }
37745
+ var t;
37746
+ const e = (t = n[0].data) == null ? void 0 : t.zincObject;
37747
+ if (e && e.isEditable && e.isPointset) {
37748
+ const i = n[0].extraData.intersected;
37749
+ if (i && i.index > -1) {
37750
+ const r = e.getVerticesByIndex(i.index);
37751
+ if (r)
37752
+ return { zincObject: e, index: i.index, point: r };
37754
37753
  }
37755
37754
  }
37756
37755
  }, U4 = (n) => {
37756
+ var t;
37757
+ const e = (t = n[0].data) == null ? void 0 : t.zincObject;
37758
+ if (e && e.isEditable && e.isLines2) {
37759
+ const i = n[0].extraData.intersected;
37760
+ if (i && i.faceIndex > -1) {
37761
+ const r = e.getVerticesByFaceIndex(i.faceIndex), s = n[0].extraData.intersected.pointOnLine;
37762
+ if (r.length > 1) {
37763
+ const o = Id(r[0], [s.x, s.y, s.z]), a = Id(r[1], [s.x, s.y, s.z]);
37764
+ return o > a ? { zincObject: e, faceIndex: i.faceIndex, vertexIndex: i.faceIndex * 2 + 1, point: r[0] } : { zincObject: e, faceIndex: i.faceIndex, vertexIndex: i.faceIndex * 2, point: r[1] };
37765
+ }
37766
+ }
37767
+ }
37768
+ }, z4 = (n) => {
37757
37769
  const e = n.zincObjects;
37758
37770
  if (e.length > 0 && e[0])
37759
37771
  return e[0];
37760
- }, z4 = (n) => {
37772
+ }, k4 = (n) => {
37761
37773
  const e = n.zincObjects;
37762
37774
  if (e.length > 0 && e[0]) {
37763
37775
  const t = e[0];
37764
37776
  if (t.isEditable)
37765
37777
  return t;
37766
37778
  }
37767
- }, k4 = (n, e, t) => {
37779
+ }, V4 = (n, e, t) => {
37768
37780
  if (n != null && n.isEditable && (n != null && n.isPointset)) {
37769
37781
  let i = !1;
37770
37782
  for (let r = 0; r < 3 && !i; r++)
@@ -37792,7 +37804,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37792
37804
  return n.editVertices(r, e * 2), n.boundingBoxUpdateRequired = !0, !0;
37793
37805
  }
37794
37806
  return !1;
37795
- }, V4 = (n, e) => {
37807
+ }, G4 = (n, e) => {
37796
37808
  const t = e.getBoundingBox(), i = new Pr.THREE.Vector3().subVectors(t.max, t.min), r = new Pr.THREE.BoxGeometry(i.x, i.y, i.z);
37797
37809
  i.addVectors(t.min, t.max).multiplyScalar(0.5);
37798
37810
  const s = r.getAttribute("position"), o = s.count, a = [];
@@ -37822,7 +37834,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37822
37834
  const i = n.findIndex((s) => s.uuid === e);
37823
37835
  let r;
37824
37836
  return i > -1 && (r = n[i], t && n.splice(i, 1)), r;
37825
- }, G4 = (n, e) => {
37837
+ }, H4 = (n, e) => {
37826
37838
  const t = [];
37827
37839
  if (n && e && e.length > 0) {
37828
37840
  const i = {}, r = {}, s = [n, ...n.getChildRegions(!0)];
@@ -37833,7 +37845,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37833
37845
  });
37834
37846
  }
37835
37847
  return t;
37836
- }, H4 = (n) => {
37848
+ }, W4 = (n) => {
37837
37849
  if (n) {
37838
37850
  const e = [];
37839
37851
  return n.forEach((i) => {
@@ -37856,7 +37868,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37856
37868
  });
37857
37869
  }
37858
37870
  return t;
37859
- }, W4 = (n) => {
37871
+ }, j4 = (n) => {
37860
37872
  const e = n.getMorph();
37861
37873
  let t = "position";
37862
37874
  n.isLines2 && (t = "instanceStart");
@@ -37875,7 +37887,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37875
37887
  n.isPointset ? s = "MultiPoint" : n.isLines2 ? s = "MultiLineString" : s = "Feature";
37876
37888
  const o = s !== "Feature", a = s === "Feature" ? "Feature annotation" : "Drawn annotation";
37877
37889
  if (s) {
37878
- const c = W4(n);
37890
+ const c = j4(n);
37879
37891
  let l = e.slice(-1) === "/" ? e : e + "/";
37880
37892
  l = l + t;
37881
37893
  const d = l, h = {
@@ -37941,7 +37953,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
37941
37953
  e.push(i);
37942
37954
  }
37943
37955
  return e;
37944
- }, j4 = {
37956
+ }, $4 = {
37945
37957
  name: "LinesControls",
37946
37958
  components: {
37947
37959
  Button: Ko,
@@ -38037,7 +38049,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
38037
38049
  }
38038
38050
  }
38039
38051
  };
38040
- function $4(n, e, t, i, r, s) {
38052
+ function Z4(n, e, t, i, r, s) {
38041
38053
  const o = bi, a = ti, c = fr, l = Ui, d = Ko, h = dr, f = zi;
38042
38054
  return ve(), Ve(f, { class: "lines-container" }, {
38043
38055
  default: de(() => [
@@ -38322,7 +38334,7 @@ function $4(n, e, t, i, r, s) {
38322
38334
  _: 1
38323
38335
  });
38324
38336
  }
38325
- const MM = /* @__PURE__ */ ki(j4, [["render", $4], ["__scopeId", "data-v-0deb177d"]]), Z4 = {
38337
+ const MM = /* @__PURE__ */ ki($4, [["render", Z4], ["__scopeId", "data-v-0deb177d"]]), X4 = {
38326
38338
  name: "PointsControls",
38327
38339
  components: {
38328
38340
  Col: bi,
@@ -38390,7 +38402,7 @@ const MM = /* @__PURE__ */ ki(j4, [["render", $4], ["__scopeId", "data-v-0deb177
38390
38402
  this.translation[1] - this.pTranslation[1],
38391
38403
  this.translation[2] - this.pTranslation[2]
38392
38404
  ];
38393
- this.edited = k4(this.zincObject, this.currentIndex, n) || this.edited;
38405
+ this.edited = V4(this.zincObject, this.currentIndex, n) || this.edited;
38394
38406
  for (let e = 0; e < 3; e++)
38395
38407
  this.pTranslation[e] = this.translation[e];
38396
38408
  },
@@ -38408,7 +38420,7 @@ const MM = /* @__PURE__ */ ki(j4, [["render", $4], ["__scopeId", "data-v-0deb177
38408
38420
  }
38409
38421
  }
38410
38422
  };
38411
- function X4(n, e, t, i, r, s) {
38423
+ function Y4(n, e, t, i, r, s) {
38412
38424
  const o = bi, a = ti, c = fr, l = Ui, d = Qo, h = qo, f = Ko, g = dr, p = zi;
38413
38425
  return ve(), Ve(p, { class: "pointset-container" }, {
38414
38426
  default: de(() => [
@@ -38648,7 +38660,7 @@ function X4(n, e, t, i, r, s) {
38648
38660
  _: 1
38649
38661
  });
38650
38662
  }
38651
- const wM = /* @__PURE__ */ ki(Z4, [["render", X4], ["__scopeId", "data-v-d1de9c65"]]), Y4 = {
38663
+ const wM = /* @__PURE__ */ ki(X4, [["render", Y4], ["__scopeId", "data-v-d1de9c65"]]), J4 = {
38652
38664
  name: "TextureSlidesControls",
38653
38665
  components: {
38654
38666
  Col: bi,
@@ -38703,7 +38715,7 @@ const wM = /* @__PURE__ */ ki(Z4, [["render", X4], ["__scopeId", "data-v-d1de9c6
38703
38715
  }
38704
38716
  }
38705
38717
  };
38706
- function J4(n, e, t, i, r, s) {
38718
+ function K4(n, e, t, i, r, s) {
38707
38719
  const o = Qo, a = qo, c = bi, l = ti, d = fr, h = Nc, f = It, g = Ui, p = dr, u = tu, y = dy, v = zi;
38708
38720
  return ve(), Ve(v, { class: "t-slides-container" }, {
38709
38721
  default: de(() => [
@@ -38748,7 +38760,7 @@ function J4(n, e, t, i, r, s) {
38748
38760
  modelValue: m.value,
38749
38761
  "onUpdate:modelValue": (w) => m.value = w,
38750
38762
  class: "my-slider",
38751
- step: 0.01,
38763
+ step: 5e-3,
38752
38764
  min: 0,
38753
38765
  max: 1,
38754
38766
  "show-tooltip": !1,
@@ -38832,7 +38844,7 @@ function J4(n, e, t, i, r, s) {
38832
38844
  _: 1
38833
38845
  });
38834
38846
  }
38835
- const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7f"]]), K4 = {
38847
+ const AM = /* @__PURE__ */ ki(J4, [["render", K4], ["__scopeId", "data-v-f65f296c"]]), q4 = {
38836
38848
  name: "TransformationControls",
38837
38849
  components: {
38838
38850
  Col: bi,
@@ -38857,27 +38869,18 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
38857
38869
  watch: {
38858
38870
  boundingDims: {
38859
38871
  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
- ];
38872
+ this.calculateMinAndMax();
38870
38873
  },
38871
38874
  immediate: !0,
38872
38875
  deep: !0
38873
38876
  }
38874
38877
  },
38875
38878
  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 = [
38879
+ calculateMinAndMax: function() {
38880
+ var n, e;
38881
+ if (this.zincObject) {
38882
+ const t = (e = (n = this.zincObject) == null ? void 0 : n.userData) == null ? void 0 : e.originalPos;
38883
+ t && this.boundingDims && (this.min = [
38881
38884
  t[0] - this.boundingDims.size[0],
38882
38885
  t[1] - this.boundingDims.size[1],
38883
38886
  t[2] - this.boundingDims.size[2]
@@ -38885,7 +38888,14 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
38885
38888
  t[0] + this.boundingDims.size[0],
38886
38889
  t[1] + this.boundingDims.size[1],
38887
38890
  t[2] + this.boundingDims.size[2]
38888
- ]));
38891
+ ]);
38892
+ }
38893
+ },
38894
+ setObject: function(n) {
38895
+ if (n.isZincObject) {
38896
+ this.zincObject = An(n);
38897
+ const e = this.zincObject.getGroup();
38898
+ 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
38899
  } else
38890
38900
  this.zincObject = void 0, this.x = 0, this.y = 0, this.z = 0, this.scale = 1;
38891
38901
  },
@@ -38897,7 +38907,7 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
38897
38907
  }
38898
38908
  }
38899
38909
  };
38900
- function q4(n, e, t, i, r, s) {
38910
+ function Q4(n, e, t, i, r, s) {
38901
38911
  const o = bi, a = ti, c = fr, l = Ui, d = dr, h = zi;
38902
38912
  return ve(), Ve(h, { class: "transformation-container" }, {
38903
38913
  default: de(() => [
@@ -39109,7 +39119,7 @@ function q4(n, e, t, i, r, s) {
39109
39119
  _: 1
39110
39120
  });
39111
39121
  }
39112
- const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-cd88ead8"]]), Q4 = {
39122
+ const SM = /* @__PURE__ */ ki(q4, [["render", Q4], ["__scopeId", "data-v-caf40e87"]]), e5 = {
39113
39123
  name: "OpacityControls",
39114
39124
  components: {
39115
39125
  Container: zi,
@@ -39136,16 +39146,16 @@ const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-cd88ead
39136
39146
  return this.displayString = Math.floor(100 * n + 0.5) + "%", this.displayString;
39137
39147
  }
39138
39148
  }
39139
- }, e5 = { class: "block" }, t5 = { class: "display" };
39140
- function n5(n, e, t, i, r, s) {
39149
+ }, t5 = { class: "block" }, n5 = { class: "display" };
39150
+ function i5(n, e, t, i, r, s) {
39141
39151
  const o = ti, a = zi;
39142
39152
  return t.material ? (ve(), Ve(a, {
39143
39153
  key: 0,
39144
39154
  class: "opacity-container"
39145
39155
  }, {
39146
39156
  default: de(() => [
39147
- Ne("div", e5, [
39148
- Ne("span", t5, gt(n.displayString), 1),
39157
+ Ne("div", t5, [
39158
+ Ne("span", n5, gt(n.displayString), 1),
39149
39159
  le(o, {
39150
39160
  modelValue: t.material.opacity,
39151
39161
  "onUpdate:modelValue": e[0] || (e[0] = (c) => t.material.opacity = c),
@@ -39161,7 +39171,7 @@ function n5(n, e, t, i, r, s) {
39161
39171
  _: 1
39162
39172
  })) : ke("", !0);
39163
39173
  }
39164
- const _M = /* @__PURE__ */ ki(Q4, [["render", n5], ["__scopeId", "data-v-cbfc46a5"]]), i5 = {
39174
+ const _M = /* @__PURE__ */ ki(e5, [["render", i5], ["__scopeId", "data-v-cbfc46a5"]]), r5 = {
39165
39175
  name: "PrimitiveControls",
39166
39176
  components: {
39167
39177
  Collapse: oy,
@@ -39216,7 +39226,7 @@ const _M = /* @__PURE__ */ ki(Q4, [["render", n5], ["__scopeId", "data-v-cbfc46a
39216
39226
  }
39217
39227
  }
39218
39228
  };
39219
- function r5(n, e, t, i, r, s) {
39229
+ function s5(n, e, t, i, r, s) {
39220
39230
  const o = _M, a = ay, c = SM, l = AM, d = wM, h = MM, f = oy, g = kr, p = It;
39221
39231
  return Lt((ve(), Ce("div", {
39222
39232
  class: Te(["primitive-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
@@ -39325,10 +39335,10 @@ function r5(n, e, t, i, r, s) {
39325
39335
  [mn, s.hasValidPrimitive]
39326
39336
  ]);
39327
39337
  }
39328
- const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d11562"]]), s5 = (n, e) => {
39338
+ const TM = /* @__PURE__ */ ki(r5, [["render", s5], ["__scopeId", "data-v-83d11562"]]), o5 = (n, e) => {
39329
39339
  const t = n.label.toUpperCase(), i = e.label.toUpperCase();
39330
39340
  return t < i ? -1 : t > i ? 1 : 0;
39331
- }, o5 = {
39341
+ }, a5 = {
39332
39342
  name: "ScaffoldTreeControls",
39333
39343
  components: {
39334
39344
  ElIconArrowLeft: zr,
@@ -39379,7 +39389,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
39379
39389
  },
39380
39390
  methods: {
39381
39391
  addTreeItem: function(n, e, t) {
39382
- n.some((i) => i.label === e.label) || (Object.assign(e, { activeColour: this.getColour(e) }), n.push(e), n.sort((i, r) => s5(i, r)), this.nodeNumbers++, this.$nextTick(() => {
39392
+ n.some((i) => i.label === e.label) || (Object.assign(e, { activeColour: this.getColour(e) }), n.push(e), n.sort((i, r) => o5(i, r)), this.nodeNumbers++, this.$nextTick(() => {
39383
39393
  !this.$refs.treeControls.$refs.regionTree.getCheckedKeys().includes(e.id) && t.getVisibility() && this.$refs.treeControls.$refs.regionTree.setChecked(e.id, !0);
39384
39394
  }));
39385
39395
  },
@@ -39663,7 +39673,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
39663
39673
  },
39664
39674
  getState: function() {
39665
39675
  let n = this.$refs.treeControls.$refs.regionTree.getCheckedKeys();
39666
- return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems: G4(
39676
+ return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems: H4(
39667
39677
  this.module.scene.getRootRegion(),
39668
39678
  n
39669
39679
  ), version: "2.0" };
@@ -39686,13 +39696,13 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
39686
39696
  }
39687
39697
  }
39688
39698
  }
39689
- }, a5 = { class: "traditional-container" };
39690
- function l5(n, e, t, i, r, s) {
39699
+ }, l5 = { class: "traditional-container" };
39700
+ function c5(n, e, t, i, r, s) {
39691
39701
  const o = Vn("TreeControls"), a = zr, c = It;
39692
39702
  return ve(), Ce("div", {
39693
39703
  class: Te(["tree-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
39694
39704
  }, [
39695
- Ne("div", a5, [
39705
+ Ne("div", l5, [
39696
39706
  le(o, {
39697
39707
  mapType: "scaffold",
39698
39708
  title: "Regions",
@@ -39722,7 +39732,7 @@ function l5(n, e, t, i, r, s) {
39722
39732
  ], 2)
39723
39733
  ], 2);
39724
39734
  }
39725
- const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b615"]]), Dd = iw("main", {
39735
+ const EM = /* @__PURE__ */ ki(a5, [["render", c5], ["__scopeId", "data-v-5394b615"]]), Dd = iw("main", {
39726
39736
  state: () => ({
39727
39737
  userProfile: {
39728
39738
  token: ""
@@ -39738,7 +39748,7 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
39738
39748
  this.userProfile.token = n;
39739
39749
  }
39740
39750
  }
39741
- }), c5 = {
39751
+ }), u5 = {
39742
39752
  name: "ScaffoldTooltip",
39743
39753
  components: {
39744
39754
  Col: bi,
@@ -39853,14 +39863,14 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
39853
39863
  immediate: !0
39854
39864
  }
39855
39865
  }
39856
- }, u5 = { class: "tooltip-text" }, h5 = {
39866
+ }, h5 = { class: "tooltip-text" }, d5 = {
39857
39867
  key: 0,
39858
39868
  class: "tooltip-text"
39859
- }, d5 = {
39869
+ }, f5 = {
39860
39870
  key: 1,
39861
39871
  class: "delete-container"
39862
39872
  };
39863
- function f5(n, e, t, i, r, s) {
39873
+ function p5(n, e, t, i, r, s) {
39864
39874
  const o = Vn("CreateTooltipContent"), a = Vn("Tooltip"), c = bi, l = Ko, d = Ui, h = cu;
39865
39875
  return ve(), Ce("div", {
39866
39876
  style: Rt(s.position),
@@ -39878,8 +39888,8 @@ function f5(n, e, t, i, r, s) {
39878
39888
  onHide: s.hideTriggered
39879
39889
  }, {
39880
39890
  default: de(() => [
39881
- Ne("div", u5, gt(t.label), 1),
39882
- t.region ? (ve(), Ce("div", h5, "Region: " + gt(t.region), 1)) : ke("", !0),
39891
+ Ne("div", h5, gt(t.label), 1),
39892
+ t.region ? (ve(), Ce("div", d5, "Region: " + gt(t.region), 1)) : ke("", !0),
39883
39893
  Lt(le(o, {
39884
39894
  createData: t.createData,
39885
39895
  onConfirmCreate: e[0] || (e[0] = (f) => n.$emit("confirm-create", f)),
@@ -39896,7 +39906,7 @@ function f5(n, e, t, i, r, s) {
39896
39906
  }, null, 8, ["annotationEntry"]), [
39897
39907
  [mn, t.annotationDisplay && !t.createData.toBeConfirmed]
39898
39908
  ]),
39899
- t.createData.toBeDeleted ? (ve(), Ce("div", d5, [
39909
+ t.createData.toBeDeleted ? (ve(), Ce("div", f5, [
39900
39910
  le(d, null, {
39901
39911
  default: de(() => [
39902
39912
  le(c, { span: 10 }, {
@@ -39943,9 +39953,9 @@ function f5(n, e, t, i, r, s) {
39943
39953
  }, 8, ["visible", "onHide"])
39944
39954
  ], 4);
39945
39955
  }
39946
- const CM = /* @__PURE__ */ ki(c5, [["render", f5], ["__scopeId", "data-v-d3f76b72"]]), Qa = { ALL: 0, SELECTED: 1, HIGHLIGHTED: 2, MOVE: 3 }, p5 = function(n, e, t) {
39956
+ const CM = /* @__PURE__ */ ki(u5, [["render", p5], ["__scopeId", "data-v-d3f76b72"]]), Qa = { ALL: 0, SELECTED: 1, HIGHLIGHTED: 2, MOVE: 3 }, m5 = function(n, e, t) {
39947
39957
  this.eventType = n, this.identifiers = e, this.zincObjects = t;
39948
- }, m5 = function(n, e, t) {
39958
+ }, g5 = function(n, e, t) {
39949
39959
  this.targetedID = [];
39950
39960
  const i = n, r = e;
39951
39961
  this.targetEventType = t;
@@ -39954,18 +39964,18 @@ const CM = /* @__PURE__ */ ki(c5, [["render", f5], ["__scopeId", "data-v-d3f76b7
39954
39964
  return t;
39955
39965
  }, this.notify = function(o, a, c, l) {
39956
39966
  if (o !== i && (s.targetEventType === Qa.ALL || s.targetEventType === a)) {
39957
- const d = new p5(a, c, l);
39967
+ const d = new m5(a, c, l);
39958
39968
  r(d);
39959
39969
  }
39960
39970
  };
39961
- }, g5 = function() {
39971
+ }, v5 = function() {
39962
39972
  const n = [];
39963
39973
  this.publish = function(e, t, i, r) {
39964
39974
  for (let s = 0; s < n.length; s++)
39965
39975
  n[s].notify(e, t, i, r);
39966
39976
  }, this.subscribe = function(e, t, i) {
39967
39977
  if (typeof t == "function") {
39968
- const r = new m5(e, t, i);
39978
+ const r = new g5(e, t, i);
39969
39979
  return n.push(r), r;
39970
39980
  }
39971
39981
  }, this.unsubscribe = function(e) {
@@ -40063,7 +40073,7 @@ const wc = (n, e, t) => {
40063
40073
  o && o.isZincObject && s.material && s.material.emissive && s.material.emissive.setRGB(...e);
40064
40074
  });
40065
40075
  }
40066
- }, v5 = function() {
40076
+ }, y5 = function() {
40067
40077
  let n = [], e = [];
40068
40078
  this.highlightColour = [1, 0, 0], this.selectColour = [0, 1, 0], this.originalColour = [0, 0, 0];
40069
40079
  const t = [], i = [], r = this, s = function(c, l) {
@@ -40136,7 +40146,7 @@ const wc = (n, e, t) => {
40136
40146
  }, this.reset = function() {
40137
40147
  r.resetSelected(), r.resetHighlighted();
40138
40148
  };
40139
- }, gp = Rc.THREE, y5 = function() {
40149
+ }, gp = Rc.THREE, b5 = function() {
40140
40150
  const n = document.createElement("div");
40141
40151
  let e;
40142
40152
  if (n.style.height = "100%", Lv.isWebGLAvailable())
@@ -40147,7 +40157,7 @@ const wc = (n, e, t) => {
40147
40157
  }
40148
40158
  return { Zinc: Rc, renderer: e, container: n };
40149
40159
  }, Kt = function() {
40150
- Xn.call(this), this.scene = void 0, this.rendererContainer = void 0, this.displayArea = void 0, this.graphicsHighlight = new v5(), this.selectObjectOnPick = !0, this.zincRenderer = null, this.selectedScreenCoordinates = new gp.Vector3(), this.selectedCenter = void 0, this.liveUpdatesObjects = void 0, this.ignorePreviousSelected = !1;
40160
+ Xn.call(this), this.scene = void 0, this.rendererContainer = void 0, this.displayArea = void 0, this.graphicsHighlight = new y5(), this.selectObjectOnPick = !0, this.zincRenderer = null, this.selectedScreenCoordinates = new gp.Vector3(), this.selectedCenter = void 0, this.liveUpdatesObjects = void 0, this.ignorePreviousSelected = !1;
40151
40161
  };
40152
40162
  Kt.prototype = Object.create(Xn.prototype);
40153
40163
  Kt.prototype.getIntersectedObject = function(n) {
@@ -40258,7 +40268,7 @@ Kt.prototype.getPlayRate = function(n) {
40258
40268
  };
40259
40269
  Kt.prototype.initialiseRenderer = function(n) {
40260
40270
  if (this.zincRenderer === void 0 || this.rendererContainer === void 0) {
40261
- let e = y5();
40271
+ let e = b5();
40262
40272
  this.Zinc = e.Zinc, this.zincRenderer = e.renderer, this.rendererContainer = e.container;
40263
40273
  }
40264
40274
  n && (this.displayArea = n, this.displayArea.appendChild(this.rendererContainer), this.zincRenderer && this.zincRenderer.animate());
@@ -40266,15 +40276,15 @@ Kt.prototype.initialiseRenderer = function(n) {
40266
40276
  Kt.prototype.destroy = function() {
40267
40277
  this.zincRenderer && (this.zincRenderer.dispose(), this.zincRenderer.getThreeJSRenderer().dispose(), this.zincRenderer = void 0), Xn.prototype.destroy.call(this);
40268
40278
  };
40269
- const b5 = function() {
40279
+ const x5 = function() {
40270
40280
  this.type = "anatomical", this.data = void 0, this.isAnnotation = !0;
40271
- }, x5 = function() {
40281
+ }, M5 = function() {
40272
40282
  this.currentName = "", this.currentSystem = "", this.currentPart = "", this.currentSpecies = "", this.metaURL = "", this.viewURL = "", this.timeVarying = !1, this.currentTime = 0;
40273
40283
  }, LM = function(n) {
40274
40284
  Kt.call(this);
40275
40285
  const e = this;
40276
40286
  let t;
40277
- this.sceneData = new x5();
40287
+ this.sceneData = new M5();
40278
40288
  const i = new Array(), r = new Array(), s = new Array(), o = new Array();
40279
40289
  let a, c;
40280
40290
  const l = n;
@@ -40462,7 +40472,7 @@ const b5 = function() {
40462
40472
  const x = function(S, T, E, C) {
40463
40473
  for (let I = 0; I < s.length; I++)
40464
40474
  s[I](C, e.scene.isTimeVarying());
40465
- const P = new b5(), b = C.region.getFullPath();
40475
+ const P = new x5(), b = C.region.getFullPath();
40466
40476
  P.data = {
40467
40477
  species: e.sceneData.currentSpecies,
40468
40478
  system: S,
@@ -40588,7 +40598,7 @@ var _t = function() {
40588
40598
  return e;
40589
40599
  }, _t.apply(this, arguments);
40590
40600
  };
40591
- function M5(n, e, t, i) {
40601
+ function w5(n, e, t, i) {
40592
40602
  function r(s) {
40593
40603
  return s instanceof t ? s : new t(function(o) {
40594
40604
  o(s);
@@ -40615,7 +40625,7 @@ function M5(n, e, t, i) {
40615
40625
  l((i = i.apply(n, [])).next());
40616
40626
  });
40617
40627
  }
40618
- function w5(n, e) {
40628
+ function A5(n, e) {
40619
40629
  var t = { label: 0, sent: function() {
40620
40630
  if (s[0] & 1) throw s[1];
40621
40631
  return s[1];
@@ -40702,7 +40712,7 @@ function Wt(n, e) {
40702
40712
  }
40703
40713
  return s;
40704
40714
  }
40705
- var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40715
+ var S5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40706
40716
  /** @class */
40707
40717
  function() {
40708
40718
  function n(e, t) {
@@ -40749,7 +40759,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40749
40759
  }()
40750
40760
  ), uo = function(n) {
40751
40761
  return n[n.length - 1];
40752
- }, S5 = function(n, e, t) {
40762
+ }, _5 = function(n, e, t) {
40753
40763
  var i = /* @__PURE__ */ new Map();
40754
40764
  if (e === void 0)
40755
40765
  return i;
@@ -40822,9 +40832,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40822
40832
  }, n.prototype.clear = function() {
40823
40833
  this._size = void 0, this._tree.clear();
40824
40834
  }, n.prototype.delete = function(e) {
40825
- return this._size = void 0, _5(this._tree, e);
40835
+ return this._size = void 0, T5(this._tree, e);
40826
40836
  }, n.prototype.entries = function() {
40827
- return new Ph(this, A5);
40837
+ return new Ph(this, S5);
40828
40838
  }, n.prototype.forEach = function(e) {
40829
40839
  var t, i;
40830
40840
  try {
@@ -40842,7 +40852,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40842
40852
  }
40843
40853
  }
40844
40854
  }, n.prototype.fuzzyGet = function(e, t) {
40845
- return S5(this._tree, e, t);
40855
+ return _5(this._tree, e, t);
40846
40856
  }, n.prototype.get = function(e) {
40847
40857
  var t = Nd(this._tree, e);
40848
40858
  return t !== void 0 ? t.get(pn) : void 0;
@@ -40980,7 +40990,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
40980
40990
  return n.set(e.slice(s), g), g;
40981
40991
  }
40982
40992
  return n;
40983
- }, _5 = function(n, e) {
40993
+ }, T5 = function(n, e) {
40984
40994
  var t = Wt($c(n, e), 2), i = t[0], r = t[1];
40985
40995
  if (i !== void 0) {
40986
40996
  if (i.delete(pn), i.size === 0)
@@ -41007,14 +41017,14 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41007
41017
  }
41008
41018
  }, vp = function(n) {
41009
41019
  return n[n.length - 1];
41010
- }, _a, yp = "or", DM = "and", T5 = "and_not", E5 = (
41020
+ }, _a, yp = "or", DM = "and", E5 = "and_not", C5 = (
41011
41021
  /** @class */
41012
41022
  function() {
41013
41023
  function n(e) {
41014
41024
  if ((e == null ? void 0 : e.fields) == null)
41015
41025
  throw new Error('MiniSearch: option "fields" must be provided');
41016
41026
  var t = e.autoVacuum == null || e.autoVacuum === !0 ? Bh : e.autoVacuum;
41017
- this._options = _t(_t(_t({}, Nh), e), { autoVacuum: t, searchOptions: _t(_t({}, Rv), e.searchOptions || {}), autoSuggestOptions: _t(_t({}, P5), e.autoSuggestOptions || {}) }), this._index = new Ih(), this._documentCount = 0, this._documentIds = /* @__PURE__ */ new Map(), this._idToShortId = /* @__PURE__ */ new Map(), this._fieldIds = {}, this._fieldLength = /* @__PURE__ */ new Map(), this._avgFieldLength = [], this._nextId = 0, this._storedFields = /* @__PURE__ */ new Map(), this._dirtCount = 0, this._currentVacuum = null, this._enqueuedVacuum = null, this._enqueuedVacuumConditions = Ud, this.addFields(this._options.fields);
41027
+ this._options = _t(_t(_t({}, Nh), e), { autoVacuum: t, searchOptions: _t(_t({}, Rv), e.searchOptions || {}), autoSuggestOptions: _t(_t({}, I5), e.autoSuggestOptions || {}) }), this._index = new Ih(), this._documentCount = 0, this._documentIds = /* @__PURE__ */ new Map(), this._idToShortId = /* @__PURE__ */ new Map(), this._fieldIds = {}, this._fieldLength = /* @__PURE__ */ new Map(), this._avgFieldLength = [], this._nextId = 0, this._storedFields = /* @__PURE__ */ new Map(), this._dirtCount = 0, this._currentVacuum = null, this._enqueuedVacuum = null, this._enqueuedVacuumConditions = Ud, this.addFields(this._options.fields);
41018
41028
  }
41019
41029
  return n.prototype.add = function(e) {
41020
41030
  var t, i, r, s, o, a, c = this._options, l = c.extractField, d = c.tokenize, h = c.processTerm, f = c.fields, g = c.idField, p = l(e, g);
@@ -41227,9 +41237,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41227
41237
  return i._enqueuedVacuumConditions = Ud, i.performVacuuming(e, r);
41228
41238
  }), this._enqueuedVacuum)) : this.vacuumConditionsMet(t) === !1 ? Promise.resolve() : (this._currentVacuum = this.performVacuuming(e), this._currentVacuum);
41229
41239
  }, n.prototype.performVacuuming = function(e, t) {
41230
- return M5(this, void 0, void 0, function() {
41240
+ return w5(this, void 0, void 0, function() {
41231
41241
  var i, r, s, o, a, c, l, d, h, f, g, p, u, y, v, m, x, w, A, M, R, L, _, F, S;
41232
- return w5(this, function(T) {
41242
+ return A5(this, function(T) {
41233
41243
  switch (T.label) {
41234
41244
  case 0:
41235
41245
  if (i = this._dirtCount, !this.vacuumConditionsMet(t)) return [3, 10];
@@ -41489,7 +41499,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41489
41499
  return f(y);
41490
41500
  }).filter(function(y) {
41491
41501
  return !!y;
41492
- }), p = g.map(F5(d)), u = p.map(function(y) {
41502
+ }), p = g.map(P5(d)), u = p.map(function(y) {
41493
41503
  return i.executeQuerySpec(y, d);
41494
41504
  });
41495
41505
  return this.combineResults(u, d.combineWith);
@@ -41565,7 +41575,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41565
41575
  if (t === void 0 && (t = yp), e.length === 0)
41566
41576
  return /* @__PURE__ */ new Map();
41567
41577
  var i = t.toLowerCase();
41568
- return e.reduce(C5[i]) || /* @__PURE__ */ new Map();
41578
+ return e.reduce(L5[i]) || /* @__PURE__ */ new Map();
41569
41579
  }, n.prototype.toJSON = function() {
41570
41580
  var e, t, i, r, s = [];
41571
41581
  try {
@@ -41626,9 +41636,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41626
41636
  }
41627
41637
  var _ = o ? o(this._documentIds.get(L), t, this._storedFields.get(L)) : 1;
41628
41638
  if (_) {
41629
- var F = x.get(L), S = this._fieldLength.get(L)[m], T = R5(F, w, this._documentCount, S, A, a), E = i * v * _ * T, C = c.get(L);
41639
+ var F = x.get(L), S = this._fieldLength.get(L)[m], T = F5(F, w, this._documentCount, S, A, a), E = i * v * _ * T, C = c.get(L);
41630
41640
  if (C) {
41631
- C.score += E, I5(C.terms, e);
41641
+ C.score += E, O5(C.terms, e);
41632
41642
  var P = Dh(C.match, t);
41633
41643
  P ? P.push(y) : C.match[t] = [y];
41634
41644
  } else
@@ -41736,7 +41746,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41736
41746
  }()
41737
41747
  ), Dh = function(n, e) {
41738
41748
  return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
41739
- }, C5 = (_a = {}, _a[yp] = function(n, e) {
41749
+ }, L5 = (_a = {}, _a[yp] = function(n, e) {
41740
41750
  var t, i;
41741
41751
  try {
41742
41752
  for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
@@ -41782,7 +41792,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41782
41792
  }
41783
41793
  }
41784
41794
  return r;
41785
- }, _a[T5] = function(n, e) {
41795
+ }, _a[E5] = function(n, e) {
41786
41796
  var t, i;
41787
41797
  try {
41788
41798
  for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
@@ -41799,10 +41809,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41799
41809
  }
41800
41810
  }
41801
41811
  return n;
41802
- }, _a), L5 = { k: 1.2, b: 0.7, d: 0.5 }, R5 = function(n, e, t, i, r, s) {
41812
+ }, _a), R5 = { k: 1.2, b: 0.7, d: 0.5 }, F5 = function(n, e, t, i, r, s) {
41803
41813
  var o = s.k, a = s.b, c = s.d, l = Math.log(1 + (t - e + 0.5) / (e + 0.5));
41804
41814
  return l * (c + n * (o + 1) / (n + o * (1 - a + a * i / r)));
41805
- }, F5 = function(n) {
41815
+ }, P5 = function(n) {
41806
41816
  return function(e, t, i) {
41807
41817
  var r = typeof n.fuzzy == "function" ? n.fuzzy(e, t, i) : n.fuzzy || !1, s = typeof n.prefix == "function" ? n.prefix(e, t, i) : n.prefix === !0;
41808
41818
  return { term: e, fuzzy: r, prefix: s };
@@ -41813,7 +41823,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41813
41823
  return n[e];
41814
41824
  },
41815
41825
  tokenize: function(n) {
41816
- return n.split(O5);
41826
+ return n.split(D5);
41817
41827
  },
41818
41828
  processTerm: function(n) {
41819
41829
  return n.toLowerCase();
@@ -41832,13 +41842,13 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41832
41842
  maxFuzzy: 6,
41833
41843
  boost: {},
41834
41844
  weights: { fuzzy: 0.45, prefix: 0.375 },
41835
- bm25: L5
41836
- }, P5 = {
41845
+ bm25: R5
41846
+ }, I5 = {
41837
41847
  combineWith: DM,
41838
41848
  prefix: function(n, e, t) {
41839
41849
  return e === t.length - 1;
41840
41850
  }
41841
- }, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud), I5 = function(n, e) {
41851
+ }, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud), O5 = function(n, e) {
41842
41852
  n.includes(e) || n.push(e);
41843
41853
  }, Fv = function(n, e) {
41844
41854
  var t, i;
@@ -41878,10 +41888,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
41878
41888
  }
41879
41889
  }
41880
41890
  return i;
41881
- }, O5 = /[\n\r -#%-*,-/:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u3000-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]+/u;
41882
- class D5 {
41891
+ }, D5 = /[\n\r -#%-*,-/:;?@[-\]_{}\u00A0\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2000-\u200A\u2010-\u2029\u202F-\u2043\u2045-\u2051\u2053-\u205F\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u3000-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]+/u;
41892
+ class N5 {
41883
41893
  constructor() {
41884
- this._searchEngine = new E5({
41894
+ this._searchEngine = new C5({
41885
41895
  fields: ["path", "name"],
41886
41896
  storeFields: ["path"],
41887
41897
  tokenize: (e, t) => e.split(/[\s/]+/)
@@ -41929,7 +41939,7 @@ class D5 {
41929
41939
  regionPath: void 0,
41930
41940
  label: 'Search Results for "'
41931
41941
  };
41932
- return Array.isArray(t) ? i.label += ",".join(t) : i.label += t, i.label += '"', e.length === 1 && (e[0].isRegion ? i.regionPath = e[0].getFullPath() : e[0].isZincObject && (i.regionPath = e[0].getRegion().getFullPath(), i.label = e[0].groupName)), i.zincObjects = H4(e), i;
41942
+ return Array.isArray(t) ? i.label += ",".join(t) : i.label += t, i.label += '"', e.length === 1 && (e[0].isRegion ? i.regionPath = e[0].getFullPath() : e[0].isZincObject && (i.regionPath = e[0].getRegion().getFullPath(), i.label = e[0].groupName)), i.zincObjects = W4(e), i;
41933
41943
  }
41934
41944
  search(e) {
41935
41945
  let t;
@@ -41951,7 +41961,7 @@ class D5 {
41951
41961
  return Array.isArray(e) ? t = this.searchTerms(e) : t = this.search(e), this.processResults(t, e);
41952
41962
  }
41953
41963
  }
41954
- const N5 = [
41964
+ const B5 = [
41955
41965
  {
41956
41966
  id: 0,
41957
41967
  nerve_id: "ILX:0793723",
@@ -42764,14 +42774,14 @@ const N5 = [
42764
42774
  "FMA subclasses (in human nerves)": ["FMA:6892", "FMA:6893"],
42765
42775
  "subclass labels": ["Right T9 grey ramus communicans", "Left T9 grey ramus communicans"]
42766
42776
  }
42767
- ], B5 = () => {
42777
+ ], U5 = () => {
42768
42778
  const n = {};
42769
- return N5.forEach((e) => {
42779
+ return B5.forEach((e) => {
42770
42780
  e.nerve_id && e.label !== "nerve" && e["subclass labels"].forEach((t) => {
42771
42781
  t in n || (n[t.toLowerCase()] = e.nerve_id);
42772
42782
  });
42773
42783
  }), n;
42774
- }, U5 = [
42784
+ }, z5 = [
42775
42785
  {
42776
42786
  label: "urinary bladder",
42777
42787
  anatomicalId: "UBERON:0001255"
@@ -42808,13 +42818,13 @@ const N5 = [
42808
42818
  label: "lung",
42809
42819
  anatomicalId: "UBERON:0002048"
42810
42820
  }
42811
- ], z5 = () => {
42821
+ ], k5 = () => {
42812
42822
  const n = {};
42813
- return U5.forEach((e) => {
42823
+ return z5.forEach((e) => {
42814
42824
  const t = e.label.toLowerCase();
42815
42825
  t in n || (n[t.toLowerCase()] = e.anatomicalId);
42816
42826
  }), n;
42817
- }, Ov = B5(), Dv = z5(), k5 = {
42827
+ }, Ov = U5(), Dv = k5(), V5 = {
42818
42828
  name: "ScaffoldVuer",
42819
42829
  components: {
42820
42830
  Button: Ko,
@@ -43346,11 +43356,11 @@ const N5 = [
43346
43356
  }
43347
43357
  },
43348
43358
  beforeCreate: function() {
43349
- this.$module = new LM(), this.selectedObjects = [], this.hoveredObjects = [], this.currentBackground = "white", this._currentURL = void 0, this.availableBackground = ["white", "black", "lightskyblue"], this.$_searchIndex = new D5();
43359
+ this.$module = new LM(), this.selectedObjects = [], this.hoveredObjects = [], this.currentBackground = "white", this._currentURL = void 0, this.availableBackground = ["white", "black", "lightskyblue"], this.$_searchIndex = new N5();
43350
43360
  },
43351
43361
  mounted: function() {
43352
43362
  this.openMapRef = En(this.$refs.openMapRef), this.backgroundIconRef = En(this.$refs.backgroundIconRef), this.$refs.scaffoldTreeControls.setModule(this.$module);
43353
- let n = new g5();
43363
+ let n = new v5();
43354
43364
  n.subscribe(this, this.eventNotifierCallback), this.$module.addNotifier(n), this.$module.addOrganPartAddedCallback(this.zincObjectAdded), this.$module.addOrganPartRemovedCallback(this.zincObjectRemoved), this.$module.initialiseRenderer(this.$refs.display), this.toggleRendering(this.render), this.ro = new ResizeObserver(this.adjustLayout).observe(
43355
43365
  this.$refs.scaffoldContainer.$el
43356
43366
  ), this.helpTextWait = [], this.helpTextWait.length = this.hoverVisibilities.length, this.defaultRate = this.$module.getPlayRate(), this.$module.zincRenderer.addPreRenderCallbackFunction(() => {
@@ -43435,7 +43445,7 @@ const N5 = [
43435
43445
  for (let o = 0; o < i.length; o++)
43436
43446
  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
43447
  }
43438
- this.$emit("zinc-object-added", n);
43448
+ this.calculateBoundingBox(), this.$emit("zinc-object-added", n);
43439
43449
  },
43440
43450
  /**
43441
43451
  * Internal only.
@@ -43531,7 +43541,9 @@ const N5 = [
43531
43541
  if (this.existDrawnFeatures = An(this.existDrawnFeatures.filter((s) => s.id !== r.item.id)), this.existDrawnFeatures.push(r.feature), this.offlineAnnotationEnabled) {
43532
43542
  r.group = e;
43533
43543
  let s = n;
43534
- s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [], this.offlineAnnotations.push(r), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
43544
+ s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [];
43545
+ const o = this.offlineAnnotations.find((a) => a.group === r.group && a.region === r.region && a.resource === r.resource && a.feature.geometry.type === r.feature.geometry.type);
43546
+ o ? Object.assign(o, r) : this.offlineAnnotations.push(r), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
43535
43547
  }
43536
43548
  this.$emit("userPrimitivesUpdated", { region: n, group: e, zincObject: t });
43537
43549
  },
@@ -43571,12 +43583,13 @@ const N5 = [
43571
43583
  60962
43572
43584
  );
43573
43585
  else if (n.editingIndex > -1 && this._editingZincObject) {
43574
- this._editingZincObject.editVertices(
43575
- [this.createData.points[1]],
43586
+ let t;
43587
+ n.editingIndex > -1 && (this.createData.faceIndex > -1 ? t = this.createData.points[1] : t = this.createData.points[0]), this._editingZincObject.editVertices(
43588
+ [t],
43576
43589
  n.editingIndex
43577
43590
  );
43578
- const t = this._editingZincObject.region.getFullPath() + "/", i = this._editingZincObject.groupName;
43579
- this.addAndEditAnnotations(t, i, this._editingZincObject, "Position Updated");
43591
+ const i = this._editingZincObject.region.getFullPath() + "/", r = this._editingZincObject.groupName;
43592
+ this.addAndEditAnnotations(i, r, this._editingZincObject, "Position Updated");
43580
43593
  }
43581
43594
  e && (this.addAndEditAnnotations(n.region, n.group, e.zincObject, "Create"), e.zincObject.isEditable = !0, this.tData.region = n.region, this.tData.label = n.group, this.changeActiveByName([n.group], n.region, !1));
43582
43595
  }
@@ -43587,7 +43600,7 @@ const N5 = [
43587
43600
  * Cancel create workflows. Reset all relevant UIs and data.
43588
43601
  */
43589
43602
  cancelCreate: function() {
43590
- this.createData.points.length = 0, this.createData.toBeConfirmed = !1, this._editingZincObject = void 0, this.createData.editingIndex = -1, this.createData.faceIndex = -1, this.tData.visible = !1, this.createData.toBeDeleted = !1, this._tempLine && (this.$module.scene.removeTemporaryPrimitive(this._tempLine), this._tempLine = void 0), this._tempPoint && (this.$module.scene.removeTemporaryPrimitive(this._tempPoint), this._tempPoint = void 0), this.annotationSidebar && this.$emit("annotation-close");
43603
+ this.changeActiveByName(void 0), this.createData.points.length = 0, this.createData.toBeConfirmed = !1, this._editingZincObject = void 0, this.createData.editingIndex = -1, this.createData.faceIndex = -1, this.tData.visible = !1, this.createData.toBeDeleted = !1, this._tempLine && (this.$module.scene.removeTemporaryPrimitive(this._tempLine), this._tempLine = void 0), this._tempPoint && (this.$module.scene.removeTemporaryPrimitive(this._tempPoint), this._tempPoint = void 0), this.annotationSidebar && this.$emit("annotation-close");
43591
43604
  },
43592
43605
  /**
43593
43606
  * Internal only.
@@ -43643,7 +43656,7 @@ const N5 = [
43643
43656
  fitWindow: function() {
43644
43657
  if (this.$module.scene) {
43645
43658
  let n = !1;
43646
- this._boundingBoxGeo && (n = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (V4(this._boundingBoxGeo, this.$module.scene), this._boundingBoxGeo.setVisibility(n));
43659
+ this._boundingBoxGeo && (n = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (G4(this._boundingBoxGeo, this.$module.scene), this._boundingBoxGeo.setVisibility(n));
43647
43660
  }
43648
43661
  },
43649
43662
  /**
@@ -43745,9 +43758,21 @@ const N5 = [
43745
43758
  this.setURLFinishCallback({ viewURL: n })
43746
43759
  );
43747
43760
  },
43761
+ createEditTemporaryPoint: function(n) {
43762
+ const e = n[0].extraData.worldCoords;
43763
+ if (e && (this.createData.shape === "Point" || this.createData.editingIndex > -1) && this.createData.points.length === 0)
43764
+ if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint) {
43765
+ const t = this._tempPoint.geometry.getAttribute("position");
43766
+ t.setXYZ(0, e[0], e[1], e[2]), t.needsUpdate = !0;
43767
+ } else
43768
+ this._tempPoint = this.$module.scene.addTemporaryPoints(
43769
+ [e],
43770
+ 65535
43771
+ );
43772
+ },
43748
43773
  createEditTemporaryLines: function(n) {
43749
43774
  const e = n[0].extraData.worldCoords;
43750
- if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1) && this.createData.points.length === 1)
43775
+ if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1) && this.createData.points.length === 1)
43751
43776
  if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempLine) {
43752
43777
  const t = this._tempLine.geometry.getAttribute("position");
43753
43778
  t.setXYZ(1, e[0], e[1], e[2]), t.needsUpdate = !0;
@@ -43757,11 +43782,14 @@ const N5 = [
43757
43782
  65535
43758
43783
  );
43759
43784
  },
43785
+ createEditTemporaryPrimitive: function(n) {
43786
+ this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1 ? this.createEditTemporaryLines(n) : (this.createData.shape === "Point" || this.createData.editingIndex > -1) && this.createEditTemporaryPoint(n);
43787
+ },
43760
43788
  draw: function(n) {
43761
- n && n.length > 0 && n[0].data.group && n[0].extraData.worldCoords && (this.createData.shape === "Point" ? this.drawPoint(n[0].extraData.worldCoords, n) : (this.createData.shape === "LineString" || this.createData.editingIndex > -1) && this.drawLine(n[0].extraData.worldCoords, n));
43789
+ 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));
43762
43790
  },
43763
43791
  drawPoint: function(n, e) {
43764
- this.createData.toBeConfirmed === !1 && (this.createData.points.length = 0, this.createData.points.push(n), 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));
43792
+ this.createData.toBeConfirmed === !1 && (this.createData.points.length = 0, this.createData.points.push(n), 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)));
43765
43793
  },
43766
43794
  drawLine: function(n, e) {
43767
43795
  this.createData.toBeConfirmed === !1 && (this.createData.points.length === 1 ? (this.createData.points.push(n), 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)));
@@ -43787,21 +43815,28 @@ const N5 = [
43787
43815
  this.isTransitioning = !0, n.enableAutoTumble(), n.autoTumble([1, 0], Math.PI, !0), setTimeout(this.stopFreeSpin, 4e3);
43788
43816
  }
43789
43817
  },
43818
+ activateEditingMode: function(n) {
43819
+ let e = B4(n);
43820
+ e ? this.activatePointEditingMode(
43821
+ e.zincObject,
43822
+ e.index,
43823
+ e.point
43824
+ ) : (e = U4(n), e && this.activateLineEditingMode(
43825
+ e.zincObject,
43826
+ e.faceIndex,
43827
+ e.vertexIndex,
43828
+ e.point
43829
+ ));
43830
+ },
43790
43831
  activateAnnotationMode: function(n, e) {
43791
43832
  if (this.authorisedUser || this.offlineAnnotationEnabled)
43792
43833
  if (this.createData.toBeDeleted = !1, this.createData.shape !== "" || this.createData.editingIndex > -1)
43793
43834
  n.length > 0 && e.identifiers[0].coords && (this.createData.x = e.identifiers[0].coords.x, this.createData.y = e.identifiers[0].coords.y, this.draw(e.identifiers));
43794
43835
  else {
43795
- if (this.activeDrawMode === "Edit") {
43796
- const t = B4(e);
43797
- t && this.activateEditingMode(
43798
- t.zincObject,
43799
- t.faceIndex,
43800
- t.vertexIndex,
43801
- t.point
43802
- );
43803
- } else if (this.activeDrawMode === "Delete") {
43804
- const t = z4(e);
43836
+ if (this.activeDrawMode === "Edit")
43837
+ this.activateEditingMode(e.identifiers);
43838
+ else if (this.activeDrawMode === "Delete") {
43839
+ const t = k4(e);
43805
43840
  t && (this.createData.toBeDeleted = !0, this._editingZincObject = t);
43806
43841
  }
43807
43842
  this.activeDrawMode !== "Point" && this.activeDrawMode !== "LineString" ? this.showRegionTooltipWithAnnotations(e.identifiers, !0, !1) : this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
@@ -43809,7 +43844,10 @@ const N5 = [
43809
43844
  else
43810
43845
  this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
43811
43846
  },
43812
- activateEditingMode: function(n, e, t, i) {
43847
+ activatePointEditingMode: function(n, e, t) {
43848
+ this._editingZincObject = n, this.createData.faceIndex = -1, this.createData.editingIndex = e;
43849
+ },
43850
+ activateLineEditingMode: function(n, e, t, i) {
43813
43851
  this._editingZincObject = n, this.createData.faceIndex = e, this.createData.editingIndex = t, this.drawLine(i, void 0);
43814
43852
  },
43815
43853
  /**
@@ -43831,8 +43869,8 @@ const N5 = [
43831
43869
  if (n.identifiers.length > 0 && n.identifiers[0] && (i = n.identifiers[0].data.id ? n.identifiers[0].data.id : n.identifiers[0].data.group, n.identifiers[0].data.region && (r = n.identifiers[0].data.region)), n.eventType == 1)
43832
43870
  if (this.viewingMode === "Annotation") {
43833
43871
  this.tData.label = i, this.tData.region = r;
43834
- const s = U4(n);
43835
- if (this._editingZincObject = s, s) {
43872
+ const s = z4(n);
43873
+ if (this.createData.editingIndex === -1 && (this._editingZincObject = s), s) {
43836
43874
  const o = this._editingZincObject.region.getFullPath() + "/", a = this._editingZincObject.groupName;
43837
43875
  this.annotationFeature = xM(
43838
43876
  this._editingZincObject,
@@ -43854,13 +43892,13 @@ const N5 = [
43854
43892
  group: ""
43855
43893
  }), this.$emit("scaffold-selected", n.identifiers);
43856
43894
  else if (n.eventType == 2)
43857
- this.hideRegionTooltip(), this.$refs.scaffoldTreeControls && (e.length > 0 ? this.$refs.scaffoldTreeControls.updateHoverUI(t) : this.$refs.scaffoldTreeControls.removeHover(!0)), n.identifiers.length > 0 && n.identifiers[0] && n.identifiers[0].coords && (this.tData.active = !1, (this.viewingMode !== "Annotation" || !this.annotationSidebar) && (this.tData.visible = !0), this.tData.label = i, this.tData.region = r, this.tData.x = n.identifiers[0].coords.x, this.tData.y = n.identifiers[0].coords.y, this.createEditTemporaryLines(n.identifiers)), this.$emit("scaffold-highlighted", n.identifiers);
43895
+ this.hideRegionTooltip(), this.$refs.scaffoldTreeControls && (e.length > 0 ? this.$refs.scaffoldTreeControls.updateHoverUI(t) : this.$refs.scaffoldTreeControls.removeHover(!0)), n.identifiers.length > 0 && n.identifiers[0] && n.identifiers[0].coords && (this.tData.active = !1, (this.viewingMode !== "Annotation" || !this.annotationSidebar) && (this.tData.visible = !0), this.tData.label = i, this.tData.region = r, this.tData.x = n.identifiers[0].coords.x, this.tData.y = n.identifiers[0].coords.y, this.createEditTemporaryPrimitive(n.identifiers)), this.$emit("scaffold-highlighted", n.identifiers);
43858
43896
  else if (n.eventType == 3 && n.identifiers.length > 0 && n.identifiers[0]) {
43859
43897
  if (n.identifiers[0].coords) {
43860
43898
  const s = this.$refs.scaffoldContainer.$el.getBoundingClientRect();
43861
43899
  this.tData.x = n.identifiers[0].coords.x - s.left, this.tData.y = n.identifiers[0].coords.y - s.top;
43862
43900
  }
43863
- this.createEditTemporaryLines(n.identifiers);
43901
+ this.createEditTemporaryPrimitive(n.identifiers);
43864
43902
  }
43865
43903
  }
43866
43904
  },
@@ -43996,13 +44034,13 @@ const N5 = [
43996
44034
  this.$module.scene
43997
44035
  );
43998
44036
  if (s)
43999
- return s.inView ? (n.includes("Search Results for") ? this.tData.active = !1 : this.tData.active = !0, this.tData.visible = !0, this.tData.label = n, this.tData.x = s.position.x, this.tData.y = s.position.y, this.tData.region = t, this.$_liveCoordinatesUpdated && this.$module.zincRenderer.removePostRenderCallbackFunction(
44037
+ return s.inView ? (n.includes("Search Results for") ? this.tData.active = !1 : this.tData.active = !0, this.tData.visible = !0, this.tData.label = n, this.tData.x = s.position.x, this.tData.y = s.position.y, this.tData.region = t, this.$_liveCoordinatesUpdated && (this.$module.zincRenderer.removePostRenderCallbackFunction(
44000
44038
  this.$_liveCoordinatesUpdated
44001
- ), r && (this.$module.setupLiveCoordinates(e), this.$_liveCoordinatesUpdated = this.$module.zincRenderer.addPostRenderCallbackFunction(
44039
+ ), this.$_liveCoordinatesUpdated = void 0), r && (this.$module.setupLiveCoordinates(e), this.$_liveCoordinatesUpdated = this.$module.zincRenderer.addPostRenderCallbackFunction(
44002
44040
  this.liveUpdateTooltipPosition
44003
- ))) : (this.hideRegionTooltip(), i && (this.$module.scene.viewAll(), this.$_regionTooltipCallback && this.$module.zincRenderer.removePostRenderCallbackFunction(
44041
+ ))) : (this.hideRegionTooltip(), i && (this.$module.scene.viewAll(), this.$_regionTooltipCallback && (this.$module.zincRenderer.removePostRenderCallbackFunction(
44004
44042
  this.$_regionTooltipCallback
44005
- ), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
44043
+ ), this.$module.$_regionTooltipCallback = void 0), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
44006
44044
  this.displayTooltipOfObjectsCallback(
44007
44045
  n,
44008
44046
  e,
@@ -44060,7 +44098,7 @@ const N5 = [
44060
44098
  showRegionTooltipWithAnnotations: function(n, e, t) {
44061
44099
  if (this.$module.scene) {
44062
44100
  const i = _v(this.$module.scene, n);
44063
- if (i && i.objects.length > 0)
44101
+ if (this._editingZincObject && (i.regionPath = this._editingZincObject.region.getFullPath() + "/", i.label = this._editingZincObject.groupName), i && i.objects.length > 0)
44064
44102
  if (this.annotationSidebar) {
44065
44103
  const s = [{
44066
44104
  featureId: (this.tData.region ? this.tData.region + "/" : "") + this.tData.label,
@@ -44141,7 +44179,7 @@ const N5 = [
44141
44179
  hideRegionTooltip: function() {
44142
44180
  this.$_liveCoordinatesUpdated && (this.$module.zincRenderer.removePostRenderCallbackFunction(
44143
44181
  this.$_liveCoordinatesUpdated
44144
- ), this.$module.setupLiveCoordinates(void 0)), this.tData.active = !1, this.tData.visible = !1, this.tData.region = void 0;
44182
+ ), this.$module.setupLiveCoordinates(void 0), this.$_liveCoordinatesUpdated = void 0), this.tData.active = !1, this.tData.visible = !1, this.tData.region = void 0;
44145
44183
  },
44146
44184
  /**
44147
44185
  * Currently will apply to non-nerve object and object without anatomical id
@@ -44310,6 +44348,12 @@ const N5 = [
44310
44348
  e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
44311
44349
  }
44312
44350
  },
44351
+ calculateBoundingBox: function() {
44352
+ if (this.isReady) {
44353
+ const { centre: n, size: e } = this.$module.getCentreAndSize();
44354
+ this.boundingDims.centre = n, this.boundingDims.size = e;
44355
+ }
44356
+ },
44313
44357
  downloadErrorCallback: function() {
44314
44358
  return (n) => {
44315
44359
  this.$emit("on-error", n);
@@ -44327,9 +44371,7 @@ const N5 = [
44327
44371
  ["x-plane", "y-plane", "z-plane"],
44328
44372
  [16733525, 5635925, 5592575],
44329
44373
  0.5
44330
- );
44331
- const { centre: e, size: t } = this.$module.getCentreAndSize();
44332
- this.boundingDims.centre = e, this.boundingDims.size = t, this.isReady = !0, this.$nextTick(() => {
44374
+ ), this.calculateBoundingBox(), this.isReady = !0, this.$nextTick(() => {
44333
44375
  this.restoreSettings(n), this.$emit("on-ready");
44334
44376
  });
44335
44377
  };
@@ -44527,11 +44569,11 @@ const N5 = [
44527
44569
  this.setMarkerModeForObjectsWithName(n, e, "on");
44528
44570
  }
44529
44571
  }
44530
- }, V5 = { class: "primitive-controls-box" }, G5 = { class: "animation-data" }, H5 = { class: "purple" }, W5 = { class: "animation-data" }, j5 = { class: "purple" }, $5 = { class: "animation-data" }, Z5 = { class: "bottom-right-control control-layer" }, X5 = { class: "control-layer" }, Y5 = { style: { "margin-bottom": "2px" } }, J5 = {
44572
+ }, G5 = { class: "primitive-controls-box" }, H5 = { class: "animation-data" }, W5 = { class: "purple" }, j5 = { class: "animation-data" }, $5 = { class: "purple" }, Z5 = { class: "animation-data" }, X5 = { class: "bottom-right-control control-layer" }, Y5 = { class: "control-layer" }, J5 = { style: { "margin-bottom": "2px" } }, K5 = {
44531
44573
  key: 0,
44532
44574
  class: "viewing-mode-title"
44533
- }, K5 = ["onClick"], q5 = ["onClick"];
44534
- function Q5(n, e, t, i, r, s) {
44575
+ }, q5 = ["onClick"], Q5 = ["onClick"];
44576
+ function eU(n, e, t, i, r, s) {
44535
44577
  const o = Vn("map-svg-sprite-color"), a = CM, c = Vn("DrawToolbar"), l = u0, d = It, h = cu, f = EM, g = TM, p = Vn("map-svg-icon"), u = ti, y = Ui, v = xy, m = Qo, x = qo, w = by, A = Ko, M = ty, R = ny, L = My, _ = td;
44536
44578
  return Lt((ve(), Ve(L, {
44537
44579
  ref: "scaffoldContainer",
@@ -44658,7 +44700,7 @@ function Q5(n, e, t, i, r, s) {
44658
44700
  ]),
44659
44701
  _: 1
44660
44702
  }, 8, ["visible"]),
44661
- Ne("div", V5, [
44703
+ Ne("div", G5, [
44662
44704
  le(g, {
44663
44705
  class: "control-layer",
44664
44706
  ref: "primitiveControls",
@@ -44722,15 +44764,15 @@ function Q5(n, e, t, i, r, s) {
44722
44764
  default: de(() => [
44723
44765
  le(y, { class: "tab-content" }, {
44724
44766
  default: de(() => [
44725
- Ne("div", G5, [
44767
+ Ne("div", H5, [
44726
44768
  e[33] || (e[33] = rt(" Original duration: ")),
44727
- Ne("div", H5, gt(n.orginalDuration), 1)
44769
+ Ne("div", W5, gt(n.orginalDuration), 1)
44728
44770
  ]),
44729
- Ne("div", W5, [
44771
+ Ne("div", j5, [
44730
44772
  e[34] || (e[34] = rt(" Animation duration: ")),
44731
- Ne("div", j5, gt(n.animateDuration), 1)
44773
+ Ne("div", $5, gt(n.animateDuration), 1)
44732
44774
  ]),
44733
- Ne("div", $5, [
44775
+ Ne("div", Z5, [
44734
44776
  e[35] || (e[35] = rt(" Playback speed ")),
44735
44777
  le(x, {
44736
44778
  teleported: !0,
@@ -44763,7 +44805,7 @@ function Q5(n, e, t, i, r, s) {
44763
44805
  ]),
44764
44806
  _: 1
44765
44807
  }, 8, ["visible"])) : ke("", !0),
44766
- Ne("div", Z5, [
44808
+ Ne("div", X5, [
44767
44809
  le(h, {
44768
44810
  visible: n.hoverVisibilities[0].value,
44769
44811
  content: "Zoom in",
@@ -44877,7 +44919,7 @@ function Q5(n, e, t, i, r, s) {
44877
44919
  "virtual-triggering": ""
44878
44920
  }, {
44879
44921
  default: de(() => [
44880
- Ne("div", X5, [
44922
+ Ne("div", Y5, [
44881
44923
  le(y, { class: "backgroundText" }, {
44882
44924
  default: de(() => e[37] || (e[37] = [
44883
44925
  rt("Viewing Mode")
@@ -44886,15 +44928,15 @@ function Q5(n, e, t, i, r, s) {
44886
44928
  }),
44887
44929
  le(y, { class: "backgroundControl" }, {
44888
44930
  default: de(() => [
44889
- Ne("div", Y5, [
44931
+ Ne("div", J5, [
44890
44932
  (ve(!0), Ce(Ft, null, Gn(n.viewingModes, (F, S, T) => (ve(), Ce(Ft, { key: S }, [
44891
- S === n.viewingMode ? (ve(), Ce("span", J5, [
44933
+ S === n.viewingMode ? (ve(), Ce("span", K5, [
44892
44934
  Ne("b", null, gt(S), 1)
44893
44935
  ])) : (ve(), Ce("span", {
44894
44936
  key: 1,
44895
44937
  class: "viewing-mode-unselected",
44896
44938
  onClick: (E) => s.changeViewingMode(S)
44897
- }, gt(S), 9, K5))
44939
+ }, gt(S), 9, q5))
44898
44940
  ], 64))), 128))
44899
44941
  ]),
44900
44942
  le(y, { class: "viewing-mode-description" }, {
@@ -45000,7 +45042,7 @@ function Q5(n, e, t, i, r, s) {
45000
45042
  F == n.currentBackground ? "active" : ""
45001
45043
  ]),
45002
45044
  onClick: (S) => s.backgroundChangeCallback(F)
45003
- }, null, 10, q5))), 128))
45045
+ }, null, 10, Q5))), 128))
45004
45046
  ]),
45005
45047
  _: 1
45006
45048
  })
@@ -45074,7 +45116,7 @@ function Q5(n, e, t, i, r, s) {
45074
45116
  [_, n.loading]
45075
45117
  ]);
45076
45118
  }
45077
- const sU = /* @__PURE__ */ ki(k5, [["render", Q5], ["__scopeId", "data-v-75641bca"]]);
45119
+ const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-2a126135"]]);
45078
45120
  export {
45079
- sU as ScaffoldVuer
45121
+ oU as ScaffoldVuer
45080
45122
  };