@abi-software/scaffoldvuer 1.13.1-beta.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.
- package/dist/scaffoldvuer.js +203 -163
- package/dist/scaffoldvuer.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +2 -2
- package/src/components/ScaffoldOverlay.vue +5 -0
- package/src/components/ScaffoldVuer.vue +105 -26
- package/src/components/TextureSlidesControls.vue +1 -1
- package/src/scripts/OrgansRenderer.js +31 -31
- package/src/scripts/Utilities.js +24 -8
package/dist/scaffoldvuer.js
CHANGED
|
@@ -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-
|
|
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.
|
|
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.
|
|
32690
|
+
if (y && y.geometry) {
|
|
32691
32691
|
var v = y.geometry.attributes.position;
|
|
32692
|
-
if (
|
|
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),
|
|
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
|
-
|
|
37743
|
-
|
|
37744
|
-
|
|
37745
|
-
|
|
37746
|
-
|
|
37747
|
-
|
|
37748
|
-
|
|
37749
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
|
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(
|
|
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 =
|
|
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
|
|
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(
|
|
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
|
|
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:
|
|
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(
|
|
38847
|
+
const AM = /* @__PURE__ */ ki(J4, [["render", K4], ["__scopeId", "data-v-f65f296c"]]), q4 = {
|
|
38836
38848
|
name: "TransformationControls",
|
|
38837
38849
|
components: {
|
|
38838
38850
|
Col: bi,
|
|
@@ -38895,7 +38907,7 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
|
|
|
38895
38907
|
}
|
|
38896
38908
|
}
|
|
38897
38909
|
};
|
|
38898
|
-
function
|
|
38910
|
+
function Q4(n, e, t, i, r, s) {
|
|
38899
38911
|
const o = bi, a = ti, c = fr, l = Ui, d = dr, h = zi;
|
|
38900
38912
|
return ve(), Ve(h, { class: "transformation-container" }, {
|
|
38901
38913
|
default: de(() => [
|
|
@@ -39107,7 +39119,7 @@ function q4(n, e, t, i, r, s) {
|
|
|
39107
39119
|
_: 1
|
|
39108
39120
|
});
|
|
39109
39121
|
}
|
|
39110
|
-
const SM = /* @__PURE__ */ ki(
|
|
39122
|
+
const SM = /* @__PURE__ */ ki(q4, [["render", Q4], ["__scopeId", "data-v-caf40e87"]]), e5 = {
|
|
39111
39123
|
name: "OpacityControls",
|
|
39112
39124
|
components: {
|
|
39113
39125
|
Container: zi,
|
|
@@ -39134,16 +39146,16 @@ const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-caf40e8
|
|
|
39134
39146
|
return this.displayString = Math.floor(100 * n + 0.5) + "%", this.displayString;
|
|
39135
39147
|
}
|
|
39136
39148
|
}
|
|
39137
|
-
},
|
|
39138
|
-
function
|
|
39149
|
+
}, t5 = { class: "block" }, n5 = { class: "display" };
|
|
39150
|
+
function i5(n, e, t, i, r, s) {
|
|
39139
39151
|
const o = ti, a = zi;
|
|
39140
39152
|
return t.material ? (ve(), Ve(a, {
|
|
39141
39153
|
key: 0,
|
|
39142
39154
|
class: "opacity-container"
|
|
39143
39155
|
}, {
|
|
39144
39156
|
default: de(() => [
|
|
39145
|
-
Ne("div",
|
|
39146
|
-
Ne("span",
|
|
39157
|
+
Ne("div", t5, [
|
|
39158
|
+
Ne("span", n5, gt(n.displayString), 1),
|
|
39147
39159
|
le(o, {
|
|
39148
39160
|
modelValue: t.material.opacity,
|
|
39149
39161
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.material.opacity = c),
|
|
@@ -39159,7 +39171,7 @@ function n5(n, e, t, i, r, s) {
|
|
|
39159
39171
|
_: 1
|
|
39160
39172
|
})) : ke("", !0);
|
|
39161
39173
|
}
|
|
39162
|
-
const _M = /* @__PURE__ */ ki(
|
|
39174
|
+
const _M = /* @__PURE__ */ ki(e5, [["render", i5], ["__scopeId", "data-v-cbfc46a5"]]), r5 = {
|
|
39163
39175
|
name: "PrimitiveControls",
|
|
39164
39176
|
components: {
|
|
39165
39177
|
Collapse: oy,
|
|
@@ -39214,7 +39226,7 @@ const _M = /* @__PURE__ */ ki(Q4, [["render", n5], ["__scopeId", "data-v-cbfc46a
|
|
|
39214
39226
|
}
|
|
39215
39227
|
}
|
|
39216
39228
|
};
|
|
39217
|
-
function
|
|
39229
|
+
function s5(n, e, t, i, r, s) {
|
|
39218
39230
|
const o = _M, a = ay, c = SM, l = AM, d = wM, h = MM, f = oy, g = kr, p = It;
|
|
39219
39231
|
return Lt((ve(), Ce("div", {
|
|
39220
39232
|
class: Te(["primitive-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
|
|
@@ -39323,10 +39335,10 @@ function r5(n, e, t, i, r, s) {
|
|
|
39323
39335
|
[mn, s.hasValidPrimitive]
|
|
39324
39336
|
]);
|
|
39325
39337
|
}
|
|
39326
|
-
const TM = /* @__PURE__ */ ki(
|
|
39338
|
+
const TM = /* @__PURE__ */ ki(r5, [["render", s5], ["__scopeId", "data-v-83d11562"]]), o5 = (n, e) => {
|
|
39327
39339
|
const t = n.label.toUpperCase(), i = e.label.toUpperCase();
|
|
39328
39340
|
return t < i ? -1 : t > i ? 1 : 0;
|
|
39329
|
-
},
|
|
39341
|
+
}, a5 = {
|
|
39330
39342
|
name: "ScaffoldTreeControls",
|
|
39331
39343
|
components: {
|
|
39332
39344
|
ElIconArrowLeft: zr,
|
|
@@ -39377,7 +39389,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39377
39389
|
},
|
|
39378
39390
|
methods: {
|
|
39379
39391
|
addTreeItem: function(n, e, t) {
|
|
39380
|
-
n.some((i) => i.label === e.label) || (Object.assign(e, { activeColour: this.getColour(e) }), n.push(e), n.sort((i, r) =>
|
|
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(() => {
|
|
39381
39393
|
!this.$refs.treeControls.$refs.regionTree.getCheckedKeys().includes(e.id) && t.getVisibility() && this.$refs.treeControls.$refs.regionTree.setChecked(e.id, !0);
|
|
39382
39394
|
}));
|
|
39383
39395
|
},
|
|
@@ -39661,7 +39673,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39661
39673
|
},
|
|
39662
39674
|
getState: function() {
|
|
39663
39675
|
let n = this.$refs.treeControls.$refs.regionTree.getCheckedKeys();
|
|
39664
|
-
return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems:
|
|
39676
|
+
return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems: H4(
|
|
39665
39677
|
this.module.scene.getRootRegion(),
|
|
39666
39678
|
n
|
|
39667
39679
|
), version: "2.0" };
|
|
@@ -39684,13 +39696,13 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39684
39696
|
}
|
|
39685
39697
|
}
|
|
39686
39698
|
}
|
|
39687
|
-
},
|
|
39688
|
-
function
|
|
39699
|
+
}, l5 = { class: "traditional-container" };
|
|
39700
|
+
function c5(n, e, t, i, r, s) {
|
|
39689
39701
|
const o = Vn("TreeControls"), a = zr, c = It;
|
|
39690
39702
|
return ve(), Ce("div", {
|
|
39691
39703
|
class: Te(["tree-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
|
|
39692
39704
|
}, [
|
|
39693
|
-
Ne("div",
|
|
39705
|
+
Ne("div", l5, [
|
|
39694
39706
|
le(o, {
|
|
39695
39707
|
mapType: "scaffold",
|
|
39696
39708
|
title: "Regions",
|
|
@@ -39720,7 +39732,7 @@ function l5(n, e, t, i, r, s) {
|
|
|
39720
39732
|
], 2)
|
|
39721
39733
|
], 2);
|
|
39722
39734
|
}
|
|
39723
|
-
const EM = /* @__PURE__ */ ki(
|
|
39735
|
+
const EM = /* @__PURE__ */ ki(a5, [["render", c5], ["__scopeId", "data-v-5394b615"]]), Dd = iw("main", {
|
|
39724
39736
|
state: () => ({
|
|
39725
39737
|
userProfile: {
|
|
39726
39738
|
token: ""
|
|
@@ -39736,7 +39748,7 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
|
|
|
39736
39748
|
this.userProfile.token = n;
|
|
39737
39749
|
}
|
|
39738
39750
|
}
|
|
39739
|
-
}),
|
|
39751
|
+
}), u5 = {
|
|
39740
39752
|
name: "ScaffoldTooltip",
|
|
39741
39753
|
components: {
|
|
39742
39754
|
Col: bi,
|
|
@@ -39851,14 +39863,14 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
|
|
|
39851
39863
|
immediate: !0
|
|
39852
39864
|
}
|
|
39853
39865
|
}
|
|
39854
|
-
},
|
|
39866
|
+
}, h5 = { class: "tooltip-text" }, d5 = {
|
|
39855
39867
|
key: 0,
|
|
39856
39868
|
class: "tooltip-text"
|
|
39857
|
-
},
|
|
39869
|
+
}, f5 = {
|
|
39858
39870
|
key: 1,
|
|
39859
39871
|
class: "delete-container"
|
|
39860
39872
|
};
|
|
39861
|
-
function
|
|
39873
|
+
function p5(n, e, t, i, r, s) {
|
|
39862
39874
|
const o = Vn("CreateTooltipContent"), a = Vn("Tooltip"), c = bi, l = Ko, d = Ui, h = cu;
|
|
39863
39875
|
return ve(), Ce("div", {
|
|
39864
39876
|
style: Rt(s.position),
|
|
@@ -39876,8 +39888,8 @@ function f5(n, e, t, i, r, s) {
|
|
|
39876
39888
|
onHide: s.hideTriggered
|
|
39877
39889
|
}, {
|
|
39878
39890
|
default: de(() => [
|
|
39879
|
-
Ne("div",
|
|
39880
|
-
t.region ? (ve(), Ce("div",
|
|
39891
|
+
Ne("div", h5, gt(t.label), 1),
|
|
39892
|
+
t.region ? (ve(), Ce("div", d5, "Region: " + gt(t.region), 1)) : ke("", !0),
|
|
39881
39893
|
Lt(le(o, {
|
|
39882
39894
|
createData: t.createData,
|
|
39883
39895
|
onConfirmCreate: e[0] || (e[0] = (f) => n.$emit("confirm-create", f)),
|
|
@@ -39894,7 +39906,7 @@ function f5(n, e, t, i, r, s) {
|
|
|
39894
39906
|
}, null, 8, ["annotationEntry"]), [
|
|
39895
39907
|
[mn, t.annotationDisplay && !t.createData.toBeConfirmed]
|
|
39896
39908
|
]),
|
|
39897
|
-
t.createData.toBeDeleted ? (ve(), Ce("div",
|
|
39909
|
+
t.createData.toBeDeleted ? (ve(), Ce("div", f5, [
|
|
39898
39910
|
le(d, null, {
|
|
39899
39911
|
default: de(() => [
|
|
39900
39912
|
le(c, { span: 10 }, {
|
|
@@ -39941,9 +39953,9 @@ function f5(n, e, t, i, r, s) {
|
|
|
39941
39953
|
}, 8, ["visible", "onHide"])
|
|
39942
39954
|
], 4);
|
|
39943
39955
|
}
|
|
39944
|
-
const CM = /* @__PURE__ */ ki(
|
|
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) {
|
|
39945
39957
|
this.eventType = n, this.identifiers = e, this.zincObjects = t;
|
|
39946
|
-
},
|
|
39958
|
+
}, g5 = function(n, e, t) {
|
|
39947
39959
|
this.targetedID = [];
|
|
39948
39960
|
const i = n, r = e;
|
|
39949
39961
|
this.targetEventType = t;
|
|
@@ -39952,18 +39964,18 @@ const CM = /* @__PURE__ */ ki(c5, [["render", f5], ["__scopeId", "data-v-d3f76b7
|
|
|
39952
39964
|
return t;
|
|
39953
39965
|
}, this.notify = function(o, a, c, l) {
|
|
39954
39966
|
if (o !== i && (s.targetEventType === Qa.ALL || s.targetEventType === a)) {
|
|
39955
|
-
const d = new
|
|
39967
|
+
const d = new m5(a, c, l);
|
|
39956
39968
|
r(d);
|
|
39957
39969
|
}
|
|
39958
39970
|
};
|
|
39959
|
-
},
|
|
39971
|
+
}, v5 = function() {
|
|
39960
39972
|
const n = [];
|
|
39961
39973
|
this.publish = function(e, t, i, r) {
|
|
39962
39974
|
for (let s = 0; s < n.length; s++)
|
|
39963
39975
|
n[s].notify(e, t, i, r);
|
|
39964
39976
|
}, this.subscribe = function(e, t, i) {
|
|
39965
39977
|
if (typeof t == "function") {
|
|
39966
|
-
const r = new
|
|
39978
|
+
const r = new g5(e, t, i);
|
|
39967
39979
|
return n.push(r), r;
|
|
39968
39980
|
}
|
|
39969
39981
|
}, this.unsubscribe = function(e) {
|
|
@@ -40061,7 +40073,7 @@ const wc = (n, e, t) => {
|
|
|
40061
40073
|
o && o.isZincObject && s.material && s.material.emissive && s.material.emissive.setRGB(...e);
|
|
40062
40074
|
});
|
|
40063
40075
|
}
|
|
40064
|
-
},
|
|
40076
|
+
}, y5 = function() {
|
|
40065
40077
|
let n = [], e = [];
|
|
40066
40078
|
this.highlightColour = [1, 0, 0], this.selectColour = [0, 1, 0], this.originalColour = [0, 0, 0];
|
|
40067
40079
|
const t = [], i = [], r = this, s = function(c, l) {
|
|
@@ -40134,7 +40146,7 @@ const wc = (n, e, t) => {
|
|
|
40134
40146
|
}, this.reset = function() {
|
|
40135
40147
|
r.resetSelected(), r.resetHighlighted();
|
|
40136
40148
|
};
|
|
40137
|
-
}, gp = Rc.THREE,
|
|
40149
|
+
}, gp = Rc.THREE, b5 = function() {
|
|
40138
40150
|
const n = document.createElement("div");
|
|
40139
40151
|
let e;
|
|
40140
40152
|
if (n.style.height = "100%", Lv.isWebGLAvailable())
|
|
@@ -40145,7 +40157,7 @@ const wc = (n, e, t) => {
|
|
|
40145
40157
|
}
|
|
40146
40158
|
return { Zinc: Rc, renderer: e, container: n };
|
|
40147
40159
|
}, Kt = function() {
|
|
40148
|
-
Xn.call(this), this.scene = void 0, this.rendererContainer = void 0, this.displayArea = void 0, this.graphicsHighlight = new
|
|
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;
|
|
40149
40161
|
};
|
|
40150
40162
|
Kt.prototype = Object.create(Xn.prototype);
|
|
40151
40163
|
Kt.prototype.getIntersectedObject = function(n) {
|
|
@@ -40256,7 +40268,7 @@ Kt.prototype.getPlayRate = function(n) {
|
|
|
40256
40268
|
};
|
|
40257
40269
|
Kt.prototype.initialiseRenderer = function(n) {
|
|
40258
40270
|
if (this.zincRenderer === void 0 || this.rendererContainer === void 0) {
|
|
40259
|
-
let e =
|
|
40271
|
+
let e = b5();
|
|
40260
40272
|
this.Zinc = e.Zinc, this.zincRenderer = e.renderer, this.rendererContainer = e.container;
|
|
40261
40273
|
}
|
|
40262
40274
|
n && (this.displayArea = n, this.displayArea.appendChild(this.rendererContainer), this.zincRenderer && this.zincRenderer.animate());
|
|
@@ -40264,15 +40276,15 @@ Kt.prototype.initialiseRenderer = function(n) {
|
|
|
40264
40276
|
Kt.prototype.destroy = function() {
|
|
40265
40277
|
this.zincRenderer && (this.zincRenderer.dispose(), this.zincRenderer.getThreeJSRenderer().dispose(), this.zincRenderer = void 0), Xn.prototype.destroy.call(this);
|
|
40266
40278
|
};
|
|
40267
|
-
const
|
|
40279
|
+
const x5 = function() {
|
|
40268
40280
|
this.type = "anatomical", this.data = void 0, this.isAnnotation = !0;
|
|
40269
|
-
},
|
|
40281
|
+
}, M5 = function() {
|
|
40270
40282
|
this.currentName = "", this.currentSystem = "", this.currentPart = "", this.currentSpecies = "", this.metaURL = "", this.viewURL = "", this.timeVarying = !1, this.currentTime = 0;
|
|
40271
40283
|
}, LM = function(n) {
|
|
40272
40284
|
Kt.call(this);
|
|
40273
40285
|
const e = this;
|
|
40274
40286
|
let t;
|
|
40275
|
-
this.sceneData = new
|
|
40287
|
+
this.sceneData = new M5();
|
|
40276
40288
|
const i = new Array(), r = new Array(), s = new Array(), o = new Array();
|
|
40277
40289
|
let a, c;
|
|
40278
40290
|
const l = n;
|
|
@@ -40460,7 +40472,7 @@ const b5 = function() {
|
|
|
40460
40472
|
const x = function(S, T, E, C) {
|
|
40461
40473
|
for (let I = 0; I < s.length; I++)
|
|
40462
40474
|
s[I](C, e.scene.isTimeVarying());
|
|
40463
|
-
const P = new
|
|
40475
|
+
const P = new x5(), b = C.region.getFullPath();
|
|
40464
40476
|
P.data = {
|
|
40465
40477
|
species: e.sceneData.currentSpecies,
|
|
40466
40478
|
system: S,
|
|
@@ -40586,7 +40598,7 @@ var _t = function() {
|
|
|
40586
40598
|
return e;
|
|
40587
40599
|
}, _t.apply(this, arguments);
|
|
40588
40600
|
};
|
|
40589
|
-
function
|
|
40601
|
+
function w5(n, e, t, i) {
|
|
40590
40602
|
function r(s) {
|
|
40591
40603
|
return s instanceof t ? s : new t(function(o) {
|
|
40592
40604
|
o(s);
|
|
@@ -40613,7 +40625,7 @@ function M5(n, e, t, i) {
|
|
|
40613
40625
|
l((i = i.apply(n, [])).next());
|
|
40614
40626
|
});
|
|
40615
40627
|
}
|
|
40616
|
-
function
|
|
40628
|
+
function A5(n, e) {
|
|
40617
40629
|
var t = { label: 0, sent: function() {
|
|
40618
40630
|
if (s[0] & 1) throw s[1];
|
|
40619
40631
|
return s[1];
|
|
@@ -40700,7 +40712,7 @@ function Wt(n, e) {
|
|
|
40700
40712
|
}
|
|
40701
40713
|
return s;
|
|
40702
40714
|
}
|
|
40703
|
-
var
|
|
40715
|
+
var S5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
40704
40716
|
/** @class */
|
|
40705
40717
|
function() {
|
|
40706
40718
|
function n(e, t) {
|
|
@@ -40747,7 +40759,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40747
40759
|
}()
|
|
40748
40760
|
), uo = function(n) {
|
|
40749
40761
|
return n[n.length - 1];
|
|
40750
|
-
},
|
|
40762
|
+
}, _5 = function(n, e, t) {
|
|
40751
40763
|
var i = /* @__PURE__ */ new Map();
|
|
40752
40764
|
if (e === void 0)
|
|
40753
40765
|
return i;
|
|
@@ -40820,9 +40832,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40820
40832
|
}, n.prototype.clear = function() {
|
|
40821
40833
|
this._size = void 0, this._tree.clear();
|
|
40822
40834
|
}, n.prototype.delete = function(e) {
|
|
40823
|
-
return this._size = void 0,
|
|
40835
|
+
return this._size = void 0, T5(this._tree, e);
|
|
40824
40836
|
}, n.prototype.entries = function() {
|
|
40825
|
-
return new Ph(this,
|
|
40837
|
+
return new Ph(this, S5);
|
|
40826
40838
|
}, n.prototype.forEach = function(e) {
|
|
40827
40839
|
var t, i;
|
|
40828
40840
|
try {
|
|
@@ -40840,7 +40852,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40840
40852
|
}
|
|
40841
40853
|
}
|
|
40842
40854
|
}, n.prototype.fuzzyGet = function(e, t) {
|
|
40843
|
-
return
|
|
40855
|
+
return _5(this._tree, e, t);
|
|
40844
40856
|
}, n.prototype.get = function(e) {
|
|
40845
40857
|
var t = Nd(this._tree, e);
|
|
40846
40858
|
return t !== void 0 ? t.get(pn) : void 0;
|
|
@@ -40978,7 +40990,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40978
40990
|
return n.set(e.slice(s), g), g;
|
|
40979
40991
|
}
|
|
40980
40992
|
return n;
|
|
40981
|
-
},
|
|
40993
|
+
}, T5 = function(n, e) {
|
|
40982
40994
|
var t = Wt($c(n, e), 2), i = t[0], r = t[1];
|
|
40983
40995
|
if (i !== void 0) {
|
|
40984
40996
|
if (i.delete(pn), i.size === 0)
|
|
@@ -41005,14 +41017,14 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41005
41017
|
}
|
|
41006
41018
|
}, vp = function(n) {
|
|
41007
41019
|
return n[n.length - 1];
|
|
41008
|
-
}, _a, yp = "or", DM = "and",
|
|
41020
|
+
}, _a, yp = "or", DM = "and", E5 = "and_not", C5 = (
|
|
41009
41021
|
/** @class */
|
|
41010
41022
|
function() {
|
|
41011
41023
|
function n(e) {
|
|
41012
41024
|
if ((e == null ? void 0 : e.fields) == null)
|
|
41013
41025
|
throw new Error('MiniSearch: option "fields" must be provided');
|
|
41014
41026
|
var t = e.autoVacuum == null || e.autoVacuum === !0 ? Bh : e.autoVacuum;
|
|
41015
|
-
this._options = _t(_t(_t({}, Nh), e), { autoVacuum: t, searchOptions: _t(_t({}, Rv), e.searchOptions || {}), autoSuggestOptions: _t(_t({},
|
|
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);
|
|
41016
41028
|
}
|
|
41017
41029
|
return n.prototype.add = function(e) {
|
|
41018
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);
|
|
@@ -41225,9 +41237,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41225
41237
|
return i._enqueuedVacuumConditions = Ud, i.performVacuuming(e, r);
|
|
41226
41238
|
}), this._enqueuedVacuum)) : this.vacuumConditionsMet(t) === !1 ? Promise.resolve() : (this._currentVacuum = this.performVacuuming(e), this._currentVacuum);
|
|
41227
41239
|
}, n.prototype.performVacuuming = function(e, t) {
|
|
41228
|
-
return
|
|
41240
|
+
return w5(this, void 0, void 0, function() {
|
|
41229
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;
|
|
41230
|
-
return
|
|
41242
|
+
return A5(this, function(T) {
|
|
41231
41243
|
switch (T.label) {
|
|
41232
41244
|
case 0:
|
|
41233
41245
|
if (i = this._dirtCount, !this.vacuumConditionsMet(t)) return [3, 10];
|
|
@@ -41487,7 +41499,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41487
41499
|
return f(y);
|
|
41488
41500
|
}).filter(function(y) {
|
|
41489
41501
|
return !!y;
|
|
41490
|
-
}), p = g.map(
|
|
41502
|
+
}), p = g.map(P5(d)), u = p.map(function(y) {
|
|
41491
41503
|
return i.executeQuerySpec(y, d);
|
|
41492
41504
|
});
|
|
41493
41505
|
return this.combineResults(u, d.combineWith);
|
|
@@ -41563,7 +41575,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41563
41575
|
if (t === void 0 && (t = yp), e.length === 0)
|
|
41564
41576
|
return /* @__PURE__ */ new Map();
|
|
41565
41577
|
var i = t.toLowerCase();
|
|
41566
|
-
return e.reduce(
|
|
41578
|
+
return e.reduce(L5[i]) || /* @__PURE__ */ new Map();
|
|
41567
41579
|
}, n.prototype.toJSON = function() {
|
|
41568
41580
|
var e, t, i, r, s = [];
|
|
41569
41581
|
try {
|
|
@@ -41624,9 +41636,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41624
41636
|
}
|
|
41625
41637
|
var _ = o ? o(this._documentIds.get(L), t, this._storedFields.get(L)) : 1;
|
|
41626
41638
|
if (_) {
|
|
41627
|
-
var F = x.get(L), S = this._fieldLength.get(L)[m], T =
|
|
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);
|
|
41628
41640
|
if (C) {
|
|
41629
|
-
C.score += E,
|
|
41641
|
+
C.score += E, O5(C.terms, e);
|
|
41630
41642
|
var P = Dh(C.match, t);
|
|
41631
41643
|
P ? P.push(y) : C.match[t] = [y];
|
|
41632
41644
|
} else
|
|
@@ -41734,7 +41746,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41734
41746
|
}()
|
|
41735
41747
|
), Dh = function(n, e) {
|
|
41736
41748
|
return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
|
|
41737
|
-
},
|
|
41749
|
+
}, L5 = (_a = {}, _a[yp] = function(n, e) {
|
|
41738
41750
|
var t, i;
|
|
41739
41751
|
try {
|
|
41740
41752
|
for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
|
|
@@ -41780,7 +41792,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41780
41792
|
}
|
|
41781
41793
|
}
|
|
41782
41794
|
return r;
|
|
41783
|
-
}, _a[
|
|
41795
|
+
}, _a[E5] = function(n, e) {
|
|
41784
41796
|
var t, i;
|
|
41785
41797
|
try {
|
|
41786
41798
|
for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
|
|
@@ -41797,10 +41809,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41797
41809
|
}
|
|
41798
41810
|
}
|
|
41799
41811
|
return n;
|
|
41800
|
-
}, _a),
|
|
41812
|
+
}, _a), R5 = { k: 1.2, b: 0.7, d: 0.5 }, F5 = function(n, e, t, i, r, s) {
|
|
41801
41813
|
var o = s.k, a = s.b, c = s.d, l = Math.log(1 + (t - e + 0.5) / (e + 0.5));
|
|
41802
41814
|
return l * (c + n * (o + 1) / (n + o * (1 - a + a * i / r)));
|
|
41803
|
-
},
|
|
41815
|
+
}, P5 = function(n) {
|
|
41804
41816
|
return function(e, t, i) {
|
|
41805
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;
|
|
41806
41818
|
return { term: e, fuzzy: r, prefix: s };
|
|
@@ -41811,7 +41823,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41811
41823
|
return n[e];
|
|
41812
41824
|
},
|
|
41813
41825
|
tokenize: function(n) {
|
|
41814
|
-
return n.split(
|
|
41826
|
+
return n.split(D5);
|
|
41815
41827
|
},
|
|
41816
41828
|
processTerm: function(n) {
|
|
41817
41829
|
return n.toLowerCase();
|
|
@@ -41830,13 +41842,13 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41830
41842
|
maxFuzzy: 6,
|
|
41831
41843
|
boost: {},
|
|
41832
41844
|
weights: { fuzzy: 0.45, prefix: 0.375 },
|
|
41833
|
-
bm25:
|
|
41834
|
-
},
|
|
41845
|
+
bm25: R5
|
|
41846
|
+
}, I5 = {
|
|
41835
41847
|
combineWith: DM,
|
|
41836
41848
|
prefix: function(n, e, t) {
|
|
41837
41849
|
return e === t.length - 1;
|
|
41838
41850
|
}
|
|
41839
|
-
}, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud),
|
|
41851
|
+
}, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud), O5 = function(n, e) {
|
|
41840
41852
|
n.includes(e) || n.push(e);
|
|
41841
41853
|
}, Fv = function(n, e) {
|
|
41842
41854
|
var t, i;
|
|
@@ -41876,10 +41888,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41876
41888
|
}
|
|
41877
41889
|
}
|
|
41878
41890
|
return i;
|
|
41879
|
-
},
|
|
41880
|
-
class
|
|
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 {
|
|
41881
41893
|
constructor() {
|
|
41882
|
-
this._searchEngine = new
|
|
41894
|
+
this._searchEngine = new C5({
|
|
41883
41895
|
fields: ["path", "name"],
|
|
41884
41896
|
storeFields: ["path"],
|
|
41885
41897
|
tokenize: (e, t) => e.split(/[\s/]+/)
|
|
@@ -41927,7 +41939,7 @@ class D5 {
|
|
|
41927
41939
|
regionPath: void 0,
|
|
41928
41940
|
label: 'Search Results for "'
|
|
41929
41941
|
};
|
|
41930
|
-
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 =
|
|
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;
|
|
41931
41943
|
}
|
|
41932
41944
|
search(e) {
|
|
41933
41945
|
let t;
|
|
@@ -41949,7 +41961,7 @@ class D5 {
|
|
|
41949
41961
|
return Array.isArray(e) ? t = this.searchTerms(e) : t = this.search(e), this.processResults(t, e);
|
|
41950
41962
|
}
|
|
41951
41963
|
}
|
|
41952
|
-
const
|
|
41964
|
+
const B5 = [
|
|
41953
41965
|
{
|
|
41954
41966
|
id: 0,
|
|
41955
41967
|
nerve_id: "ILX:0793723",
|
|
@@ -42762,14 +42774,14 @@ const N5 = [
|
|
|
42762
42774
|
"FMA subclasses (in human nerves)": ["FMA:6892", "FMA:6893"],
|
|
42763
42775
|
"subclass labels": ["Right T9 grey ramus communicans", "Left T9 grey ramus communicans"]
|
|
42764
42776
|
}
|
|
42765
|
-
],
|
|
42777
|
+
], U5 = () => {
|
|
42766
42778
|
const n = {};
|
|
42767
|
-
return
|
|
42779
|
+
return B5.forEach((e) => {
|
|
42768
42780
|
e.nerve_id && e.label !== "nerve" && e["subclass labels"].forEach((t) => {
|
|
42769
42781
|
t in n || (n[t.toLowerCase()] = e.nerve_id);
|
|
42770
42782
|
});
|
|
42771
42783
|
}), n;
|
|
42772
|
-
},
|
|
42784
|
+
}, z5 = [
|
|
42773
42785
|
{
|
|
42774
42786
|
label: "urinary bladder",
|
|
42775
42787
|
anatomicalId: "UBERON:0001255"
|
|
@@ -42806,13 +42818,13 @@ const N5 = [
|
|
|
42806
42818
|
label: "lung",
|
|
42807
42819
|
anatomicalId: "UBERON:0002048"
|
|
42808
42820
|
}
|
|
42809
|
-
],
|
|
42821
|
+
], k5 = () => {
|
|
42810
42822
|
const n = {};
|
|
42811
|
-
return
|
|
42823
|
+
return z5.forEach((e) => {
|
|
42812
42824
|
const t = e.label.toLowerCase();
|
|
42813
42825
|
t in n || (n[t.toLowerCase()] = e.anatomicalId);
|
|
42814
42826
|
}), n;
|
|
42815
|
-
}, Ov =
|
|
42827
|
+
}, Ov = U5(), Dv = k5(), V5 = {
|
|
42816
42828
|
name: "ScaffoldVuer",
|
|
42817
42829
|
components: {
|
|
42818
42830
|
Button: Ko,
|
|
@@ -43344,11 +43356,11 @@ const N5 = [
|
|
|
43344
43356
|
}
|
|
43345
43357
|
},
|
|
43346
43358
|
beforeCreate: function() {
|
|
43347
|
-
this.$module = new LM(), this.selectedObjects = [], this.hoveredObjects = [], this.currentBackground = "white", this._currentURL = void 0, this.availableBackground = ["white", "black", "lightskyblue"], this.$_searchIndex = new
|
|
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();
|
|
43348
43360
|
},
|
|
43349
43361
|
mounted: function() {
|
|
43350
43362
|
this.openMapRef = En(this.$refs.openMapRef), this.backgroundIconRef = En(this.$refs.backgroundIconRef), this.$refs.scaffoldTreeControls.setModule(this.$module);
|
|
43351
|
-
let n = new
|
|
43363
|
+
let n = new v5();
|
|
43352
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(
|
|
43353
43365
|
this.$refs.scaffoldContainer.$el
|
|
43354
43366
|
), this.helpTextWait = [], this.helpTextWait.length = this.hoverVisibilities.length, this.defaultRate = this.$module.getPlayRate(), this.$module.zincRenderer.addPreRenderCallbackFunction(() => {
|
|
@@ -43433,11 +43445,7 @@ const N5 = [
|
|
|
43433
43445
|
for (let o = 0; o < i.length; o++)
|
|
43434
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;
|
|
43435
43447
|
}
|
|
43436
|
-
|
|
43437
|
-
const { centre: s, size: o } = this.$module.getCentreAndSize();
|
|
43438
|
-
this.boundingDims.centre = s, this.boundingDims.size = o;
|
|
43439
|
-
}
|
|
43440
|
-
this.$emit("zinc-object-added", n);
|
|
43448
|
+
this.calculateBoundingBox(), this.$emit("zinc-object-added", n);
|
|
43441
43449
|
},
|
|
43442
43450
|
/**
|
|
43443
43451
|
* Internal only.
|
|
@@ -43533,7 +43541,9 @@ const N5 = [
|
|
|
43533
43541
|
if (this.existDrawnFeatures = An(this.existDrawnFeatures.filter((s) => s.id !== r.item.id)), this.existDrawnFeatures.push(r.feature), this.offlineAnnotationEnabled) {
|
|
43534
43542
|
r.group = e;
|
|
43535
43543
|
let s = n;
|
|
43536
|
-
s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || []
|
|
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));
|
|
43537
43547
|
}
|
|
43538
43548
|
this.$emit("userPrimitivesUpdated", { region: n, group: e, zincObject: t });
|
|
43539
43549
|
},
|
|
@@ -43573,12 +43583,13 @@ const N5 = [
|
|
|
43573
43583
|
60962
|
|
43574
43584
|
);
|
|
43575
43585
|
else if (n.editingIndex > -1 && this._editingZincObject) {
|
|
43576
|
-
|
|
43577
|
-
|
|
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],
|
|
43578
43589
|
n.editingIndex
|
|
43579
43590
|
);
|
|
43580
|
-
const
|
|
43581
|
-
this.addAndEditAnnotations(
|
|
43591
|
+
const i = this._editingZincObject.region.getFullPath() + "/", r = this._editingZincObject.groupName;
|
|
43592
|
+
this.addAndEditAnnotations(i, r, this._editingZincObject, "Position Updated");
|
|
43582
43593
|
}
|
|
43583
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));
|
|
43584
43595
|
}
|
|
@@ -43589,7 +43600,7 @@ const N5 = [
|
|
|
43589
43600
|
* Cancel create workflows. Reset all relevant UIs and data.
|
|
43590
43601
|
*/
|
|
43591
43602
|
cancelCreate: function() {
|
|
43592
|
-
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");
|
|
43593
43604
|
},
|
|
43594
43605
|
/**
|
|
43595
43606
|
* Internal only.
|
|
@@ -43645,7 +43656,7 @@ const N5 = [
|
|
|
43645
43656
|
fitWindow: function() {
|
|
43646
43657
|
if (this.$module.scene) {
|
|
43647
43658
|
let n = !1;
|
|
43648
|
-
this._boundingBoxGeo && (n = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (
|
|
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));
|
|
43649
43660
|
}
|
|
43650
43661
|
},
|
|
43651
43662
|
/**
|
|
@@ -43747,9 +43758,21 @@ const N5 = [
|
|
|
43747
43758
|
this.setURLFinishCallback({ viewURL: n })
|
|
43748
43759
|
);
|
|
43749
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
|
+
},
|
|
43750
43773
|
createEditTemporaryLines: function(n) {
|
|
43751
43774
|
const e = n[0].extraData.worldCoords;
|
|
43752
|
-
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)
|
|
43753
43776
|
if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempLine) {
|
|
43754
43777
|
const t = this._tempLine.geometry.getAttribute("position");
|
|
43755
43778
|
t.setXYZ(1, e[0], e[1], e[2]), t.needsUpdate = !0;
|
|
@@ -43759,11 +43782,14 @@ const N5 = [
|
|
|
43759
43782
|
65535
|
|
43760
43783
|
);
|
|
43761
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
|
+
},
|
|
43762
43788
|
draw: function(n) {
|
|
43763
|
-
n && n.length > 0 && n[0].data.group && n[0].extraData.worldCoords && (this.createData.shape === "
|
|
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));
|
|
43764
43790
|
},
|
|
43765
43791
|
drawPoint: function(n, e) {
|
|
43766
|
-
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)));
|
|
43767
43793
|
},
|
|
43768
43794
|
drawLine: function(n, e) {
|
|
43769
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)));
|
|
@@ -43789,21 +43815,28 @@ const N5 = [
|
|
|
43789
43815
|
this.isTransitioning = !0, n.enableAutoTumble(), n.autoTumble([1, 0], Math.PI, !0), setTimeout(this.stopFreeSpin, 4e3);
|
|
43790
43816
|
}
|
|
43791
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
|
+
},
|
|
43792
43831
|
activateAnnotationMode: function(n, e) {
|
|
43793
43832
|
if (this.authorisedUser || this.offlineAnnotationEnabled)
|
|
43794
43833
|
if (this.createData.toBeDeleted = !1, this.createData.shape !== "" || this.createData.editingIndex > -1)
|
|
43795
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));
|
|
43796
43835
|
else {
|
|
43797
|
-
if (this.activeDrawMode === "Edit")
|
|
43798
|
-
|
|
43799
|
-
|
|
43800
|
-
|
|
43801
|
-
t.faceIndex,
|
|
43802
|
-
t.vertexIndex,
|
|
43803
|
-
t.point
|
|
43804
|
-
);
|
|
43805
|
-
} else if (this.activeDrawMode === "Delete") {
|
|
43806
|
-
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);
|
|
43807
43840
|
t && (this.createData.toBeDeleted = !0, this._editingZincObject = t);
|
|
43808
43841
|
}
|
|
43809
43842
|
this.activeDrawMode !== "Point" && this.activeDrawMode !== "LineString" ? this.showRegionTooltipWithAnnotations(e.identifiers, !0, !1) : this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
|
|
@@ -43811,7 +43844,10 @@ const N5 = [
|
|
|
43811
43844
|
else
|
|
43812
43845
|
this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
|
|
43813
43846
|
},
|
|
43814
|
-
|
|
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) {
|
|
43815
43851
|
this._editingZincObject = n, this.createData.faceIndex = e, this.createData.editingIndex = t, this.drawLine(i, void 0);
|
|
43816
43852
|
},
|
|
43817
43853
|
/**
|
|
@@ -43833,8 +43869,8 @@ const N5 = [
|
|
|
43833
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)
|
|
43834
43870
|
if (this.viewingMode === "Annotation") {
|
|
43835
43871
|
this.tData.label = i, this.tData.region = r;
|
|
43836
|
-
const s =
|
|
43837
|
-
if (this._editingZincObject = s, s) {
|
|
43872
|
+
const s = z4(n);
|
|
43873
|
+
if (this.createData.editingIndex === -1 && (this._editingZincObject = s), s) {
|
|
43838
43874
|
const o = this._editingZincObject.region.getFullPath() + "/", a = this._editingZincObject.groupName;
|
|
43839
43875
|
this.annotationFeature = xM(
|
|
43840
43876
|
this._editingZincObject,
|
|
@@ -43856,13 +43892,13 @@ const N5 = [
|
|
|
43856
43892
|
group: ""
|
|
43857
43893
|
}), this.$emit("scaffold-selected", n.identifiers);
|
|
43858
43894
|
else if (n.eventType == 2)
|
|
43859
|
-
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.
|
|
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);
|
|
43860
43896
|
else if (n.eventType == 3 && n.identifiers.length > 0 && n.identifiers[0]) {
|
|
43861
43897
|
if (n.identifiers[0].coords) {
|
|
43862
43898
|
const s = this.$refs.scaffoldContainer.$el.getBoundingClientRect();
|
|
43863
43899
|
this.tData.x = n.identifiers[0].coords.x - s.left, this.tData.y = n.identifiers[0].coords.y - s.top;
|
|
43864
43900
|
}
|
|
43865
|
-
this.
|
|
43901
|
+
this.createEditTemporaryPrimitive(n.identifiers);
|
|
43866
43902
|
}
|
|
43867
43903
|
}
|
|
43868
43904
|
},
|
|
@@ -43998,13 +44034,13 @@ const N5 = [
|
|
|
43998
44034
|
this.$module.scene
|
|
43999
44035
|
);
|
|
44000
44036
|
if (s)
|
|
44001
|
-
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(
|
|
44002
44038
|
this.$_liveCoordinatesUpdated
|
|
44003
|
-
), 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(
|
|
44004
44040
|
this.liveUpdateTooltipPosition
|
|
44005
|
-
))) : (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(
|
|
44006
44042
|
this.$_regionTooltipCallback
|
|
44007
|
-
), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44043
|
+
), this.$module.$_regionTooltipCallback = void 0), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44008
44044
|
this.displayTooltipOfObjectsCallback(
|
|
44009
44045
|
n,
|
|
44010
44046
|
e,
|
|
@@ -44062,7 +44098,7 @@ const N5 = [
|
|
|
44062
44098
|
showRegionTooltipWithAnnotations: function(n, e, t) {
|
|
44063
44099
|
if (this.$module.scene) {
|
|
44064
44100
|
const i = _v(this.$module.scene, n);
|
|
44065
|
-
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)
|
|
44066
44102
|
if (this.annotationSidebar) {
|
|
44067
44103
|
const s = [{
|
|
44068
44104
|
featureId: (this.tData.region ? this.tData.region + "/" : "") + this.tData.label,
|
|
@@ -44143,7 +44179,7 @@ const N5 = [
|
|
|
44143
44179
|
hideRegionTooltip: function() {
|
|
44144
44180
|
this.$_liveCoordinatesUpdated && (this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
44145
44181
|
this.$_liveCoordinatesUpdated
|
|
44146
|
-
), 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;
|
|
44147
44183
|
},
|
|
44148
44184
|
/**
|
|
44149
44185
|
* Currently will apply to non-nerve object and object without anatomical id
|
|
@@ -44312,6 +44348,12 @@ const N5 = [
|
|
|
44312
44348
|
e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
|
|
44313
44349
|
}
|
|
44314
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
|
+
},
|
|
44315
44357
|
downloadErrorCallback: function() {
|
|
44316
44358
|
return (n) => {
|
|
44317
44359
|
this.$emit("on-error", n);
|
|
@@ -44329,9 +44371,7 @@ const N5 = [
|
|
|
44329
44371
|
["x-plane", "y-plane", "z-plane"],
|
|
44330
44372
|
[16733525, 5635925, 5592575],
|
|
44331
44373
|
0.5
|
|
44332
|
-
)
|
|
44333
|
-
const { centre: e, size: t } = this.$module.getCentreAndSize();
|
|
44334
|
-
this.boundingDims.centre = e, this.boundingDims.size = t, this.isReady = !0, this.$nextTick(() => {
|
|
44374
|
+
), this.calculateBoundingBox(), this.isReady = !0, this.$nextTick(() => {
|
|
44335
44375
|
this.restoreSettings(n), this.$emit("on-ready");
|
|
44336
44376
|
});
|
|
44337
44377
|
};
|
|
@@ -44529,11 +44569,11 @@ const N5 = [
|
|
|
44529
44569
|
this.setMarkerModeForObjectsWithName(n, e, "on");
|
|
44530
44570
|
}
|
|
44531
44571
|
}
|
|
44532
|
-
},
|
|
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 = {
|
|
44533
44573
|
key: 0,
|
|
44534
44574
|
class: "viewing-mode-title"
|
|
44535
|
-
},
|
|
44536
|
-
function
|
|
44575
|
+
}, q5 = ["onClick"], Q5 = ["onClick"];
|
|
44576
|
+
function eU(n, e, t, i, r, s) {
|
|
44537
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;
|
|
44538
44578
|
return Lt((ve(), Ve(L, {
|
|
44539
44579
|
ref: "scaffoldContainer",
|
|
@@ -44660,7 +44700,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44660
44700
|
]),
|
|
44661
44701
|
_: 1
|
|
44662
44702
|
}, 8, ["visible"]),
|
|
44663
|
-
Ne("div",
|
|
44703
|
+
Ne("div", G5, [
|
|
44664
44704
|
le(g, {
|
|
44665
44705
|
class: "control-layer",
|
|
44666
44706
|
ref: "primitiveControls",
|
|
@@ -44724,15 +44764,15 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44724
44764
|
default: de(() => [
|
|
44725
44765
|
le(y, { class: "tab-content" }, {
|
|
44726
44766
|
default: de(() => [
|
|
44727
|
-
Ne("div",
|
|
44767
|
+
Ne("div", H5, [
|
|
44728
44768
|
e[33] || (e[33] = rt(" Original duration: ")),
|
|
44729
|
-
Ne("div",
|
|
44769
|
+
Ne("div", W5, gt(n.orginalDuration), 1)
|
|
44730
44770
|
]),
|
|
44731
|
-
Ne("div",
|
|
44771
|
+
Ne("div", j5, [
|
|
44732
44772
|
e[34] || (e[34] = rt(" Animation duration: ")),
|
|
44733
|
-
Ne("div",
|
|
44773
|
+
Ne("div", $5, gt(n.animateDuration), 1)
|
|
44734
44774
|
]),
|
|
44735
|
-
Ne("div",
|
|
44775
|
+
Ne("div", Z5, [
|
|
44736
44776
|
e[35] || (e[35] = rt(" Playback speed ")),
|
|
44737
44777
|
le(x, {
|
|
44738
44778
|
teleported: !0,
|
|
@@ -44765,7 +44805,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44765
44805
|
]),
|
|
44766
44806
|
_: 1
|
|
44767
44807
|
}, 8, ["visible"])) : ke("", !0),
|
|
44768
|
-
Ne("div",
|
|
44808
|
+
Ne("div", X5, [
|
|
44769
44809
|
le(h, {
|
|
44770
44810
|
visible: n.hoverVisibilities[0].value,
|
|
44771
44811
|
content: "Zoom in",
|
|
@@ -44879,7 +44919,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44879
44919
|
"virtual-triggering": ""
|
|
44880
44920
|
}, {
|
|
44881
44921
|
default: de(() => [
|
|
44882
|
-
Ne("div",
|
|
44922
|
+
Ne("div", Y5, [
|
|
44883
44923
|
le(y, { class: "backgroundText" }, {
|
|
44884
44924
|
default: de(() => e[37] || (e[37] = [
|
|
44885
44925
|
rt("Viewing Mode")
|
|
@@ -44888,15 +44928,15 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44888
44928
|
}),
|
|
44889
44929
|
le(y, { class: "backgroundControl" }, {
|
|
44890
44930
|
default: de(() => [
|
|
44891
|
-
Ne("div",
|
|
44931
|
+
Ne("div", J5, [
|
|
44892
44932
|
(ve(!0), Ce(Ft, null, Gn(n.viewingModes, (F, S, T) => (ve(), Ce(Ft, { key: S }, [
|
|
44893
|
-
S === n.viewingMode ? (ve(), Ce("span",
|
|
44933
|
+
S === n.viewingMode ? (ve(), Ce("span", K5, [
|
|
44894
44934
|
Ne("b", null, gt(S), 1)
|
|
44895
44935
|
])) : (ve(), Ce("span", {
|
|
44896
44936
|
key: 1,
|
|
44897
44937
|
class: "viewing-mode-unselected",
|
|
44898
44938
|
onClick: (E) => s.changeViewingMode(S)
|
|
44899
|
-
}, gt(S), 9,
|
|
44939
|
+
}, gt(S), 9, q5))
|
|
44900
44940
|
], 64))), 128))
|
|
44901
44941
|
]),
|
|
44902
44942
|
le(y, { class: "viewing-mode-description" }, {
|
|
@@ -45002,7 +45042,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
45002
45042
|
F == n.currentBackground ? "active" : ""
|
|
45003
45043
|
]),
|
|
45004
45044
|
onClick: (S) => s.backgroundChangeCallback(F)
|
|
45005
|
-
}, null, 10,
|
|
45045
|
+
}, null, 10, Q5))), 128))
|
|
45006
45046
|
]),
|
|
45007
45047
|
_: 1
|
|
45008
45048
|
})
|
|
@@ -45076,7 +45116,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
45076
45116
|
[_, n.loading]
|
|
45077
45117
|
]);
|
|
45078
45118
|
}
|
|
45079
|
-
const
|
|
45119
|
+
const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-2a126135"]]);
|
|
45080
45120
|
export {
|
|
45081
|
-
|
|
45121
|
+
oU as ScaffoldVuer
|
|
45082
45122
|
};
|