@abi-software/scaffoldvuer 1.13.1-beta.0 → 1.13.1-beta.2
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 +214 -170
- package/dist/scaffoldvuer.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/App.vue +2 -2
- package/src/components/ScaffoldOverlay.vue +5 -0
- package/src/components/ScaffoldVuer.vue +110 -28
- 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.4","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) {
|
|
@@ -33609,16 +33612,19 @@ const D4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
33609
33612
|
};
|
|
33610
33613
|
this.addPoints = (v, m, x) => {
|
|
33611
33614
|
if (v && 0 < v.length) {
|
|
33612
|
-
var w = this.drawRange
|
|
33615
|
+
var w = this.drawRange;
|
|
33616
|
+
w === -1 && (w = 0);
|
|
33617
|
+
var A = this.addVertices(v), M = this.getMorph();
|
|
33613
33618
|
if (!M) {
|
|
33614
33619
|
var R = new l.PointsMaterial({ alphaTest: 0.5, size: 10, color: x, sizeAttenuation: !1 });
|
|
33615
33620
|
A.colorsNeedUpdate = !0, this.createMesh(A, R, { localTimeEnabled: !1, localMorphColour: !1 });
|
|
33616
33621
|
}
|
|
33617
33622
|
var L = w + v.length, _ = 0;
|
|
33618
|
-
if (Array.isArray(m) && m.length === v.length || typeof m == "string")
|
|
33619
|
-
|
|
33620
|
-
|
|
33621
|
-
|
|
33623
|
+
if (Array.isArray(m) && m.length === v.length || typeof m == "string")
|
|
33624
|
+
for (u.length, w; w + _ < L; ) {
|
|
33625
|
+
var F = typeof m == "string" ? m : m[_];
|
|
33626
|
+
y(w + _, v[_], F, this._lod._material.color), _++;
|
|
33627
|
+
}
|
|
33622
33628
|
this.region && (this.region.pickableUpdateRequired = !0);
|
|
33623
33629
|
}
|
|
33624
33630
|
}, this.setColourHex = function(v) {
|
|
@@ -37739,32 +37745,41 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37739
37745
|
const t = n[0] - e[0], i = n[1] - e[1], r = n[2] - e[2];
|
|
37740
37746
|
return Math.sqrt(t * t + i * i + r * r);
|
|
37741
37747
|
}, 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
|
-
}
|
|
37748
|
+
var t;
|
|
37749
|
+
const e = (t = n[0].data) == null ? void 0 : t.zincObject;
|
|
37750
|
+
if (e && e.isEditable && e.isPointset) {
|
|
37751
|
+
const i = n[0].extraData.intersected;
|
|
37752
|
+
if (i && i.index > -1) {
|
|
37753
|
+
const r = e.getVerticesByIndex(i.index);
|
|
37754
|
+
if (r)
|
|
37755
|
+
return { zincObject: e, index: i.index, point: r };
|
|
37754
37756
|
}
|
|
37755
37757
|
}
|
|
37756
37758
|
}, U4 = (n) => {
|
|
37759
|
+
var t;
|
|
37760
|
+
const e = (t = n[0].data) == null ? void 0 : t.zincObject;
|
|
37761
|
+
if (e && e.isEditable && e.isLines2) {
|
|
37762
|
+
const i = n[0].extraData.intersected;
|
|
37763
|
+
if (i && i.faceIndex > -1) {
|
|
37764
|
+
const r = e.getVerticesByFaceIndex(i.faceIndex), s = n[0].extraData.intersected.pointOnLine;
|
|
37765
|
+
if (r.length > 1) {
|
|
37766
|
+
const o = Id(r[0], [s.x, s.y, s.z]), a = Id(r[1], [s.x, s.y, s.z]);
|
|
37767
|
+
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] };
|
|
37768
|
+
}
|
|
37769
|
+
}
|
|
37770
|
+
}
|
|
37771
|
+
}, z4 = (n) => {
|
|
37757
37772
|
const e = n.zincObjects;
|
|
37758
37773
|
if (e.length > 0 && e[0])
|
|
37759
37774
|
return e[0];
|
|
37760
|
-
},
|
|
37775
|
+
}, k4 = (n) => {
|
|
37761
37776
|
const e = n.zincObjects;
|
|
37762
37777
|
if (e.length > 0 && e[0]) {
|
|
37763
37778
|
const t = e[0];
|
|
37764
37779
|
if (t.isEditable)
|
|
37765
37780
|
return t;
|
|
37766
37781
|
}
|
|
37767
|
-
},
|
|
37782
|
+
}, V4 = (n, e, t) => {
|
|
37768
37783
|
if (n != null && n.isEditable && (n != null && n.isPointset)) {
|
|
37769
37784
|
let i = !1;
|
|
37770
37785
|
for (let r = 0; r < 3 && !i; r++)
|
|
@@ -37792,7 +37807,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37792
37807
|
return n.editVertices(r, e * 2), n.boundingBoxUpdateRequired = !0, !0;
|
|
37793
37808
|
}
|
|
37794
37809
|
return !1;
|
|
37795
|
-
},
|
|
37810
|
+
}, G4 = (n, e) => {
|
|
37796
37811
|
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
37812
|
i.addVectors(t.min, t.max).multiplyScalar(0.5);
|
|
37798
37813
|
const s = r.getAttribute("position"), o = s.count, a = [];
|
|
@@ -37822,7 +37837,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37822
37837
|
const i = n.findIndex((s) => s.uuid === e);
|
|
37823
37838
|
let r;
|
|
37824
37839
|
return i > -1 && (r = n[i], t && n.splice(i, 1)), r;
|
|
37825
|
-
},
|
|
37840
|
+
}, H4 = (n, e) => {
|
|
37826
37841
|
const t = [];
|
|
37827
37842
|
if (n && e && e.length > 0) {
|
|
37828
37843
|
const i = {}, r = {}, s = [n, ...n.getChildRegions(!0)];
|
|
@@ -37833,7 +37848,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37833
37848
|
});
|
|
37834
37849
|
}
|
|
37835
37850
|
return t;
|
|
37836
|
-
},
|
|
37851
|
+
}, W4 = (n) => {
|
|
37837
37852
|
if (n) {
|
|
37838
37853
|
const e = [];
|
|
37839
37854
|
return n.forEach((i) => {
|
|
@@ -37856,7 +37871,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37856
37871
|
});
|
|
37857
37872
|
}
|
|
37858
37873
|
return t;
|
|
37859
|
-
},
|
|
37874
|
+
}, j4 = (n) => {
|
|
37860
37875
|
const e = n.getMorph();
|
|
37861
37876
|
let t = "position";
|
|
37862
37877
|
n.isLines2 && (t = "instanceStart");
|
|
@@ -37875,7 +37890,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37875
37890
|
n.isPointset ? s = "MultiPoint" : n.isLines2 ? s = "MultiLineString" : s = "Feature";
|
|
37876
37891
|
const o = s !== "Feature", a = s === "Feature" ? "Feature annotation" : "Drawn annotation";
|
|
37877
37892
|
if (s) {
|
|
37878
|
-
const c =
|
|
37893
|
+
const c = j4(n);
|
|
37879
37894
|
let l = e.slice(-1) === "/" ? e : e + "/";
|
|
37880
37895
|
l = l + t;
|
|
37881
37896
|
const d = l, h = {
|
|
@@ -37941,7 +37956,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
37941
37956
|
e.push(i);
|
|
37942
37957
|
}
|
|
37943
37958
|
return e;
|
|
37944
|
-
},
|
|
37959
|
+
}, $4 = {
|
|
37945
37960
|
name: "LinesControls",
|
|
37946
37961
|
components: {
|
|
37947
37962
|
Button: Ko,
|
|
@@ -38037,7 +38052,7 @@ const Rc = /* @__PURE__ */ HC(Pr), Ai = {
|
|
|
38037
38052
|
}
|
|
38038
38053
|
}
|
|
38039
38054
|
};
|
|
38040
|
-
function
|
|
38055
|
+
function Z4(n, e, t, i, r, s) {
|
|
38041
38056
|
const o = bi, a = ti, c = fr, l = Ui, d = Ko, h = dr, f = zi;
|
|
38042
38057
|
return ve(), Ve(f, { class: "lines-container" }, {
|
|
38043
38058
|
default: de(() => [
|
|
@@ -38322,7 +38337,7 @@ function $4(n, e, t, i, r, s) {
|
|
|
38322
38337
|
_: 1
|
|
38323
38338
|
});
|
|
38324
38339
|
}
|
|
38325
|
-
const MM = /* @__PURE__ */ ki(
|
|
38340
|
+
const MM = /* @__PURE__ */ ki($4, [["render", Z4], ["__scopeId", "data-v-0deb177d"]]), X4 = {
|
|
38326
38341
|
name: "PointsControls",
|
|
38327
38342
|
components: {
|
|
38328
38343
|
Col: bi,
|
|
@@ -38390,7 +38405,7 @@ const MM = /* @__PURE__ */ ki(j4, [["render", $4], ["__scopeId", "data-v-0deb177
|
|
|
38390
38405
|
this.translation[1] - this.pTranslation[1],
|
|
38391
38406
|
this.translation[2] - this.pTranslation[2]
|
|
38392
38407
|
];
|
|
38393
|
-
this.edited =
|
|
38408
|
+
this.edited = V4(this.zincObject, this.currentIndex, n) || this.edited;
|
|
38394
38409
|
for (let e = 0; e < 3; e++)
|
|
38395
38410
|
this.pTranslation[e] = this.translation[e];
|
|
38396
38411
|
},
|
|
@@ -38408,7 +38423,7 @@ const MM = /* @__PURE__ */ ki(j4, [["render", $4], ["__scopeId", "data-v-0deb177
|
|
|
38408
38423
|
}
|
|
38409
38424
|
}
|
|
38410
38425
|
};
|
|
38411
|
-
function
|
|
38426
|
+
function Y4(n, e, t, i, r, s) {
|
|
38412
38427
|
const o = bi, a = ti, c = fr, l = Ui, d = Qo, h = qo, f = Ko, g = dr, p = zi;
|
|
38413
38428
|
return ve(), Ve(p, { class: "pointset-container" }, {
|
|
38414
38429
|
default: de(() => [
|
|
@@ -38648,7 +38663,7 @@ function X4(n, e, t, i, r, s) {
|
|
|
38648
38663
|
_: 1
|
|
38649
38664
|
});
|
|
38650
38665
|
}
|
|
38651
|
-
const wM = /* @__PURE__ */ ki(
|
|
38666
|
+
const wM = /* @__PURE__ */ ki(X4, [["render", Y4], ["__scopeId", "data-v-d1de9c65"]]), J4 = {
|
|
38652
38667
|
name: "TextureSlidesControls",
|
|
38653
38668
|
components: {
|
|
38654
38669
|
Col: bi,
|
|
@@ -38703,7 +38718,7 @@ const wM = /* @__PURE__ */ ki(Z4, [["render", X4], ["__scopeId", "data-v-d1de9c6
|
|
|
38703
38718
|
}
|
|
38704
38719
|
}
|
|
38705
38720
|
};
|
|
38706
|
-
function
|
|
38721
|
+
function K4(n, e, t, i, r, s) {
|
|
38707
38722
|
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
38723
|
return ve(), Ve(v, { class: "t-slides-container" }, {
|
|
38709
38724
|
default: de(() => [
|
|
@@ -38748,7 +38763,7 @@ function J4(n, e, t, i, r, s) {
|
|
|
38748
38763
|
modelValue: m.value,
|
|
38749
38764
|
"onUpdate:modelValue": (w) => m.value = w,
|
|
38750
38765
|
class: "my-slider",
|
|
38751
|
-
step:
|
|
38766
|
+
step: 5e-3,
|
|
38752
38767
|
min: 0,
|
|
38753
38768
|
max: 1,
|
|
38754
38769
|
"show-tooltip": !1,
|
|
@@ -38832,7 +38847,7 @@ function J4(n, e, t, i, r, s) {
|
|
|
38832
38847
|
_: 1
|
|
38833
38848
|
});
|
|
38834
38849
|
}
|
|
38835
|
-
const AM = /* @__PURE__ */ ki(
|
|
38850
|
+
const AM = /* @__PURE__ */ ki(J4, [["render", K4], ["__scopeId", "data-v-f65f296c"]]), q4 = {
|
|
38836
38851
|
name: "TransformationControls",
|
|
38837
38852
|
components: {
|
|
38838
38853
|
Col: bi,
|
|
@@ -38895,7 +38910,7 @@ const AM = /* @__PURE__ */ ki(Y4, [["render", J4], ["__scopeId", "data-v-12185b7
|
|
|
38895
38910
|
}
|
|
38896
38911
|
}
|
|
38897
38912
|
};
|
|
38898
|
-
function
|
|
38913
|
+
function Q4(n, e, t, i, r, s) {
|
|
38899
38914
|
const o = bi, a = ti, c = fr, l = Ui, d = dr, h = zi;
|
|
38900
38915
|
return ve(), Ve(h, { class: "transformation-container" }, {
|
|
38901
38916
|
default: de(() => [
|
|
@@ -39107,7 +39122,7 @@ function q4(n, e, t, i, r, s) {
|
|
|
39107
39122
|
_: 1
|
|
39108
39123
|
});
|
|
39109
39124
|
}
|
|
39110
|
-
const SM = /* @__PURE__ */ ki(
|
|
39125
|
+
const SM = /* @__PURE__ */ ki(q4, [["render", Q4], ["__scopeId", "data-v-caf40e87"]]), e5 = {
|
|
39111
39126
|
name: "OpacityControls",
|
|
39112
39127
|
components: {
|
|
39113
39128
|
Container: zi,
|
|
@@ -39134,16 +39149,16 @@ const SM = /* @__PURE__ */ ki(K4, [["render", q4], ["__scopeId", "data-v-caf40e8
|
|
|
39134
39149
|
return this.displayString = Math.floor(100 * n + 0.5) + "%", this.displayString;
|
|
39135
39150
|
}
|
|
39136
39151
|
}
|
|
39137
|
-
},
|
|
39138
|
-
function
|
|
39152
|
+
}, t5 = { class: "block" }, n5 = { class: "display" };
|
|
39153
|
+
function i5(n, e, t, i, r, s) {
|
|
39139
39154
|
const o = ti, a = zi;
|
|
39140
39155
|
return t.material ? (ve(), Ve(a, {
|
|
39141
39156
|
key: 0,
|
|
39142
39157
|
class: "opacity-container"
|
|
39143
39158
|
}, {
|
|
39144
39159
|
default: de(() => [
|
|
39145
|
-
Ne("div",
|
|
39146
|
-
Ne("span",
|
|
39160
|
+
Ne("div", t5, [
|
|
39161
|
+
Ne("span", n5, gt(n.displayString), 1),
|
|
39147
39162
|
le(o, {
|
|
39148
39163
|
modelValue: t.material.opacity,
|
|
39149
39164
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.material.opacity = c),
|
|
@@ -39159,7 +39174,7 @@ function n5(n, e, t, i, r, s) {
|
|
|
39159
39174
|
_: 1
|
|
39160
39175
|
})) : ke("", !0);
|
|
39161
39176
|
}
|
|
39162
|
-
const _M = /* @__PURE__ */ ki(
|
|
39177
|
+
const _M = /* @__PURE__ */ ki(e5, [["render", i5], ["__scopeId", "data-v-cbfc46a5"]]), r5 = {
|
|
39163
39178
|
name: "PrimitiveControls",
|
|
39164
39179
|
components: {
|
|
39165
39180
|
Collapse: oy,
|
|
@@ -39214,7 +39229,7 @@ const _M = /* @__PURE__ */ ki(Q4, [["render", n5], ["__scopeId", "data-v-cbfc46a
|
|
|
39214
39229
|
}
|
|
39215
39230
|
}
|
|
39216
39231
|
};
|
|
39217
|
-
function
|
|
39232
|
+
function s5(n, e, t, i, r, s) {
|
|
39218
39233
|
const o = _M, a = ay, c = SM, l = AM, d = wM, h = MM, f = oy, g = kr, p = It;
|
|
39219
39234
|
return Lt((ve(), Ce("div", {
|
|
39220
39235
|
class: Te(["primitive-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
|
|
@@ -39323,10 +39338,10 @@ function r5(n, e, t, i, r, s) {
|
|
|
39323
39338
|
[mn, s.hasValidPrimitive]
|
|
39324
39339
|
]);
|
|
39325
39340
|
}
|
|
39326
|
-
const TM = /* @__PURE__ */ ki(
|
|
39341
|
+
const TM = /* @__PURE__ */ ki(r5, [["render", s5], ["__scopeId", "data-v-83d11562"]]), o5 = (n, e) => {
|
|
39327
39342
|
const t = n.label.toUpperCase(), i = e.label.toUpperCase();
|
|
39328
39343
|
return t < i ? -1 : t > i ? 1 : 0;
|
|
39329
|
-
},
|
|
39344
|
+
}, a5 = {
|
|
39330
39345
|
name: "ScaffoldTreeControls",
|
|
39331
39346
|
components: {
|
|
39332
39347
|
ElIconArrowLeft: zr,
|
|
@@ -39377,7 +39392,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39377
39392
|
},
|
|
39378
39393
|
methods: {
|
|
39379
39394
|
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) =>
|
|
39395
|
+
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
39396
|
!this.$refs.treeControls.$refs.regionTree.getCheckedKeys().includes(e.id) && t.getVisibility() && this.$refs.treeControls.$refs.regionTree.setChecked(e.id, !0);
|
|
39382
39397
|
}));
|
|
39383
39398
|
},
|
|
@@ -39661,7 +39676,7 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39661
39676
|
},
|
|
39662
39677
|
getState: function() {
|
|
39663
39678
|
let n = this.$refs.treeControls.$refs.regionTree.getCheckedKeys();
|
|
39664
|
-
return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems:
|
|
39679
|
+
return n.length === this.nodeNumbers ? { checkAll: !0, version: "2.0" } : { checkedItems: H4(
|
|
39665
39680
|
this.module.scene.getRootRegion(),
|
|
39666
39681
|
n
|
|
39667
39682
|
), version: "2.0" };
|
|
@@ -39684,13 +39699,13 @@ const TM = /* @__PURE__ */ ki(i5, [["render", r5], ["__scopeId", "data-v-83d1156
|
|
|
39684
39699
|
}
|
|
39685
39700
|
}
|
|
39686
39701
|
}
|
|
39687
|
-
},
|
|
39688
|
-
function
|
|
39702
|
+
}, l5 = { class: "traditional-container" };
|
|
39703
|
+
function c5(n, e, t, i, r, s) {
|
|
39689
39704
|
const o = Vn("TreeControls"), a = zr, c = It;
|
|
39690
39705
|
return ve(), Ce("div", {
|
|
39691
39706
|
class: Te(["tree-controls", { open: n.drawerOpen, close: !n.drawerOpen }])
|
|
39692
39707
|
}, [
|
|
39693
|
-
Ne("div",
|
|
39708
|
+
Ne("div", l5, [
|
|
39694
39709
|
le(o, {
|
|
39695
39710
|
mapType: "scaffold",
|
|
39696
39711
|
title: "Regions",
|
|
@@ -39720,7 +39735,7 @@ function l5(n, e, t, i, r, s) {
|
|
|
39720
39735
|
], 2)
|
|
39721
39736
|
], 2);
|
|
39722
39737
|
}
|
|
39723
|
-
const EM = /* @__PURE__ */ ki(
|
|
39738
|
+
const EM = /* @__PURE__ */ ki(a5, [["render", c5], ["__scopeId", "data-v-5394b615"]]), Dd = iw("main", {
|
|
39724
39739
|
state: () => ({
|
|
39725
39740
|
userProfile: {
|
|
39726
39741
|
token: ""
|
|
@@ -39736,7 +39751,7 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
|
|
|
39736
39751
|
this.userProfile.token = n;
|
|
39737
39752
|
}
|
|
39738
39753
|
}
|
|
39739
|
-
}),
|
|
39754
|
+
}), u5 = {
|
|
39740
39755
|
name: "ScaffoldTooltip",
|
|
39741
39756
|
components: {
|
|
39742
39757
|
Col: bi,
|
|
@@ -39851,14 +39866,14 @@ const EM = /* @__PURE__ */ ki(o5, [["render", l5], ["__scopeId", "data-v-5394b61
|
|
|
39851
39866
|
immediate: !0
|
|
39852
39867
|
}
|
|
39853
39868
|
}
|
|
39854
|
-
},
|
|
39869
|
+
}, h5 = { class: "tooltip-text" }, d5 = {
|
|
39855
39870
|
key: 0,
|
|
39856
39871
|
class: "tooltip-text"
|
|
39857
|
-
},
|
|
39872
|
+
}, f5 = {
|
|
39858
39873
|
key: 1,
|
|
39859
39874
|
class: "delete-container"
|
|
39860
39875
|
};
|
|
39861
|
-
function
|
|
39876
|
+
function p5(n, e, t, i, r, s) {
|
|
39862
39877
|
const o = Vn("CreateTooltipContent"), a = Vn("Tooltip"), c = bi, l = Ko, d = Ui, h = cu;
|
|
39863
39878
|
return ve(), Ce("div", {
|
|
39864
39879
|
style: Rt(s.position),
|
|
@@ -39876,8 +39891,8 @@ function f5(n, e, t, i, r, s) {
|
|
|
39876
39891
|
onHide: s.hideTriggered
|
|
39877
39892
|
}, {
|
|
39878
39893
|
default: de(() => [
|
|
39879
|
-
Ne("div",
|
|
39880
|
-
t.region ? (ve(), Ce("div",
|
|
39894
|
+
Ne("div", h5, gt(t.label), 1),
|
|
39895
|
+
t.region ? (ve(), Ce("div", d5, "Region: " + gt(t.region), 1)) : ke("", !0),
|
|
39881
39896
|
Lt(le(o, {
|
|
39882
39897
|
createData: t.createData,
|
|
39883
39898
|
onConfirmCreate: e[0] || (e[0] = (f) => n.$emit("confirm-create", f)),
|
|
@@ -39894,7 +39909,7 @@ function f5(n, e, t, i, r, s) {
|
|
|
39894
39909
|
}, null, 8, ["annotationEntry"]), [
|
|
39895
39910
|
[mn, t.annotationDisplay && !t.createData.toBeConfirmed]
|
|
39896
39911
|
]),
|
|
39897
|
-
t.createData.toBeDeleted ? (ve(), Ce("div",
|
|
39912
|
+
t.createData.toBeDeleted ? (ve(), Ce("div", f5, [
|
|
39898
39913
|
le(d, null, {
|
|
39899
39914
|
default: de(() => [
|
|
39900
39915
|
le(c, { span: 10 }, {
|
|
@@ -39941,9 +39956,9 @@ function f5(n, e, t, i, r, s) {
|
|
|
39941
39956
|
}, 8, ["visible", "onHide"])
|
|
39942
39957
|
], 4);
|
|
39943
39958
|
}
|
|
39944
|
-
const CM = /* @__PURE__ */ ki(
|
|
39959
|
+
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
39960
|
this.eventType = n, this.identifiers = e, this.zincObjects = t;
|
|
39946
|
-
},
|
|
39961
|
+
}, g5 = function(n, e, t) {
|
|
39947
39962
|
this.targetedID = [];
|
|
39948
39963
|
const i = n, r = e;
|
|
39949
39964
|
this.targetEventType = t;
|
|
@@ -39952,18 +39967,18 @@ const CM = /* @__PURE__ */ ki(c5, [["render", f5], ["__scopeId", "data-v-d3f76b7
|
|
|
39952
39967
|
return t;
|
|
39953
39968
|
}, this.notify = function(o, a, c, l) {
|
|
39954
39969
|
if (o !== i && (s.targetEventType === Qa.ALL || s.targetEventType === a)) {
|
|
39955
|
-
const d = new
|
|
39970
|
+
const d = new m5(a, c, l);
|
|
39956
39971
|
r(d);
|
|
39957
39972
|
}
|
|
39958
39973
|
};
|
|
39959
|
-
},
|
|
39974
|
+
}, v5 = function() {
|
|
39960
39975
|
const n = [];
|
|
39961
39976
|
this.publish = function(e, t, i, r) {
|
|
39962
39977
|
for (let s = 0; s < n.length; s++)
|
|
39963
39978
|
n[s].notify(e, t, i, r);
|
|
39964
39979
|
}, this.subscribe = function(e, t, i) {
|
|
39965
39980
|
if (typeof t == "function") {
|
|
39966
|
-
const r = new
|
|
39981
|
+
const r = new g5(e, t, i);
|
|
39967
39982
|
return n.push(r), r;
|
|
39968
39983
|
}
|
|
39969
39984
|
}, this.unsubscribe = function(e) {
|
|
@@ -40061,7 +40076,7 @@ const wc = (n, e, t) => {
|
|
|
40061
40076
|
o && o.isZincObject && s.material && s.material.emissive && s.material.emissive.setRGB(...e);
|
|
40062
40077
|
});
|
|
40063
40078
|
}
|
|
40064
|
-
},
|
|
40079
|
+
}, y5 = function() {
|
|
40065
40080
|
let n = [], e = [];
|
|
40066
40081
|
this.highlightColour = [1, 0, 0], this.selectColour = [0, 1, 0], this.originalColour = [0, 0, 0];
|
|
40067
40082
|
const t = [], i = [], r = this, s = function(c, l) {
|
|
@@ -40134,7 +40149,7 @@ const wc = (n, e, t) => {
|
|
|
40134
40149
|
}, this.reset = function() {
|
|
40135
40150
|
r.resetSelected(), r.resetHighlighted();
|
|
40136
40151
|
};
|
|
40137
|
-
}, gp = Rc.THREE,
|
|
40152
|
+
}, gp = Rc.THREE, b5 = function() {
|
|
40138
40153
|
const n = document.createElement("div");
|
|
40139
40154
|
let e;
|
|
40140
40155
|
if (n.style.height = "100%", Lv.isWebGLAvailable())
|
|
@@ -40145,7 +40160,7 @@ const wc = (n, e, t) => {
|
|
|
40145
40160
|
}
|
|
40146
40161
|
return { Zinc: Rc, renderer: e, container: n };
|
|
40147
40162
|
}, Kt = function() {
|
|
40148
|
-
Xn.call(this), this.scene = void 0, this.rendererContainer = void 0, this.displayArea = void 0, this.graphicsHighlight = new
|
|
40163
|
+
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
40164
|
};
|
|
40150
40165
|
Kt.prototype = Object.create(Xn.prototype);
|
|
40151
40166
|
Kt.prototype.getIntersectedObject = function(n) {
|
|
@@ -40256,7 +40271,7 @@ Kt.prototype.getPlayRate = function(n) {
|
|
|
40256
40271
|
};
|
|
40257
40272
|
Kt.prototype.initialiseRenderer = function(n) {
|
|
40258
40273
|
if (this.zincRenderer === void 0 || this.rendererContainer === void 0) {
|
|
40259
|
-
let e =
|
|
40274
|
+
let e = b5();
|
|
40260
40275
|
this.Zinc = e.Zinc, this.zincRenderer = e.renderer, this.rendererContainer = e.container;
|
|
40261
40276
|
}
|
|
40262
40277
|
n && (this.displayArea = n, this.displayArea.appendChild(this.rendererContainer), this.zincRenderer && this.zincRenderer.animate());
|
|
@@ -40264,15 +40279,15 @@ Kt.prototype.initialiseRenderer = function(n) {
|
|
|
40264
40279
|
Kt.prototype.destroy = function() {
|
|
40265
40280
|
this.zincRenderer && (this.zincRenderer.dispose(), this.zincRenderer.getThreeJSRenderer().dispose(), this.zincRenderer = void 0), Xn.prototype.destroy.call(this);
|
|
40266
40281
|
};
|
|
40267
|
-
const
|
|
40282
|
+
const x5 = function() {
|
|
40268
40283
|
this.type = "anatomical", this.data = void 0, this.isAnnotation = !0;
|
|
40269
|
-
},
|
|
40284
|
+
}, M5 = function() {
|
|
40270
40285
|
this.currentName = "", this.currentSystem = "", this.currentPart = "", this.currentSpecies = "", this.metaURL = "", this.viewURL = "", this.timeVarying = !1, this.currentTime = 0;
|
|
40271
40286
|
}, LM = function(n) {
|
|
40272
40287
|
Kt.call(this);
|
|
40273
40288
|
const e = this;
|
|
40274
40289
|
let t;
|
|
40275
|
-
this.sceneData = new
|
|
40290
|
+
this.sceneData = new M5();
|
|
40276
40291
|
const i = new Array(), r = new Array(), s = new Array(), o = new Array();
|
|
40277
40292
|
let a, c;
|
|
40278
40293
|
const l = n;
|
|
@@ -40460,7 +40475,7 @@ const b5 = function() {
|
|
|
40460
40475
|
const x = function(S, T, E, C) {
|
|
40461
40476
|
for (let I = 0; I < s.length; I++)
|
|
40462
40477
|
s[I](C, e.scene.isTimeVarying());
|
|
40463
|
-
const P = new
|
|
40478
|
+
const P = new x5(), b = C.region.getFullPath();
|
|
40464
40479
|
P.data = {
|
|
40465
40480
|
species: e.sceneData.currentSpecies,
|
|
40466
40481
|
system: S,
|
|
@@ -40586,7 +40601,7 @@ var _t = function() {
|
|
|
40586
40601
|
return e;
|
|
40587
40602
|
}, _t.apply(this, arguments);
|
|
40588
40603
|
};
|
|
40589
|
-
function
|
|
40604
|
+
function w5(n, e, t, i) {
|
|
40590
40605
|
function r(s) {
|
|
40591
40606
|
return s instanceof t ? s : new t(function(o) {
|
|
40592
40607
|
o(s);
|
|
@@ -40613,7 +40628,7 @@ function M5(n, e, t, i) {
|
|
|
40613
40628
|
l((i = i.apply(n, [])).next());
|
|
40614
40629
|
});
|
|
40615
40630
|
}
|
|
40616
|
-
function
|
|
40631
|
+
function A5(n, e) {
|
|
40617
40632
|
var t = { label: 0, sent: function() {
|
|
40618
40633
|
if (s[0] & 1) throw s[1];
|
|
40619
40634
|
return s[1];
|
|
@@ -40700,7 +40715,7 @@ function Wt(n, e) {
|
|
|
40700
40715
|
}
|
|
40701
40716
|
return s;
|
|
40702
40717
|
}
|
|
40703
|
-
var
|
|
40718
|
+
var S5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
40704
40719
|
/** @class */
|
|
40705
40720
|
function() {
|
|
40706
40721
|
function n(e, t) {
|
|
@@ -40747,7 +40762,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40747
40762
|
}()
|
|
40748
40763
|
), uo = function(n) {
|
|
40749
40764
|
return n[n.length - 1];
|
|
40750
|
-
},
|
|
40765
|
+
}, _5 = function(n, e, t) {
|
|
40751
40766
|
var i = /* @__PURE__ */ new Map();
|
|
40752
40767
|
if (e === void 0)
|
|
40753
40768
|
return i;
|
|
@@ -40820,9 +40835,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40820
40835
|
}, n.prototype.clear = function() {
|
|
40821
40836
|
this._size = void 0, this._tree.clear();
|
|
40822
40837
|
}, n.prototype.delete = function(e) {
|
|
40823
|
-
return this._size = void 0,
|
|
40838
|
+
return this._size = void 0, T5(this._tree, e);
|
|
40824
40839
|
}, n.prototype.entries = function() {
|
|
40825
|
-
return new Ph(this,
|
|
40840
|
+
return new Ph(this, S5);
|
|
40826
40841
|
}, n.prototype.forEach = function(e) {
|
|
40827
40842
|
var t, i;
|
|
40828
40843
|
try {
|
|
@@ -40840,7 +40855,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40840
40855
|
}
|
|
40841
40856
|
}
|
|
40842
40857
|
}, n.prototype.fuzzyGet = function(e, t) {
|
|
40843
|
-
return
|
|
40858
|
+
return _5(this._tree, e, t);
|
|
40844
40859
|
}, n.prototype.get = function(e) {
|
|
40845
40860
|
var t = Nd(this._tree, e);
|
|
40846
40861
|
return t !== void 0 ? t.get(pn) : void 0;
|
|
@@ -40978,7 +40993,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
40978
40993
|
return n.set(e.slice(s), g), g;
|
|
40979
40994
|
}
|
|
40980
40995
|
return n;
|
|
40981
|
-
},
|
|
40996
|
+
}, T5 = function(n, e) {
|
|
40982
40997
|
var t = Wt($c(n, e), 2), i = t[0], r = t[1];
|
|
40983
40998
|
if (i !== void 0) {
|
|
40984
40999
|
if (i.delete(pn), i.size === 0)
|
|
@@ -41005,14 +41020,14 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41005
41020
|
}
|
|
41006
41021
|
}, vp = function(n) {
|
|
41007
41022
|
return n[n.length - 1];
|
|
41008
|
-
}, _a, yp = "or", DM = "and",
|
|
41023
|
+
}, _a, yp = "or", DM = "and", E5 = "and_not", C5 = (
|
|
41009
41024
|
/** @class */
|
|
41010
41025
|
function() {
|
|
41011
41026
|
function n(e) {
|
|
41012
41027
|
if ((e == null ? void 0 : e.fields) == null)
|
|
41013
41028
|
throw new Error('MiniSearch: option "fields" must be provided');
|
|
41014
41029
|
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({},
|
|
41030
|
+
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
41031
|
}
|
|
41017
41032
|
return n.prototype.add = function(e) {
|
|
41018
41033
|
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 +41240,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41225
41240
|
return i._enqueuedVacuumConditions = Ud, i.performVacuuming(e, r);
|
|
41226
41241
|
}), this._enqueuedVacuum)) : this.vacuumConditionsMet(t) === !1 ? Promise.resolve() : (this._currentVacuum = this.performVacuuming(e), this._currentVacuum);
|
|
41227
41242
|
}, n.prototype.performVacuuming = function(e, t) {
|
|
41228
|
-
return
|
|
41243
|
+
return w5(this, void 0, void 0, function() {
|
|
41229
41244
|
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
|
|
41245
|
+
return A5(this, function(T) {
|
|
41231
41246
|
switch (T.label) {
|
|
41232
41247
|
case 0:
|
|
41233
41248
|
if (i = this._dirtCount, !this.vacuumConditionsMet(t)) return [3, 10];
|
|
@@ -41487,7 +41502,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41487
41502
|
return f(y);
|
|
41488
41503
|
}).filter(function(y) {
|
|
41489
41504
|
return !!y;
|
|
41490
|
-
}), p = g.map(
|
|
41505
|
+
}), p = g.map(P5(d)), u = p.map(function(y) {
|
|
41491
41506
|
return i.executeQuerySpec(y, d);
|
|
41492
41507
|
});
|
|
41493
41508
|
return this.combineResults(u, d.combineWith);
|
|
@@ -41563,7 +41578,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41563
41578
|
if (t === void 0 && (t = yp), e.length === 0)
|
|
41564
41579
|
return /* @__PURE__ */ new Map();
|
|
41565
41580
|
var i = t.toLowerCase();
|
|
41566
|
-
return e.reduce(
|
|
41581
|
+
return e.reduce(L5[i]) || /* @__PURE__ */ new Map();
|
|
41567
41582
|
}, n.prototype.toJSON = function() {
|
|
41568
41583
|
var e, t, i, r, s = [];
|
|
41569
41584
|
try {
|
|
@@ -41624,9 +41639,9 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41624
41639
|
}
|
|
41625
41640
|
var _ = o ? o(this._documentIds.get(L), t, this._storedFields.get(L)) : 1;
|
|
41626
41641
|
if (_) {
|
|
41627
|
-
var F = x.get(L), S = this._fieldLength.get(L)[m], T =
|
|
41642
|
+
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
41643
|
if (C) {
|
|
41629
|
-
C.score += E,
|
|
41644
|
+
C.score += E, O5(C.terms, e);
|
|
41630
41645
|
var P = Dh(C.match, t);
|
|
41631
41646
|
P ? P.push(y) : C.match[t] = [y];
|
|
41632
41647
|
} else
|
|
@@ -41734,7 +41749,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41734
41749
|
}()
|
|
41735
41750
|
), Dh = function(n, e) {
|
|
41736
41751
|
return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
|
|
41737
|
-
},
|
|
41752
|
+
}, L5 = (_a = {}, _a[yp] = function(n, e) {
|
|
41738
41753
|
var t, i;
|
|
41739
41754
|
try {
|
|
41740
41755
|
for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
|
|
@@ -41780,7 +41795,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41780
41795
|
}
|
|
41781
41796
|
}
|
|
41782
41797
|
return r;
|
|
41783
|
-
}, _a[
|
|
41798
|
+
}, _a[E5] = function(n, e) {
|
|
41784
41799
|
var t, i;
|
|
41785
41800
|
try {
|
|
41786
41801
|
for (var r = ct(e.keys()), s = r.next(); !s.done; s = r.next()) {
|
|
@@ -41797,10 +41812,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41797
41812
|
}
|
|
41798
41813
|
}
|
|
41799
41814
|
return n;
|
|
41800
|
-
}, _a),
|
|
41815
|
+
}, _a), R5 = { k: 1.2, b: 0.7, d: 0.5 }, F5 = function(n, e, t, i, r, s) {
|
|
41801
41816
|
var o = s.k, a = s.b, c = s.d, l = Math.log(1 + (t - e + 0.5) / (e + 0.5));
|
|
41802
41817
|
return l * (c + n * (o + 1) / (n + o * (1 - a + a * i / r)));
|
|
41803
|
-
},
|
|
41818
|
+
}, P5 = function(n) {
|
|
41804
41819
|
return function(e, t, i) {
|
|
41805
41820
|
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
41821
|
return { term: e, fuzzy: r, prefix: s };
|
|
@@ -41811,7 +41826,7 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41811
41826
|
return n[e];
|
|
41812
41827
|
},
|
|
41813
41828
|
tokenize: function(n) {
|
|
41814
|
-
return n.split(
|
|
41829
|
+
return n.split(D5);
|
|
41815
41830
|
},
|
|
41816
41831
|
processTerm: function(n) {
|
|
41817
41832
|
return n.toLowerCase();
|
|
@@ -41830,13 +41845,13 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41830
41845
|
maxFuzzy: 6,
|
|
41831
41846
|
boost: {},
|
|
41832
41847
|
weights: { fuzzy: 0.45, prefix: 0.375 },
|
|
41833
|
-
bm25:
|
|
41834
|
-
},
|
|
41848
|
+
bm25: R5
|
|
41849
|
+
}, I5 = {
|
|
41835
41850
|
combineWith: DM,
|
|
41836
41851
|
prefix: function(n, e, t) {
|
|
41837
41852
|
return e === t.length - 1;
|
|
41838
41853
|
}
|
|
41839
|
-
}, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud),
|
|
41854
|
+
}, Bd = { batchSize: 1e3, batchWait: 10 }, Ud = { minDirtFactor: 0.1, minDirtCount: 20 }, Bh = _t(_t({}, Bd), Ud), O5 = function(n, e) {
|
|
41840
41855
|
n.includes(e) || n.push(e);
|
|
41841
41856
|
}, Fv = function(n, e) {
|
|
41842
41857
|
var t, i;
|
|
@@ -41876,10 +41891,10 @@ var A5 = "ENTRIES", RM = "KEYS", FM = "VALUES", pn = "", Ph = (
|
|
|
41876
41891
|
}
|
|
41877
41892
|
}
|
|
41878
41893
|
return i;
|
|
41879
|
-
},
|
|
41880
|
-
class
|
|
41894
|
+
}, 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;
|
|
41895
|
+
class N5 {
|
|
41881
41896
|
constructor() {
|
|
41882
|
-
this._searchEngine = new
|
|
41897
|
+
this._searchEngine = new C5({
|
|
41883
41898
|
fields: ["path", "name"],
|
|
41884
41899
|
storeFields: ["path"],
|
|
41885
41900
|
tokenize: (e, t) => e.split(/[\s/]+/)
|
|
@@ -41927,7 +41942,7 @@ class D5 {
|
|
|
41927
41942
|
regionPath: void 0,
|
|
41928
41943
|
label: 'Search Results for "'
|
|
41929
41944
|
};
|
|
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 =
|
|
41945
|
+
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
41946
|
}
|
|
41932
41947
|
search(e) {
|
|
41933
41948
|
let t;
|
|
@@ -41949,7 +41964,7 @@ class D5 {
|
|
|
41949
41964
|
return Array.isArray(e) ? t = this.searchTerms(e) : t = this.search(e), this.processResults(t, e);
|
|
41950
41965
|
}
|
|
41951
41966
|
}
|
|
41952
|
-
const
|
|
41967
|
+
const B5 = [
|
|
41953
41968
|
{
|
|
41954
41969
|
id: 0,
|
|
41955
41970
|
nerve_id: "ILX:0793723",
|
|
@@ -42762,14 +42777,14 @@ const N5 = [
|
|
|
42762
42777
|
"FMA subclasses (in human nerves)": ["FMA:6892", "FMA:6893"],
|
|
42763
42778
|
"subclass labels": ["Right T9 grey ramus communicans", "Left T9 grey ramus communicans"]
|
|
42764
42779
|
}
|
|
42765
|
-
],
|
|
42780
|
+
], U5 = () => {
|
|
42766
42781
|
const n = {};
|
|
42767
|
-
return
|
|
42782
|
+
return B5.forEach((e) => {
|
|
42768
42783
|
e.nerve_id && e.label !== "nerve" && e["subclass labels"].forEach((t) => {
|
|
42769
42784
|
t in n || (n[t.toLowerCase()] = e.nerve_id);
|
|
42770
42785
|
});
|
|
42771
42786
|
}), n;
|
|
42772
|
-
},
|
|
42787
|
+
}, z5 = [
|
|
42773
42788
|
{
|
|
42774
42789
|
label: "urinary bladder",
|
|
42775
42790
|
anatomicalId: "UBERON:0001255"
|
|
@@ -42806,13 +42821,13 @@ const N5 = [
|
|
|
42806
42821
|
label: "lung",
|
|
42807
42822
|
anatomicalId: "UBERON:0002048"
|
|
42808
42823
|
}
|
|
42809
|
-
],
|
|
42824
|
+
], k5 = () => {
|
|
42810
42825
|
const n = {};
|
|
42811
|
-
return
|
|
42826
|
+
return z5.forEach((e) => {
|
|
42812
42827
|
const t = e.label.toLowerCase();
|
|
42813
42828
|
t in n || (n[t.toLowerCase()] = e.anatomicalId);
|
|
42814
42829
|
}), n;
|
|
42815
|
-
}, Ov =
|
|
42830
|
+
}, Ov = U5(), Dv = k5(), V5 = {
|
|
42816
42831
|
name: "ScaffoldVuer",
|
|
42817
42832
|
components: {
|
|
42818
42833
|
Button: Ko,
|
|
@@ -43140,6 +43155,7 @@ const N5 = [
|
|
|
43140
43155
|
drawingBox: !1,
|
|
43141
43156
|
toBeConfirmed: !1,
|
|
43142
43157
|
points: [],
|
|
43158
|
+
tempGroupName: "",
|
|
43143
43159
|
shape: "",
|
|
43144
43160
|
x: 0,
|
|
43145
43161
|
y: 0,
|
|
@@ -43344,11 +43360,11 @@ const N5 = [
|
|
|
43344
43360
|
}
|
|
43345
43361
|
},
|
|
43346
43362
|
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
|
|
43363
|
+
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
43364
|
},
|
|
43349
43365
|
mounted: function() {
|
|
43350
43366
|
this.openMapRef = En(this.$refs.openMapRef), this.backgroundIconRef = En(this.$refs.backgroundIconRef), this.$refs.scaffoldTreeControls.setModule(this.$module);
|
|
43351
|
-
let n = new
|
|
43367
|
+
let n = new v5();
|
|
43352
43368
|
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
43369
|
this.$refs.scaffoldContainer.$el
|
|
43354
43370
|
), this.helpTextWait = [], this.helpTextWait.length = this.hoverVisibilities.length, this.defaultRate = this.$module.getPlayRate(), this.$module.zincRenderer.addPreRenderCallbackFunction(() => {
|
|
@@ -43433,11 +43449,7 @@ const N5 = [
|
|
|
43433
43449
|
for (let o = 0; o < i.length; o++)
|
|
43434
43450
|
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
43451
|
}
|
|
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);
|
|
43452
|
+
this.calculateBoundingBox(), this.$emit("zinc-object-added", n);
|
|
43441
43453
|
},
|
|
43442
43454
|
/**
|
|
43443
43455
|
* Internal only.
|
|
@@ -43533,7 +43545,9 @@ const N5 = [
|
|
|
43533
43545
|
if (this.existDrawnFeatures = An(this.existDrawnFeatures.filter((s) => s.id !== r.item.id)), this.existDrawnFeatures.push(r.feature), this.offlineAnnotationEnabled) {
|
|
43534
43546
|
r.group = e;
|
|
43535
43547
|
let s = n;
|
|
43536
|
-
s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || []
|
|
43548
|
+
s.slice(-1) === "/" && (s = s.slice(0, -1)), r.region = s, this.offlineAnnotations = JSON.parse(sessionStorage.getItem("anonymous-annotation")) || [];
|
|
43549
|
+
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);
|
|
43550
|
+
o ? Object.assign(o, r) : this.offlineAnnotations.push(r), sessionStorage.setItem("anonymous-annotation", JSON.stringify(this.offlineAnnotations));
|
|
43537
43551
|
}
|
|
43538
43552
|
this.$emit("userPrimitivesUpdated", { region: n, group: e, zincObject: t });
|
|
43539
43553
|
},
|
|
@@ -43573,12 +43587,13 @@ const N5 = [
|
|
|
43573
43587
|
60962
|
|
43574
43588
|
);
|
|
43575
43589
|
else if (n.editingIndex > -1 && this._editingZincObject) {
|
|
43576
|
-
|
|
43577
|
-
|
|
43590
|
+
let t;
|
|
43591
|
+
n.editingIndex > -1 && (this.createData.faceIndex > -1 ? t = this.createData.points[1] : t = this.createData.points[0]), this._editingZincObject.editVertices(
|
|
43592
|
+
[t],
|
|
43578
43593
|
n.editingIndex
|
|
43579
43594
|
);
|
|
43580
|
-
const
|
|
43581
|
-
this.addAndEditAnnotations(
|
|
43595
|
+
const i = this._editingZincObject.region.getFullPath() + "/", r = this._editingZincObject.groupName;
|
|
43596
|
+
this.addAndEditAnnotations(i, r, this._editingZincObject, "Position Updated");
|
|
43582
43597
|
}
|
|
43583
43598
|
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
43599
|
}
|
|
@@ -43589,7 +43604,7 @@ const N5 = [
|
|
|
43589
43604
|
* Cancel create workflows. Reset all relevant UIs and data.
|
|
43590
43605
|
*/
|
|
43591
43606
|
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");
|
|
43607
|
+
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
43608
|
},
|
|
43594
43609
|
/**
|
|
43595
43610
|
* Internal only.
|
|
@@ -43645,7 +43660,7 @@ const N5 = [
|
|
|
43645
43660
|
fitWindow: function() {
|
|
43646
43661
|
if (this.$module.scene) {
|
|
43647
43662
|
let n = !1;
|
|
43648
|
-
this._boundingBoxGeo && (n = this._boundingBoxGeo.getVisibility(), this._boundingBoxGeo.setVisibility(!1)), this.$module.scene.viewAll(), this._boundingBoxGeo && (
|
|
43663
|
+
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
43664
|
}
|
|
43650
43665
|
},
|
|
43651
43666
|
/**
|
|
@@ -43747,10 +43762,22 @@ const N5 = [
|
|
|
43747
43762
|
this.setURLFinishCallback({ viewURL: n })
|
|
43748
43763
|
);
|
|
43749
43764
|
},
|
|
43765
|
+
createEditTemporaryPoint: function(n) {
|
|
43766
|
+
const e = n[0].extraData.worldCoords;
|
|
43767
|
+
if (e && (this.createData.shape === "Point" || this.createData.editingIndex > -1) && this.createData.points.length === 0)
|
|
43768
|
+
if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.tData.x = 50, this.tData.y = 200, this._tempPoint) {
|
|
43769
|
+
const t = this._tempPoint.geometry.getAttribute("position");
|
|
43770
|
+
t.setXYZ(0, e[0], e[1], e[2]), t.needsUpdate = !0;
|
|
43771
|
+
} else
|
|
43772
|
+
this._tempPoint = this.$module.scene.addTemporaryPoints(
|
|
43773
|
+
[e],
|
|
43774
|
+
65535
|
|
43775
|
+
);
|
|
43776
|
+
},
|
|
43750
43777
|
createEditTemporaryLines: function(n) {
|
|
43751
43778
|
const e = n[0].extraData.worldCoords;
|
|
43752
|
-
if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1) && this.createData.points.length === 1)
|
|
43753
|
-
if (this.showRegionTooltipWithAnnotations(n, !0, !1), this.
|
|
43779
|
+
if (e && (this.createData.shape === "LineString" || this.createData.editingIndex > -1 && this.createData.faceIndex > -1) && this.createData.points.length === 1)
|
|
43780
|
+
if (this.showRegionTooltipWithAnnotations(n, !0, !1), this._tempLine) {
|
|
43754
43781
|
const t = this._tempLine.geometry.getAttribute("position");
|
|
43755
43782
|
t.setXYZ(1, e[0], e[1], e[2]), t.needsUpdate = !0;
|
|
43756
43783
|
} else
|
|
@@ -43759,11 +43786,14 @@ const N5 = [
|
|
|
43759
43786
|
65535
|
|
43760
43787
|
);
|
|
43761
43788
|
},
|
|
43789
|
+
createEditTemporaryPrimitive: function(n) {
|
|
43790
|
+
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);
|
|
43791
|
+
},
|
|
43762
43792
|
draw: function(n) {
|
|
43763
|
-
n && n.length > 0 && n[0].data.group && n[0].extraData.worldCoords && (this.createData.shape === "
|
|
43793
|
+
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
43794
|
},
|
|
43765
43795
|
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));
|
|
43796
|
+
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
43797
|
},
|
|
43768
43798
|
drawLine: function(n, e) {
|
|
43769
43799
|
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 +43819,28 @@ const N5 = [
|
|
|
43789
43819
|
this.isTransitioning = !0, n.enableAutoTumble(), n.autoTumble([1, 0], Math.PI, !0), setTimeout(this.stopFreeSpin, 4e3);
|
|
43790
43820
|
}
|
|
43791
43821
|
},
|
|
43822
|
+
activateEditingMode: function(n) {
|
|
43823
|
+
let e = B4(n);
|
|
43824
|
+
e ? this.activatePointEditingMode(
|
|
43825
|
+
e.zincObject,
|
|
43826
|
+
e.index,
|
|
43827
|
+
e.point
|
|
43828
|
+
) : (e = U4(n), e && this.activateLineEditingMode(
|
|
43829
|
+
e.zincObject,
|
|
43830
|
+
e.faceIndex,
|
|
43831
|
+
e.vertexIndex,
|
|
43832
|
+
e.point
|
|
43833
|
+
));
|
|
43834
|
+
},
|
|
43792
43835
|
activateAnnotationMode: function(n, e) {
|
|
43793
43836
|
if (this.authorisedUser || this.offlineAnnotationEnabled)
|
|
43794
43837
|
if (this.createData.toBeDeleted = !1, this.createData.shape !== "" || this.createData.editingIndex > -1)
|
|
43795
43838
|
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
43839
|
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);
|
|
43840
|
+
if (this.activeDrawMode === "Edit")
|
|
43841
|
+
this.activateEditingMode(e.identifiers);
|
|
43842
|
+
else if (this.activeDrawMode === "Delete") {
|
|
43843
|
+
const t = k4(e);
|
|
43807
43844
|
t && (this.createData.toBeDeleted = !0, this._editingZincObject = t);
|
|
43808
43845
|
}
|
|
43809
43846
|
this.activeDrawMode !== "Point" && this.activeDrawMode !== "LineString" ? this.showRegionTooltipWithAnnotations(e.identifiers, !0, !1) : this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
|
|
@@ -43811,8 +43848,11 @@ const N5 = [
|
|
|
43811
43848
|
else
|
|
43812
43849
|
this.showRegionTooltipWithAnnotations(e.identifiers, !0, !0);
|
|
43813
43850
|
},
|
|
43814
|
-
|
|
43815
|
-
this._editingZincObject = n, this.createData.faceIndex =
|
|
43851
|
+
activatePointEditingMode: function(n, e, t) {
|
|
43852
|
+
this._editingZincObject = n, this.createData.faceIndex = -1, this.createData.editingIndex = e, this.createData.tempGroupName = this._editingZincObject.groupName;
|
|
43853
|
+
},
|
|
43854
|
+
activateLineEditingMode: function(n, e, t, i) {
|
|
43855
|
+
this._editingZincObject = n, this.createData.faceIndex = e, this.createData.editingIndex = t, this.createData.tempGroupName = this._editingZincObject.groupName, this.drawLine(i, void 0);
|
|
43816
43856
|
},
|
|
43817
43857
|
/**
|
|
43818
43858
|
* Callback when a region is selected/highlighted.
|
|
@@ -43833,8 +43873,8 @@ const N5 = [
|
|
|
43833
43873
|
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
43874
|
if (this.viewingMode === "Annotation") {
|
|
43835
43875
|
this.tData.label = i, this.tData.region = r;
|
|
43836
|
-
const s =
|
|
43837
|
-
if (this._editingZincObject = s, s) {
|
|
43876
|
+
const s = z4(n);
|
|
43877
|
+
if (this.createData.editingIndex === -1 && (this._editingZincObject = s), s) {
|
|
43838
43878
|
const o = this._editingZincObject.region.getFullPath() + "/", a = this._editingZincObject.groupName;
|
|
43839
43879
|
this.annotationFeature = xM(
|
|
43840
43880
|
this._editingZincObject,
|
|
@@ -43856,13 +43896,13 @@ const N5 = [
|
|
|
43856
43896
|
group: ""
|
|
43857
43897
|
}), this.$emit("scaffold-selected", n.identifiers);
|
|
43858
43898
|
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.
|
|
43899
|
+
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
43900
|
else if (n.eventType == 3 && n.identifiers.length > 0 && n.identifiers[0]) {
|
|
43861
43901
|
if (n.identifiers[0].coords) {
|
|
43862
43902
|
const s = this.$refs.scaffoldContainer.$el.getBoundingClientRect();
|
|
43863
43903
|
this.tData.x = n.identifiers[0].coords.x - s.left, this.tData.y = n.identifiers[0].coords.y - s.top;
|
|
43864
43904
|
}
|
|
43865
|
-
this.
|
|
43905
|
+
this.createEditTemporaryPrimitive(n.identifiers);
|
|
43866
43906
|
}
|
|
43867
43907
|
}
|
|
43868
43908
|
},
|
|
@@ -43998,13 +44038,13 @@ const N5 = [
|
|
|
43998
44038
|
this.$module.scene
|
|
43999
44039
|
);
|
|
44000
44040
|
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(
|
|
44041
|
+
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
44042
|
this.$_liveCoordinatesUpdated
|
|
44003
|
-
), r && (this.$module.setupLiveCoordinates(e), this.$_liveCoordinatesUpdated = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44043
|
+
), this.$_liveCoordinatesUpdated = void 0), r && (this.$module.setupLiveCoordinates(e), this.$_liveCoordinatesUpdated = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44004
44044
|
this.liveUpdateTooltipPosition
|
|
44005
|
-
))) : (this.hideRegionTooltip(), i && (this.$module.scene.viewAll(), this.$_regionTooltipCallback && this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
44045
|
+
))) : (this.hideRegionTooltip(), i && (this.$module.scene.viewAll(), this.$_regionTooltipCallback && (this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
44006
44046
|
this.$_regionTooltipCallback
|
|
44007
|
-
), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44047
|
+
), this.$module.$_regionTooltipCallback = void 0), this.$_regionTooltipCallback = this.$module.zincRenderer.addPostRenderCallbackFunction(
|
|
44008
44048
|
this.displayTooltipOfObjectsCallback(
|
|
44009
44049
|
n,
|
|
44010
44050
|
e,
|
|
@@ -44062,7 +44102,7 @@ const N5 = [
|
|
|
44062
44102
|
showRegionTooltipWithAnnotations: function(n, e, t) {
|
|
44063
44103
|
if (this.$module.scene) {
|
|
44064
44104
|
const i = _v(this.$module.scene, n);
|
|
44065
|
-
if (i && i.objects.length > 0)
|
|
44105
|
+
if (this._editingZincObject && (i.regionPath = this._editingZincObject.region.getFullPath() + "/", i.label = this._editingZincObject.groupName), i && i.objects.length > 0)
|
|
44066
44106
|
if (this.annotationSidebar) {
|
|
44067
44107
|
const s = [{
|
|
44068
44108
|
featureId: (this.tData.region ? this.tData.region + "/" : "") + this.tData.label,
|
|
@@ -44143,7 +44183,7 @@ const N5 = [
|
|
|
44143
44183
|
hideRegionTooltip: function() {
|
|
44144
44184
|
this.$_liveCoordinatesUpdated && (this.$module.zincRenderer.removePostRenderCallbackFunction(
|
|
44145
44185
|
this.$_liveCoordinatesUpdated
|
|
44146
|
-
), this.$module.setupLiveCoordinates(void 0)), this.tData.active = !1, this.tData.visible = !1, this.tData.region = void 0;
|
|
44186
|
+
), this.$module.setupLiveCoordinates(void 0), this.$_liveCoordinatesUpdated = void 0), this.tData.active = !1, this.tData.visible = !1, this.tData.region = void 0;
|
|
44147
44187
|
},
|
|
44148
44188
|
/**
|
|
44149
44189
|
* Currently will apply to non-nerve object and object without anatomical id
|
|
@@ -44312,6 +44352,12 @@ const N5 = [
|
|
|
44312
44352
|
e && e.group && (e.isSearch ? this.search(e.group, !0) : this.changeActiveByName(e.group, e.region, !0));
|
|
44313
44353
|
}
|
|
44314
44354
|
},
|
|
44355
|
+
calculateBoundingBox: function() {
|
|
44356
|
+
if (this.isReady) {
|
|
44357
|
+
const { centre: n, size: e } = this.$module.getCentreAndSize();
|
|
44358
|
+
this.boundingDims.centre = n, this.boundingDims.size = e;
|
|
44359
|
+
}
|
|
44360
|
+
},
|
|
44315
44361
|
downloadErrorCallback: function() {
|
|
44316
44362
|
return (n) => {
|
|
44317
44363
|
this.$emit("on-error", n);
|
|
@@ -44329,9 +44375,7 @@ const N5 = [
|
|
|
44329
44375
|
["x-plane", "y-plane", "z-plane"],
|
|
44330
44376
|
[16733525, 5635925, 5592575],
|
|
44331
44377
|
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(() => {
|
|
44378
|
+
), this.calculateBoundingBox(), this.isReady = !0, this.$nextTick(() => {
|
|
44335
44379
|
this.restoreSettings(n), this.$emit("on-ready");
|
|
44336
44380
|
});
|
|
44337
44381
|
};
|
|
@@ -44529,11 +44573,11 @@ const N5 = [
|
|
|
44529
44573
|
this.setMarkerModeForObjectsWithName(n, e, "on");
|
|
44530
44574
|
}
|
|
44531
44575
|
}
|
|
44532
|
-
},
|
|
44576
|
+
}, 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
44577
|
key: 0,
|
|
44534
44578
|
class: "viewing-mode-title"
|
|
44535
|
-
},
|
|
44536
|
-
function
|
|
44579
|
+
}, q5 = ["onClick"], Q5 = ["onClick"];
|
|
44580
|
+
function eU(n, e, t, i, r, s) {
|
|
44537
44581
|
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
44582
|
return Lt((ve(), Ve(L, {
|
|
44539
44583
|
ref: "scaffoldContainer",
|
|
@@ -44660,7 +44704,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44660
44704
|
]),
|
|
44661
44705
|
_: 1
|
|
44662
44706
|
}, 8, ["visible"]),
|
|
44663
|
-
Ne("div",
|
|
44707
|
+
Ne("div", G5, [
|
|
44664
44708
|
le(g, {
|
|
44665
44709
|
class: "control-layer",
|
|
44666
44710
|
ref: "primitiveControls",
|
|
@@ -44724,15 +44768,15 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44724
44768
|
default: de(() => [
|
|
44725
44769
|
le(y, { class: "tab-content" }, {
|
|
44726
44770
|
default: de(() => [
|
|
44727
|
-
Ne("div",
|
|
44771
|
+
Ne("div", H5, [
|
|
44728
44772
|
e[33] || (e[33] = rt(" Original duration: ")),
|
|
44729
|
-
Ne("div",
|
|
44773
|
+
Ne("div", W5, gt(n.orginalDuration), 1)
|
|
44730
44774
|
]),
|
|
44731
|
-
Ne("div",
|
|
44775
|
+
Ne("div", j5, [
|
|
44732
44776
|
e[34] || (e[34] = rt(" Animation duration: ")),
|
|
44733
|
-
Ne("div",
|
|
44777
|
+
Ne("div", $5, gt(n.animateDuration), 1)
|
|
44734
44778
|
]),
|
|
44735
|
-
Ne("div",
|
|
44779
|
+
Ne("div", Z5, [
|
|
44736
44780
|
e[35] || (e[35] = rt(" Playback speed ")),
|
|
44737
44781
|
le(x, {
|
|
44738
44782
|
teleported: !0,
|
|
@@ -44765,7 +44809,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44765
44809
|
]),
|
|
44766
44810
|
_: 1
|
|
44767
44811
|
}, 8, ["visible"])) : ke("", !0),
|
|
44768
|
-
Ne("div",
|
|
44812
|
+
Ne("div", X5, [
|
|
44769
44813
|
le(h, {
|
|
44770
44814
|
visible: n.hoverVisibilities[0].value,
|
|
44771
44815
|
content: "Zoom in",
|
|
@@ -44879,7 +44923,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44879
44923
|
"virtual-triggering": ""
|
|
44880
44924
|
}, {
|
|
44881
44925
|
default: de(() => [
|
|
44882
|
-
Ne("div",
|
|
44926
|
+
Ne("div", Y5, [
|
|
44883
44927
|
le(y, { class: "backgroundText" }, {
|
|
44884
44928
|
default: de(() => e[37] || (e[37] = [
|
|
44885
44929
|
rt("Viewing Mode")
|
|
@@ -44888,15 +44932,15 @@ function Q5(n, e, t, i, r, s) {
|
|
|
44888
44932
|
}),
|
|
44889
44933
|
le(y, { class: "backgroundControl" }, {
|
|
44890
44934
|
default: de(() => [
|
|
44891
|
-
Ne("div",
|
|
44935
|
+
Ne("div", J5, [
|
|
44892
44936
|
(ve(!0), Ce(Ft, null, Gn(n.viewingModes, (F, S, T) => (ve(), Ce(Ft, { key: S }, [
|
|
44893
|
-
S === n.viewingMode ? (ve(), Ce("span",
|
|
44937
|
+
S === n.viewingMode ? (ve(), Ce("span", K5, [
|
|
44894
44938
|
Ne("b", null, gt(S), 1)
|
|
44895
44939
|
])) : (ve(), Ce("span", {
|
|
44896
44940
|
key: 1,
|
|
44897
44941
|
class: "viewing-mode-unselected",
|
|
44898
44942
|
onClick: (E) => s.changeViewingMode(S)
|
|
44899
|
-
}, gt(S), 9,
|
|
44943
|
+
}, gt(S), 9, q5))
|
|
44900
44944
|
], 64))), 128))
|
|
44901
44945
|
]),
|
|
44902
44946
|
le(y, { class: "viewing-mode-description" }, {
|
|
@@ -45002,7 +45046,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
45002
45046
|
F == n.currentBackground ? "active" : ""
|
|
45003
45047
|
]),
|
|
45004
45048
|
onClick: (S) => s.backgroundChangeCallback(F)
|
|
45005
|
-
}, null, 10,
|
|
45049
|
+
}, null, 10, Q5))), 128))
|
|
45006
45050
|
]),
|
|
45007
45051
|
_: 1
|
|
45008
45052
|
})
|
|
@@ -45076,7 +45120,7 @@ function Q5(n, e, t, i, r, s) {
|
|
|
45076
45120
|
[_, n.loading]
|
|
45077
45121
|
]);
|
|
45078
45122
|
}
|
|
45079
|
-
const
|
|
45123
|
+
const oU = /* @__PURE__ */ ki(V5, [["render", eU], ["__scopeId", "data-v-d72bffca"]]);
|
|
45080
45124
|
export {
|
|
45081
|
-
|
|
45125
|
+
oU as ScaffoldVuer
|
|
45082
45126
|
};
|