brainsmatics 1.1.12 → 1.1.13
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/{deflate-1cbacea0.js → deflate-25e7fd55.js} +1 -1
- package/dist/{deflate-08aa29f0.mjs → deflate-e60d5495.mjs} +1 -1
- package/dist/{index-b1c7a2a1.js → index-b780a772.js} +22 -22
- package/dist/{index-5bbbf59d.mjs → index-f9efe526.mjs} +385 -372
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lerc-4fdf5603.js → lerc-14d1f6bd.js} +1 -1
- package/dist/{lerc-42032239.mjs → lerc-c951c535.mjs} +1 -1
- package/package.json +1 -1
|
@@ -18571,7 +18571,7 @@ function Uct(t, e, n, r, i, a, o) {
|
|
|
18571
18571
|
let io = function(Mr, Ba) {
|
|
18572
18572
|
var Za = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Fe, da = H.x + Mr, Ko = H.y + Ba, Po = da + ue, Ci = Ko + oe, ba = Math.max(da, Za.left), ns = Math.max(Ko, Za.top), Ai = Math.min(Po, Za.right), go = Math.min(Ci, Za.bottom);
|
|
18573
18573
|
return Math.max(0, (Ai - ba) * (go - ns));
|
|
18574
|
-
},
|
|
18574
|
+
}, ai = function() {
|
|
18575
18575
|
vt = H.y + an, zt = vt + oe, gn = H.x + Kt, Be = gn + ue;
|
|
18576
18576
|
};
|
|
18577
18577
|
var b, E, C = e, S = C.ownerDocument, x = B6(C), I = x.getComputedStyle(C), P = I.width, A = I.height, N = I.position, D = C.style.left, U = C.style.top, z = C.style.right, B = C.style.bottom, j = C.style.overflow, V = rt(rt({}, i[r]), a), G = S.createElement("div");
|
|
@@ -18617,7 +18617,7 @@ function Uct(t, e, n, r, i, a, o) {
|
|
|
18617
18617
|
var Et = V.points || [], Xe = xt(Et, 2), nt = Xe[0], bt = Xe[1], Pe = sfe(bt), gt = sfe(nt), Qt = NS(W, Pe), Nt = NS(H, gt), Gt = rt({}, V), Kt = Qt.x - Nt.x + Ze, an = Qt.y - Nt.y + Ye, yn = io(Kt, an), Ln = io(Kt, an, qe), An = NS(W, ["t", "l"]), Zn = NS(H, ["t", "l"]), Ir = NS(W, ["b", "r"]), jr = NS(H, ["b", "r"]), jn = V.overflow || {}, Wt = jn.adjustX, zn = jn.adjustY, En = jn.shiftX, pr = jn.shiftY, gr = function(Ba) {
|
|
18618
18618
|
return typeof Ba == "boolean" ? Ba : Ba >= 0;
|
|
18619
18619
|
}, vt, zt, gn, Be;
|
|
18620
|
-
|
|
18620
|
+
ai();
|
|
18621
18621
|
var _t = gr(zn), Dt = gt[0] === Pe[0];
|
|
18622
18622
|
if (_t && gt[0] === "t" && (zt > we.bottom || h.current.bt)) {
|
|
18623
18623
|
var Ft = an;
|
|
@@ -18652,7 +18652,7 @@ function Uct(t, e, n, r, i, a, o) {
|
|
|
18652
18652
|
kr > yn || kr === yn && (!Ae || // Choose recommend one
|
|
18653
18653
|
cr >= Ln) ? (h.current.lr = !0, Kt = Cr, Ze = -Ze, Gt.points = [B1(gt, 1), B1(Pe, 1)]) : h.current.lr = !1;
|
|
18654
18654
|
}
|
|
18655
|
-
|
|
18655
|
+
ai();
|
|
18656
18656
|
var Cn = En === !0 ? 0 : En;
|
|
18657
18657
|
typeof Cn == "number" && (gn < qe.left && (Kt -= gn - qe.left - Ze, W.x + he < qe.left + Cn && (Kt += W.x - qe.left + he - Cn)), Be > qe.right && (Kt -= Be - qe.right - Ze, W.x > qe.right - Cn && (Kt += W.x - qe.right + Cn)));
|
|
18658
18658
|
var sr = pr === !0 ? 0 : pr;
|
|
@@ -18815,7 +18815,7 @@ function Vct() {
|
|
|
18815
18815
|
za(), fi();
|
|
18816
18816
|
}, io = function(di) {
|
|
18817
18817
|
gr(!1), sr(), g == null || g(di);
|
|
18818
|
-
},
|
|
18818
|
+
}, ai = function() {
|
|
18819
18819
|
return new Promise(function(di) {
|
|
18820
18820
|
za(), Be(function() {
|
|
18821
18821
|
return di;
|
|
@@ -18900,7 +18900,7 @@ function Vct() {
|
|
|
18900
18900
|
motion: gt,
|
|
18901
18901
|
maskMotion: Qt,
|
|
18902
18902
|
onVisibleChanged: io,
|
|
18903
|
-
onPrepare:
|
|
18903
|
+
onPrepare: ai,
|
|
18904
18904
|
forceRender: P,
|
|
18905
18905
|
autoDestroy: be,
|
|
18906
18906
|
getPopupContainer: I,
|
|
@@ -19171,8 +19171,8 @@ var Zct = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction
|
|
|
19171
19171
|
values: [ha]
|
|
19172
19172
|
});
|
|
19173
19173
|
}
|
|
19174
|
-
for (var Ao = arguments.length, io = new Array(Ao > 1 ? Ao - 1 : 0),
|
|
19175
|
-
io[
|
|
19174
|
+
for (var Ao = arguments.length, io = new Array(Ao > 1 ? Ao - 1 : 0), ai = 1; ai < Ao; ai++)
|
|
19175
|
+
io[ai - 1] = arguments[ai];
|
|
19176
19176
|
if (Zn && (!Mi || !Dt.current)) {
|
|
19177
19177
|
var Mr;
|
|
19178
19178
|
Mi && (Dt.current = !0), (Mr = Ye.current) === null || Mr === void 0 || Mr.onKeyDown.apply(Mr, [lr].concat(io));
|
|
@@ -26551,10 +26551,10 @@ var Ept = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "item
|
|
|
26551
26551
|
focus: function(Wr) {
|
|
26552
26552
|
var Ji, Mi = tn(), ji = hK(Mi, wt), ha = ji.elements, ro = ji.key2element, za = ji.element2key, Ao = Ene(ft.current, ha), io = Rn ?? (Ao[0] ? za.get(Ao[0]) : (Ji = $e.find(function(Ba) {
|
|
26553
26553
|
return !Ba.props.disabled;
|
|
26554
|
-
})) === null || Ji === void 0 ? void 0 : Ji.key),
|
|
26555
|
-
if (io &&
|
|
26554
|
+
})) === null || Ji === void 0 ? void 0 : Ji.key), ai = ro.get(io);
|
|
26555
|
+
if (io && ai) {
|
|
26556
26556
|
var Mr;
|
|
26557
|
-
|
|
26557
|
+
ai == null || (Mr = ai.focus) === null || Mr === void 0 || Mr.call(ai, Wr);
|
|
26558
26558
|
}
|
|
26559
26559
|
}
|
|
26560
26560
|
};
|
|
@@ -47848,14 +47848,14 @@ function uxt(t, e) {
|
|
|
47848
47848
|
prefixCls: d7e,
|
|
47849
47849
|
emptyText: cxt
|
|
47850
47850
|
}, t), r = n.prefixCls, i = n.className, a = n.rowClassName, o = n.style, s = n.data, l = n.rowKey, u = n.scroll, d = n.tableLayout, f = n.direction, p = n.title, h = n.footer, g = n.summary, y = n.caption, v = n.id, m = n.showHeader, b = n.components, E = n.emptyText, C = n.onRow, S = n.onHeaderRow, x = n.onScroll, I = n.internalHooks, P = n.transformColumns, A = n.internalRefs, N = n.tailor, D = n.getContainerWidth, U = n.sticky, z = n.rowHoverable, B = z === void 0 ? !0 : z, j = s || sxt, V = !!j.length, G = I === Z6;
|
|
47851
|
-
process.env.NODE_ENV !== "production" && (["onRowClick", "onRowDoubleClick", "onRowContextMenu", "onRowMouseEnter", "onRowMouseLeave"].forEach(function(
|
|
47852
|
-
Tf(n[
|
|
47851
|
+
process.env.NODE_ENV !== "production" && (["onRowClick", "onRowDoubleClick", "onRowContextMenu", "onRowMouseEnter", "onRowMouseLeave"].forEach(function(ai) {
|
|
47852
|
+
Tf(n[ai] === void 0, "`".concat(ai, "` is removed, please use `onRow` instead."));
|
|
47853
47853
|
}), Tf(!("getBodyWrapper" in n), "`getBodyWrapper` is deprecated, please use custom `components` instead."));
|
|
47854
|
-
var W = _.useCallback(function(
|
|
47855
|
-
return Jne(b,
|
|
47854
|
+
var W = _.useCallback(function(ai, Mr) {
|
|
47855
|
+
return Jne(b, ai) || Mr;
|
|
47856
47856
|
}, [b]), Z = _.useMemo(function() {
|
|
47857
|
-
return typeof l == "function" ? l : function(
|
|
47858
|
-
var Mr =
|
|
47857
|
+
return typeof l == "function" ? l : function(ai) {
|
|
47858
|
+
var Mr = ai && ai[l];
|
|
47859
47859
|
return process.env.NODE_ENV !== "production" && Tf(Mr !== void 0, "Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."), Mr;
|
|
47860
47860
|
};
|
|
47861
47861
|
}, [l]), H = W(["body"]), X = nxt(), te = xt(X, 3), K = te[0], Y = te[1], Q = te[2], ie = QSt(n, j, Z), ee = xt(ie, 6), oe = ee[0], ue = ee[1], pe = ee[2], he = ee[3], ae = ee[4], Se = ee[5], re = u == null ? void 0 : u.x, be = _.useState(0), fe = xt(be, 2), Ae = fe[0], Ve = fe[1], qe = JSt(rt(rt(rt({}, n), oe), {}, {
|
|
@@ -47897,12 +47897,12 @@ function uxt(t, e) {
|
|
|
47897
47897
|
}
|
|
47898
47898
|
};
|
|
47899
47899
|
});
|
|
47900
|
-
var ft = _.useRef(), wt = _.useState(!1), At = xt(wt, 2), ot = At[0], Et = At[1], Xe = _.useState(!1), nt = xt(Xe, 2), bt = nt[0], Pe = nt[1], gt = s7e(/* @__PURE__ */ new Map()), Qt = xt(gt, 2), Nt = Qt[0], Gt = Qt[1], Kt = wD(je), an = Kt.map(function(
|
|
47901
|
-
return Nt.get(
|
|
47900
|
+
var ft = _.useRef(), wt = _.useState(!1), At = xt(wt, 2), ot = At[0], Et = At[1], Xe = _.useState(!1), nt = xt(Xe, 2), bt = nt[0], Pe = nt[1], gt = s7e(/* @__PURE__ */ new Map()), Qt = xt(gt, 2), Nt = Qt[0], Gt = Qt[1], Kt = wD(je), an = Kt.map(function(ai) {
|
|
47901
|
+
return Nt.get(ai);
|
|
47902
47902
|
}), yn = _.useMemo(function() {
|
|
47903
47903
|
return an;
|
|
47904
|
-
}, [an.join("_")]), Ln = ixt(yn, je, f), An = u && TK(u.y), Zn = u && TK($e) || !!oe.fixed, Ir = Zn && je.some(function(
|
|
47905
|
-
var Mr =
|
|
47904
|
+
}, [an.join("_")]), Ln = ixt(yn, je, f), An = u && TK(u.y), Zn = u && TK($e) || !!oe.fixed, Ir = Zn && je.some(function(ai) {
|
|
47905
|
+
var Mr = ai.fixed;
|
|
47906
47906
|
return Mr;
|
|
47907
47907
|
}), jr = _.useRef(), jn = rxt(U, r), Wt = jn.isSticky, zn = jn.offsetHeader, En = jn.offsetSummary, pr = jn.offsetScroll, gr = jn.stickyClassName, vt = jn.container, zt = _.useMemo(function() {
|
|
47908
47908
|
return g == null ? void 0 : g(j);
|
|
@@ -47918,22 +47918,22 @@ function uxt(t, e) {
|
|
|
47918
47918
|
width: $e === !0 ? "auto" : $e,
|
|
47919
47919
|
minWidth: "100%"
|
|
47920
47920
|
});
|
|
47921
|
-
var Ft = _.useCallback(function(
|
|
47921
|
+
var Ft = _.useCallback(function(ai, Mr) {
|
|
47922
47922
|
CSt(ke.current) && Gt(function(Ba) {
|
|
47923
|
-
if (Ba.get(
|
|
47923
|
+
if (Ba.get(ai) !== Mr) {
|
|
47924
47924
|
var Za = new Map(Ba);
|
|
47925
|
-
return Za.set(
|
|
47925
|
+
return Za.set(ai, Mr), Za;
|
|
47926
47926
|
}
|
|
47927
47927
|
return Ba;
|
|
47928
47928
|
});
|
|
47929
47929
|
}, []), Mt = txt(null), Zt = xt(Mt, 2), Ht = Zt[0], tn = Zt[1];
|
|
47930
|
-
function Mn(
|
|
47931
|
-
Mr && (typeof Mr == "function" ? Mr(
|
|
47932
|
-
Mr.scrollLeft =
|
|
47930
|
+
function Mn(ai, Mr) {
|
|
47931
|
+
Mr && (typeof Mr == "function" ? Mr(ai) : Mr.scrollLeft !== ai && (Mr.scrollLeft = ai, Mr.scrollLeft !== ai && setTimeout(function() {
|
|
47932
|
+
Mr.scrollLeft = ai;
|
|
47933
47933
|
}, 0)));
|
|
47934
47934
|
}
|
|
47935
|
-
var Jt = yC(function(
|
|
47936
|
-
var Mr =
|
|
47935
|
+
var Jt = yC(function(ai) {
|
|
47936
|
+
var Mr = ai.currentTarget, Ba = ai.scrollLeft, Za = f === "rtl", da = typeof Ba == "number" ? Ba : Mr.scrollLeft, Ko = Mr || lxt;
|
|
47937
47937
|
if (!tn() || tn() === Ko) {
|
|
47938
47938
|
var Po;
|
|
47939
47939
|
Ht(Ko), Mn(da, st.current), Mn(da, Ze.current), Mn(da, ft.current), Mn(da, (Po = jr.current) === null || Po === void 0 ? void 0 : Po.setScrollLeft);
|
|
@@ -47950,8 +47950,8 @@ function uxt(t, e) {
|
|
|
47950
47950
|
}
|
|
47951
47951
|
Za ? (Et(-da < ba - ns), Pe(-da > 0)) : (Et(da > 0), Pe(da < ba - ns));
|
|
47952
47952
|
}
|
|
47953
|
-
}), Vt = yC(function(
|
|
47954
|
-
Jt(
|
|
47953
|
+
}), Vt = yC(function(ai) {
|
|
47954
|
+
Jt(ai), x == null || x(ai);
|
|
47955
47955
|
}), nn = function() {
|
|
47956
47956
|
if (Zn && Ze.current) {
|
|
47957
47957
|
var Mr;
|
|
@@ -47978,13 +47978,13 @@ function uxt(t, e) {
|
|
|
47978
47978
|
}, []), _.useEffect(function() {
|
|
47979
47979
|
G && A && (A.body.current = Ze.current);
|
|
47980
47980
|
});
|
|
47981
|
-
var br = _.useCallback(function(
|
|
47982
|
-
return /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(she,
|
|
47983
|
-
}, [gn, zt]), ii = _.useCallback(function(
|
|
47984
|
-
return /* @__PURE__ */ _.createElement(dR,
|
|
47981
|
+
var br = _.useCallback(function(ai) {
|
|
47982
|
+
return /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(she, ai), gn === "top" && /* @__PURE__ */ _.createElement(dR, ai, zt));
|
|
47983
|
+
}, [gn, zt]), ii = _.useCallback(function(ai) {
|
|
47984
|
+
return /* @__PURE__ */ _.createElement(dR, ai, zt);
|
|
47985
47985
|
}, [zt]), bi = W(["table"], "table"), fi = _.useMemo(function() {
|
|
47986
|
-
return d || (Ir ? $e === "max-content" ? "auto" : "fixed" : An || Wt || je.some(function(
|
|
47987
|
-
var Mr =
|
|
47986
|
+
return d || (Ir ? $e === "max-content" ? "auto" : "fixed" : An || Wt || je.some(function(ai) {
|
|
47987
|
+
var Mr = ai.ellipsis;
|
|
47988
47988
|
return Mr;
|
|
47989
47989
|
}) ? "fixed" : "auto");
|
|
47990
47990
|
}, [An, Ir, je, d, Wt]), ar, xr = {
|
|
@@ -48000,8 +48000,8 @@ function uxt(t, e) {
|
|
|
48000
48000
|
data: j,
|
|
48001
48001
|
measureColumnWidth: An || Zn || Wt
|
|
48002
48002
|
}), Wr = /* @__PURE__ */ _.createElement(r7e, {
|
|
48003
|
-
colWidths: je.map(function(
|
|
48004
|
-
var Mr =
|
|
48003
|
+
colWidths: je.map(function(ai) {
|
|
48004
|
+
var Mr = ai.width;
|
|
48005
48005
|
return Mr;
|
|
48006
48006
|
}),
|
|
48007
48007
|
columns: je
|
|
@@ -48018,8 +48018,8 @@ function uxt(t, e) {
|
|
|
48018
48018
|
scrollbarSize: cr,
|
|
48019
48019
|
ref: Ze,
|
|
48020
48020
|
onScroll: Jt
|
|
48021
|
-
}), xr.colWidths = je.map(function(
|
|
48022
|
-
var Ba =
|
|
48021
|
+
}), xr.colWidths = je.map(function(ai, Mr) {
|
|
48022
|
+
var Ba = ai.width, Za = Mr === je.length - 1 ? Ba - cr : Ba;
|
|
48023
48023
|
return typeof Za == "number" && !Number.isNaN(Za) ? Za : (process.env.NODE_ENV !== "production" && Tf(n.columns.length === 0, "When use `components.body` with render props. Each column should have a fixed `width` value."), 0);
|
|
48024
48024
|
})) : ha = /* @__PURE__ */ _.createElement("div", {
|
|
48025
48025
|
style: rt(rt({}, Be), _t),
|
|
@@ -48115,8 +48115,8 @@ function uxt(t, e) {
|
|
|
48115
48115
|
onTriggerExpand: Se,
|
|
48116
48116
|
expandIconColumnIndex: oe.expandIconColumnIndex,
|
|
48117
48117
|
indentSize: oe.indentSize,
|
|
48118
|
-
allColumnsFixedLeft: je.every(function(
|
|
48119
|
-
return
|
|
48118
|
+
allColumnsFixedLeft: je.every(function(ai) {
|
|
48119
|
+
return ai.fixed === "left";
|
|
48120
48120
|
}),
|
|
48121
48121
|
emptyNode: Ar,
|
|
48122
48122
|
// Column
|
|
@@ -80894,13 +80894,13 @@ const uLt = (t) => {
|
|
|
80894
80894
|
}
|
|
80895
80895
|
Ce.current.getObjectByName("sphereMiddelClick") || Ce.current.add(ku);
|
|
80896
80896
|
}, [S]), In(() => {
|
|
80897
|
-
var Ct, un, $t, Gn, tr, $r, li, Ei, Jr, ci, Ti, Dn,
|
|
80897
|
+
var Ct, un, $t, Gn, tr, $r, li, Ei, Jr, ci, Ti, Dn, ir, ln, Rr, Te, Me, at, ct, lt, Rt, ht, me, de, Oe, tt, Ge, ut, jt, Ot, hn, Pt, yt, vr, qn, nr, vn, ur, Ur, mn, cn, si, ni, Hr, Hs, Ha, Ro, Si, pi, ga, Rs, lo, $o, uc, Js, Ds, co, uo, ks, Al, Rl, yr, gs, Us, Os, Fs, Co, Do, Vo, eo, ao, ml;
|
|
80898
80898
|
if (Ce.current.children.filter((Ss) => Ss.name && Ss.name.startsWith("test_")).forEach((Ss) => {
|
|
80899
80899
|
Ce.current.remove(Ss);
|
|
80900
80900
|
}), ie) {
|
|
80901
80901
|
h && (h.current = []);
|
|
80902
80902
|
const Ss = Ce.current.getObjectByName("axesHelperGroup");
|
|
80903
|
-
Ss && Ss.rotation.set(8.3 / 180 * Math.PI, 0, 0), (Ct = bt.current) != null && Ct.mouseLine_w && Ce.current.remove((un = bt.current) == null ? void 0 : un.mouseLine_w), ($t = bt.current) != null && $t.mouseLine_h && Ce.current.remove((Gn = bt.current) == null ? void 0 : Gn.mouseLine_h), typeof ((tr = bt.current) == null ? void 0 : tr.coordText) == "object" && Ce.current.remove(bt.current.coordText), typeof (($r = bt.current) == null ? void 0 : $r.coordTextReverse) == "object" && Ce.current.remove(bt.current.coordTextReverse), (li = nt.current) != null && li.mouseLine_w && Ce.current.remove((Ei = nt.current) == null ? void 0 : Ei.mouseLine_w), (Jr = nt.current) != null && Jr.mouseLine_h && Ce.current.remove((ci = nt.current) == null ? void 0 : ci.mouseLine_h), typeof ((Ti = nt.current) == null ? void 0 : Ti.coordText) == "object" && Ce.current.remove(nt.current.coordText), typeof ((Dn = nt.current) == null ? void 0 : Dn.coordTextReverse) == "object" && Ce.current.remove(nt.current.coordTextReverse), (
|
|
80903
|
+
Ss && Ss.rotation.set(8.3 / 180 * Math.PI, 0, 0), (Ct = bt.current) != null && Ct.mouseLine_w && Ce.current.remove((un = bt.current) == null ? void 0 : un.mouseLine_w), ($t = bt.current) != null && $t.mouseLine_h && Ce.current.remove((Gn = bt.current) == null ? void 0 : Gn.mouseLine_h), typeof ((tr = bt.current) == null ? void 0 : tr.coordText) == "object" && Ce.current.remove(bt.current.coordText), typeof (($r = bt.current) == null ? void 0 : $r.coordTextReverse) == "object" && Ce.current.remove(bt.current.coordTextReverse), (li = nt.current) != null && li.mouseLine_w && Ce.current.remove((Ei = nt.current) == null ? void 0 : Ei.mouseLine_w), (Jr = nt.current) != null && Jr.mouseLine_h && Ce.current.remove((ci = nt.current) == null ? void 0 : ci.mouseLine_h), typeof ((Ti = nt.current) == null ? void 0 : Ti.coordText) == "object" && Ce.current.remove(nt.current.coordText), typeof ((Dn = nt.current) == null ? void 0 : Dn.coordTextReverse) == "object" && Ce.current.remove(nt.current.coordTextReverse), (ir = gt.current) != null && ir.mouseLine_w && Ce.current.remove((ln = gt.current) == null ? void 0 : ln.mouseLine_w), (Rr = gt.current) != null && Rr.mouseLine_h && Ce.current.remove((Te = gt.current) == null ? void 0 : Te.mouseLine_h), typeof ((Me = gt.current) == null ? void 0 : Me.coordText) == "object" && Ce.current.remove(gt.current.coordText), typeof ((at = gt.current) == null ? void 0 : at.coordTextReverse) == "object" && Ce.current.remove(gt.current.coordTextReverse), (ct = Pe.current) != null && ct.mouseLine_w && Ce.current.remove((lt = Pe.current) == null ? void 0 : lt.mouseLine_w), (Rt = Pe.current) != null && Rt.mouseLine_h && Ce.current.remove((ht = Pe.current) == null ? void 0 : ht.mouseLine_h), typeof ((me = Pe.current) == null ? void 0 : me.coordText) == "object" && Ce.current.remove(Pe.current.coordText), typeof ((de = Pe.current) == null ? void 0 : de.coordTextReverse) == "object" && Ce.current.remove(Pe.current.coordTextReverse), (Oe = Xe.current) != null && Oe.mouseLine_w && Ce.current.remove((tt = Xe.current) == null ? void 0 : tt.mouseLine_w), (Ge = Xe.current) != null && Ge.mouseLine_h && Ce.current.remove((ut = Xe.current) == null ? void 0 : ut.mouseLine_h), typeof ((jt = Xe.current) == null ? void 0 : jt.coordText_lb) == "object" && Ce.current.remove(Xe.current.coordText_lb), typeof ((Ot = Xe.current) == null ? void 0 : Ot.coordText_rb) == "object" && Ce.current.remove(Xe.current.coordText_rb), typeof ((hn = Xe.current) == null ? void 0 : hn.coordText_rf) == "object" && Ce.current.remove(Xe.current.coordText_rf), typeof ((Pt = Xe.current) == null ? void 0 : Pt.coordText_lf) == "object" && Ce.current.remove(Xe.current.coordText_lf), (yt = Et.current) != null && yt.mouseLine_w && Ce.current.remove((vr = Et.current) == null ? void 0 : vr.mouseLine_w), (qn = Et.current) != null && qn.mouseLine_h && Ce.current.remove((nr = Et.current) == null ? void 0 : nr.mouseLine_h);
|
|
80904
80904
|
} else {
|
|
80905
80905
|
h && (h.current = []);
|
|
80906
80906
|
const Ss = Ce.current.getObjectByName("axesHelperGroup");
|
|
@@ -80990,8 +80990,8 @@ const uLt = (t) => {
|
|
|
80990
80990
|
if (Ti) {
|
|
80991
80991
|
let Dn = new bo();
|
|
80992
80992
|
if (Dn.setFromAxisAngle(new Ie(1, 0, 0), Math.PI / 2), v && v.current.length <= 1) {
|
|
80993
|
-
let
|
|
80994
|
-
C.current =
|
|
80993
|
+
let ir = sn.clone().applyEuler(Ce.current.rotation);
|
|
80994
|
+
C.current = ir.clone().applyMatrix4(Ti.matrixWorld.clone().invert()).applyQuaternion(Dn);
|
|
80995
80995
|
}
|
|
80996
80996
|
}
|
|
80997
80997
|
v && v.current.length <= 1 && ns();
|
|
@@ -81017,7 +81017,7 @@ const uLt = (t) => {
|
|
|
81017
81017
|
let $t = Hi.current.position.distanceTo(sn);
|
|
81018
81018
|
$t < 5 ? Uv.scale.set(0.25, 0.25, 0.25) : $t < 10 ? Uv.scale.set(0.65, 0.65, 0.65) : Uv.scale.set(1, 1, 1), xr(sn, Ct, "FBX");
|
|
81019
81019
|
}, xr = (sn, Ct = "", un, $t) => {
|
|
81020
|
-
var ln, Rr, Te, Me, at, ct, lt, Rt, ht, me, de, Oe, tt, Ge, ut, jt, Ot, hn, Pt, yt, vr, qn,
|
|
81020
|
+
var ln, Rr, Te, Me, at, ct, lt, Rt, ht, me, de, Oe, tt, Ge, ut, jt, Ot, hn, Pt, yt, vr, qn, nr, vn;
|
|
81021
81021
|
let Gn, tr = sn.clone().applyEuler(Ce.current.rotation);
|
|
81022
81022
|
const $r = fi(tr);
|
|
81023
81023
|
let li = $r.x.toFixed(2), Ei = $r.y.toFixed(2), Jr = $r.z.toFixed(2);
|
|
@@ -81069,8 +81069,8 @@ const uLt = (t) => {
|
|
|
81069
81069
|
`), un == "Points" && Ct != "" && (Gn = `<span style='font-weight:bold'>Lable Name: ${Ct}</span><br>
|
|
81070
81070
|
<span style='font-weight:bold'>Mouse Position: </span><span style='font-weight:normal'>M-L </span>${li}mm /<span style='font-weight:normal'> D-V </span>${Ei}mm /<span style='font-weight:normal'> A-P </span>${Jr}mm<br>
|
|
81071
81071
|
`), Fe(Gn);
|
|
81072
|
-
const ci = Ce.current.rotation, Ti = new Ie(ci.x, ci.y, ci.z).negate(), Dn = new kl(Ti.x, Ti.y, Ti.z),
|
|
81073
|
-
tr.z > -8 && tr.y > -5.57 && tr.x < 5.16 && tr.x > -5.18 && (Et.current && (Et.current.mouseLine_w.position.z = tr.z, Et.current.mouseLine_w.position.x = 0, Et.current.mouseLine_h.position.x = tr.x, Et.current.mouseLine_h.position.z = 0, Et.current.mouseLine_w.position.y = Et.current.mouseLine_w.userData.initY, Et.current.mouseLine_h.position.y = Et.current.mouseLine_h.userData.initY, (ln = Et.current) == null || ln.mouseLine_w.position.applyMatrix4(
|
|
81072
|
+
const ci = Ce.current.rotation, Ti = new Ie(ci.x, ci.y, ci.z).negate(), Dn = new kl(Ti.x, Ti.y, Ti.z), ir = new Ni().makeRotationFromEuler(Dn);
|
|
81073
|
+
tr.z > -8 && tr.y > -5.57 && tr.x < 5.16 && tr.x > -5.18 && (Et.current && (Et.current.mouseLine_w.position.z = tr.z, Et.current.mouseLine_w.position.x = 0, Et.current.mouseLine_h.position.x = tr.x, Et.current.mouseLine_h.position.z = 0, Et.current.mouseLine_w.position.y = Et.current.mouseLine_w.userData.initY, Et.current.mouseLine_h.position.y = Et.current.mouseLine_h.userData.initY, (ln = Et.current) == null || ln.mouseLine_w.position.applyMatrix4(ir), (Rr = Et.current) == null || Rr.mouseLine_h.position.applyMatrix4(ir), (Te = Et.current) == null || Te.mouseLine_w.updateMatrix(), (Me = Et.current) == null || Me.mouseLine_h.updateMatrix()), bt.current && (bt.current.mouseLine_w.position.y = tr.y, bt.current.mouseLine_w.position.x = 0, bt.current.mouseLine_h.position.x = tr.x, bt.current.mouseLine_h.position.y = 0, bt.current.mouseLine_w.position.z = bt.current.mouseLine_w.userData.initZ, bt.current.mouseLine_h.position.z = bt.current.mouseLine_h.userData.initZ, (at = bt.current) == null || at.mouseLine_w.position.applyMatrix4(ir), (ct = bt.current) == null || ct.mouseLine_h.position.applyMatrix4(ir), (lt = bt.current) == null || lt.mouseLine_w.updateMatrix(), (Rt = bt.current) == null || Rt.mouseLine_h.updateMatrix()), Xe.current && (Xe.current.mouseLine_w.position.z = tr.z, Xe.current.mouseLine_w.position.x = 0, Xe.current.mouseLine_h.position.x = tr.x, Xe.current.mouseLine_h.position.z = 0, Xe.current.mouseLine_w.position.y = Xe.current.mouseLine_w.userData.initY, Xe.current.mouseLine_h.position.y = Xe.current.mouseLine_h.userData.initY, (ht = Xe.current) == null || ht.mouseLine_w.position.applyMatrix4(ir), (me = Xe.current) == null || me.mouseLine_h.position.applyMatrix4(ir), (de = Xe.current) == null || de.mouseLine_w.updateMatrix(), (Oe = Xe.current) == null || Oe.mouseLine_h.updateMatrix()), gt.current && (gt.current.mouseLine_w.position.y = tr.y, gt.current.mouseLine_w.position.z = 0, gt.current.mouseLine_h.position.z = tr.z, gt.current.mouseLine_h.position.y = 0, gt.current.mouseLine_w.position.x = gt.current.mouseLine_w.userData.initX, gt.current.mouseLine_h.position.x = gt.current.mouseLine_h.userData.initX, (tt = gt.current) == null || tt.mouseLine_w.position.applyMatrix4(ir), (Ge = gt.current) == null || Ge.mouseLine_h.position.applyMatrix4(ir), (ut = gt.current) == null || ut.mouseLine_w.updateMatrix(), (jt = gt.current) == null || jt.mouseLine_h.updateMatrix()), nt.current && (nt.current.mouseLine_w.position.y = tr.y, nt.current.mouseLine_w.position.x = 0, nt.current.mouseLine_h.position.x = tr.x, nt.current.mouseLine_h.position.y = 0, nt.current.mouseLine_w.position.z = nt.current.mouseLine_w.userData.initZ, nt.current.mouseLine_h.position.z = nt.current.mouseLine_h.userData.initZ, (Ot = nt.current) == null || Ot.mouseLine_w.position.applyMatrix4(ir), (hn = nt.current) == null || hn.mouseLine_h.position.applyMatrix4(ir), (Pt = nt.current) == null || Pt.mouseLine_w.updateMatrix(), (yt = nt.current) == null || yt.mouseLine_h.updateMatrix()), Pe.current && (Pe.current.mouseLine_w.position.y = tr.y, Pe.current.mouseLine_w.position.z = 0, Pe.current.mouseLine_h.position.z = tr.z, Pe.current.mouseLine_h.position.y = 0, Pe.current.mouseLine_w.position.x = Pe.current.mouseLine_w.userData.initX, Pe.current.mouseLine_h.position.x = Pe.current.mouseLine_h.userData.initX, (vr = Pe.current) == null || vr.mouseLine_w.position.applyMatrix4(ir), (qn = Pe.current) == null || qn.mouseLine_h.position.applyMatrix4(ir), (nr = Pe.current) == null || nr.mouseLine_w.updateMatrix(), (vn = Pe.current) == null || vn.mouseLine_h.updateMatrix()));
|
|
81074
81074
|
}, Ar = (sn) => {
|
|
81075
81075
|
e == null || e.domElement.removeEventListener("mousemove", z.current, !1), e == null || e.domElement.addEventListener("mouseup", lr, !1);
|
|
81076
81076
|
}, lr = (sn) => {
|
|
@@ -81096,28 +81096,28 @@ const uLt = (t) => {
|
|
|
81096
81096
|
return $t.castShadow = !0, $t;
|
|
81097
81097
|
}, Mi = (sn, Ct, un, $t, Gn, tr, $r, li, Ei) => {
|
|
81098
81098
|
let Jr = new No();
|
|
81099
|
-
function ci(
|
|
81100
|
-
return typeof
|
|
81099
|
+
function ci(ir) {
|
|
81100
|
+
return typeof ir == "number" && ir % 1 === 0;
|
|
81101
81101
|
}
|
|
81102
81102
|
Ei = Ei == 0 ? Ei : 1, li = li || new Ie(0, 0, 0);
|
|
81103
81103
|
let Ti = ci(Gn) ? $t / Gn : 0, Dn = ci(Gn) ? ($r - tr) / Gn : 0;
|
|
81104
81104
|
if (Ti == 0 || Dn == 0)
|
|
81105
81105
|
return Jr;
|
|
81106
|
-
for (let
|
|
81107
|
-
let ln = (tr +
|
|
81106
|
+
for (let ir = Ei; ir < Gn; ir++) {
|
|
81107
|
+
let ln = (tr + ir * Dn).toFixed(2), Rr = un.clone().multiplyScalar(Ti * ir), Te = Ct.clone().add(Rr), Me = Ji(ln);
|
|
81108
81108
|
Me.position.set(Te.x + li.x, Te.y + li.y, Te.z + li.z), Me.up.set(sn.x, sn.y, sn.z), Me.scale.set(0.2, 0.2, 0.25), Me.lookAt(Hi.current.position), Jr.add(Me);
|
|
81109
81109
|
const at = Ce.current.rotation, ct = new Ie(at.x, at.y, at.z).negate(), lt = new kl(ct.x, ct.y, ct.z);
|
|
81110
81110
|
Jr.rotation.copy(lt), h.current.push(Me);
|
|
81111
81111
|
}
|
|
81112
81112
|
return Jr;
|
|
81113
81113
|
}, ji = () => {
|
|
81114
|
-
var Jr, ci, Ti, Dn,
|
|
81114
|
+
var Jr, ci, Ti, Dn, ir, ln, Rr, Te, Me, at, ct, lt, Rt, ht, me, de, Oe, tt, Ge, ut, jt, Ot, hn, Pt, yt, vr, qn, nr, vn, ur, Ur, mn, cn, si, ni, Hr, Hs, Ha, Ro, Si, pi, ga, Rs, lo, $o, uc, Js, Ds, co, uo, ks, Al, Rl, yr, gs, Us, Os, Fs, Co, Do, Vo, eo, ao, ml, Ss, So, xs, Gs, Mc, Ol, Yl, Pc, Zc, Kl, vl, _s, Dc, Ru, dc, su, Ld, qc, Nd, yl, dd, Yu, fc, Bl, Qs, af, cs, pc, js, Yc, xc, Md, kc, Ku, lu, Kc, Jl, of, Uc, _c, Fc, Ll, Bi, bl, El, Bc, $c, Ou, Ju, sf, Qu, Jc, cu, Lu, fd, w, k, q, ce, _e, it, Xt, bn, wn, dr, ri, Ui, ma, ms, zo, fo, Bs, wc, $l, Pd, ed, uu, Cl, Vl, rs, td, lf, ws, pd, el, us, du, vp, nd, ov, sv, Bg, cf, $g, on, hc, Vc, Th, Vg, Qr, Nn, hi;
|
|
81115
81115
|
let sn = n.current.target.clone().sub(Hi.current.position.clone()), Ct, un, $t, Gn = !1, tr = !1, $r = !1, li = !1, Ei = Hi.current.up.y <= 0;
|
|
81116
81116
|
Ei ? ((ci = (Jr = Xe.current) == null ? void 0 : Jr.coordText_lb) == null || ci.children.forEach((zl) => {
|
|
81117
81117
|
zl.up.set(0, -1, 0);
|
|
81118
81118
|
}), (Dn = (Ti = Xe.current) == null ? void 0 : Ti.coordText_lf) == null || Dn.children.forEach((zl) => {
|
|
81119
81119
|
zl.up.set(0, -1, 0);
|
|
81120
|
-
}), (ln = (
|
|
81120
|
+
}), (ln = (ir = Xe.current) == null ? void 0 : ir.coordText_rf) == null || ln.children.forEach((zl) => {
|
|
81121
81121
|
zl.up.set(0, -1, 0);
|
|
81122
81122
|
}), (Te = (Rr = Xe.current) == null ? void 0 : Rr.coordText_rb) == null || Te.children.forEach((zl) => {
|
|
81123
81123
|
zl.up.set(0, -1, 0);
|
|
@@ -81129,7 +81129,7 @@ const uLt = (t) => {
|
|
|
81129
81129
|
zl.up.set(0, 1, 0);
|
|
81130
81130
|
}), (de = (me = Xe.current) == null ? void 0 : me.coordText_rb) == null || de.children.forEach((zl) => {
|
|
81131
81131
|
zl.up.set(0, 1, 0);
|
|
81132
|
-
})), Ct = (Oe = bt.current) == null ? void 0 : Oe.normalVector, $t = bt, un = Ct && sn.dot(Ct), tr = !1, (tt = $t.current) != null && tt.coordMesh && Ce.current.remove((Ge = $t.current) == null ? void 0 : Ge.coordMesh), (ut = $t.current) != null && ut.mouseLine_w && Ce.current.remove((jt = $t.current) == null ? void 0 : jt.mouseLine_w), (Ot = $t.current) != null && Ot.mouseLine_h && Ce.current.remove((hn = $t.current) == null ? void 0 : hn.mouseLine_h), typeof ((Pt = $t.current) == null ? void 0 : Pt.coordText) == "object" && Ce.current.remove((yt = $t.current) == null ? void 0 : yt.coordText), typeof ((vr = $t.current) == null ? void 0 : vr.coordTextReverse) == "object" && Ce.current.remove((qn = $t.current) == null ? void 0 : qn.coordTextReverse), un && un >= 0 && (tr = !0, (
|
|
81132
|
+
})), Ct = (Oe = bt.current) == null ? void 0 : Oe.normalVector, $t = bt, un = Ct && sn.dot(Ct), tr = !1, (tt = $t.current) != null && tt.coordMesh && Ce.current.remove((Ge = $t.current) == null ? void 0 : Ge.coordMesh), (ut = $t.current) != null && ut.mouseLine_w && Ce.current.remove((jt = $t.current) == null ? void 0 : jt.mouseLine_w), (Ot = $t.current) != null && Ot.mouseLine_h && Ce.current.remove((hn = $t.current) == null ? void 0 : hn.mouseLine_h), typeof ((Pt = $t.current) == null ? void 0 : Pt.coordText) == "object" && Ce.current.remove((yt = $t.current) == null ? void 0 : yt.coordText), typeof ((vr = $t.current) == null ? void 0 : vr.coordTextReverse) == "object" && Ce.current.remove((qn = $t.current) == null ? void 0 : qn.coordTextReverse), un && un >= 0 && (tr = !0, (nr = $t.current) != null && nr.coordMesh && Ce.current.add((vn = $t.current) == null ? void 0 : vn.coordMesh), (ur = $t.current) != null && ur.mouseLine_w && Ce.current.add((Ur = $t.current) == null ? void 0 : Ur.mouseLine_w), (mn = $t.current) != null && mn.mouseLine_h && Ce.current.add((cn = $t.current) == null ? void 0 : cn.mouseLine_h), Ei ? typeof ((si = $t.current) == null ? void 0 : si.coordText) == "object" && Ce.current.add((ni = $t.current) == null ? void 0 : ni.coordText) : typeof ((Hr = $t.current) == null ? void 0 : Hr.coordTextReverse) == "object" && Ce.current.add((Hs = $t.current) == null ? void 0 : Hs.coordTextReverse)), Ct = (Ha = nt.current) == null ? void 0 : Ha.normalVector, $t = nt, un = Ct && sn.dot(Ct), Gn = !1, (Ro = $t.current) != null && Ro.coordMesh && Ce.current.remove((Si = $t.current) == null ? void 0 : Si.coordMesh), (pi = $t.current) != null && pi.mouseLine_w && Ce.current.remove((ga = $t.current) == null ? void 0 : ga.mouseLine_w), (Rs = $t.current) != null && Rs.mouseLine_h && Ce.current.remove((lo = $t.current) == null ? void 0 : lo.mouseLine_h), typeof (($o = $t.current) == null ? void 0 : $o.coordText) == "object" && Ce.current.remove((uc = $t.current) == null ? void 0 : uc.coordText), typeof ((Js = $t.current) == null ? void 0 : Js.coordTextReverse) == "object" && Ce.current.remove((Ds = $t.current) == null ? void 0 : Ds.coordTextReverse), un && un >= 0 && (Gn = !0, (co = $t.current) != null && co.coordMesh && Ce.current.add((uo = $t.current) == null ? void 0 : uo.coordMesh), (ks = $t.current) != null && ks.mouseLine_w && Ce.current.add((Al = $t.current) == null ? void 0 : Al.mouseLine_w), (Rl = $t.current) != null && Rl.mouseLine_h && Ce.current.add((yr = $t.current) == null ? void 0 : yr.mouseLine_h), Ei ? typeof ((gs = $t.current) == null ? void 0 : gs.coordText) == "object" && Ce.current.add((Us = $t.current) == null ? void 0 : Us.coordText) : typeof ((Os = $t.current) == null ? void 0 : Os.coordTextReverse) == "object" && Ce.current.add((Fs = $t.current) == null ? void 0 : Fs.coordTextReverse)), Ct = (Co = gt.current) == null ? void 0 : Co.normalVector, $t = gt, un = Ct && sn.dot(Ct), $r = !1, (Do = $t.current) != null && Do.coordMesh && Ce.current.remove((Vo = $t.current) == null ? void 0 : Vo.coordMesh), (eo = $t.current) != null && eo.mouseLine_w && Ce.current.remove((ao = $t.current) == null ? void 0 : ao.mouseLine_w), (ml = $t.current) != null && ml.mouseLine_h && Ce.current.remove((Ss = $t.current) == null ? void 0 : Ss.mouseLine_h), typeof ((So = $t.current) == null ? void 0 : So.coordText) == "object" && Ce.current.remove((xs = $t.current) == null ? void 0 : xs.coordText), typeof ((Gs = $t.current) == null ? void 0 : Gs.coordTextReverse) == "object" && Ce.current.remove((Mc = $t.current) == null ? void 0 : Mc.coordTextReverse), un && un >= 0 && ($r = !0, (Ol = $t.current) != null && Ol.coordMesh && Ce.current.add((Yl = $t.current) == null ? void 0 : Yl.coordMesh), (Pc = $t.current) != null && Pc.mouseLine_w && Ce.current.add((Zc = $t.current) == null ? void 0 : Zc.mouseLine_w), (Kl = $t.current) != null && Kl.mouseLine_h && Ce.current.add((vl = $t.current) == null ? void 0 : vl.mouseLine_h), Ei ? typeof ((_s = $t.current) == null ? void 0 : _s.coordText) == "object" && Ce.current.add((Dc = $t.current) == null ? void 0 : Dc.coordText) : typeof ((Ru = $t.current) == null ? void 0 : Ru.coordTextReverse) == "object" && Ce.current.add((dc = $t.current) == null ? void 0 : dc.coordTextReverse)), Ct = (su = Pe.current) == null ? void 0 : su.normalVector, $t = Pe, un = Ct && sn.dot(Ct), li = !1, (Ld = $t.current) != null && Ld.coordMesh && Ce.current.remove((qc = $t.current) == null ? void 0 : qc.coordMesh), (Nd = $t.current) != null && Nd.mouseLine_w && Ce.current.remove((yl = $t.current) == null ? void 0 : yl.mouseLine_w), (dd = $t.current) != null && dd.mouseLine_h && Ce.current.remove((Yu = $t.current) == null ? void 0 : Yu.mouseLine_h), typeof ((fc = $t.current) == null ? void 0 : fc.coordText) == "object" && Ce.current.remove((Bl = $t.current) == null ? void 0 : Bl.coordText), typeof ((Qs = $t.current) == null ? void 0 : Qs.coordTextReverse) == "object" && Ce.current.remove((af = $t.current) == null ? void 0 : af.coordTextReverse), un && un >= 0 && (li = !0, (cs = $t.current) != null && cs.coordMesh && Ce.current.add((pc = $t.current) == null ? void 0 : pc.coordMesh), (js = $t.current) != null && js.mouseLine_w && Ce.current.add((Yc = $t.current) == null ? void 0 : Yc.mouseLine_w), (xc = $t.current) != null && xc.mouseLine_h && Ce.current.add((Md = $t.current) == null ? void 0 : Md.mouseLine_h), Ei ? typeof ((kc = $t.current) == null ? void 0 : kc.coordText) == "object" && Ce.current.add((Ku = $t.current) == null ? void 0 : Ku.coordText) : typeof ((lu = $t.current) == null ? void 0 : lu.coordTextReverse) == "object" && Ce.current.add((Kc = $t.current) == null ? void 0 : Kc.coordTextReverse)), Ct = (Jl = Xe.current) == null ? void 0 : Jl.normalVector, $t = Xe, un = Ct && sn.dot(Ct), un && un >= 0 ? ((of = $t.current) != null && of.coordMesh && Ce.current.add((Uc = $t.current) == null ? void 0 : Uc.coordMesh), (_c = $t.current) != null && _c.mouseLine_w && Ce.current.add((Fc = $t.current) == null ? void 0 : Fc.mouseLine_w), (Ll = $t.current) != null && Ll.mouseLine_h && Ce.current.add((Bi = $t.current) == null ? void 0 : Bi.mouseLine_h), (bl = $t.current) != null && bl.coordText_lb && Ce.current.remove((El = $t.current) == null ? void 0 : El.coordText_lb), (Bc = $t.current) != null && Bc.coordText_rb && Ce.current.remove(($c = $t.current) == null ? void 0 : $c.coordText_rb), (Ou = $t.current) != null && Ou.coordText_lf && Ce.current.remove((Ju = $t.current) == null ? void 0 : Ju.coordText_lf), (sf = $t.current) != null && sf.coordText_rf && Ce.current.remove((Qu = $t.current) == null ? void 0 : Qu.coordText_rf), tr && $r ? (Jc = $t.current) != null && Jc.coordText_lb && Ce.current.add((cu = $t.current) == null ? void 0 : cu.coordText_lb) : tr && li ? (Lu = $t.current) != null && Lu.coordText_rb && Ce.current.add((fd = $t.current) == null ? void 0 : fd.coordText_rb) : Gn && li ? (w = $t.current) != null && w.coordText_rf && Ce.current.add((k = $t.current) == null ? void 0 : k.coordText_rf) : Gn && $r && (q = $t.current) != null && q.coordText_lf && Ce.current.add((ce = $t.current) == null ? void 0 : ce.coordText_lf)) : ((_e = $t.current) != null && _e.coordMesh && Ce.current.remove((it = $t.current) == null ? void 0 : it.coordMesh), (Xt = $t.current) != null && Xt.mouseLine_w && Ce.current.remove((bn = $t.current) == null ? void 0 : bn.mouseLine_w), (wn = $t.current) != null && wn.mouseLine_h && Ce.current.remove((dr = $t.current) == null ? void 0 : dr.mouseLine_h), (ri = $t.current) != null && ri.coordText_lb && Ce.current.remove((Ui = $t.current) == null ? void 0 : Ui.coordText_lb), (ma = $t.current) != null && ma.coordText_rb && Ce.current.remove((ms = $t.current) == null ? void 0 : ms.coordText_rb), (zo = $t.current) != null && zo.coordText_lf && Ce.current.remove((fo = $t.current) == null ? void 0 : fo.coordText_lf), (Bs = $t.current) != null && Bs.coordText_rf && Ce.current.remove((wc = $t.current) == null ? void 0 : wc.coordText_rf)), Ct = ($l = Et.current) == null ? void 0 : $l.normalVector, $t = Et, un = Ct && sn.dot(Ct), un && un >= 0 ? ((Pd = $t.current) != null && Pd.coordMesh && Ce.current.add((ed = $t.current) == null ? void 0 : ed.coordMesh), (uu = $t.current) != null && uu.mouseLine_w && Ce.current.add((Cl = $t.current) == null ? void 0 : Cl.mouseLine_w), (Vl = $t.current) != null && Vl.mouseLine_h && Ce.current.add((rs = $t.current) == null ? void 0 : rs.mouseLine_h), (td = Xe.current) != null && td.coordText_lb && Ce.current.remove((lf = Xe.current) == null ? void 0 : lf.coordText_lb), (ws = Xe.current) != null && ws.coordText_rb && Ce.current.remove((pd = Xe.current) == null ? void 0 : pd.coordText_rb), (el = Xe.current) != null && el.coordText_lf && Ce.current.remove((us = Xe.current) == null ? void 0 : us.coordText_lf), (du = Xe.current) != null && du.coordText_rf && Ce.current.remove((vp = Xe.current) == null ? void 0 : vp.coordText_rf), tr && $r ? (nd = Xe.current) != null && nd.coordText_lb && Ce.current.add((ov = Xe.current) == null ? void 0 : ov.coordText_lb) : tr && li ? (sv = Xe.current) != null && sv.coordText_rb && Ce.current.add((Bg = Xe.current) == null ? void 0 : Bg.coordText_rb) : Gn && li ? (cf = Xe.current) != null && cf.coordText_rf && Ce.current.add(($g = Xe.current) == null ? void 0 : $g.coordText_rf) : Gn && $r && (on = Xe.current) != null && on.coordText_lf && Ce.current.add((hc = Xe.current) == null ? void 0 : hc.coordText_lf)) : ((Vc = $t.current) != null && Vc.coordMesh && Ce.current.remove((Th = $t.current) == null ? void 0 : Th.coordMesh), (Vg = $t.current) != null && Vg.mouseLine_w && Ce.current.remove((Qr = $t.current) == null ? void 0 : Qr.mouseLine_w), (Nn = $t.current) != null && Nn.mouseLine_h && Ce.current.remove((hi = $t.current) == null ? void 0 : hi.mouseLine_h));
|
|
81133
81133
|
}, ha = (sn) => {
|
|
81134
81134
|
y != null && y.current && Ce.current.remove(y.current);
|
|
81135
81135
|
const Ct = new Fi().setFromPoints(sn), un = new iu({ color: 255 }), $t = new wa(Ct, un);
|
|
@@ -81190,7 +81190,7 @@ const uLt = (t) => {
|
|
|
81190
81190
|
}, 800);
|
|
81191
81191
|
});
|
|
81192
81192
|
}
|
|
81193
|
-
const
|
|
81193
|
+
const ai = (sn) => {
|
|
81194
81194
|
const Ct = re.current.intersectObject(sn, !0), un = new kl(-Ce.current.rotation.x, -Ce.current.rotation.y, -Ce.current.rotation.z);
|
|
81195
81195
|
let $t = null;
|
|
81196
81196
|
if (Ct.length > 0)
|
|
@@ -81202,24 +81202,24 @@ const uLt = (t) => {
|
|
|
81202
81202
|
var $r, li, Ei, Jr, ci, Ti;
|
|
81203
81203
|
if (sn.preventDefault(), jn.current.x = sn.offsetX / e.domElement.clientWidth * 2 - 1, jn.current.y = -(sn.offsetY / e.domElement.clientHeight) * 2 + 1, re.current.setFromCamera(jn.current, Hi.current), re.current.params.Points.threshold = 0.05, u != null && u.current)
|
|
81204
81204
|
var Ct = re.current.intersectObjects(Ce.current.children.filter((Dn) => {
|
|
81205
|
-
const
|
|
81206
|
-
return !["", "ExtractedSurface", "outline", "dashedLine", "Line", "sphereBig", "sphereMiddelClick", "test_behind", "test_front", "test_left", "test_right", "test_bootom", "test_top", "test_top_mouseLine_w", "test_top_mouseLine_h", "test_bottom_mouseLine_w", "test_bottom_mouseLine_h", "test_left_mouseLine_w", "test_left_mouseLine_h", "test_right_mouseLine_w", "test_right_mouseLine_h", "test_front_mouseLine_w", "test_front_mouseLine_h", , "test_behind_mouseLine_w", "test_behind_mouseLine_h", "brainRegionLine", "azimuth"].includes(Dn.name) && !
|
|
81205
|
+
const ir = Dn instanceof o3;
|
|
81206
|
+
return !["", "ExtractedSurface", "outline", "dashedLine", "Line", "sphereBig", "sphereMiddelClick", "test_behind", "test_front", "test_left", "test_right", "test_bootom", "test_top", "test_top_mouseLine_w", "test_top_mouseLine_h", "test_bottom_mouseLine_w", "test_bottom_mouseLine_h", "test_left_mouseLine_w", "test_left_mouseLine_h", "test_right_mouseLine_w", "test_right_mouseLine_h", "test_front_mouseLine_w", "test_front_mouseLine_h", , "test_behind_mouseLine_w", "test_behind_mouseLine_h", "brainRegionLine", "azimuth"].includes(Dn.name) && !ir;
|
|
81207
81207
|
}), !0);
|
|
81208
81208
|
else
|
|
81209
|
-
var Ct = re.current.intersectObjects(Ce.current.children.filter((
|
|
81210
|
-
const ln =
|
|
81211
|
-
return !["", "Brain", "ExtractedSurface", "outline", "dashedLine", "Line", "sphereBig", "sphereMiddelClick", "test_behind", "test_front", "test_left", "test_right", "test_bootom", "test_top", "test_top_mouseLine_w", "test_top_mouseLine_h", "test_bottom_mouseLine_w", "test_bottom_mouseLine_h", "test_left_mouseLine_w", "test_left_mouseLine_h", "test_right_mouseLine_w", "test_right_mouseLine_h", "test_front_mouseLine_w", "test_front_mouseLine_h", , "test_behind_mouseLine_w", "test_behind_mouseLine_h", "brainRegionLine", "azimuth"].includes(
|
|
81209
|
+
var Ct = re.current.intersectObjects(Ce.current.children.filter((ir) => {
|
|
81210
|
+
const ln = ir instanceof o3;
|
|
81211
|
+
return !["", "Brain", "ExtractedSurface", "outline", "dashedLine", "Line", "sphereBig", "sphereMiddelClick", "test_behind", "test_front", "test_left", "test_right", "test_bootom", "test_top", "test_top_mouseLine_w", "test_top_mouseLine_h", "test_bottom_mouseLine_w", "test_bottom_mouseLine_h", "test_left_mouseLine_w", "test_left_mouseLine_h", "test_right_mouseLine_w", "test_right_mouseLine_h", "test_front_mouseLine_w", "test_front_mouseLine_h", , "test_behind_mouseLine_w", "test_behind_mouseLine_h", "brainRegionLine", "azimuth"].includes(ir.name) && !ln;
|
|
81212
81212
|
}), !0);
|
|
81213
81213
|
const un = Ce.current.getObjectByName("Brain"), $t = new kl(-Ce.current.rotation.x, -Ce.current.rotation.y, -Ce.current.rotation.z);
|
|
81214
81214
|
let Gn;
|
|
81215
81215
|
if (un) {
|
|
81216
81216
|
const Dn = new fs();
|
|
81217
81217
|
Dn.expandByObject(un);
|
|
81218
|
-
const
|
|
81219
|
-
Dn.getSize(
|
|
81218
|
+
const ir = new Ie();
|
|
81219
|
+
Dn.getSize(ir);
|
|
81220
81220
|
const ln = new Ie();
|
|
81221
81221
|
Dn.getCenter(ln);
|
|
81222
|
-
const Rr = new qs(
|
|
81222
|
+
const Rr = new qs(ir.x, ir.y, ir.z), Te = new jc({ color: 65280, wireframe: !0 }), Me = new er(Rr, Te);
|
|
81223
81223
|
if (Me.position.copy(ln), Gn = re.current.intersectObject(Me, !0), (b == null ? void 0 : b.current) == 2 && Gn.length > 0) {
|
|
81224
81224
|
const at = ln.clone().applyEuler($t), ct = Gn[0].point.clone().applyEuler($t);
|
|
81225
81225
|
let lt = at.sub(ct);
|
|
@@ -81242,7 +81242,7 @@ const uLt = (t) => {
|
|
|
81242
81242
|
{
|
|
81243
81243
|
if ((Wt.current != Ct[Dn].object.parent || Wt.current != Ct[Dn].object) && Ct[Dn].object.parent != null) {
|
|
81244
81244
|
if (Wt) {
|
|
81245
|
-
let
|
|
81245
|
+
let ir = Wt.current.name;
|
|
81246
81246
|
if (Wt.current.myMeshType == "SWC")
|
|
81247
81247
|
Wt.current.children[0].material.color.setHex(Wt.current.currentHex), Wt.current.traverse((ln) => {
|
|
81248
81248
|
ln instanceof wa && ln.material.color.setHex(Wt.current.currentHex);
|
|
@@ -81250,7 +81250,7 @@ const uLt = (t) => {
|
|
|
81250
81250
|
else if (Wt.current.myMeshType == "FBX")
|
|
81251
81251
|
Wt.current.children[0].material.color.setHex(Wt.current.currentHex);
|
|
81252
81252
|
else if (Wt.current.myMeshType == "Vessel")
|
|
81253
|
-
r.current && r.current[
|
|
81253
|
+
r.current && r.current[ir].contentmaterial.color.setHex(Wt.current.currentHex), r.current && r.current[ir].contentobj.traverse((ln) => {
|
|
81254
81254
|
ln instanceof _I && ln.levels.forEach((Rr) => {
|
|
81255
81255
|
Rr.object.material.color.setHex(Wt.current.currentHex);
|
|
81256
81256
|
});
|
|
@@ -81274,38 +81274,38 @@ const uLt = (t) => {
|
|
|
81274
81274
|
})) : Ct[Dn].object.name == "lineName" && (X(""), H(""), V(""), Q({}), U(Ct[Dn].object.userData.name));
|
|
81275
81275
|
}
|
|
81276
81276
|
if (Wt.current = Ct[Dn].object.parent, Wt.current.currentHex = (li = ($r = Ct[Dn].object.material) == null ? void 0 : $r.color) == null ? void 0 : li.getHex(), Wt.current.myMeshType == "SWC")
|
|
81277
|
-
Wt.current.children[0].material.color.setHex(16711680), Wt.current.traverse((
|
|
81278
|
-
|
|
81277
|
+
Wt.current.children[0].material.color.setHex(16711680), Wt.current.traverse((ir) => {
|
|
81278
|
+
ir instanceof wa && ir.material.color.setHex(16711680);
|
|
81279
81279
|
}), V(Wt.current.name), U(""), H(""), X(""), oe({});
|
|
81280
81280
|
else if (Wt.current.myMeshType == "FBX")
|
|
81281
81281
|
Ct[Dn].object.parent.name == "Brain" || Ct[Dn].object.parent.name == "syrings" ? (Wt.current.children[0].material.color.setHex(Wt.current.currentHex), zn.current = !1, U("")) : (Wt.current.name != Ft.current && (V(""), U(Wt.current.name)), (b == null ? void 0 : b.current) == 1 && Wt.current.children[0].material.color.setHex(16711680), zn.current = !0), Wt.current.children[0].geometry.computeBoundingBox(), a && a(Wt.current.name);
|
|
81282
81282
|
else if (Wt.current.myMeshType == "Vessel") {
|
|
81283
|
-
let
|
|
81284
|
-
H(
|
|
81283
|
+
let ir = Wt.current.name;
|
|
81284
|
+
H(ir), V(""), r.current && r.current[ir].contentmaterial.color.setHex(16711680), r.current && r.current[ir].contentobj.traverse((ln) => {
|
|
81285
81285
|
ln instanceof _I && ln.levels.forEach((Rr) => {
|
|
81286
81286
|
Rr.object.material.color.setHex(16711680);
|
|
81287
81287
|
});
|
|
81288
81288
|
}), At(!0), a && a(Wt.current.name);
|
|
81289
81289
|
} else if (Ct[Dn].object.name === "lineNameMesh" || Ct[Dn].object.myMeshType === "neuronSphere") {
|
|
81290
|
-
if (Wt.current = Ct[Dn].object, Wt.current.myMeshType === "neuronSphere" && (Wt.current.material.uniforms.color.value = new Or("#ff0000"), V(""), X(""), H(""), Be(""), oe({ name: Wt.current.name, Lable: Wt.current.name.split("-")[1] }), Ce.current.traverse((
|
|
81291
|
-
|
|
81290
|
+
if (Wt.current = Ct[Dn].object, Wt.current.myMeshType === "neuronSphere" && (Wt.current.material.uniforms.color.value = new Or("#ff0000"), V(""), X(""), H(""), Be(""), oe({ name: Wt.current.name, Lable: Wt.current.name.split("-")[1] }), Ce.current.traverse((ir) => {
|
|
81291
|
+
ir.name === "lineNameMesh" && ir.userData.wholeName === Wt.current.name && ir.material.color.set("#ff0000");
|
|
81292
81292
|
})), Wt.current.name === "lineNameMesh") {
|
|
81293
|
-
let
|
|
81293
|
+
let ir = Wt.current.userData.name, ln = Wt.current.userData.wholeName.split("-")[0], Rr = Wt.current.userData.wholeName.split("-")[1];
|
|
81294
81294
|
Wt.current.material.color.set("#ff0000"), Ce.current.traverse((Te) => {
|
|
81295
81295
|
if (Te.name === `swcPointGroup${ln}`)
|
|
81296
81296
|
for (let Me in Te.children) {
|
|
81297
81297
|
let at = Te.children[Me];
|
|
81298
81298
|
at.name === `${ln}-${Rr}` && at.myMeshType === "neuronSphere" && (at.material.uniforms.color.value = new Or("#ff0000"));
|
|
81299
81299
|
}
|
|
81300
|
-
}), V(""), X(""), H(""), U(
|
|
81300
|
+
}), V(""), X(""), H(""), U(ir.replace("/", "_"));
|
|
81301
81301
|
}
|
|
81302
81302
|
} else
|
|
81303
81303
|
["CoronalView", "SagittalView", "HorizontalView", "arbitrarySlice"].includes(Ct[Dn].object.name) && (U(""), H(""), X(""));
|
|
81304
81304
|
}
|
|
81305
81305
|
if (sn.type == "mousemove" && Wt.current.name != "Syringeobjcleanergles") {
|
|
81306
81306
|
if (clearTimeout(Vn.current), Rn.current && (Rn.current.abort(), Rn.current = null), Ct[Dn].point = Ct[Dn].point.clone().applyEuler($t), Ct[Dn].object.name === "functionSynapseLine") {
|
|
81307
|
-
const
|
|
81308
|
-
|
|
81307
|
+
const ir = Ce.current.getObjectByName("cardContainer"), ln = Ct[Dn].object.userData.name;
|
|
81308
|
+
ir ? Ce.current.children.find((Te) => Te.name === "cardContainer" && Te.userData.from === ln) || Cr.current && (Vn.current = setTimeout(() => {
|
|
81309
81309
|
const Te = document.getElementById("spinner");
|
|
81310
81310
|
Te && (Te.style.display = "block");
|
|
81311
81311
|
const Me = new AbortController();
|
|
@@ -81348,26 +81348,29 @@ const uLt = (t) => {
|
|
|
81348
81348
|
}, 500));
|
|
81349
81349
|
}
|
|
81350
81350
|
if (Ct[Dn].object.name == "brainRegionPoints") {
|
|
81351
|
-
pe.current = !0, Ce.current.traverse((
|
|
81352
|
-
|
|
81351
|
+
pe.current = !0, Ce.current.traverse((ir) => {
|
|
81352
|
+
ir.name === "brainRegionPoints" && ir.layers.disable(1);
|
|
81353
81353
|
}), Ct[Dn].object.layers.toggle(1);
|
|
81354
81354
|
return;
|
|
81355
81355
|
} else
|
|
81356
81356
|
pe.current = !1;
|
|
81357
81357
|
if (((Jr = (Ei = Ct[Dn].object) == null ? void 0 : Ei.geometry) == null ? void 0 : Jr.type) == "SphereGeometry" && !["sphereMiddelClick", "sphereBig", "sectionSphere"].includes(Ct[Dn].object.name) && Ct[Dn].object.myMeshType !== "neuronSphere") {
|
|
81358
|
-
let
|
|
81358
|
+
let ir = ((Ct[Dn].point.x - st.current.x) * we.current).toFixed(2), ln = ((Ct[Dn].point.y - st.current.y) * je.current).toFixed(2), Rr = -((Ct[Dn].point.z - st.current.z) * ye.current).toFixed(2);
|
|
81359
81359
|
const Te = Ct[Dn].object.name;
|
|
81360
81360
|
let Me = new Ie();
|
|
81361
81361
|
Nt.current.forEach((at, ct) => {
|
|
81362
81362
|
at.name == Te && (Me = at.position);
|
|
81363
|
-
}), Me.x === 0 && Me.y === 0 && Me.z === 0 || (zt.current = { point: new Ie(parseFloat(
|
|
81363
|
+
}), Me.x === 0 && Me.y === 0 && Me.z === 0 || (zt.current = { point: new Ie(parseFloat(ir), parseFloat(ln), Rr), center: new Ie(Me.x, Me.y, Me.z), name: Te }), Ct[Dn].object.userData.type == "points" ? xr(Ct[Dn].point, Ct[Dn].object.name, "Point1", Ct[Dn].object) : (xr(Ct[Dn].point, Te, "Point"), Be(Te), vt.current = !0, Dt({ left: sn.clientX, top: sn.clientY }));
|
|
81364
81364
|
return;
|
|
81365
81365
|
}
|
|
81366
81366
|
if (Wt.current.myMeshType == "FBX" && (Ct[Dn].object.parent.name == "Brain" || Ct[Dn].object.parent.name == "syrings" ? (U(""), X(""), H(""), V(""), Be("")) : (xr(Ct[Dn].point, Wt.current.name, "FBX"), X(Wt.current.name), V(""), H(""), Dt({ left: sn.clientX, top: sn.clientY }))), Wt.current.myMeshType == "SWC" && xr(Ct[Dn].point, Wt.current.name, "SWC"), Wt.current.myMeshType == "Vessel" && xr(Ct[Dn].point, Wt.current.name, "Vessel"), Ct[Dn].object.type == "Points" && xr(Ct[Dn].point, Ct[Dn].object.name, "Points"), g && g.current && v && m && Ct[Dn].object.name != "lineName") {
|
|
81367
|
-
const
|
|
81368
|
-
if (
|
|
81369
|
-
const ln =
|
|
81370
|
-
|
|
81367
|
+
const ir = Ce.current.getObjectByName("azimuth_outline");
|
|
81368
|
+
if (ir) {
|
|
81369
|
+
const ln = ai(ir);
|
|
81370
|
+
if (ln)
|
|
81371
|
+
Ct[Dn].point = ln.clone();
|
|
81372
|
+
else
|
|
81373
|
+
return;
|
|
81371
81374
|
}
|
|
81372
81375
|
m.current.length == 2 ? P.current || (v.current.pop(), v.current.push(fi(Ct[Dn].point)), m.current.pop(), m.current.push(Ct[Dn].point), N.current && (ar(Ct[Dn].point, Ct[Dn].object.name), za(m.current))) : m.current.length == 0 ? zn != null && zn.current && (P.current || ar(Ct[Dn].point, Ct[Dn].object.name)) : (v.current.push(fi(Ct[Dn].point)), m.current.push(Ct[Dn].point), P.current || N.current && (ar(Ct[Dn].point, Ct[Dn].object.name), za(m.current)));
|
|
81373
81376
|
}
|
|
@@ -81380,6 +81383,14 @@ const uLt = (t) => {
|
|
|
81380
81383
|
return;
|
|
81381
81384
|
}
|
|
81382
81385
|
if (g && g.current && v && m) {
|
|
81386
|
+
const ir = Ce.current.getObjectByName("azimuth_outline");
|
|
81387
|
+
if (ir) {
|
|
81388
|
+
const ln = ai(ir);
|
|
81389
|
+
if (ln)
|
|
81390
|
+
Ct[Dn].point = ln.clone();
|
|
81391
|
+
else
|
|
81392
|
+
return;
|
|
81393
|
+
}
|
|
81383
81394
|
if (m.current.length > 1) {
|
|
81384
81395
|
if (!N.current)
|
|
81385
81396
|
return;
|
|
@@ -81389,10 +81400,10 @@ const uLt = (t) => {
|
|
|
81389
81400
|
v.current.push(fi(Ct[Dn].point)), m.current.push(Ct[Dn].point);
|
|
81390
81401
|
var tr = new bo();
|
|
81391
81402
|
tr.setFromAxisAngle(new Ie(1, 0, 0), Math.PI / 2);
|
|
81392
|
-
const
|
|
81393
|
-
if (m.current.length == 2 &&
|
|
81394
|
-
let
|
|
81395
|
-
|
|
81403
|
+
const ln = Ce.current.getObjectByName("Brain");
|
|
81404
|
+
if (m.current.length == 2 && ln) {
|
|
81405
|
+
let Rr = m.current[0].clone().applyEuler(Ce.current.rotation), Te = m.current[1].clone().applyEuler(Ce.current.rotation);
|
|
81406
|
+
Rr = Rr.applyMatrix4(ln.matrixWorld.clone().invert()).applyQuaternion(tr), Te = Te.applyMatrix4(ln.matrixWorld.clone().invert()).applyQuaternion(tr), ro(Rr.toArray(), Te.toArray());
|
|
81396
81407
|
}
|
|
81397
81408
|
ha(m.current);
|
|
81398
81409
|
}
|
|
@@ -81406,31 +81417,31 @@ const uLt = (t) => {
|
|
|
81406
81417
|
}), j.current.removeFBX(Vt.current, !0), Vt.current = "", Y.current = {}, Wt.current) {
|
|
81407
81418
|
let Dn = Wt.current.name;
|
|
81408
81419
|
if (Wt.current.myMeshType == "SWC")
|
|
81409
|
-
Wt.current.children[0].material.color.setHex(Wt.current.currentHex), Wt.current.traverse((
|
|
81410
|
-
|
|
81420
|
+
Wt.current.children[0].material.color.setHex(Wt.current.currentHex), Wt.current.traverse((ir) => {
|
|
81421
|
+
ir instanceof wa && ir.material.color.setHex(Wt.current.currentHex);
|
|
81411
81422
|
});
|
|
81412
81423
|
else if (Wt.current.myMeshType == "FBX")
|
|
81413
81424
|
Wt.current.children[0].material.color.setHex(Wt.current.currentHex);
|
|
81414
81425
|
else if (Wt.current.myMeshType == "Vessel")
|
|
81415
|
-
Dn in r.current && (r.current && r.current[Dn].contentmaterial.color.setHex(Wt.current.currentHex), r.current && r.current[Dn].contentobj.traverse((
|
|
81416
|
-
|
|
81426
|
+
Dn in r.current && (r.current && r.current[Dn].contentmaterial.color.setHex(Wt.current.currentHex), r.current && r.current[Dn].contentobj.traverse((ir) => {
|
|
81427
|
+
ir instanceof _I && ir.levels.forEach((ln) => {
|
|
81417
81428
|
ln.object.material.color.setHex(Wt.current.currentHex);
|
|
81418
81429
|
});
|
|
81419
81430
|
}));
|
|
81420
81431
|
else if (Wt.current.name === "lineNameMesh") {
|
|
81421
|
-
const
|
|
81432
|
+
const ir = Wt.current.userData.wholeName.split("-")[0], ln = Wt.current.userData.wholeName.split("-")[1];
|
|
81422
81433
|
let Rr = Wt.current.userData.initColor;
|
|
81423
81434
|
Wt.current.material.color.set(Rr), Ce.current.traverse((Te) => {
|
|
81424
81435
|
for (let Me in Te.children) {
|
|
81425
81436
|
let at = Te.children[Me];
|
|
81426
|
-
at.name === `${
|
|
81437
|
+
at.name === `${ir}-${ln}` && at.myMeshType === "neuronSphere" && (at.material.uniforms.color.value = new Or(at.userData.color));
|
|
81427
81438
|
}
|
|
81428
81439
|
});
|
|
81429
81440
|
} else
|
|
81430
|
-
Wt.current.myMeshType === "neuronSphere" && (Wt.current.material.uniforms.color.value = new Or(Wt.current.userData.color), Ce.current.traverse((
|
|
81431
|
-
if (
|
|
81432
|
-
let ln =
|
|
81433
|
-
|
|
81441
|
+
Wt.current.myMeshType === "neuronSphere" && (Wt.current.material.uniforms.color.value = new Or(Wt.current.userData.color), Ce.current.traverse((ir) => {
|
|
81442
|
+
if (ir.name === "lineNameMesh" && ir.userData.wholeName === Wt.current.name) {
|
|
81443
|
+
let ln = ir.userData.initColor;
|
|
81444
|
+
ir.material.color.set(ln);
|
|
81434
81445
|
}
|
|
81435
81446
|
}));
|
|
81436
81447
|
}
|
|
@@ -81483,14 +81494,14 @@ const uLt = (t) => {
|
|
|
81483
81494
|
bt.current.coordText = Mi(Ct, Jr, ci, Ye.current.x - Ze.current.x, 12, li, Ei, new Ie(0, 0, 0)), Jr.y = Ye.current.y, bt.current.coordTextReverse = Mi(un, Jr, ci, Ye.current.x - Ze.current.x, 12, li, Ei, new Ie(0, 0, 0)), Jr = new Ie(Ze.current.x, Ze.current.y, Ze.current.z), ci = new Ie(1, 0, 0), nt.current.coordText = Mi(Ct, Jr, ci, Ye.current.x - Ze.current.x, 12, li, Ei, new Ie(0, 0, 0)), Jr.y = Ye.current.y, nt.current.coordTextReverse = Mi(un, Jr, ci, Ye.current.x - Ze.current.x, 12, li, Ei, new Ie(0, 0, 0)), Jr = new Ie(Ze.current.x, Ze.current.y, Ye.current.z), ci = new Ie(0, 0, -1);
|
|
81484
81495
|
let Ti = -(tr.z - Gn.z), Dn = -($r.z - Gn.z);
|
|
81485
81496
|
Ce.current.rotation.x != 0 && (Dn = Dn + 0.4, Ti = Ti + 0.4), gt.current.coordText = Mi(Ct, Jr, ci, Ye.current.z - Ze.current.z, 14, Ti, Dn, new Ie(0, 0, 0)), Jr.y = Ye.current.y, gt.current.coordTextReverse = Mi(un, Jr, ci, Ye.current.z - Ze.current.z, 14, Ti, Dn, new Ie(0, 0, 0)), Jr = new Ie(Ye.current.x, Ze.current.y, Ye.current.z), ci = new Ie(0, 0, -1), Pe.current.coordText = Mi(Ct, Jr, ci, Ye.current.z - Ze.current.z, 14, Ti, Dn, new Ie(0, 0, 0)), Jr.y = Ye.current.y, Pe.current.coordTextReverse = Mi(un, Jr, ci, Ye.current.z - Ze.current.z, 14, Ti, Dn, new Ie(0, 0, 0));
|
|
81486
|
-
let
|
|
81487
|
-
Jr = new Ie(Ye.current.x, Ze.current.y, Ye.current.z), ci = new Ie(0, 1, 0), Xe.current.coordText_lb = Mi(Ct, Jr, ci, Ye.current.y - Ze.current.y, 10,
|
|
81497
|
+
let ir = $r.y - Gn.y - 0.12, ln = tr.y - Gn.y - 0.12;
|
|
81498
|
+
Jr = new Ie(Ye.current.x, Ze.current.y, Ye.current.z), ci = new Ie(0, 1, 0), Xe.current.coordText_lb = Mi(Ct, Jr, ci, Ye.current.y - Ze.current.y, 10, ir, ln, new Ie(0, 0, 0)), Jr = new Ie(Ze.current.x, Ze.current.y, Ye.current.z), ci = new Ie(0, 1, 0), Xe.current.coordText_lf = Mi(Ct, Jr, ci, Ye.current.y - Ze.current.y, 10, ir, ln, new Ie(0, 0, 0)), Jr = new Ie(Ze.current.x, Ze.current.y, Ze.current.z), ci = new Ie(0, 1, 0), Xe.current.coordText_rf = Mi(Ct, Jr, ci, Ye.current.y - Ze.current.y, 10, ir, ln, new Ie(0, 0, 0)), Jr = new Ie(Ye.current.x, Ze.current.y, Ze.current.z), ci = new Ie(0, 1, 0), Xe.current.coordText_rb = Mi(Ct, Jr, ci, Ye.current.y - Ze.current.y, 10, ir, ln, new Ie(0, 0, 0)), ji();
|
|
81488
81499
|
}, ba = (sn, Ct, un, $t, Gn, tr, $r, li) => {
|
|
81489
81500
|
let Ei = {
|
|
81490
81501
|
mouseLine_w: new wa(),
|
|
81491
81502
|
mouseLine_h: new wa(),
|
|
81492
81503
|
coordMesh: new No()
|
|
81493
|
-
}, Jr = new No(), ci, Ti, Dn,
|
|
81504
|
+
}, Jr = new No(), ci, Ti, Dn, ir, ln, Rr, Te, Me;
|
|
81494
81505
|
Te = un / Gn, Me = $t / tr;
|
|
81495
81506
|
let at = new iu({
|
|
81496
81507
|
color: $r,
|
|
@@ -81503,7 +81514,7 @@ const uLt = (t) => {
|
|
|
81503
81514
|
}), lt, Rt;
|
|
81504
81515
|
const ht = Ce.current.rotation, me = new Ie(ht.x, ht.y, ht.z).negate(), de = new kl(me.x, me.y, me.z), Oe = new Ni().makeRotationFromEuler(de);
|
|
81505
81516
|
if (sn == 1) {
|
|
81506
|
-
Ti = Ct.y, ln = Ti, ci = Ct.x - un / 2,
|
|
81517
|
+
Ti = Ct.y, ln = Ti, ci = Ct.x - un / 2, ir = Ct.x + un / 2, Dn = Ct.z - $t / 2, Rr = Ct.z + $t / 2;
|
|
81507
81518
|
for (let ut = 0; ut <= Gn; ut++) {
|
|
81508
81519
|
let jt = new Fi(), Ot = [];
|
|
81509
81520
|
Ot.push(ci + ut * Te, Ti, Dn, ci + ut * Te, Ti, Rr);
|
|
@@ -81514,18 +81525,18 @@ const uLt = (t) => {
|
|
|
81514
81525
|
}
|
|
81515
81526
|
for (let ut = 0; ut <= tr; ut++) {
|
|
81516
81527
|
let jt = new Fi(), Ot = [];
|
|
81517
|
-
Ot.push(ci, Ti, Dn + ut * Me,
|
|
81528
|
+
Ot.push(ci, Ti, Dn + ut * Me, ir, Ti, Dn + ut * Me);
|
|
81518
81529
|
const hn = new Float32Array(Ot);
|
|
81519
81530
|
jt.setAttribute("position", new Ys(hn, 3));
|
|
81520
81531
|
let Pt = new wa(jt, at);
|
|
81521
81532
|
Jr.add(Pt);
|
|
81522
81533
|
}
|
|
81523
81534
|
let tt = new Fi();
|
|
81524
|
-
tt.setAttribute("position", new Ys(new Float32Array([ci, 0, 0,
|
|
81535
|
+
tt.setAttribute("position", new Ys(new Float32Array([ci, 0, 0, ir, 0, 0]), 3)), lt = new wa(tt, ct), lt.position.setY(ln), lt.userData.initY = ln;
|
|
81525
81536
|
let Ge = new Fi();
|
|
81526
81537
|
Ge.setAttribute("position", new Ys(new Float32Array([0, 0, Dn, 0, 0, Rr]), 3)), Rt = new wa(Ge, ct), Rt.position.setY(ln), Rt.userData.initY = ln, Ei.mouseLine_w = lt, Ei.mouseLine_h = Rt;
|
|
81527
81538
|
} else if (sn == 2) {
|
|
81528
|
-
Dn = Ct.z, Rr = Dn, ci = Ct.x - un / 2,
|
|
81539
|
+
Dn = Ct.z, Rr = Dn, ci = Ct.x - un / 2, ir = Ct.x + un / 2, Ti = Ct.y - $t / 2, ln = Ct.y + $t / 2;
|
|
81529
81540
|
for (let ut = 0; ut <= Gn; ut++) {
|
|
81530
81541
|
let jt = new Fi();
|
|
81531
81542
|
jt.setAttribute("position", new Ys(new Float32Array([ci + ut * Te, Ti, Dn, ci + ut * Te, ln, Dn]), 3));
|
|
@@ -81534,16 +81545,16 @@ const uLt = (t) => {
|
|
|
81534
81545
|
}
|
|
81535
81546
|
for (let ut = 0; ut <= tr; ut++) {
|
|
81536
81547
|
let jt = new Fi();
|
|
81537
|
-
jt.setAttribute("position", new Ys(new Float32Array([ci, Ti + ut * Me, Dn,
|
|
81548
|
+
jt.setAttribute("position", new Ys(new Float32Array([ci, Ti + ut * Me, Dn, ir, Ti + ut * Me, Dn]), 3));
|
|
81538
81549
|
let Ot = new wa(jt, at);
|
|
81539
81550
|
Jr.add(Ot);
|
|
81540
81551
|
}
|
|
81541
81552
|
let tt = new Fi();
|
|
81542
|
-
tt.setAttribute("position", new Ys(new Float32Array([ci, 0, 0,
|
|
81553
|
+
tt.setAttribute("position", new Ys(new Float32Array([ci, 0, 0, ir, 0, 0]), 3)), lt = new wa(tt, ct), lt.position.setZ(Rr), lt.userData.initZ = Rr;
|
|
81543
81554
|
let Ge = new Fi();
|
|
81544
81555
|
Ge.setAttribute("position", new Ys(new Float32Array([0, Ti, 0, 0, ln, 0]), 3)), Rt = new wa(Ge, ct), Rt.position.setZ(Rr), Rt.userData.initZ = Rr, Ei.mouseLine_w = lt, Ei.mouseLine_h = Rt;
|
|
81545
81556
|
} else if (sn == 3) {
|
|
81546
|
-
ci = Ct.x,
|
|
81557
|
+
ci = Ct.x, ir = ci, Dn = Ct.z - un / 2, Rr = Ct.z + un / 2, Ti = Ct.y - $t / 2, ln = Ct.y + $t / 2;
|
|
81547
81558
|
for (let ut = 0; ut <= Gn; ut++) {
|
|
81548
81559
|
let jt = new Fi();
|
|
81549
81560
|
jt.setAttribute("position", new Ys(new Float32Array([ci, Ti, Dn + ut * Te, ci, ln, Dn + ut * Te]), 3));
|
|
@@ -81557,9 +81568,9 @@ const uLt = (t) => {
|
|
|
81557
81568
|
Jr.add(Ot);
|
|
81558
81569
|
}
|
|
81559
81570
|
let tt = new Fi();
|
|
81560
|
-
tt.setAttribute("position", new Ys(new Float32Array([0, 0, Dn, 0, 0, Rr]), 3)), lt = new wa(tt, ct), lt.position.setX(
|
|
81571
|
+
tt.setAttribute("position", new Ys(new Float32Array([0, 0, Dn, 0, 0, Rr]), 3)), lt = new wa(tt, ct), lt.position.setX(ir), lt.userData.initX = ir;
|
|
81561
81572
|
let Ge = new Fi();
|
|
81562
|
-
Ge.setAttribute("position", new Ys(new Float32Array([0, Ti, 0, 0, ln, 0]), 3)), Rt = new wa(Ge, ct), Rt.position.setX(
|
|
81573
|
+
Ge.setAttribute("position", new Ys(new Float32Array([0, Ti, 0, 0, ln, 0]), 3)), Rt = new wa(Ge, ct), Rt.position.setX(ir), Rt.userData.initX = ir, Ei.mouseLine_w = lt, Ei.mouseLine_h = Rt;
|
|
81563
81574
|
}
|
|
81564
81575
|
return Jr.rotation.copy(de), Ei.mouseLine_w.rotation.copy(de), Ei.mouseLine_h.rotation.copy(de), Ei.mouseLine_w.position.applyMatrix4(Oe), Ei.mouseLine_h.position.applyMatrix4(Oe), Ei.mouseLine_h.updateMatrix(), Ei.mouseLine_w.updateMatrix(), Ei.coordMesh = Jr, Ei.coordMesh.name = li, Ei;
|
|
81565
81576
|
};
|
|
@@ -126324,7 +126335,7 @@ const G4n = ou((t, e) => {
|
|
|
126324
126335
|
let tt = new No();
|
|
126325
126336
|
const Ge = new ru();
|
|
126326
126337
|
ht.line.forEach((yt, vr) => {
|
|
126327
|
-
var qn = ht.position[yt.end],
|
|
126338
|
+
var qn = ht.position[yt.end], nr = ht.position[yt.start];
|
|
126328
126339
|
let vn = new Fi(), ur = [];
|
|
126329
126340
|
ur.push(qn.x * 0.01, qn.y * 0.01, qn.z * 0.01), vn.setAttribute("position", new pa(ur, 3));
|
|
126330
126341
|
let Ur = new V0({
|
|
@@ -126382,7 +126393,7 @@ const G4n = ou((t, e) => {
|
|
|
126382
126393
|
}), mn = new _f(vn, Ur);
|
|
126383
126394
|
mn.translateX(de), mn.translateY(Va.current), mn.translateZ(Oe), mn.myMeshType = "neuronSphere", mn.name = `${at}-${yt.end_name}`, mn.userData.color = ct, mn.userData.type = "end", N && N.current && (mn.visible = N.current.end), ii(mn), Ge.add(mn);
|
|
126384
126395
|
let cn = new Fi(), si = [];
|
|
126385
|
-
si.push(
|
|
126396
|
+
si.push(nr.x * 0.01, nr.y * 0.01, nr.z * 0.01), cn.setAttribute("position", new pa(si, 3));
|
|
126386
126397
|
let ni = new V0({
|
|
126387
126398
|
glslVersion: yg,
|
|
126388
126399
|
uniforms: {
|
|
@@ -126438,12 +126449,12 @@ const G4n = ou((t, e) => {
|
|
|
126438
126449
|
}), Hr = new _f(cn, ni);
|
|
126439
126450
|
Hr.translateX(de), Hr.translateY(me), Hr.translateZ(Oe), Hr.myMeshType = "neuronSphere", Hr.name = `${at}-${yt.start_name}`, Hr.userData.type = "start", N && N.current && (Hr.userData.color = N.current.start_color, Hr.visible = N.current.start), ii(Hr), Ge.add(Hr), yt.start_name && (ot.current.hasOwnProperty(yt.start_name) ? ot.current[`${yt.start_name}`].push({
|
|
126440
126451
|
name: at,
|
|
126441
|
-
point: [
|
|
126452
|
+
point: [nr.x, nr.y, nr.z],
|
|
126442
126453
|
type: vr === 0 ? "cell" : "start",
|
|
126443
126454
|
color: vr === 0 ? "#1771FF" : "#A7B5A1"
|
|
126444
126455
|
}) : (ot.current[`${yt.start_name}`] = [], ot.current[`${yt.start_name}`].push({
|
|
126445
126456
|
name: at,
|
|
126446
|
-
point: [
|
|
126457
|
+
point: [nr.x, nr.y, nr.z],
|
|
126447
126458
|
type: vr === 0 ? "cell" : "start",
|
|
126448
126459
|
color: vr === 0 ? "#1771FF" : "#A7B5A1"
|
|
126449
126460
|
}))), yt.end_name && (ot.current.hasOwnProperty(yt.end_name) ? ot.current[`${yt.end_name}`].push({
|
|
@@ -126523,10 +126534,10 @@ const G4n = ou((t, e) => {
|
|
|
126523
126534
|
let ur = ht.position[vn].x, Ur = ht.position[vn].y, mn = ht.position[vn].z;
|
|
126524
126535
|
(Math.sqrt((ur - qn[0]) * (ur - qn[0]) + (Ur - qn[1]) * (Ur - qn[1]) + (mn - qn[2]) * (mn - qn[2])) > Pt || vn === ht.line[yt].end || vn === ht.line[yt].start) && (vr.push(new Ie(ur, Ur, mn)), qn = [ur, Ur, mn]);
|
|
126525
126536
|
}
|
|
126526
|
-
let
|
|
126537
|
+
let nr = new wa(new Fi().setFromPoints(vr), new iu({
|
|
126527
126538
|
color: ct
|
|
126528
126539
|
}));
|
|
126529
|
-
|
|
126540
|
+
nr.myMeshType = "SWC", tt.add(nr);
|
|
126530
126541
|
}
|
|
126531
126542
|
tt.scale.set(Xi.current, Xi.current, Xi.current), tt.translateX(de), tt.translateY(me), tt.translateZ(Oe), tt.name = at, tt.myMeshType = "SWC", ee.current[at] = tt, Ce.current.add(ee.current[at]), lt && lt();
|
|
126532
126543
|
});
|
|
@@ -126921,9 +126932,9 @@ const G4n = ou((t, e) => {
|
|
|
126921
126932
|
}
|
|
126922
126933
|
aa.current[Me] = de;
|
|
126923
126934
|
let qn = ha(Me, re.current);
|
|
126924
|
-
for (var
|
|
126925
|
-
qn[vn] in aa.current || (
|
|
126926
|
-
if (
|
|
126935
|
+
for (var nr = !0, vn = 0; vn < qn.length; vn++)
|
|
126936
|
+
qn[vn] in aa.current || (nr = !1);
|
|
126937
|
+
if (nr) {
|
|
126927
126938
|
for (var ur = 0, vn = 0; vn < qn.length; vn++) {
|
|
126928
126939
|
var Ur = qn[vn];
|
|
126929
126940
|
if (!pe.current)
|
|
@@ -126985,7 +126996,7 @@ const G4n = ou((t, e) => {
|
|
|
126985
126996
|
const at = Te[Me], { key: ct, cname: lt } = at;
|
|
126986
126997
|
localStorage.getItem("lang") == "zh_cn" && lt ? ge.current.push({ key: ct, title: lt }) : ge.current.push({ key: ct, title: ct }), at.children && io(at.children);
|
|
126987
126998
|
}
|
|
126988
|
-
},
|
|
126999
|
+
}, ai = (Te) => {
|
|
126989
127000
|
const { value: Me } = Te.target;
|
|
126990
127001
|
if (Me != "") {
|
|
126991
127002
|
we.current = !1, dH = [];
|
|
@@ -127005,7 +127016,7 @@ const G4n = ou((t, e) => {
|
|
|
127005
127016
|
clearTimeout(H.current), H.current = setTimeout(() => {
|
|
127006
127017
|
Te(...ct);
|
|
127007
127018
|
}, Me);
|
|
127008
|
-
}, Ba = Mr(
|
|
127019
|
+
}, Ba = Mr(ai, 50), Za = (Te) => {
|
|
127009
127020
|
Z(Te), dH = [], te(!1);
|
|
127010
127021
|
}, da = (Te, Me) => {
|
|
127011
127022
|
ee.current[Te] && ee.current[Te].children[0].material.color.set(Me);
|
|
@@ -127304,10 +127315,10 @@ const G4n = ou((t, e) => {
|
|
|
127304
127315
|
const ur = qn[qn.length - 1], Ur = Ot[vn];
|
|
127305
127316
|
(ur.distanceTo(Ur) > vr || vn === Ot.length - 1) && qn.push(Ur);
|
|
127306
127317
|
}
|
|
127307
|
-
const
|
|
127318
|
+
const nr = new wa(new Fi().setFromPoints(qn), new iu({
|
|
127308
127319
|
color: at
|
|
127309
127320
|
}));
|
|
127310
|
-
|
|
127321
|
+
nr.scale.set(1, 1, 1), Pt.addLevel(nr, 10), Pt.name = ct, Pt.myMeshType = "Vessel", Pt.autoUpdate = !1, ht.add(Pt);
|
|
127311
127322
|
}
|
|
127312
127323
|
ht.scale.set(Xi.current * 0.1, Xi.current * 0.1, Xi.current * 0.1), ht.translateX(so.current), ht.translateY(Va.current), ht.translateZ(Ka.current), ht.name = ct, ht.myMeshType = "Vessel", Ce.current.add(ht);
|
|
127313
127324
|
let tt = {
|
|
@@ -127392,7 +127403,7 @@ const G4n = ou((t, e) => {
|
|
|
127392
127403
|
return { path: at, color: ct };
|
|
127393
127404
|
}, Dn = {
|
|
127394
127405
|
emptyText: O.createElement(Hv, { description: O.createElement("div", { style: { color: "#ccc" } }, "Neurons that meet the filter criteria entered in the input boxes above will be displayed here.") })
|
|
127395
|
-
},
|
|
127406
|
+
}, ir = {
|
|
127396
127407
|
selectedRowKeys: v,
|
|
127397
127408
|
onSelectAll: (Te, Me, at) => {
|
|
127398
127409
|
Ko(Me, at, Te, !0);
|
|
@@ -127500,7 +127511,7 @@ const G4n = ou((t, e) => {
|
|
|
127500
127511
|
)
|
|
127501
127512
|
)
|
|
127502
127513
|
),
|
|
127503
|
-
O.createElement(q6, { className: "SwcTable", rowSelection:
|
|
127514
|
+
O.createElement(q6, { className: "SwcTable", rowSelection: ir, columns: Mi, dataSource: lr, locale: Dn })
|
|
127504
127515
|
)
|
|
127505
127516
|
) : O.createElement(
|
|
127506
127517
|
O.Fragment,
|
|
@@ -131179,11 +131190,11 @@ Pb(6, () => {
|
|
|
131179
131190
|
throw new Error("old style JPEG compression is not supported.");
|
|
131180
131191
|
});
|
|
131181
131192
|
Pb(7, () => import("./jpeg-335c778f.mjs").then((t) => t.default));
|
|
131182
|
-
Pb([8, 32946], () => import("./deflate-
|
|
131193
|
+
Pb([8, 32946], () => import("./deflate-e60d5495.mjs").then((t) => t.default));
|
|
131183
131194
|
Pb(32773, () => import("./packbits-8b95f4d7.mjs").then((t) => t.default));
|
|
131184
131195
|
Pb(
|
|
131185
131196
|
34887,
|
|
131186
|
-
() => import("./lerc-
|
|
131197
|
+
() => import("./lerc-c951c535.mjs").then(async (t) => (await t.zstd.init(), t)).then((t) => t.default)
|
|
131187
131198
|
);
|
|
131188
131199
|
Pb(50001, () => import("./webimage-affb95d1.mjs").then((t) => t.default));
|
|
131189
131200
|
function $k(t, e, n, r = 1) {
|
|
@@ -174701,7 +174712,7 @@ const Uxn = {
|
|
|
174701
174712
|
return t[e] = n, Fxn(e, n), !0;
|
|
174702
174713
|
}
|
|
174703
174714
|
}, Ya = new Proxy(Uxn, Bxn), $xn = ou((t, e) => {
|
|
174704
|
-
const { regionData: n, setoffset_factor: r, offset_factor_R: i, t: a, hrefStr: o, leftTreeRef: s, setJiaoduRef: l, jiaoduRef: u, mouseflag: d, renderer: f, controls: p, menutagShow: h, setMenuTag: g, startselect: y, linemeshs_jing: v, points: m, points2: b, activetabIndex: E, material: C, setShowimage: S, childRef: x, checkItems: I, setoutflag: P, fetchCoordinateFunc: A, setendPoint: N, clickPoint: D, outflagRef: U, axis_font: z, setdatum: B, modeChoose: j, setShowModeChoose: V, virusModeValue: G, setShowTabNums: W, pipelineClickEvent: Z, automaticGroup: H, focusVirusLineItem: X, setMenuTagShow: te, responsefunc: K, mode: Y, setCheckItems: Q, setLeftMenuTabIndex: ie, updatePage: ee, swcItem: oe, axon_check: ue, swcnameMesh: pe, setMode: he, vesselRef: ae, swcRef: Se, vesselStr: re, lableStr: be, setShowSettingModal: fe, showSettingModal: Ae, fbxTreeDatas: Ve, composer: qe, setEchartValue: Fe, echartValue: we, sectionsInfoRef: je, sectionsInfo: ye, setSectionsInfo: ge, gray_value: $e, setLuguchecked: De, Luguchecked: ke, datum: st, setGridShow: Ze, PointShow: Ye, nodeStr: ft, lefttab: wt, righttab: At, atlasData: ot, setTip: Et, tip: Xe, startRegionAnimation: nt, setFunctionLoopSwcData: bt, azimuth: Pe, setAzimuth: gt } = t, [Qt, Nt] = mt(!1), [Gt, Kt] = mt(!1), [an, yn] = mt(!1), [Ln, An] = mt(!1), [Zn, Ir] = mt(!1), [jr, jn] = mt(!1), [Wt, zn] = mt(!1), [En, pr] = mt(!1), [gr, vt] = mt(Ya.atlasReslicingInfo.angleX || 120), [zt, gn] = mt(Ya.atlasReslicingInfo.angleY || 320), [Be, _t] = mt(Ya.atlasReslicingInfo.angleZ || 270), [Dt, Ft] = mt(Ya.atlasReslicingInfo.positionX || 0), [Mt, Zt] = mt(Ya.atlasReslicingInfo.positionY || 0), [Ht, tn] = mt(Ya.atlasReslicingInfo.positionZ || 0), [Mn, Jt] = mt(Ya.atlasReslicingInfo.translateX || !0), [Vt, nn] = mt(Ya.atlasReslicingInfo.translateY || !0), [Vn, Rn] = mt(Ya.atlasReslicingInfo.translateZ || !0), [Cr, kr] = mt(Ya.atlasReslicingInfo.rotate || !0), [cr, Cn] = mt(Ya.atlasReslicingInfo.ButtonDisabled || !0), [sr, Pn] = mt(!1), [Fn, Un] = mt(!1), [br, ii] = mt(!1), [bi, fi] = mt(!1), [ar, xr] = mt(a("5000.0006") || "显示数据块"), [Ar, lr] = mt(1), [Wr, Ji] = mt(1), [Mi, ji] = mt([]), [ha, ro] = mt([]), [za, Ao] = mt([]), [io,
|
|
174715
|
+
const { regionData: n, setoffset_factor: r, offset_factor_R: i, t: a, hrefStr: o, leftTreeRef: s, setJiaoduRef: l, jiaoduRef: u, mouseflag: d, renderer: f, controls: p, menutagShow: h, setMenuTag: g, startselect: y, linemeshs_jing: v, points: m, points2: b, activetabIndex: E, material: C, setShowimage: S, childRef: x, checkItems: I, setoutflag: P, fetchCoordinateFunc: A, setendPoint: N, clickPoint: D, outflagRef: U, axis_font: z, setdatum: B, modeChoose: j, setShowModeChoose: V, virusModeValue: G, setShowTabNums: W, pipelineClickEvent: Z, automaticGroup: H, focusVirusLineItem: X, setMenuTagShow: te, responsefunc: K, mode: Y, setCheckItems: Q, setLeftMenuTabIndex: ie, updatePage: ee, swcItem: oe, axon_check: ue, swcnameMesh: pe, setMode: he, vesselRef: ae, swcRef: Se, vesselStr: re, lableStr: be, setShowSettingModal: fe, showSettingModal: Ae, fbxTreeDatas: Ve, composer: qe, setEchartValue: Fe, echartValue: we, sectionsInfoRef: je, sectionsInfo: ye, setSectionsInfo: ge, gray_value: $e, setLuguchecked: De, Luguchecked: ke, datum: st, setGridShow: Ze, PointShow: Ye, nodeStr: ft, lefttab: wt, righttab: At, atlasData: ot, setTip: Et, tip: Xe, startRegionAnimation: nt, setFunctionLoopSwcData: bt, azimuth: Pe, setAzimuth: gt } = t, [Qt, Nt] = mt(!1), [Gt, Kt] = mt(!1), [an, yn] = mt(!1), [Ln, An] = mt(!1), [Zn, Ir] = mt(!1), [jr, jn] = mt(!1), [Wt, zn] = mt(!1), [En, pr] = mt(!1), [gr, vt] = mt(Ya.atlasReslicingInfo.angleX || 120), [zt, gn] = mt(Ya.atlasReslicingInfo.angleY || 320), [Be, _t] = mt(Ya.atlasReslicingInfo.angleZ || 270), [Dt, Ft] = mt(Ya.atlasReslicingInfo.positionX || 0), [Mt, Zt] = mt(Ya.atlasReslicingInfo.positionY || 0), [Ht, tn] = mt(Ya.atlasReslicingInfo.positionZ || 0), [Mn, Jt] = mt(Ya.atlasReslicingInfo.translateX || !0), [Vt, nn] = mt(Ya.atlasReslicingInfo.translateY || !0), [Vn, Rn] = mt(Ya.atlasReslicingInfo.translateZ || !0), [Cr, kr] = mt(Ya.atlasReslicingInfo.rotate || !0), [cr, Cn] = mt(Ya.atlasReslicingInfo.ButtonDisabled || !0), [sr, Pn] = mt(!1), [Fn, Un] = mt(!1), [br, ii] = mt(!1), [bi, fi] = mt(!1), [ar, xr] = mt(a("5000.0006") || "显示数据块"), [Ar, lr] = mt(1), [Wr, Ji] = mt(1), [Mi, ji] = mt([]), [ha, ro] = mt([]), [za, Ao] = mt([]), [io, ai] = mt(!1), [Mr, Ba] = mt({}), [Za, da] = mt(!1), [Ko, Po] = mt(""), [Ci, ba] = mt("Config_DAPI.ini"), [ns, Ai] = mt("applySTAM2CCF"), [go, mr] = mt("800"), [di, sn] = mt(1), [Ct, un] = mt(!1), [$t, Gn] = mt(!1), [tr, $r] = mt(!1), [li, Ei] = mt(!1), [Jr, ci] = mt(!0), [Ti, Dn] = mt(2), [ir, ln] = mt(!1), [Rr, Te] = mt({}), Me = Je(Ya.atlasReslicingInfo.direction1 || 4), at = Je(null), [ct, lt] = mt(a("4000.0242") || "清除靶点"), [Rt, ht] = mt(!1), me = Je(null), de = Je(window.location.href.split("/")[2]), Oe = Je(new o3(Hi.current, f == null ? void 0 : f.domElement)), tt = Je(0), Ge = Je(0), ut = Je(new er()), jt = Je(new Ie()), Ot = Je(new Ie()), hn = Je(new er()), Pt = Je(new Ie(1, 0, 0)), yt = Je(new er()), vr = Je(null), qn = Je(new wI()), nr = Je(null), vn = Je([]), ur = Je(null), Ur = Je(new er()), mn = Je(new ru()), [cn, si] = mt(Ya.otherAtlases), ni = {
|
|
174705
174716
|
min: new Ie(59.74305725097656, 69.15838623046875, 0.9565062522888184),
|
|
174706
174717
|
max: new Ie(1081.3045654296875, 800.6698608398438, 1400.156005859375)
|
|
174707
174718
|
}, [Hr, Hs] = mt([]), Ha = Je({}), Ro = Je(!1), Si = Je([0, 0]), pi = Je([0, 0]), ga = Je(""), Rs = Je(!1), [lo, $o] = mt(!1), [uc, Js] = mt(!1), [Ds, co] = mt(0), [uo, ks] = mt(0), [Al, Rl] = mt({}), [yr, gs] = mt([]), Us = Je(null), Os = Je(null), [Fs, Co] = mt(""), [Do, Vo] = mt(null), [eo, ao] = mt(V5e || ""), [ml, Ss] = mt(!1);
|
|
@@ -174804,7 +174815,7 @@ const Uxn = {
|
|
|
174804
174815
|
if (!qt)
|
|
174805
174816
|
return;
|
|
174806
174817
|
const rn = new fs().setFromObject(qt);
|
|
174807
|
-
let fn = rn.min, dn = rn.max, Er = dn.x - fn.x, fr = dn.y - fn.y,
|
|
174818
|
+
let fn = rn.min, dn = rn.max, Er = dn.x - fn.x, fr = dn.y - fn.y, rr = dn.z - fn.z, Qn = new Ie((fn.x + dn.x) / 2, (fn.y + dn.y) / 2, (fn.z + dn.z) / 2);
|
|
174808
174819
|
if (Ce.current.rotation.x !== 0) {
|
|
174809
174820
|
const Dd = new kl(Ce.current.rotation.x, Ce.current.rotation.y, Ce.current.rotation.z);
|
|
174810
174821
|
let yp = 0, Nu = 0, Jo = 0, tl = 0, zc = 0, Xs = 0;
|
|
@@ -174812,13 +174823,15 @@ const Uxn = {
|
|
|
174812
174823
|
let nl = qt.children[0].geometry.attributes.position.array[Ml] * Xi.current + so.current, LT = qt.children[0].geometry.attributes.position.array[Ml + 1] * Xi.current + Va.current, Hg = qt.children[0].geometry.attributes.position.array[Ml + 2] * Xi.current + Ka.current, Mu = new Ie(nl, LT, Hg).applyEuler(Dd);
|
|
174813
174824
|
Ml == 0 && (yp = Mu.x, Nu = Mu.y, Jo = Mu.z, tl = Mu.x, zc = Mu.y, Xs = Mu.z), Mu.x < yp && (yp = Mu.x), Mu.x > tl && (tl = Mu.x), Mu.y < Nu && (Nu = Mu.x), Mu.y > zc && (zc = Mu.y), Mu.z < Jo && (Jo = Mu.z), Mu.z > Xs && (Xs = Mu.z);
|
|
174814
174825
|
}
|
|
174815
|
-
fn = new Ie(yp, Nu, Jo), dn = new Ie(tl, zc, Xs), Er = dn.x - fn.x, fr = dn.y - fn.y,
|
|
174826
|
+
fn = new Ie(yp, Nu, Jo), dn = new Ie(tl, zc, Xs), Er = dn.x - fn.x, fr = dn.y - fn.y, rr = dn.z - fn.z, Qn = new Ie((fn.x + dn.x) / 2, (fn.y + dn.y) / 2, (fn.z + dn.z) / 2);
|
|
174816
174827
|
}
|
|
174817
174828
|
let Wn = new Fi(), or = [], Xr, La;
|
|
174818
174829
|
const $i = new jc({
|
|
174819
174830
|
color: new Or("#d4d2d2"),
|
|
174820
174831
|
transparent: !0,
|
|
174821
|
-
opacity: 0.
|
|
174832
|
+
opacity: 0.3,
|
|
174833
|
+
depthWrite: !1,
|
|
174834
|
+
depthTest: !1
|
|
174822
174835
|
}), oa = new kl(Ce.current.rotation.x, Ce.current.rotation.y, Ce.current.rotation.z);
|
|
174823
174836
|
if (xe === "cor") {
|
|
174824
174837
|
const Dd = wf.clamp(Ne, fn.z, dn.z);
|
|
@@ -174841,7 +174854,7 @@ const Uxn = {
|
|
|
174841
174854
|
Wn.setFromPoints(or);
|
|
174842
174855
|
} else if (xe === "sag") {
|
|
174843
174856
|
const Dd = wf.clamp(Ne, fn.x, dn.x);
|
|
174844
|
-
La = new qs(0.01, fr,
|
|
174857
|
+
La = new qs(0.01, fr, rr), Xr = new er(La, $i), Xr.name = "azimuth";
|
|
174845
174858
|
const yp = new kl(-Ce.current.rotation.x, -Ce.current.rotation.y, -Ce.current.rotation.z), Nu = new Ie(Dd, Qn.y, Qn.z).applyEuler(yp);
|
|
174846
174859
|
Xr.position.set(Nu.x, Qn.y, Qn.z), Xr.rotation.set(-Ce.current.rotation.x, -Ce.current.rotation.y, -Ce.current.rotation.z);
|
|
174847
174860
|
for (let Jo = 0; Jo < qt.children[0].geometry.attributes.position.array.length; Jo += 3) {
|
|
@@ -175305,8 +175318,8 @@ const Uxn = {
|
|
|
175305
175318
|
if (ue && Ve.length > 0) {
|
|
175306
175319
|
if (rn = we && $l(Ve, we), we == "") {
|
|
175307
175320
|
x.current.removeFBX(So.current, !0);
|
|
175308
|
-
const
|
|
175309
|
-
|
|
175321
|
+
const rr = x.current.checkedKeys.current.findIndex((Wn) => Wn === So.current);
|
|
175322
|
+
rr > -1 && x.current.checkedKeys.current.splice(rr, 1), we == "" && (So.current = "");
|
|
175310
175323
|
const Qn = JSON.stringify(x.current.checkedKeys.current);
|
|
175311
175324
|
dn.delete("echart_Value"), dn.set("regionsChecked", Qn), fn.search = dn.toString(), window.history.replaceState({}, "", fn);
|
|
175312
175325
|
}
|
|
@@ -175315,12 +175328,12 @@ const Uxn = {
|
|
|
175315
175328
|
if (we == "fiber tract fiber tracts")
|
|
175316
175329
|
rn = "fiber tract";
|
|
175317
175330
|
else {
|
|
175318
|
-
let
|
|
175319
|
-
rn =
|
|
175331
|
+
let rr = we.match(/^[\w\/]+/);
|
|
175332
|
+
rn = rr ? rr[0] : "";
|
|
175320
175333
|
}
|
|
175321
175334
|
if (rn) {
|
|
175322
|
-
let
|
|
175323
|
-
Tt = Tt.concat(
|
|
175335
|
+
let rr = ((Er = ue[rn]) == null ? void 0 : Er.soma) || [];
|
|
175336
|
+
Tt = Tt.concat(rr);
|
|
175324
175337
|
let Qn = ((fr = ue[rn]) == null ? void 0 : fr.axon) || [];
|
|
175325
175338
|
qt = qt.concat(Qn), Tt = Array.from(new Set(Tt)), qt = Array.from(new Set(qt)), qt && qt.forEach(($i) => {
|
|
175326
175339
|
var oa, Nl, ds;
|
|
@@ -175525,11 +175538,11 @@ const Uxn = {
|
|
|
175525
175538
|
let fa = new URL(window.location.href), Ws = new URLSearchParams(fa.search);
|
|
175526
175539
|
Ws.set("cameraInfo", ds), Ws.set("controllerInfo", Ls), fa.search = Ws.toString(), window.history.replaceState({}, "", fa);
|
|
175527
175540
|
}
|
|
175528
|
-
ST(), ji([]), ba("Config_DAPI.ini"),
|
|
175529
|
-
const dt = Ce.current.getObjectByName("sphereBig"), Tt = Ce.current.getObjectByName("sphereMiddelClick"), qt = Ce.current.getObjectByName("dashedLine"), rn = Ce.current.getObjectByName("Line"), fn = Ce.current.getObjectByName("transformControls"), dn = Ce.current.getObjectByName("sectionSphere"), Er = Ce.current.getObjectByName("correspondingPlaneDataSwc"), fr = Ce.current.getObjectByName("azimuth"),
|
|
175541
|
+
ST(), ji([]), ba("Config_DAPI.ini"), nr.current = null, Ba({}), Ne || ae.current && Se.current && x.current && (ae.current.removeALL(), Se.current.removeALL(), x.current.removeALL()), xe == 1 ? S(!0) : S(!1), lt(a("4000.0242") || "清除靶点"), l("");
|
|
175542
|
+
const dt = Ce.current.getObjectByName("sphereBig"), Tt = Ce.current.getObjectByName("sphereMiddelClick"), qt = Ce.current.getObjectByName("dashedLine"), rn = Ce.current.getObjectByName("Line"), fn = Ce.current.getObjectByName("transformControls"), dn = Ce.current.getObjectByName("sectionSphere"), Er = Ce.current.getObjectByName("correspondingPlaneDataSwc"), fr = Ce.current.getObjectByName("azimuth"), rr = [];
|
|
175530
175543
|
Ce.current.traverse((ds) => {
|
|
175531
|
-
ds.userData.isAtlasMapping === "true" &&
|
|
175532
|
-
}),
|
|
175544
|
+
ds.userData.isAtlasMapping === "true" && rr.push(ds);
|
|
175545
|
+
}), rr.forEach((ds) => {
|
|
175533
175546
|
Ce.current.remove(ds);
|
|
175534
175547
|
}), fr && Ce.current.remove(fr), Er && Ce.current.remove(Er), dn && Ce.current.remove(dn), fn && Ce.current.remove(fn), m.current = [], b.current = [], qt && Ce.current.remove(qt), rn && Ce.current.remove(rn), dt && Ce.current.remove(dt), Tt && Ce.current.remove(Tt);
|
|
175535
175548
|
const Qn = Ce.current.children.filter((ds) => ds.userData.name === "registrationPng");
|
|
@@ -175570,7 +175583,7 @@ const Uxn = {
|
|
|
175570
175583
|
const xe = Ce.current.getObjectByName("dashedLine"), Ne = Ce.current.getObjectByName("sphereBig"), Ke = Ce.current.getObjectByName("Line"), dt = Ce.current.getObjectByName("sphereMiddelClick"), Tt = Ce.current.getObjectByName("targetPoint"), qt = Ce.current.getObjectByName("azimuth"), rn = Ce.current.getObjectByName("azimuth_outline"), fn = Ce.current.getObjectByName("azimuth_edge");
|
|
175571
175584
|
fn && Ce.current.remove(fn), qt && Ce.current.remove(qt), Ke && Ce.current.remove(Ke), rn && Ce.current.remove(rn), xe && Ne && Ce.current.remove(xe, Ne), dt && Ce.current.remove(dt), Tt && Ce.current.remove(Tt), H.current.forEach((dn) => {
|
|
175572
175585
|
const Er = Ce.current.getObjectByName(dn);
|
|
175573
|
-
Er && (Ce.current.remove(Er), x.current && x.current.setCheckItems((fr) => fr.filter((
|
|
175586
|
+
Er && (Ce.current.remove(Er), x.current && x.current.setCheckItems((fr) => fr.filter((rr) => rr !== dn)));
|
|
175574
175587
|
}), H.current = [], Fb(), l(""), d.current = !1;
|
|
175575
175588
|
}
|
|
175576
175589
|
};
|
|
@@ -175643,12 +175656,12 @@ const Uxn = {
|
|
|
175643
175656
|
})).then((rn) => {
|
|
175644
175657
|
const fn = rn.base64;
|
|
175645
175658
|
let dn = qt.load(fn);
|
|
175646
|
-
const fr = Ne.geometry.attributes.uv.array,
|
|
175659
|
+
const fr = Ne.geometry.attributes.uv.array, rr = (Wn) => {
|
|
175647
175660
|
fr[Wn + 0] = 1, fr[Wn + 1] = 0, fr[Wn + 2] = 1, fr[Wn + 3] = 1, fr[Wn + 4] = 0, fr[Wn + 5] = 0, fr[Wn + 6] = 0, fr[Wn + 7] = 1;
|
|
175648
175661
|
}, Qn = (Wn) => {
|
|
175649
175662
|
fr[Wn + 0] = 1, fr[Wn + 1] = 1, fr[Wn + 2] = 1, fr[Wn + 3] = 0, fr[Wn + 4] = 0, fr[Wn + 5] = 1, fr[Wn + 6] = 0, fr[Wn + 7] = 0;
|
|
175650
175663
|
};
|
|
175651
|
-
|
|
175664
|
+
rr(0), Qn(8), Ne.geometry.attributes.uv.needsUpdate = !0, Ne.material.map = dn;
|
|
175652
175665
|
});
|
|
175653
175666
|
else if (xe == 3)
|
|
175654
175667
|
fetch("/app-api/c-api/slicing", {
|
|
@@ -175692,11 +175705,11 @@ const Uxn = {
|
|
|
175692
175705
|
})).then((Er) => {
|
|
175693
175706
|
const fr = Er.base64;
|
|
175694
175707
|
_s.current = fr;
|
|
175695
|
-
let
|
|
175708
|
+
let rr = qt.load(fr);
|
|
175696
175709
|
const Wn = Ne.geometry.attributes.uv.array;
|
|
175697
175710
|
((Xr) => {
|
|
175698
175711
|
Wn[Xr + 0] = 0, Wn[Xr + 1] = 0, Wn[Xr + 2] = 1, Wn[Xr + 3] = 0, Wn[Xr + 4] = 0, Wn[Xr + 5] = 1, Wn[Xr + 6] = 1, Wn[Xr + 7] = 1;
|
|
175699
|
-
})(24), Ne.geometry.attributes.uv.needsUpdate = !0, Ne.material.map =
|
|
175712
|
+
})(24), Ne.geometry.attributes.uv.needsUpdate = !0, Ne.material.map = rr;
|
|
175700
175713
|
});
|
|
175701
175714
|
}
|
|
175702
175715
|
}, 100);
|
|
@@ -175722,14 +175735,14 @@ const Uxn = {
|
|
|
175722
175735
|
dt && (Tt = JSON.parse(dt)), Me.current == 1 && (tn(xe), Ft(-5.17), Zt(-5.33), Vl(xe, 3), Tt.positionX = -5.17, Tt.positionY = -5.33, Tt.positionZ = xe, Ya.atlasReslicingInfo = Tt), Me.current == 4 && Vl(xe, 3);
|
|
175723
175736
|
}, ws = (xe, Ne) => {
|
|
175724
175737
|
let Ke = 0, dt = new URL(window.location.href), qt = new URLSearchParams(dt.search).get("atlasReslicingInfo"), rn = {};
|
|
175725
|
-
qt && (rn = JSON.parse(qt)), Ce.current.children.forEach(function(
|
|
175726
|
-
|
|
175738
|
+
qt && (rn = JSON.parse(qt)), Ce.current.children.forEach(function(rr, Qn) {
|
|
175739
|
+
rr.name == "arbitrarySlice" && (Ke = Qn);
|
|
175727
175740
|
});
|
|
175728
175741
|
let fn = Ce.current.children[Ke];
|
|
175729
175742
|
fn.rotation.set(fn.userData.initRotation.x, fn.userData.initRotation.y, fn.userData.initRotation.z);
|
|
175730
175743
|
let dn = 0, Er = 0, fr = 0;
|
|
175731
|
-
Ne == 1 && (vt(xe), rn.angleX = xe, Ya.atlasReslicingInfo = rn, dn = xe * Math.PI / 180, Er = zt * Math.PI / 180, fr = Be * Math.PI / 180), Ne == 2 && (gn(xe), rn.angleY = xe, Ya.atlasReslicingInfo = rn, dn = gr * Math.PI / 180, Er = xe * Math.PI / 180, fr = Be * Math.PI / 180), Ne == 3 && (_t(xe), rn.angleZ = xe, Ya.atlasReslicingInfo = rn, dn = gr * Math.PI / 180, Er = zt * Math.PI / 180, fr = xe * Math.PI / 180), fn.rotation.x = dn, fn.rotation.y = Er, fn.rotation.z = fr, Ce.current.children.forEach(function(
|
|
175732
|
-
|
|
175744
|
+
Ne == 1 && (vt(xe), rn.angleX = xe, Ya.atlasReslicingInfo = rn, dn = xe * Math.PI / 180, Er = zt * Math.PI / 180, fr = Be * Math.PI / 180), Ne == 2 && (gn(xe), rn.angleY = xe, Ya.atlasReslicingInfo = rn, dn = gr * Math.PI / 180, Er = xe * Math.PI / 180, fr = Be * Math.PI / 180), Ne == 3 && (_t(xe), rn.angleZ = xe, Ya.atlasReslicingInfo = rn, dn = gr * Math.PI / 180, Er = zt * Math.PI / 180, fr = xe * Math.PI / 180), fn.rotation.x = dn, fn.rotation.y = Er, fn.rotation.z = fr, Ce.current.children.forEach(function(rr, Qn) {
|
|
175745
|
+
rr.name == "arbitrarySlice" && (Ke = Qn);
|
|
175733
175746
|
}), Cl(Me.current, Ce.current.children[Ke]);
|
|
175734
175747
|
}, pd = (xe, Ne = !1) => {
|
|
175735
175748
|
let Ke;
|
|
@@ -175749,7 +175762,7 @@ const Uxn = {
|
|
|
175749
175762
|
} else
|
|
175750
175763
|
Me.current == 3 && (Ke = parseInt(((Mt + 5.33) / 7.37 * 367).toString()), window.open("http://" + de.current + "/STAM/reference/index.html?lang=en_us&3Dname=" + dt + "&inp=" + Ke + "§ion=horizontal"));
|
|
175751
175764
|
}, el = (xe, Ne, Ke, dt, Tt, qt, rn, fn, dn, Er, fr) => {
|
|
175752
|
-
let
|
|
175765
|
+
let rr = new URL(window.location.href), Wn = new URLSearchParams(rr.search).get("atlasReslicingInfo"), or = {};
|
|
175753
175766
|
Wn && (or = JSON.parse(Wn)), or.angleX = xe, or.angleY = Ne, or.angleZ = Ke, or.positionZ = qt, or.positionX = dt, or.positionY = Tt, or.translateX = rn, or.translateY = fn, or.translateZ = dn, or.ButtonDisabled = fr, or.rotate = Er, or.direction1 = Me.current, Ya.atlasReslicingInfo = or, vt(xe), gn(Ne), _t(Ke), tn(qt), Ft(dt), Zt(Tt), Jt(rn), nn(fn), Rn(dn), kr(Er), Cn(fr);
|
|
175754
175767
|
}, us = (xe, Ne = !1) => {
|
|
175755
175768
|
Ce.current.remove(yl.current);
|
|
@@ -175934,7 +175947,7 @@ const Uxn = {
|
|
|
175934
175947
|
Mc.current.splice(qt, 1), Ne.forEach((fr) => {
|
|
175935
175948
|
Ke.push($g(Al, fr));
|
|
175936
175949
|
});
|
|
175937
|
-
const rn = Ke.reduce((fr,
|
|
175950
|
+
const rn = Ke.reduce((fr, rr) => Vg(fr, rr), []);
|
|
175938
175951
|
let fn = I;
|
|
175939
175952
|
rn.forEach((fr) => {
|
|
175940
175953
|
cf(Tt.treeDatas, fr) != null && (fn = fn.filter((Qn) => Qn !== fr), Tt.removeFBX(fr, !0));
|
|
@@ -175942,17 +175955,17 @@ const Uxn = {
|
|
|
175942
175955
|
let dn = new URL(window.location.href), Er = new URLSearchParams(dn.search);
|
|
175943
175956
|
Er.set("regionsChecked", JSON.stringify(fn)), dn.search = Er.toString(), window.history.replaceState({}, "", dn), Mc.current.length === 0 && Tt.setExpandedKeys(Tt.defexpandedKeys.current);
|
|
175944
175957
|
} else {
|
|
175945
|
-
Mc.current.push(xe), Ne.forEach((
|
|
175946
|
-
Ke.push($g(Al,
|
|
175958
|
+
Mc.current.push(xe), Ne.forEach((rr) => {
|
|
175959
|
+
Ke.push($g(Al, rr));
|
|
175947
175960
|
});
|
|
175948
|
-
const rn = Ke.reduce((
|
|
175961
|
+
const rn = Ke.reduce((rr, Qn) => Vg(rr, Qn), []), fn = Array.from(/* @__PURE__ */ new Set([...Tt.expandedKeys, ...rn]));
|
|
175949
175962
|
Tt.setExpandedKeys(fn);
|
|
175950
175963
|
let dn = [...I];
|
|
175951
|
-
rn.forEach((
|
|
175952
|
-
const Qn = cf(Tt.treeDatas,
|
|
175964
|
+
rn.forEach((rr) => {
|
|
175965
|
+
const Qn = cf(Tt.treeDatas, rr);
|
|
175953
175966
|
if (Qn != null) {
|
|
175954
|
-
const Wn = `${n}/data/FBX/${
|
|
175955
|
-
dn.push(
|
|
175967
|
+
const Wn = `${n}/data/FBX/${rr}.FBX`;
|
|
175968
|
+
dn.push(rr), Tt.LoadFBX(Wn, rr, Qn.color, 0.8, 0);
|
|
175956
175969
|
}
|
|
175957
175970
|
}), Q(dn);
|
|
175958
175971
|
let Er = new URL(window.location.href), fr = new URLSearchParams(Er.search);
|
|
@@ -176150,9 +176163,9 @@ const Uxn = {
|
|
|
176150
176163
|
const fr = a("5000.0006") || "显示数据块";
|
|
176151
176164
|
if (ar === fr) {
|
|
176152
176165
|
xr(a("5000.0007") || "隐藏数据块"), Oe.current = new o3(Hi.current, f == null ? void 0 : f.domElement), Oe.current.setMode("translate"), Oe.current.enabled = !0, Oe.current.visible = !0, Oe.current.name = "transformControls", Oe.current.attach(yt.current), Ce.current.add(yt.current, Oe.current, qn.current), W8(), document.addEventListener("keypress", Bb);
|
|
176153
|
-
const
|
|
176154
|
-
|
|
176155
|
-
const Qn = A.current(
|
|
176166
|
+
const rr = new fs();
|
|
176167
|
+
rr.expandByObject(yt.current);
|
|
176168
|
+
const Qn = A.current(rr.min.clone()), Wn = A.current(rr.max.clone());
|
|
176156
176169
|
let or = new Yf(zg(650, 620, `${Qn.x.toFixed(2)},${Qn.y.toFixed(2)},${Qn.z.toFixed(2)}`, "#ccc")), Xr = new Ef(new Wd({
|
|
176157
176170
|
map: or
|
|
176158
176171
|
}));
|
|
@@ -176160,7 +176173,7 @@ const Uxn = {
|
|
|
176160
176173
|
let La = new Yf(zg(650, 620, `${Wn.x.toFixed(2)},${Wn.y.toFixed(2)},${Wn.z.toFixed(2)}`, "#ccc")), $i = new Ef(new Wd({
|
|
176161
176174
|
map: La
|
|
176162
176175
|
}));
|
|
176163
|
-
$i.name = "endText", Xr.position.set(
|
|
176176
|
+
$i.name = "endText", Xr.position.set(rr.min.x, rr.min.y + 0.2, rr.min.z), $i.position.set(rr.max.x, rr.max.y + 0.6, rr.max.z);
|
|
176164
176177
|
const oa = Ce.current.getObjectByName("startText"), Nl = Ce.current.getObjectByName("endText");
|
|
176165
176178
|
oa && Nl && Ce.current.remove(oa, Nl), Ce.current.add(Ur.current, Xr, $i);
|
|
176166
176179
|
}
|
|
@@ -176335,7 +176348,7 @@ const Uxn = {
|
|
|
176335
176348
|
const fn = Ce.current.children.filter((dn) => dn.userData.name === "registrationPng");
|
|
176336
176349
|
fn && Ce.current.remove(...fn), js.current = qt;
|
|
176337
176350
|
}
|
|
176338
|
-
|
|
176351
|
+
nr.current = dt.path;
|
|
176339
176352
|
}
|
|
176340
176353
|
else
|
|
176341
176354
|
dt.message && Xo.error({
|
|
@@ -176351,9 +176364,9 @@ const Uxn = {
|
|
|
176351
176364
|
dn.readAsArrayBuffer(xe), dn.onload = async (Er) => {
|
|
176352
176365
|
var fr;
|
|
176353
176366
|
if ((fr = Er.target) != null && fr.result) {
|
|
176354
|
-
const
|
|
176355
|
-
if (
|
|
176356
|
-
const Wn = await (await USe(
|
|
176367
|
+
const rr = Er.target.result;
|
|
176368
|
+
if (rr instanceof ArrayBuffer) {
|
|
176369
|
+
const Wn = await (await USe(rr)).getImage(), or = Wn.getWidth(), Xr = Wn.getHeight();
|
|
176357
176370
|
if (!Ne) {
|
|
176358
176371
|
const La = cs.findIndex(($i) => $i.key === Qs[0]);
|
|
176359
176372
|
if (La > -1) {
|
|
@@ -176381,7 +176394,7 @@ const Uxn = {
|
|
|
176381
176394
|
method: "post",
|
|
176382
176395
|
body: Ke
|
|
176383
176396
|
}).then((dt) => dt.json()).then((dt) => {
|
|
176384
|
-
dt.code === 200 ? (bc.success("update success"), Ne === 2 ? ro([{ url: "data:image/png;base64," + dt.base64_url }]) : (ji([{ url: "data:image/png;base64," + dt.base64_url }]), Ba({}),
|
|
176397
|
+
dt.code === 200 ? (bc.success("update success"), Ne === 2 ? ro([{ url: "data:image/png;base64," + dt.base64_url }]) : (ji([{ url: "data:image/png;base64," + dt.base64_url }]), Ba({}), nr.current = dt.path)) : dt.message && Xo.error({
|
|
176385
176398
|
content: a("5000.0003") || "上传失败,请联系管理员"
|
|
176386
176399
|
});
|
|
176387
176400
|
});
|
|
@@ -176391,27 +176404,27 @@ const Uxn = {
|
|
|
176391
176404
|
const dt = new ru(), Tt = xe.split("/").pop();
|
|
176392
176405
|
let qt = {};
|
|
176393
176406
|
const rn = [];
|
|
176394
|
-
Ce.current.traverse((
|
|
176395
|
-
|
|
176396
|
-
}), rn.forEach((
|
|
176397
|
-
Ce.current.remove(
|
|
176398
|
-
}), Ne.line.forEach((
|
|
176399
|
-
var Wn = Ne.position[
|
|
176407
|
+
Ce.current.traverse((rr) => {
|
|
176408
|
+
rr.userData.isAtlasMapping === "true" && rn.push(rr);
|
|
176409
|
+
}), rn.forEach((rr) => {
|
|
176410
|
+
Ce.current.remove(rr);
|
|
176411
|
+
}), Ne.line.forEach((rr, Qn) => {
|
|
176412
|
+
var Wn = Ne.position[rr.end], or = Ne.position[rr.start], Xr = new er(new tu(0.01, 32, 32), new jc({ color: "#A7B5A1", transparent: !0 }));
|
|
176400
176413
|
Xr.position.set(Wn.x * 0.01, Wn.y * 0.01, Wn.z * 0.01);
|
|
176401
176414
|
var La = new er(new tu(0.01, 32, 32), new jc({ color: "#00ffff", transparent: !0 }));
|
|
176402
|
-
La.position.set(or.x * 0.01, or.y * 0.01, or.z * 0.01), Xr.translateX(so.current), Xr.translateY(Va.current), Xr.translateZ(Ka.current), La.translateX(so.current), La.translateY(Va.current), La.translateZ(Ka.current), Xr.myMeshType = "neuronSphere", Xr.name = `${Tt}/${
|
|
176415
|
+
La.position.set(or.x * 0.01, or.y * 0.01, or.z * 0.01), Xr.translateX(so.current), Xr.translateY(Va.current), Xr.translateZ(Ka.current), La.translateX(so.current), La.translateY(Va.current), La.translateZ(Ka.current), Xr.myMeshType = "neuronSphere", Xr.name = `${Tt}/${rr.end_name}`, Xr.userData.color = "#A7B5A1", La.myMeshType = "neuronSphere", La.name = `${Tt}/${rr.start_name}`, La.userData.color = "#00ffff", dt.add(Xr), dt.add(La), rr.start_name && (qt.hasOwnProperty(rr.start_name) ? qt[`${rr.start_name}`].push({
|
|
176403
176416
|
name: Tt,
|
|
176404
176417
|
point: [or.x, or.y, or.z],
|
|
176405
176418
|
color: "#00ffff"
|
|
176406
|
-
}) : (qt[`${
|
|
176419
|
+
}) : (qt[`${rr.start_name}`] = [], qt[`${rr.start_name}`].push({
|
|
176407
176420
|
name: Tt,
|
|
176408
176421
|
point: [or.x, or.y, or.z],
|
|
176409
176422
|
color: Qn === 0 ? "#1771FF" : "#00ffff"
|
|
176410
|
-
}))),
|
|
176423
|
+
}))), rr.end_name && (qt.hasOwnProperty(rr.end_name) ? qt[`${rr.end_name}`].push({
|
|
176411
176424
|
name: Tt,
|
|
176412
176425
|
point: [Wn.x, Wn.y, Wn.z],
|
|
176413
176426
|
color: "#A7B5A1"
|
|
176414
|
-
}) : (qt[`${
|
|
176427
|
+
}) : (qt[`${rr.end_name}`] = [], qt[`${rr.end_name}`].push({
|
|
176415
176428
|
name: Tt,
|
|
176416
176429
|
point: [Wn.x, Wn.y, Wn.z],
|
|
176417
176430
|
color: "#A7B5A1"
|
|
@@ -176420,35 +176433,35 @@ const Uxn = {
|
|
|
176420
176433
|
let fn = new er(new tu(0.02, 32, 32), new jc({ color: "#1771FF", transparent: !0 }));
|
|
176421
176434
|
fn.position.set(Ne.position[0].x * 0.01, Ne.position[0].y * 0.01, Ne.position[0].z * 0.01), fn.translateX(so.current), fn.translateY(Va.current), fn.translateZ(Ka.current), dt.add(fn), dt.name = `swcPointGroup${Tt}`, dt.userData.isAtlasMapping = "true";
|
|
176422
176435
|
const dn = {};
|
|
176423
|
-
for (const
|
|
176424
|
-
const Qn = qt[
|
|
176436
|
+
for (const rr in qt) {
|
|
176437
|
+
const Qn = qt[rr];
|
|
176425
176438
|
for (const Wn of Qn)
|
|
176426
176439
|
if (Wn.name == Tt) {
|
|
176427
176440
|
if (Wn.color === "#1771FF") {
|
|
176428
|
-
dn[
|
|
176441
|
+
dn[rr] = { point: Wn.point, color: Wn.color };
|
|
176429
176442
|
break;
|
|
176430
176443
|
}
|
|
176431
176444
|
if (Wn.color === "#A7B5A1") {
|
|
176432
|
-
dn[
|
|
176445
|
+
dn[rr] = { point: Wn.point, color: Wn.color };
|
|
176433
176446
|
break;
|
|
176434
176447
|
}
|
|
176435
|
-
dn[
|
|
176448
|
+
dn[rr] = { point: Wn.point, color: Wn.color };
|
|
176436
176449
|
}
|
|
176437
176450
|
}
|
|
176438
|
-
for (let
|
|
176439
|
-
const { point: Qn, color: Wn } = dn[
|
|
176440
|
-
var Er = new Yf(zg(400, 300,
|
|
176451
|
+
for (let rr in dn) {
|
|
176452
|
+
const { point: Qn, color: Wn } = dn[rr];
|
|
176453
|
+
var Er = new Yf(zg(400, 300, rr.replace("_", "/"), Wn));
|
|
176441
176454
|
let or = new Ef(new Wd({
|
|
176442
176455
|
map: Er,
|
|
176443
176456
|
transparent: !0,
|
|
176444
176457
|
alphaTest: 0.5
|
|
176445
176458
|
}));
|
|
176446
|
-
or.scale.set(0.5, 0.5, 0.5), or.position.set(Qn[0] * 0.01, Qn[1] * 0.01, Qn[2] * 0.01), or.translateX(so.current), or.name = "lineNameMesh", or.userData.name =
|
|
176459
|
+
or.scale.set(0.5, 0.5, 0.5), or.position.set(Qn[0] * 0.01, Qn[1] * 0.01, Qn[2] * 0.01), or.translateX(so.current), or.name = "lineNameMesh", or.userData.name = rr.replace("_", "/"), or.userData.wholeName = `${Tt}-${rr}`, or.userData.isAtlasMapping = "true", or.userData.initColor = Wn, or.translateY(Va.current), or.translateZ(Ka.current), Ce.current.add(or);
|
|
176447
176460
|
}
|
|
176448
176461
|
Ce.current.add(dt);
|
|
176449
|
-
for (let
|
|
176462
|
+
for (let rr = 0; rr < Ne.line.length; rr++) {
|
|
176450
176463
|
let Qn = [];
|
|
176451
|
-
for (let or = Ne.line[
|
|
176464
|
+
for (let or = Ne.line[rr].start; or <= Ne.line[rr].end; or++) {
|
|
176452
176465
|
let Xr = Ne.position[or].x, La = Ne.position[or].y, $i = Ne.position[or].z;
|
|
176453
176466
|
Qn.push(new Ie(Xr, La, $i));
|
|
176454
176467
|
}
|
|
@@ -176483,8 +176496,8 @@ const Uxn = {
|
|
|
176483
176496
|
let qt = new Ie(0.005238113403320366, -1.6508567881694614, 6133353495929583e-20), rn = new Ie(-5.097530670166015, -4.308416134996751, -7.990437196406743), fn = new Ie(5.118084411621094, 3.006702558657828, 6.001559863476661);
|
|
176484
176497
|
const dn = new fs();
|
|
176485
176498
|
dn.expandByObject(xe.clone()), rn = dn.min, fn = dn.max, qt = dn.getCenter(qt);
|
|
176486
|
-
const Er = fn.x - rn.x, fr = fn.y - rn.y,
|
|
176487
|
-
yt.current.scale.set(Er, fr,
|
|
176499
|
+
const Er = fn.x - rn.x, fr = fn.y - rn.y, rr = fn.z - rn.z;
|
|
176500
|
+
yt.current.scale.set(Er, fr, rr), yt.current.position.set(qt.x, qt.y, qt.z), vn.current.length === 0 ? fetch("/app-api/d-api/dowload/" + Mr.file[1]).then((Qn) => Qn.arrayBuffer()).then((Qn) => {
|
|
176488
176501
|
const Wn = new Uint8Array(Qn);
|
|
176489
176502
|
let or = AH(Wn), Xr = PSe(Wn);
|
|
176490
176503
|
vn.current = or, qm(or, Tt, Xr);
|
|
@@ -176551,17 +176564,17 @@ const Uxn = {
|
|
|
176551
176564
|
var Ke = Ce.current.getObjectByName("Brain");
|
|
176552
176565
|
if (Ke && Ne > -1) {
|
|
176553
176566
|
let fr = cs[Ne];
|
|
176554
|
-
const { correspondingPlaneData:
|
|
176567
|
+
const { correspondingPlaneData: rr, registrationRadioShowType: Qn, fileList: Wn, fileList2: or } = fr;
|
|
176555
176568
|
var dt = new fs().setFromObject(Ke), Tt = dt.max.y - dt.min.y, qt = dt.max.x - dt.min.x;
|
|
176556
|
-
Tt = Tt / Math.cos(
|
|
176569
|
+
Tt = Tt / Math.cos(rr.angles[0] * Math.PI / 180), qt = qt / Math.cos(rr.angles[1] * Math.PI / 180);
|
|
176557
176570
|
var rn = new J6(qt, Tt, 1, 1), fn = new jc({ side: Td, transparent: !0, alphaTest: 0.1 }), dn = new er(rn, fn);
|
|
176558
176571
|
dn.name = `png${Ne}`;
|
|
176559
176572
|
let Xr = Qn;
|
|
176560
176573
|
xe && (Xr = xe), dn.userData.imgType = Xr, dn.userData.name = "registrationPng", Ce.current.add(dn);
|
|
176561
176574
|
var Er = new _C();
|
|
176562
|
-
dn.position.set(dt.min.x + (dt.max.x - dt.min.x) / 2, dt.min.y + (dt.max.y - dt.min.y) / 2, (dt.max.z - dt.min.z) *
|
|
176575
|
+
dn.position.set(dt.min.x + (dt.max.x - dt.min.x) / 2, dt.min.y + (dt.max.y - dt.min.y) / 2, (dt.max.z - dt.min.z) * rr.tx + dt.min.z), Er.load(Xr === "3" ? or[0].url : Xr === "1" ? rr.base64_url : Wn[0].url, function(La) {
|
|
176563
176576
|
fn.map = La, fn.needsUpdate = !0;
|
|
176564
|
-
}), dn.rotateOnAxis(new Ie(0, 0, 1), Math.PI), dn.rotateOnAxis(new Ie(1, 0, 0), Math.PI / 180 * -
|
|
176577
|
+
}), dn.rotateOnAxis(new Ie(0, 0, 1), Math.PI), dn.rotateOnAxis(new Ie(1, 0, 0), Math.PI / 180 * -rr.angles[0]), dn.rotateOnAxis(new Ie(0, 1, 0), Math.PI / 180 * rr.angles[2]), dn.rotateOnAxis(new Ie(0, 0, 1), Math.PI / 180 * rr.angles[1]), xe != "1" && (qc.current ? dn.scale.x = 1 : dn.scale.x = -1);
|
|
176565
176578
|
}
|
|
176566
176579
|
}, ST = () => {
|
|
176567
176580
|
const xe = new qs(1, 1, 1), Ne = new jc({
|
|
@@ -176601,7 +176614,7 @@ const Uxn = {
|
|
|
176601
176614
|
let qt = Tt.getContext("2d");
|
|
176602
176615
|
return qt.font = "80px Arial", qt.fillStyle = dt, qt.fillText(Ke, 40, 80), Tt;
|
|
176603
176616
|
}, qm = (xe, Ne, Ke) => {
|
|
176604
|
-
const dt = xe[0].width / Ne.owidth, Tt = xe[0].height / Ne.oheight, qt = Ke / Ne.odepth, rn = Math.ceil(Ne.bwidth * dt), fn = Math.ceil(Ne.bheight * Tt), dn = Math.ceil(Ne.bdepth * qt), Er = Math.floor(Ne.ewidth * dt), fr = Math.floor(Ne.eheight * Tt),
|
|
176617
|
+
const dt = xe[0].width / Ne.owidth, Tt = xe[0].height / Ne.oheight, qt = Ke / Ne.odepth, rn = Math.ceil(Ne.bwidth * dt), fn = Math.ceil(Ne.bheight * Tt), dn = Math.ceil(Ne.bdepth * qt), Er = Math.floor(Ne.ewidth * dt), fr = Math.floor(Ne.eheight * Tt), rr = Math.floor(Ne.edepth * qt), Qn = Er - rn, Wn = fr - fn, or = new LPe(null, Qn, Wn, rr - dn);
|
|
176605
176618
|
or.format = EPe, or.minFilter = xf, or.magFilter = xf, or.unpackAlignment = 1, or.needsUpdate = !0;
|
|
176606
176619
|
const Xr = f.getContext();
|
|
176607
176620
|
f.initTexture(or);
|
|
@@ -176609,7 +176622,7 @@ const Uxn = {
|
|
|
176609
176622
|
Xr.bindBuffer(Xr.PIXEL_UNPACK_BUFFER, null), Xr.bindTexture(Xr.TEXTURE_3D, La);
|
|
176610
176623
|
for (let oa = 0; oa < xe.length; oa++) {
|
|
176611
176624
|
let Nl = [];
|
|
176612
|
-
if (oa >= dn && oa <
|
|
176625
|
+
if (oa >= dn && oa < rr) {
|
|
176613
176626
|
for (let Ls = 0; Ls < xe[oa].data.length; Ls++) {
|
|
176614
176627
|
let fa = Ls % xe[oa].width, Ws = Ls / xe[oa].width;
|
|
176615
176628
|
rn <= fa && fa < Er && Ws >= fn && Ws < fr && Nl.push(xe[oa].data[Ls]);
|
|
@@ -176691,8 +176704,8 @@ const Uxn = {
|
|
|
176691
176704
|
};
|
|
176692
176705
|
vn.current.length === 0 ? fetch(n + "/data/TIFF/1-0.5_0.tif").then((dn) => dn.arrayBuffer()).then((dn) => {
|
|
176693
176706
|
const Er = new Uint8Array(dn);
|
|
176694
|
-
let fr = AH(Er),
|
|
176695
|
-
vn.current = fr, qm(fr, fn,
|
|
176707
|
+
let fr = AH(Er), rr = PSe(Er);
|
|
176708
|
+
vn.current = fr, qm(fr, fn, rr);
|
|
176696
176709
|
}) : setTimeout(() => {
|
|
176697
176710
|
qm(vn.current, fn, vn.current.length);
|
|
176698
176711
|
}, 200);
|
|
@@ -176708,8 +176721,8 @@ const Uxn = {
|
|
|
176708
176721
|
let qt = new No();
|
|
176709
176722
|
for (let rn = 0; rn < dt.branches.length; rn++) {
|
|
176710
176723
|
let fn = dt.branches[rn], dn = [];
|
|
176711
|
-
for (let
|
|
176712
|
-
let Qn = dt.indices[
|
|
176724
|
+
for (let rr = fn.start; rr < fn.start + fn.count; rr++) {
|
|
176725
|
+
let Qn = dt.indices[rr], Wn = dt.points[3 * Qn], or = dt.points[3 * Qn + 1], Xr = dt.points[3 * Qn + 2];
|
|
176713
176726
|
dn.push(new Ie(Wn, or, Xr));
|
|
176714
176727
|
}
|
|
176715
176728
|
const Er = new Fi().setFromPoints(dn);
|
|
@@ -176747,8 +176760,8 @@ const Uxn = {
|
|
|
176747
176760
|
};
|
|
176748
176761
|
yt.current.scale.set(fn.x, fn.y, fn.z), yt.current.position.set(dn.x, dn.y, dn.z), vn.current.length === 0 ? fetch(nq).then((Er) => Er.arrayBuffer()).then(async (Er) => {
|
|
176749
176762
|
try {
|
|
176750
|
-
const fr = await USe(Er),
|
|
176751
|
-
for (let or = 0; or <
|
|
176763
|
+
const fr = await USe(Er), rr = await fr.getImageCount(), Qn = [];
|
|
176764
|
+
for (let or = 0; or < rr; or++) {
|
|
176752
176765
|
const Xr = await fr.getImage(or), La = await Xr.readRasters(), $i = Xr.getWidth(), oa = Xr.getHeight();
|
|
176753
176766
|
Qn.push({
|
|
176754
176767
|
width: $i,
|
|
@@ -176756,7 +176769,7 @@ const Uxn = {
|
|
|
176756
176769
|
data: La[0]
|
|
176757
176770
|
});
|
|
176758
176771
|
}
|
|
176759
|
-
let Wn =
|
|
176772
|
+
let Wn = rr;
|
|
176760
176773
|
vn.current = Qn, qm(vn.current, rn, Wn);
|
|
176761
176774
|
} catch (fr) {
|
|
176762
176775
|
console.log("e", fr);
|
|
@@ -176891,7 +176904,7 @@ const Uxn = {
|
|
|
176891
176904
|
}
|
|
176892
176905
|
break;
|
|
176893
176906
|
}
|
|
176894
|
-
|
|
176907
|
+
ai(!0), fetch("/app-api/test-api/CutBlockTask", {
|
|
176895
176908
|
method: "post",
|
|
176896
176909
|
headers: {
|
|
176897
176910
|
"Content-Type": "application/json"
|
|
@@ -176918,7 +176931,7 @@ const Uxn = {
|
|
|
176918
176931
|
}, 2e3);
|
|
176919
176932
|
else {
|
|
176920
176933
|
const Ke = document.createElement("a"), dt = new Blob([Ne]), Tt = window.URL.createObjectURL(dt);
|
|
176921
|
-
Ke.style.display = "none", Ke.href = Tt, Ke.download = "temp.tiff", Ke.click(), window.URL.revokeObjectURL(Tt),
|
|
176934
|
+
Ke.style.display = "none", Ke.href = Tt, Ke.download = "temp.tiff", Ke.click(), window.URL.revokeObjectURL(Tt), ai(!1);
|
|
176922
176935
|
let qt = new URL(window.location.href), fn = new URLSearchParams(qt.search).get("type");
|
|
176923
176936
|
const dn = window.location.origin + window.location.pathname + `?type=${fn}`;
|
|
176924
176937
|
fetch("/app-api/java-api/brainsweb-service/record/list", {
|
|
@@ -176928,7 +176941,7 @@ const Uxn = {
|
|
|
176928
176941
|
});
|
|
176929
176942
|
}
|
|
176930
176943
|
}).catch((Ne) => {
|
|
176931
|
-
|
|
176944
|
+
ai(!1), Xo.error({ title: a("5000.7026") || "请求超时,下载失败" });
|
|
176932
176945
|
});
|
|
176933
176946
|
}, Bb = Ec((xe) => {
|
|
176934
176947
|
xe.stopPropagation(), (xe.key === "a" || xe.key === "A") && (Oe.current.getMode() === "translate" ? Oe.current.setMode("scale") : Oe.current.setMode("translate"));
|
|
@@ -176959,8 +176972,8 @@ const Uxn = {
|
|
|
176959
176972
|
qn.current.geometry = Er;
|
|
176960
176973
|
const fr = new fs();
|
|
176961
176974
|
fr.expandByObject(yt.current);
|
|
176962
|
-
const
|
|
176963
|
-
let Wn = new Yf(zg(650, 620, `${
|
|
176975
|
+
const rr = A.current(fr.min.clone()), Qn = A.current(fr.max.clone());
|
|
176976
|
+
let Wn = new Yf(zg(650, 620, `${rr.x.toFixed(2)},${rr.y.toFixed(2)},${rr.z.toFixed(2)}`, "#ccc")), or = new Ef(new Wd({
|
|
176964
176977
|
map: Wn
|
|
176965
176978
|
}));
|
|
176966
176979
|
or.name = "startText";
|
|
@@ -177002,7 +177015,7 @@ const Uxn = {
|
|
|
177002
177015
|
un(!0), ht(!1), Ba({});
|
|
177003
177016
|
let xe = {
|
|
177004
177017
|
taskType: ns,
|
|
177005
|
-
moving_name:
|
|
177018
|
+
moving_name: nr.current,
|
|
177006
177019
|
key: localStorage.getItem("imgKey"),
|
|
177007
177020
|
swc_space: go,
|
|
177008
177021
|
resolution: Jc
|
|
@@ -177138,8 +177151,8 @@ const Uxn = {
|
|
|
177138
177151
|
let Ne = "";
|
|
177139
177152
|
xe === "DAPI" ? Ne = "/staticresource/data/TIFF/image_356_t.tif" : xe === "PI" && (Ne = "/staticresource/data/TIFF/image_570_t.tif");
|
|
177140
177153
|
try {
|
|
177141
|
-
const Ke = Ne.split("/").pop() || "", Tt = await (await fetch(Ne)).blob(), qt = new File([Tt], Ke, { type: "image/tiff" }), rn = cs.findIndex((
|
|
177142
|
-
let dn = await new Promise((
|
|
177154
|
+
const Ke = Ne.split("/").pop() || "", Tt = await (await fetch(Ne)).blob(), qt = new File([Tt], Ke, { type: "image/tiff" }), rn = cs.findIndex((rr) => rr.key === Qs[0]);
|
|
177155
|
+
let dn = await new Promise((rr) => {
|
|
177143
177156
|
const Qn = new FileReader();
|
|
177144
177157
|
Qn.readAsArrayBuffer(Tt), Qn.onload = function(Wn) {
|
|
177145
177158
|
var or, Xr;
|
|
@@ -177147,7 +177160,7 @@ const Uxn = {
|
|
|
177147
177160
|
const La = new Uint8Array((Xr = Wn.target) == null ? void 0 : Xr.result);
|
|
177148
177161
|
let $i = AH(La);
|
|
177149
177162
|
const { width: oa, height: Nl } = $i[0];
|
|
177150
|
-
|
|
177163
|
+
rr({ width: oa, height: Nl });
|
|
177151
177164
|
}
|
|
177152
177165
|
}, Qn.onerror = function(Wn) {
|
|
177153
177166
|
console.error("failed");
|
|
@@ -177155,8 +177168,8 @@ const Uxn = {
|
|
|
177155
177168
|
});
|
|
177156
177169
|
const { width: Er, height: fr } = dn;
|
|
177157
177170
|
if (rn > -1) {
|
|
177158
|
-
let
|
|
177159
|
-
Qn.fileList = [qt], Qn.firstRegistrationImg = { width: Er, height: fr }, pc(
|
|
177171
|
+
let rr = JSON.parse(JSON.stringify(cs)), Qn = rr[rn];
|
|
177172
|
+
Qn.fileList = [qt], Qn.firstRegistrationImg = { width: Er, height: fr }, pc(rr), js.current = rr;
|
|
177160
177173
|
}
|
|
177161
177174
|
cv({ file: qt });
|
|
177162
177175
|
} catch (Ke) {
|
|
@@ -178003,7 +178016,7 @@ const Uxn = {
|
|
|
178003
178016
|
"Loading....wait..."
|
|
178004
178017
|
)
|
|
178005
178018
|
),
|
|
178006
|
-
O.createElement(Xo, { open:
|
|
178019
|
+
O.createElement(Xo, { open: ir, centered: !0, okText: a("5000.0011") || "发送邮件", cancelText: a("5000.0112") || "取消", onOk: () => {
|
|
178007
178020
|
const xe = { imageRange: Ha.current, keyNum: ga.current, size: gS };
|
|
178008
178021
|
fetch("/app-api/java-api/brainsweb-service/websharing/add", {
|
|
178009
178022
|
method: "post",
|
|
@@ -178018,11 +178031,11 @@ const Uxn = {
|
|
|
178018
178031
|
}).then((Ne) => {
|
|
178019
178032
|
ln(!1), Xo.success({
|
|
178020
178033
|
content: a("5000.7034") || "发送成功"
|
|
178021
|
-
}),
|
|
178034
|
+
}), ai(!1);
|
|
178022
178035
|
}).catch((Ne) => {
|
|
178023
178036
|
Xo.error({
|
|
178024
178037
|
content: a("5000.7035") || "服务端异常"
|
|
178025
|
-
}), ln(!1),
|
|
178038
|
+
}), ln(!1), ai(!1);
|
|
178026
178039
|
});
|
|
178027
178040
|
}, onCancel: () => ln(!1) }, a("5000.0012") || "当前下载文件已超出服务器传输限制,您可以选择降低采样等级或者发送邮件,是否发送邮件?"),
|
|
178028
178041
|
O.createElement(Xo, { open: lo, centered: !0, footer: null, onCancel: () => {
|
|
@@ -181246,7 +181259,7 @@ const cq = ou((t, e) => {
|
|
|
181246
181259
|
var Pt = ht.position[Ot.end], yt = ht.position[Ot.start];
|
|
181247
181260
|
let vr = new Fi(), qn = [];
|
|
181248
181261
|
qn.push(Pt.x * 0.01, Pt.y * 0.01, Pt.z * 0.01), vr.setAttribute("position", new pa(qn, 3));
|
|
181249
|
-
let
|
|
181262
|
+
let nr = new V0({
|
|
181250
181263
|
glslVersion: yg,
|
|
181251
181264
|
uniforms: {
|
|
181252
181265
|
color: { value: new Or(ct) },
|
|
@@ -181295,7 +181308,7 @@ const cq = ou((t, e) => {
|
|
|
181295
181308
|
transparent: !1,
|
|
181296
181309
|
depthWrite: !1,
|
|
181297
181310
|
depthTest: !1
|
|
181298
|
-
}), vn = new _f(vr,
|
|
181311
|
+
}), vn = new _f(vr, nr);
|
|
181299
181312
|
vn.translateX(so.current), vn.translateY(Va.current), vn.translateZ(Ka.current), vn.myMeshType = "neuronSphere", vn.name = `${at}-${Ot.end_name}`, vn.userData.color = ct, vn.userData.type = "end", N && N.current && (vn.visible = N.current.end), ii(vn), de.add(vn);
|
|
181300
181313
|
let ur = new Fi(), Ur = [];
|
|
181301
181314
|
Ur.push(yt.x * 0.01, yt.y * 0.01, yt.z * 0.01), ur.setAttribute("position", new pa(Ur, 3));
|
|
@@ -181429,8 +181442,8 @@ const cq = ou((t, e) => {
|
|
|
181429
181442
|
let hn = [], Pt = [ht.position[0].x, ht.position[0].y, ht.position[0].z];
|
|
181430
181443
|
for (let vr = ht.line[Ot].start; vr <= ht.line[Ot].end; vr++) {
|
|
181431
181444
|
vr === ht.line[Ot].start && (Pt = [ht.position[vr].x, ht.position[vr].y, ht.position[vr].z]);
|
|
181432
|
-
let qn = ht.position[vr].x,
|
|
181433
|
-
(Math.sqrt((qn - Pt[0]) * (qn - Pt[0]) + (
|
|
181445
|
+
let qn = ht.position[vr].x, nr = ht.position[vr].y, vn = ht.position[vr].z;
|
|
181446
|
+
(Math.sqrt((qn - Pt[0]) * (qn - Pt[0]) + (nr - Pt[1]) * (nr - Pt[1]) + (vn - Pt[2]) * (vn - Pt[2])) > jt || vr === ht.line[Ot].end || vr === ht.line[Ot].start) && (hn.push(new Ie(qn, nr, vn)), Pt = [qn, nr, vn]);
|
|
181434
181447
|
}
|
|
181435
181448
|
let yt = new wa(new Fi().setFromPoints(hn), new iu({
|
|
181436
181449
|
color: ct
|
|
@@ -181792,9 +181805,9 @@ const cq = ou((t, e) => {
|
|
|
181792
181805
|
}
|
|
181793
181806
|
aa.current[Me] = de;
|
|
181794
181807
|
let qn = ji(Me, Ae.current);
|
|
181795
|
-
for (var
|
|
181796
|
-
qn[vn] in aa.current || (
|
|
181797
|
-
if (
|
|
181808
|
+
for (var nr = !0, vn = 0; vn < qn.length; vn++)
|
|
181809
|
+
qn[vn] in aa.current || (nr = !1);
|
|
181810
|
+
if (nr) {
|
|
181798
181811
|
for (var ur = 0, vn = 0; vn < qn.length; vn++) {
|
|
181799
181812
|
var Ur = qn[vn];
|
|
181800
181813
|
if (!Se.current)
|
|
@@ -181872,11 +181885,11 @@ const cq = ou((t, e) => {
|
|
|
181872
181885
|
ct.filter((lt, Rt, ht) => !!(lt && ht.indexOf(lt) === Rt)), te(ct), Q(!0), ee(Me);
|
|
181873
181886
|
} else
|
|
181874
181887
|
te(we.current), ee(""), ge.current = !0;
|
|
181875
|
-
},
|
|
181888
|
+
}, ai = (Te, Me) => (...ct) => {
|
|
181876
181889
|
clearTimeout(K.current), K.current = setTimeout(() => {
|
|
181877
181890
|
Te(...ct);
|
|
181878
181891
|
}, Me);
|
|
181879
|
-
}, Mr =
|
|
181892
|
+
}, Mr = ai(io, 50), Ba = (Te) => {
|
|
181880
181893
|
te(Te), sq = [], Q(!1);
|
|
181881
181894
|
}, Za = (Te, Me) => {
|
|
181882
181895
|
pe.current[Te] && pe.current[Te].children[0].material.color.set(Me);
|
|
@@ -182167,10 +182180,10 @@ const cq = ou((t, e) => {
|
|
|
182167
182180
|
const ur = qn[qn.length - 1], Ur = Ot[vn];
|
|
182168
182181
|
(ur.distanceTo(Ur) > vr || vn === Ot.length - 1) && qn.push(Ur);
|
|
182169
182182
|
}
|
|
182170
|
-
const
|
|
182183
|
+
const nr = new wa(new Fi().setFromPoints(qn), new iu({
|
|
182171
182184
|
color: at
|
|
182172
182185
|
}));
|
|
182173
|
-
|
|
182186
|
+
nr.scale.set(1, 1, 1), Pt.addLevel(nr, 10), Pt.name = ct, Pt.myMeshType = "Vessel", Pt.autoUpdate = !1, ht.add(Pt);
|
|
182174
182187
|
}
|
|
182175
182188
|
ht.scale.set(Xi.current * 0.1, Xi.current * 0.1, Xi.current * 0.1), ht.translateX(so.current), ht.translateY(Va.current), ht.translateZ(Ka.current), ht.name = ct, ht.myMeshType = "Vessel", Ce.current.add(ht);
|
|
182176
182189
|
let tt = {
|
|
@@ -182201,11 +182214,11 @@ const cq = ou((t, e) => {
|
|
|
182201
182214
|
Et.current = !0;
|
|
182202
182215
|
let Me = new URL(window.location.href), at = new URLSearchParams(Me.search);
|
|
182203
182216
|
at.set("neuronsProjects", JSON.stringify(Te)), Me.search = at.toString(), window.history.replaceState({}, "", Me), Te != "" ? ee(Te) : (ee(Te), te(we.current));
|
|
182204
|
-
}, Gn =
|
|
182217
|
+
}, Gn = ai($t, 50), tr = (Te) => {
|
|
182205
182218
|
Et.current = !0;
|
|
182206
182219
|
let Me = new URL(window.location.href), at = new URLSearchParams(Me.search);
|
|
182207
182220
|
at.set("neuronsSomaLocates", JSON.stringify(Te)), Me.search = at.toString(), window.history.replaceState({}, "", Me), Te != "" ? ue(Te) : (ue(Te), te(we.current));
|
|
182208
|
-
}, $r =
|
|
182221
|
+
}, $r = ai(tr, 50), li = () => {
|
|
182209
182222
|
let Te = [aa.current, $a.current, ae.current];
|
|
182210
182223
|
for (let lt of Te)
|
|
182211
182224
|
for (let Rt in lt)
|
|
@@ -182271,7 +182284,7 @@ const cq = ou((t, e) => {
|
|
|
182271
182284
|
}).then((at) => {
|
|
182272
182285
|
bc.success(h("5000.5048") || "提交成功"), Z && Z(!1);
|
|
182273
182286
|
});
|
|
182274
|
-
},
|
|
182287
|
+
}, ir = {
|
|
182275
182288
|
selectedRowKeys: v,
|
|
182276
182289
|
onSelectAll: (Te, Me, at) => {
|
|
182277
182290
|
da(Me, at, Te, !0);
|
|
@@ -182389,7 +182402,7 @@ const cq = ou((t, e) => {
|
|
|
182389
182402
|
)
|
|
182390
182403
|
)
|
|
182391
182404
|
),
|
|
182392
|
-
O.createElement(q6, { className: "SwcTable", rowSelection:
|
|
182405
|
+
O.createElement(q6, { className: "SwcTable", rowSelection: ir, columns: Ji, dataSource: lr, locale: Ti })
|
|
182393
182406
|
)
|
|
182394
182407
|
) : O.createElement(
|
|
182395
182408
|
O.Fragment,
|
|
@@ -184256,16 +184269,16 @@ var Bm = {}, Fwn = {
|
|
|
184256
184269
|
mr(window, "selectstart", $r);
|
|
184257
184270
|
};
|
|
184258
184271
|
else {
|
|
184259
|
-
var
|
|
184272
|
+
var ai = Mi(
|
|
184260
184273
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
184261
184274
|
);
|
|
184262
184275
|
za = function() {
|
|
184263
|
-
if (
|
|
184276
|
+
if (ai) {
|
|
184264
184277
|
var w = document.documentElement.style;
|
|
184265
|
-
io = w[
|
|
184278
|
+
io = w[ai], w[ai] = "none";
|
|
184266
184279
|
}
|
|
184267
184280
|
}, Ao = function() {
|
|
184268
|
-
|
|
184281
|
+
ai && (document.documentElement.style[ai] = io, io = void 0);
|
|
184269
184282
|
};
|
|
184270
184283
|
}
|
|
184271
184284
|
function Mr() {
|
|
@@ -184461,7 +184474,7 @@ var Bm = {}, Fwn = {
|
|
|
184461
184474
|
}
|
|
184462
184475
|
return q !== w;
|
|
184463
184476
|
}
|
|
184464
|
-
var
|
|
184477
|
+
var ir = {
|
|
184465
184478
|
__proto__: null,
|
|
184466
184479
|
on: Ai,
|
|
184467
184480
|
off: mr,
|
|
@@ -185916,7 +185929,7 @@ var Bm = {}, Fwn = {
|
|
|
185916
185929
|
polygonCenter: yt,
|
|
185917
185930
|
centroid: vr
|
|
185918
185931
|
};
|
|
185919
|
-
function
|
|
185932
|
+
function nr(w, k) {
|
|
185920
185933
|
if (!k || !w.length)
|
|
185921
185934
|
return w.slice();
|
|
185922
185935
|
var q = k * k;
|
|
@@ -186010,7 +186023,7 @@ var Bm = {}, Fwn = {
|
|
|
186010
186023
|
}
|
|
186011
186024
|
var Rs = {
|
|
186012
186025
|
__proto__: null,
|
|
186013
|
-
simplify:
|
|
186026
|
+
simplify: nr,
|
|
186014
186027
|
pointToSegmentDistance: vn,
|
|
186015
186028
|
closestPointOnSegment: ur,
|
|
186016
186029
|
clipSegment: ni,
|
|
@@ -186966,7 +186979,7 @@ var Bm = {}, Fwn = {
|
|
|
186966
186979
|
// simplify each clipped part of the polyline for performance
|
|
186967
186980
|
_simplifyPoints: function() {
|
|
186968
186981
|
for (var w = this._parts, k = this.options.smoothFactor, q = 0, ce = w.length; q < ce; q++)
|
|
186969
|
-
w[q] =
|
|
186982
|
+
w[q] = nr(w[q], k);
|
|
186970
186983
|
},
|
|
186971
186984
|
_update: function() {
|
|
186972
186985
|
this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath());
|
|
@@ -189417,7 +189430,7 @@ var Bm = {}, Fwn = {
|
|
|
189417
189430
|
this._zooming = !1, U(this._animRequest), mr(document, "touchmove", this._onTouchMove, this), mr(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
189418
189431
|
}
|
|
189419
189432
|
});
|
|
189420
|
-
Rr.addInitHook("addHandler", "touchZoom", Lu), Rr.BoxZoom = $c, Rr.DoubleClickZoom = Ou, Rr.Drag = Ju, Rr.Keyboard = sf, Rr.ScrollWheelZoom = Qu, Rr.TapHold = cu, Rr.TouchZoom = Lu, n.Bounds = X, n.Browser = En, n.CRS = ee, n.Canvas = of, n.Circle = ml, n.CircleMarker = eo, n.Class = B, n.Control = Me, n.DivIcon = js, n.DivOverlay = Bl, n.DomEvent =
|
|
189433
|
+
Rr.addInitHook("addHandler", "touchZoom", Lu), Rr.BoxZoom = $c, Rr.DoubleClickZoom = Ou, Rr.Drag = Ju, Rr.Keyboard = sf, Rr.ScrollWheelZoom = Qu, Rr.TapHold = cu, Rr.TouchZoom = Lu, n.Bounds = X, n.Browser = En, n.CRS = ee, n.Canvas = of, n.Circle = ml, n.CircleMarker = eo, n.Class = B, n.Control = Me, n.DivIcon = js, n.DivOverlay = Bl, n.DomEvent = ir, n.DomUtil = ns, n.Draggable = hn, n.Evented = G, n.FeatureGroup = Rl, n.GeoJSON = Ol, n.GridLayer = xc, n.Handler = ut, n.Icon = gs, n.ImageOverlay = qc, n.LatLng = Q, n.LatLngBounds = K, n.Layer = uo, n.LayerGroup = ks, n.LineUtil = Rs, n.Map = Rr, n.Marker = Co, n.Mixin = jt, n.Path = Vo, n.Point = W, n.PolyUtil = qn, n.Polygon = Gs, n.Polyline = So, n.Popup = Qs, n.PosAnimation = ln, n.Projection = uc, n.Rectangle = El, n.Renderer = Jl, n.SVG = Bi, n.SVGOverlay = Yu, n.TileLayer = kc, n.Tooltip = cs, n.Transformation = he, n.Util = z, n.VideoOverlay = yl, n.bind = o, n.bounds = te, n.canvas = Uc, n.circle = Ss, n.circleMarker = ao, n.control = at, n.divIcon = Yc, n.extend = i, n.featureGroup = yr, n.geoJSON = su, n.geoJson = Ld, n.gridLayer = Md, n.icon = Us, n.imageOverlay = Nd, n.latLng = ie, n.latLngBounds = Y, n.layerGroup = Al, n.map = Te, n.marker = Do, n.point = H, n.polygon = Mc, n.polyline = xs, n.popup = af, n.rectangle = Bc, n.setOptions = y, n.stamp = l, n.svg = bl, n.svgOverlay = fc, n.tileLayer = Ku, n.tooltip = pc, n.transformation = ae, n.version = r, n.videoOverlay = dd;
|
|
189421
189434
|
var fd = window.L;
|
|
189422
189435
|
n.noConflict = function() {
|
|
189423
189436
|
return window.L = fd, this;
|
|
@@ -195736,13 +195749,13 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
195736
195749
|
Gx = [], Qg = [], Tq = [];
|
|
195737
195750
|
var ii = [];
|
|
195738
195751
|
L2 = [], em = [], KN = [];
|
|
195739
|
-
var bi = [], fi = [], ar = [], xr = [], Ar = [], lr = 0, Wr = 0, Ji = 0, Mi = 0, ji = 0, ha = 0, ro = 0, za = 0, Ao = 0, io = 0,
|
|
195752
|
+
var bi = [], fi = [], ar = [], xr = [], Ar = [], lr = 0, Wr = 0, Ji = 0, Mi = 0, ji = 0, ha = 0, ro = 0, za = 0, Ao = 0, io = 0, ai = 0, Mr = 0, Ba = 0, Za = 0, da = 0, Ko = 0, Po = [], Ci = [], ba = [], ns = [], Ai = [], go = [], mr = null, di = 0, sn = parseInt(
|
|
195740
195753
|
c.Utils.getResource("DEFAULT_VALIDATEVIEWRETRYLIMIT"),
|
|
195741
195754
|
10
|
|
195742
195755
|
), Ct = parseInt(
|
|
195743
195756
|
c.Utils.getResource("DEFAULT_VALIDATEVIEWRETRYDELAY"),
|
|
195744
195757
|
10
|
|
195745
|
-
), un = [], $t = [], Gn = [], tr = [], $r = [], li = [], Ei = new c.NetConnector(), Jr, ci = [], Ti = [], Dn = [],
|
|
195758
|
+
), un = [], $t = [], Gn = [], tr = [], $r = [], li = [], Ei = new c.NetConnector(), Jr, ci = [], Ti = [], Dn = [], ir = [], ln = parseInt(
|
|
195746
195759
|
c.Utils.getResource("DEFAULT_BACKFILLTHRESHOLD3"),
|
|
195747
195760
|
10
|
|
195748
195761
|
), Rr = parseInt(
|
|
@@ -195783,7 +195796,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
195783
195796
|
), hn = parseFloat(
|
|
195784
195797
|
c.Utils.getResource("DEFAULT_PAN_BUFFERSIZEMAXIMAGESET"),
|
|
195785
195798
|
10
|
|
195786
|
-
), Pt, yt, vr, qn,
|
|
195799
|
+
), Pt, yt, vr, qn, nr, vn, ur, Ur, mn, cn, si, ni, Hr, Hs, Ha, Ro;
|
|
195787
195800
|
Pt = c.viewerW, yt = c.viewerH, vr = qn = 0, yt -= V, c.toolbarPosition == 0 && (qn += V);
|
|
195788
195801
|
var Si = null, pi, ga, Rs, lo = null, $o = null, uc = !1, Js = parseInt(
|
|
195789
195802
|
c.Utils.getResource("DEFAULT_GESTURETESTDURATION"),
|
|
@@ -195890,7 +195903,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
195890
195903
|
c.Utils.getResource("DEFAULT_LABELICONHEIGHT")
|
|
195891
195904
|
), Sa = [], vs = [];
|
|
195892
195905
|
else if (c.zoomRectangle || c.measureVisible || c.annotations || c.tracking) {
|
|
195893
|
-
var Qc, yS, AT, RT, OT, _i, xe, Ne, Ke, dt, Tt, qt, rn, fn, dn, Er, fr,
|
|
195906
|
+
var Qc, yS, AT, RT, OT, _i, xe, Ne, Ke, dt, Tt, qt, rn, fn, dn, Er, fr, rr, Qn = [], Wn = [], or = [], Xr = [], Sa = [], vs = [], La = [];
|
|
195894
195907
|
R2 = [], O2 = [];
|
|
195895
195908
|
var $i = [], oa = [], Nl = [], ds = [], Ls = [], fa = !1, Ws = 0, Wp = null, Dd = parseFloat(
|
|
195896
195909
|
c.Utils.getResource("DEFAULT_LABELSCALESTEPDISTANCE")
|
|
@@ -196046,7 +196059,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
196046
196059
|
T && Lse(), M && gU(), R && JXe(), F && QXe();
|
|
196047
196060
|
};
|
|
196048
196061
|
function Lse() {
|
|
196049
|
-
lr = 0, Wr = 0, typeof fi < "u" && c.Utils.arrayClear(fi), typeof ar < "u" && c.Utils.arrayClear(ar), typeof bi < "u" && c.Utils.arrayClear(bi), typeof Po < "u" && c.Utils.arrayClear(Po), typeof Ci < "u" && c.Utils.arrayClear(Ci), typeof ba < "u" && c.Utils.arrayClear(ba), typeof ns < "u" && c.Utils.arrayClear(ns), typeof Ai < "u" && c.Utils.arrayClear(Ai), typeof go < "u" && c.Utils.arrayClear(go), typeof xr < "u" && c.Utils.arrayClear(xr), typeof Ar < "u" && c.Utils.arrayClear(Ar), typeof $r < "u" && c.Utils.arrayClear($r), typeof tr < "u" && c.Utils.arrayClear(tr), typeof Gn < "u" && c.Utils.arrayClear(Gn), typeof li < "u" && c.Utils.arrayClear(li), typeof
|
|
196062
|
+
lr = 0, Wr = 0, typeof fi < "u" && c.Utils.arrayClear(fi), typeof ar < "u" && c.Utils.arrayClear(ar), typeof bi < "u" && c.Utils.arrayClear(bi), typeof Po < "u" && c.Utils.arrayClear(Po), typeof Ci < "u" && c.Utils.arrayClear(Ci), typeof ba < "u" && c.Utils.arrayClear(ba), typeof ns < "u" && c.Utils.arrayClear(ns), typeof Ai < "u" && c.Utils.arrayClear(Ai), typeof go < "u" && c.Utils.arrayClear(go), typeof xr < "u" && c.Utils.arrayClear(xr), typeof Ar < "u" && c.Utils.arrayClear(Ar), typeof $r < "u" && c.Utils.arrayClear($r), typeof tr < "u" && c.Utils.arrayClear(tr), typeof Gn < "u" && c.Utils.arrayClear(Gn), typeof li < "u" && c.Utils.arrayClear(li), typeof ir < "u" && c.Utils.arrayClear(ir), typeof Dn < "u" && c.Utils.arrayClear(Dn), typeof Ti < "u" && c.Utils.arrayClear(Ti), typeof ci < "u" && c.Utils.arrayClear(ci);
|
|
196050
196063
|
}
|
|
196051
196064
|
function gU() {
|
|
196052
196065
|
Mn = 1, Jt = 0, Vt = 0, nn = !1, ht = !1, me = !1, de = !1, typeof Cn < "u" && c.Utils.arrayClear(Cn), typeof sr < "u" && c.Utils.arrayClear(sr), typeof Pn < "u" && c.Utils.arrayClear(Pn), typeof Fn < "u" && c.Utils.arrayClear(Fn), typeof Un < "u" && c.Utils.arrayClear(Un), typeof br < "u" && c.Utils.arrayClear(br), typeof Gx < "u" && c.Utils.arrayClear(Gx), typeof Qg < "u" && c.Utils.arrayClear(Qg), typeof Tq < "u" && c.Utils.arrayClear(Tq), typeof ii < "u" && c.Utils.arrayClear(ii), typeof L2 < "u" && c.Utils.arrayClear(L2), typeof em < "u" && c.Utils.arrayClear(em), typeof KN < "u" && c.Utils.arrayClear(KN), typeof un < "u" && c.Utils.arrayClear(un), typeof $t < "u" && c.Utils.arrayClear($t);
|
|
@@ -196417,11 +196430,11 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
196417
196430
|
var J = T / 2;
|
|
196418
196431
|
Pt = T = J;
|
|
196419
196432
|
}
|
|
196420
|
-
|
|
196433
|
+
nr = Pt, vn = yt;
|
|
196421
196434
|
var se = c.imageSet ? hn : c.tileSource == "unconverted" && c.mobileDevice ? Ot : c.tileSource == "unconverted" && c.browser == c.browsers.FIREFOX ? jt : ut, ne = c.constrainPanStrict ? c.imageW : c.imageW * 2, ve = c.constrainPanStrict ? c.imageH : c.imageH * 2;
|
|
196422
|
-
|
|
196435
|
+
nr > se && (nr = se), vn > se && (vn = se), nr > ne && (nr = ne), vn > ve && (vn = ve), nr < Pt && (nr = Pt), vn < yt && (vn = yt);
|
|
196423
196436
|
var Ee = 4;
|
|
196424
|
-
if (ur = c.Utils.roundToFixed(
|
|
196437
|
+
if (ur = c.Utils.roundToFixed(nr / 2, Ee), Ur = c.Utils.roundToFixed(vn / 2, Ee), mn = c.Utils.roundToFixed(-((nr - Pt) / 2) + R, Ee), c.Utils.roundToFixed((nr - Pt) / 2 + R, Ee), cn = c.Utils.roundToFixed(-((vn - yt) / 2) + F, Ee), c.Utils.roundToFixed((vn - yt) / 2 + F, Ee), te && (te.width = Pt, te.height = yt, K.width = Pt + "px", K.height = yt + "px", K.left = "0px", K.top = "0px"), c.comparison && (ie.width = Pt, ie.height = yt, ee.width = Pt + "px", ee.height = yt + "px", ee.left = t == 0 ? "0px" : Pt + "px", ee.top = "0px"), ue.width = nr, ue.height = vn, pe.width = nr + "px", pe.height = vn + "px", pe.left = mn + "px", pe.top = cn + "px", fe.width = nr, fe.height = vn, Ae.width = nr + "px", Ae.height = vn + "px", ge && (ge.width = nr, ge.height = vn, $e.width = nr + "px", $e.height = vn + "px"), Be && (Be.width = nr, Be.height = vn, _t.width = nr + "px", _t.height = vn + "px"), ke && (ke.width = nr, ke.height = vn, st.width = nr + "px", st.height = vn + "px", Ze)) {
|
|
196425
196438
|
var ze = parseInt(
|
|
196426
196439
|
c.Utils.getResource("DEFAULT_HOTSPOTLISTWIDTH"),
|
|
196427
196440
|
10
|
|
@@ -196433,7 +196446,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
196433
196446
|
);
|
|
196434
196447
|
Ye.left = He.x + "px", Ye.top = He.y + "px";
|
|
196435
196448
|
}
|
|
196436
|
-
if (yn && (yn.width =
|
|
196449
|
+
if (yn && (yn.width = nr, yn.height = vn, Ln.width = nr + "px", Ln.height = vn + "px"), ot && (ot.width = nr, ot.height = vn, Et.width = nr + "px", Et.height = vn + "px"), bt && (bt.width = nr, bt.height = vn, Pe.width = nr + "px", Pe.height = vn + "px"), Nt && (Nt.width = nr, Nt.height = vn, Gt.width = nr + "px", Gt.height = vn + "px"), ft) {
|
|
196437
196450
|
var Re = new m.calculateAnnotationPanelDimensions(
|
|
196438
196451
|
dt,
|
|
196439
196452
|
Tt,
|
|
@@ -196745,7 +196758,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
196745
196758
|
}, this.getViewH = function() {
|
|
196746
196759
|
return yt;
|
|
196747
196760
|
}, this.getDisplayW = function() {
|
|
196748
|
-
return
|
|
196761
|
+
return nr;
|
|
196749
196762
|
}, this.getDisplayH = function() {
|
|
196750
196763
|
return vn;
|
|
196751
196764
|
}, this.getImagePath = function() {
|
|
@@ -196778,7 +196791,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
196778
196791
|
return F;
|
|
196779
196792
|
}, this.getZoom = function(T) {
|
|
196780
196793
|
var M = Rn;
|
|
196781
|
-
T && (M = Rn * parseFloat(Ae.width) /
|
|
196794
|
+
T && (M = Rn * parseFloat(Ae.width) / nr);
|
|
196782
196795
|
var R = Ff(Jt, M);
|
|
196783
196796
|
return R;
|
|
196784
196797
|
}, this.getRotation = function(T) {
|
|
@@ -197102,7 +197115,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
197102
197115
|
var T = Cn[Vt], M = sr[Vt], R = c.imageX * c.imageZ, F = c.imageY * c.imageZ;
|
|
197103
197116
|
if (nn) {
|
|
197104
197117
|
var J = Ge;
|
|
197105
|
-
si =
|
|
197118
|
+
si = nr * J, ni = vn * J, Ha = -(nr / J), Ro = -(vn / J), Hr = ur * J, Hs = Ur * J, ae.width = si, ae.height = ni, Se.width = ae.width + "px", Se.height = ae.height + "px", Se.left = Ha + "px", Se.top = Ro + "px", c.useCanvas && (te && (cr = df(
|
|
197106
197119
|
at,
|
|
197107
197120
|
c.imageZ
|
|
197108
197121
|
), Y.restore(), Y.save(), Y.scale(cr, cr), c.imageR != 0 && Y.rotate(c.imageR * Math.PI / 180)), re.restore(), re.translate(Hr, Hs), re.save(), re.scale(kr, kr));
|
|
@@ -198005,7 +198018,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198005
198018
|
var ne = m.getZoom();
|
|
198006
198019
|
F != 0 && (F /= ne), J != 0 && (J /= ne);
|
|
198007
198020
|
var ve = c.imageX - F, Ee = c.imageY - J, ze, He, Re, et;
|
|
198008
|
-
return T ? (ze = -(Pt / 2), Re = Pt / 2, He = -(yt / 2), et = yt / 2) : (ze = -(
|
|
198021
|
+
return T ? (ze = -(Pt / 2), Re = Pt / 2, He = -(yt / 2), et = yt / 2) : (ze = -(nr / 2), Re = nr / 2, He = -(vn / 2), et = vn / 2), new LZe(
|
|
198009
198022
|
ve,
|
|
198010
198023
|
Ee,
|
|
198011
198024
|
ze,
|
|
@@ -198162,7 +198175,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198162
198175
|
}
|
|
198163
198176
|
var Ee = c.imageW, ze = c.imageH, He = Math.round(Ee * R), Re = Math.round(ze * R), et = Pt, pt = yt, It = Math.round(Pt * 0.1), Bt = Math.round(yt * 0.1), en = Math.round(Pt * 0.5), pn = Math.round(yt * 0.5), xn, Bn;
|
|
198164
198177
|
xn = en - mn + (c.imageCtrX - c.imageX) * R + T, Bn = pn - cn + (c.imageCtrY - c.imageY) * R + M;
|
|
198165
|
-
var Sr = xn - He / 2, $n = Bn - Re / 2, yi = xn + He / 2, Br = Bn - Re / 2, wr = xn + He / 2, Vi = Bn + Re / 2, Wa = xn - He / 2,
|
|
198178
|
+
var Sr = xn - He / 2, $n = Bn - Re / 2, yi = xn + He / 2, Br = Bn - Re / 2, wr = xn + He / 2, Vi = Bn + Re / 2, Wa = xn - He / 2, oi = Bn + Re / 2, Ri = c.Utils.getPositionRotated(
|
|
198166
198179
|
Sr,
|
|
198167
198180
|
$n,
|
|
198168
198181
|
xn,
|
|
@@ -198182,7 +198195,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198182
198195
|
F
|
|
198183
198196
|
), va = c.Utils.getPositionRotated(
|
|
198184
198197
|
Wa,
|
|
198185
|
-
|
|
198198
|
+
oi,
|
|
198186
198199
|
xn,
|
|
198187
198200
|
Bn,
|
|
198188
198201
|
F
|
|
@@ -198289,7 +198302,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198289
198302
|
var J = typeof R < "u" && R !== null ? R : null, se = M !== null ? M : "";
|
|
198290
198303
|
switch (T) {
|
|
198291
198304
|
case "tilesToDisplay":
|
|
198292
|
-
Ao = J, io = 0,
|
|
198305
|
+
Ao = J, io = 0, ai = 0, Mr = 0, Ba = 0, Za = J, da = 0, JIe = (/* @__PURE__ */ new Date()).getTime(), Ko = 0, window.clearTimeout(mr), mr = null, mr = window.setTimeout(
|
|
198293
198306
|
Wse,
|
|
198294
198307
|
Ct
|
|
198295
198308
|
);
|
|
@@ -198298,7 +198311,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198298
198311
|
io = J;
|
|
198299
198312
|
break;
|
|
198300
198313
|
case "loadTile-image-display":
|
|
198301
|
-
|
|
198314
|
+
ai += 1;
|
|
198302
198315
|
break;
|
|
198303
198316
|
case "onTileLoad":
|
|
198304
198317
|
Mr += 1;
|
|
@@ -198332,7 +198345,7 @@ c.ZoomifyViewport = function(t, e, n, r, i, a) {
|
|
|
198332
198345
|
if ((c.debug == 2 || c.debug == 3) && c.Utils.traceTileStatus(
|
|
198333
198346
|
Ao,
|
|
198334
198347
|
io,
|
|
198335
|
-
|
|
198348
|
+
ai,
|
|
198336
198349
|
Mr,
|
|
198337
198350
|
Ba,
|
|
198338
198351
|
Za
|
|
@@ -198419,7 +198432,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198419
198432
|
window.clearTimeout(mr), mr = null;
|
|
198420
198433
|
var T = (/* @__PURE__ */ new Date()).getTime();
|
|
198421
198434
|
da = (T - JIe) / 1e3;
|
|
198422
|
-
var M = Ko * da, R = Za && Mr < M, F = Za && Mr >=
|
|
198435
|
+
var M = Ko * da, R = Za && Mr < M, F = Za && Mr >= ai;
|
|
198423
198436
|
(c.debug == 2 || c.debug == 3) && (c.Utils.trace("View validation-time elapsed: " + da), Za > 0 && (R ? c.Utils.trace("Loading delay - re-calling updateView") : F ? c.Utils.trace("Display delay - re-calling updateView") : c.Utils.trace("Progress slow, resetting timer")), c.Utils.trace(""), c.traces.scrollTop = c.traces.scrollHeight, c.Utils.traceTileSpeed(da, Ko)), Za > 0 ? di < sn ? R || F ? (di += 1, m.updateView(!0)) : mr = window.setTimeout(
|
|
198424
198437
|
Wse,
|
|
198425
198438
|
Ct
|
|
@@ -198588,7 +198601,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198588
198601
|
));
|
|
198589
198602
|
}
|
|
198590
198603
|
function zZe(T, M) {
|
|
198591
|
-
M ? (Dn[Dn.length] = T.name,
|
|
198604
|
+
M ? (Dn[Dn.length] = T.name, ir[ir.length] = T) : (ci[ci.length] = T.name, Ti[Ti.length] = T);
|
|
198592
198605
|
}
|
|
198593
198606
|
function qse(T) {
|
|
198594
198607
|
HZe(T), GZe(T);
|
|
@@ -198608,8 +198621,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198608
198621
|
Ht.scale(F, F);
|
|
198609
198622
|
var Ee = -Cn[R] / 2, ze = -sr[R] / 2;
|
|
198610
198623
|
Ht.translate(Ee, ze);
|
|
198611
|
-
for (var J = 0, se =
|
|
198612
|
-
var ne =
|
|
198624
|
+
for (var J = 0, se = ir.length; J < se; J++) {
|
|
198625
|
+
var ne = ir[J];
|
|
198613
198626
|
c.Utils.showMessage(
|
|
198614
198627
|
c.Utils.getResource("ALERT_IMAGESAVEDRAWINGTILE") + ne.name,
|
|
198615
198628
|
!1,
|
|
@@ -198717,13 +198730,13 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198717
198730
|
T.media != "polygon" && (M.constrainedScaleMin > 0 && Vi < M.constrainedScaleMin && (Vi = M.constrainedScaleMin), M.constrainedScaleMax > 0 && Vi > M.constrainedScaleMax && (Vi = M.constrainedScaleMax));
|
|
198718
198731
|
var Wa = new bU(T, M, R);
|
|
198719
198732
|
Bn = Wa.w, Sr = Wa.h, xn = BT(T, M), ke.appendChild(xn);
|
|
198720
|
-
var
|
|
198733
|
+
var oi = Nn == T.internalID && T.media == "polygon", Ri = EU(
|
|
198721
198734
|
xn,
|
|
198722
198735
|
T.captionPosition,
|
|
198723
198736
|
Bn,
|
|
198724
198737
|
Sr,
|
|
198725
198738
|
c.imageR,
|
|
198726
|
-
|
|
198739
|
+
oi
|
|
198727
198740
|
), Tr = T.media, ui = Tr.indexOf("/circle.") != -1 || Tr.indexOf("/square.") != -1 || Tr.indexOf("/triangle.") != -1 || Tr.indexOf("/arrowDownLeft.") != -1 || Tr.indexOf("/arrowDownRight.") != -1 || Tr.indexOf("/arrowUpLeft.") != -1 || Tr.indexOf("/arrowUpRight.") != -1 || Tr.indexOf("/arrowUp.") != -1 || Tr.indexOf("/arrowDown.") != -1 || Tr.indexOf("/arrowLeft.") != -1 || Tr.indexOf("/arrowRight.") != -1 || Tr.indexOf("/lineHorizontal.") != -1 || Tr.indexOf("/lineVertical.") != -1, va = Tr == "counter" || Tr == "circle" || Tr == "square" || Tr == "triangle" || Tr == "arrowDown" || Tr == "arrowDownLeft" || Tr == "arrowLeft" || Tr == "arrowUpLeft" || Tr == "arrowUp" || Tr == "arrowUpRight" || Tr == "arrowRight" || Tr == "arrowDownRight" || Tr == "lineHorizontal" || Tr == "lineVertical", Wi = Tr != "External Graphics File" && (va || ui && c.labelIconsInternal), Qi = Tr && Tr == "polygon";
|
|
198728
198741
|
if (Wi || Qi) {
|
|
198729
198742
|
var ea = ne ? c.imageW / 2 : c.imageX, mo = ne ? c.imageH / 2 : c.imageY;
|
|
@@ -198960,7 +198973,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198960
198973
|
c.debug == 2 && $g && c.Utils.trace(c.Utils.getResource("ERROR_HOTSPOTMEDIAINVALID")), m.setStatus("XMLParsedViewport", !0), ff(), c.tour ? (m.initializeAudioMuteButtons(), c.Utils.validateCallback("tourLoaded"), td && !c.tourStop && c.Utils.functionCallWithDelay(function() {
|
|
198961
198974
|
m.tourStart();
|
|
198962
198975
|
}, 750)) : (c.Utils.validateCallback("hotspotsLoadedViewport"), m.setStatus("hotspotsLoadedViewport", !0));
|
|
198963
|
-
}, this.createHotspotFromParameters = function(T, M, R, F, J, se, ne, ve, Ee, ze, He, Re, et, pt, It, Bt, en, pn, xn, Bn, Sr, $n, yi, Br, wr, Vi, Wa,
|
|
198976
|
+
}, this.createHotspotFromParameters = function(T, M, R, F, J, se, ne, ve, Ee, ze, He, Re, et, pt, It, Bt, en, pn, xn, Bn, Sr, $n, yi, Br, wr, Vi, Wa, oi, Ri, Tr, ui, va, Wi, Qi, ea, mo, Na, Ho, qa, Oi, is, Go, po, xo, vo) {
|
|
198964
198977
|
typeof Tr < "u" && Tr !== null && Tr.toString();
|
|
198965
198978
|
var Fr = c.Utils.arrayToArrayOfStrings([
|
|
198966
198979
|
T,
|
|
@@ -198990,7 +199003,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
198990
199003
|
wr,
|
|
198991
199004
|
Vi,
|
|
198992
199005
|
Wa,
|
|
198993
|
-
|
|
199006
|
+
oi,
|
|
198994
199007
|
Ri,
|
|
198995
199008
|
Tr,
|
|
198996
199009
|
ui,
|
|
@@ -199395,7 +199408,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
199395
199408
|
en.style.fontSize = "14px", T.caption.slice(0, 1).match(/^.*[a-z]+.*$/), Wa <= 0.1 ? yo(vy, 2, xn) ? (en.style.display = "block", en.style.fontSize = "14px") : en.style.display = "none" : Wa >= 0.1 && Wa < 0.3 ? yo(vy, 3, xn) ? (en.style.display = "block", en.style.fontSize = "14px") : en.style.display = "none" : Wa > 0.5 && (en.style.display = "block", en.style.fontSize = "14px"), en.style.fontFamily = "Arial", en.style.color = "#000", dE != 1 ? en.style.color = "#000" : (en.style.color = "#fff", en.style.textShadow = "#FFFFFF 0px 0px 0px,#000000 0px 0px 2px"), en.style.letterSpacing = "2px";
|
|
199396
199409
|
}
|
|
199397
199410
|
}
|
|
199398
|
-
var
|
|
199411
|
+
var oi = c.Utils.createContainerElement(
|
|
199399
199412
|
"div",
|
|
199400
199413
|
"hCloak",
|
|
199401
199414
|
"inline-block",
|
|
@@ -199418,14 +199431,14 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
199418
199431
|
"0px",
|
|
199419
199432
|
"normal"
|
|
199420
199433
|
);
|
|
199421
|
-
if (typeof
|
|
199434
|
+
if (typeof rr > "u" || rr === null || rr == "TOOLTIP" ? ui.title = c.Utils.stringValidate(T.tooltip) ? T.tooltip : "" : rr == "COMMENT" && (ui.title = c.Utils.stringValidate(T.comment) ? T.comment : ""), !c.labelClickSelect && c.Utils.stringValidate(T.clickURL)) {
|
|
199422
199435
|
if (c.editMode !== null)
|
|
199423
199436
|
c.Utils.addEventListener(
|
|
199424
|
-
|
|
199437
|
+
oi,
|
|
199425
199438
|
"mousedown",
|
|
199426
199439
|
Nqe
|
|
199427
199440
|
), c.Utils.addEventListener(
|
|
199428
|
-
|
|
199441
|
+
oi,
|
|
199429
199442
|
"touchstart",
|
|
199430
199443
|
Mqe
|
|
199431
199444
|
);
|
|
@@ -199464,7 +199477,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
199464
199477
|
var Wi = document.createElement("a");
|
|
199465
199478
|
Wi.setAttribute("href", T.clickURL), Wi.setAttribute("target", T.urlTarget), Wi.setAttribute("outline", "none"), pn && (Wi.appendChild(pn), pn.style.cursor = "help"), Wi.appendChild(en), en.style.cursor = "help";
|
|
199466
199479
|
}
|
|
199467
|
-
|
|
199480
|
+
oi.style.border = "none";
|
|
199468
199481
|
}
|
|
199469
199482
|
c.editMode === null && (c.clickZoom || c.clickPan) && (c.Utils.addEventListener(
|
|
199470
199483
|
ui,
|
|
@@ -199476,7 +199489,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
199476
199489
|
Lqe
|
|
199477
199490
|
));
|
|
199478
199491
|
}
|
|
199479
|
-
!c.labelClickSelect && c.Utils.stringValidate(T.clickURL) && c.editMode === null && T.clickURL != "function" ? (va &&
|
|
199492
|
+
!c.labelClickSelect && c.Utils.stringValidate(T.clickURL) && c.editMode === null && T.clickURL != "function" ? (va && oi.appendChild(va), Wi && oi.appendChild(Wi)) : et && oi.appendChild(et);
|
|
199480
199493
|
var Qi;
|
|
199481
199494
|
if (T.popup != "placeholder" && T.popupImage) {
|
|
199482
199495
|
Qi = T.popupImage, Qi.style.display = "none", Qi.id = "popup";
|
|
@@ -199487,18 +199500,18 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
199487
199500
|
"absolute",
|
|
199488
199501
|
"visible"
|
|
199489
199502
|
);
|
|
199490
|
-
ea.appendChild(Qi),
|
|
199503
|
+
ea.appendChild(Qi), oi.appendChild(ea);
|
|
199491
199504
|
var mo = -(Qi.width / 2) + He / 2, Na = -(Qi.height / 2) + Re / 2, Ho = T.popupOffsetX != 0 ? T.popupOffsetX + mo : mo, qa = T.popupOffsetY != 0 ? T.popupOffsetY + Na : Na;
|
|
199492
199505
|
Ho != 0 && qa != 0 && (ea.style.left = Ho + "px", ea.style.top = qa + "px");
|
|
199493
199506
|
}
|
|
199494
|
-
if (ui.appendChild(
|
|
199507
|
+
if (ui.appendChild(oi), ke.appendChild(ui), pn && yn.appendChild(pn), en && yn.appendChild(en), ui.zIndex = T.zIndex, !ve && (c.captionBoxes || T.mediaType == "measure")) {
|
|
199495
199508
|
var Oi = c.Utils.stringValidate(T.backColor) ? T.backColor : gS, is = Oi.toString();
|
|
199496
199509
|
if (is) {
|
|
199497
199510
|
var Go = c.Utils.hexToRGB(is).r, po = c.Utils.hexToRGB(is).g, xo = c.Utils.hexToRGB(is).b, vo = Yc, Fr = "rgba(" + Go + "," + po + "," + xo + "," + vo + ")";
|
|
199498
199511
|
en.style.backgroundColor = Fr;
|
|
199499
199512
|
}
|
|
199500
199513
|
}
|
|
199501
|
-
if (T.rollover && (
|
|
199514
|
+
if (T.rollover && (oi.rollover = T.rollover), ui.internalID = T.internalID, F || m.setHotspotVisibility(
|
|
199502
199515
|
ui,
|
|
199503
199516
|
!T.rollover && T.visibility
|
|
199504
199517
|
), et) {
|
|
@@ -200093,7 +200106,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
200093
200106
|
var se = parseFloat(R.getAttribute("MINSCALE"));
|
|
200094
200107
|
isNaN(se) || (L1 = se != 0 ? se : 1e-5);
|
|
200095
200108
|
var ne = parseFloat(R.getAttribute("MAXSCALE"));
|
|
200096
|
-
isNaN(ne) || (N1 = ne != 0 ? ne : 1e4), dt = fn = c.editMode != "markup" && R.getAttribute("POIVISIBILITY") != "0", Tt = dn = R.getAttribute("LABELVISIBILITY") != "0", qt = Er = c.editMode != "markup" && R.getAttribute("NOTEVISIBILITY") != "0", rn = fr = c.editMode != "edit" && R.getAttribute("COMMENTVISIBILITY") != "0",
|
|
200109
|
+
isNaN(ne) || (N1 = ne != 0 ? ne : 1e4), dt = fn = c.editMode != "markup" && R.getAttribute("POIVISIBILITY") != "0", Tt = dn = R.getAttribute("LABELVISIBILITY") != "0", qt = Er = c.editMode != "markup" && R.getAttribute("NOTEVISIBILITY") != "0", rn = fr = c.editMode != "edit" && R.getAttribute("COMMENTVISIBILITY") != "0", rr = R.getAttribute("TOOLTIPSOURCE") == "COMMENT" ? "COMMENT" : "TOOLTIP";
|
|
200097
200110
|
for (var ve = Qc.getElementsByTagName("POI"), Ee = 0, ze = ve.length; Ee < ze; Ee++) {
|
|
200098
200111
|
var He = fu("poi");
|
|
200099
200112
|
ve[Ee].setAttribute("INTERNALID", He), t9(ve[Ee]);
|
|
@@ -200408,7 +200421,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
200408
200421
|
editable: J
|
|
200409
200422
|
};
|
|
200410
200423
|
}
|
|
200411
|
-
this.createLabelFromParameters = function(T, M, R, F, J, se, ne, ve, Ee, ze, He, Re, et, pt, It, Bt, en, pn, xn, Bn, Sr, $n, yi, Br, wr, Vi, Wa,
|
|
200424
|
+
this.createLabelFromParameters = function(T, M, R, F, J, se, ne, ve, Ee, ze, He, Re, et, pt, It, Bt, en, pn, xn, Bn, Sr, $n, yi, Br, wr, Vi, Wa, oi, Ri, Tr, ui, va, Wi, Qi, ea, mo, Na, Ho, qa, Oi, is, Go, po, xo, vo, Fr, ho) {
|
|
200412
200425
|
var Pr = c.Utils.arrayToArrayOfStrings([
|
|
200413
200426
|
T,
|
|
200414
200427
|
M,
|
|
@@ -200437,7 +200450,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
200437
200450
|
wr,
|
|
200438
200451
|
Vi,
|
|
200439
200452
|
Wa,
|
|
200440
|
-
|
|
200453
|
+
oi,
|
|
200441
200454
|
Ri,
|
|
200442
200455
|
Tr,
|
|
200443
200456
|
ui,
|
|
@@ -201302,7 +201315,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
201302
201315
|
Sr.appendChild(Wa.elmt);
|
|
201303
201316
|
}
|
|
201304
201317
|
if (c.textVisible) {
|
|
201305
|
-
var
|
|
201318
|
+
var oi = new c.Utils.Button(
|
|
201306
201319
|
"buttonEditModeText" + M,
|
|
201307
201320
|
null,
|
|
201308
201321
|
c.skinPath,
|
|
@@ -201317,7 +201330,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
201317
201330
|
c.Toolbar.buttonEventsHandler,
|
|
201318
201331
|
"TIP_EDITMODETEXT"
|
|
201319
201332
|
);
|
|
201320
|
-
Sr.appendChild(
|
|
201333
|
+
Sr.appendChild(oi.elmt);
|
|
201321
201334
|
}
|
|
201322
201335
|
if (c.iconVisible) {
|
|
201323
201336
|
var Ri = new c.Utils.Button(
|
|
@@ -202441,7 +202454,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
202441
202454
|
10
|
|
202442
202455
|
);
|
|
202443
202456
|
rn || ($n = 0);
|
|
202444
|
-
var Br = 9, wr = 15, Vi = 17, Wa = He - 24,
|
|
202457
|
+
var Br = 9, wr = 15, Vi = 17, Wa = He - 24, oi = Vi * 0.5, Ri = 1, Tr = 4, ui = 3, va = 0.98, Wi = 0.98, Qi = 0, ea = F.w - et - se - 5, mo = c.browser == c.browsers.CHROME || c.browser == c.browsers.SAFARI ? -2 : 0, Na = 0, Ho = 0, qa = 0, Oi = 0, is = 0, Go = 0, po = 0, xo = 0, vo = 0;
|
|
202445
202458
|
if (c.editMode == "edit")
|
|
202446
202459
|
var Fr = 0, ho = 0, Pr = 0, xa = 0, sa = 0, yo = 0, Yr = 0, jo = 0, Ea = 0, ys = 0, Hl = 0, as = 0;
|
|
202447
202460
|
var pu = 0;
|
|
@@ -202450,11 +202463,11 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
202450
202463
|
else {
|
|
202451
202464
|
var Wo = T[4], pf = T[5];
|
|
202452
202465
|
se > 15 && (se = 15), ne > 15 && (ne = 15), ve > 22 && (ve = 22), Wo > 1 && (Wo = 1), pf > 18 && (pf = 18);
|
|
202453
|
-
var Ql = se * 0.75, Hc = ne * 0.75, hu = Ql * 2, vd = et + 3, Fd = ne * 1.5, eu = ne * 2 + Hc * 1.5, hf = se / 2, Bf = (pf - ne) / 2, Aa = ne * 0.5, gc = et * 1.75, yd = F.w - et * 2 - 2, $f = ne * 7 +
|
|
202466
|
+
var Ql = se * 0.75, Hc = ne * 0.75, hu = Ql * 2, vd = et + 3, Fd = ne * 1.5, eu = ne * 2 + Hc * 1.5, hf = se / 2, Bf = (pf - ne) / 2, Aa = ne * 0.5, gc = et * 1.75, yd = F.w - et * 2 - 2, $f = ne * 7 + oi * 5 + Tr, ia = 0, Xp = F.w - et * 3, Oh = wr + oi * 3, ea = F.w - et - se - 5, xl = ea - ve, Jm = xl - ve;
|
|
202454
202467
|
if (c.editMode == "markup")
|
|
202455
|
-
Br = 0, gc = et + Tr, He = F.w - et * 2, Wa = He - 24, vd = 0, Ho = Ri * 2, qa = Aa, Oi = qa + ne +
|
|
202468
|
+
Br = 0, gc = et + Tr, He = F.w - et * 2, Wa = He - 24, vd = 0, Ho = Ri * 2, qa = Aa, Oi = qa + ne + oi - Ri, is = Ho + ne * 2 - Ri, Cq = oi + Tr - Ri, Na = Ho + eu + oi - Tr - Ri * 2, Go = Na + wr + Tr * 2, po = Go + wr + Tr * 2, xo = rn ? po + $n + 5 : Go + wr + 5, vo = Aa - 5, (c.helpVisible == 1 || c.helpVisible == 2) && (Qi = ve);
|
|
202456
202469
|
else if (c.editMode == "edit") {
|
|
202457
|
-
dt && (Fr = et + Tr, ho = Fr + Vi - Ri, Pr = Aa, pu = ho + Fd + Tr), Tt && (Na = pu + et, Ho = Na + Vi + Tr + Ri, qa = Aa + Ri, xa = qa + ne + Aa, Oi = Tr + Ri, is = Ho + ne * 2 - Ri, Cq =
|
|
202470
|
+
dt && (Fr = et + Tr, ho = Fr + Vi - Ri, Pr = Aa, pu = ho + Fd + Tr), Tt && (Na = pu + et, Ho = Na + Vi + Tr + Ri, qa = Aa + Ri, xa = qa + ne + Aa, Oi = Tr + Ri, is = Ho + ne * 2 - Ri, Cq = oi * 1.5, Go = Ho + Fd + oi + Tr, po = Go + ne + oi, sa = rn ? po + $n + 5 : Go + ne + oi, yo = sa + ne + oi, Yr = yo + ne + oi, jo = Yr + ne + oi, xo = jo + ne + oi + 5, vo = Aa - 5, pu = xo + Fd + Tr - 5), qt && (Ea = pu + et, ys = Ea + Vi + Tr + Ri, Hl = ys + yi + Ri * 2, as = Aa);
|
|
202458
202471
|
var Qm = hu * 8.5 + 1, Lh = Hc * 1.8;
|
|
202459
202472
|
}
|
|
202460
202473
|
}
|
|
@@ -202549,7 +202562,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
202549
202562
|
var kle = document.getElementById("overlayPOIDisable" + R);
|
|
202550
202563
|
if (kle) {
|
|
202551
202564
|
var u9 = kle.style;
|
|
202552
|
-
u9.width = F.w + "px", u9.height = et + wr + ne +
|
|
202565
|
+
u9.width = F.w + "px", u9.height = et + wr + ne + oi * 2 + Tr + "px", u9.left = "0px", u9.top = "0px";
|
|
202553
202566
|
}
|
|
202554
202567
|
}
|
|
202555
202568
|
}
|
|
@@ -203048,7 +203061,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
203048
203061
|
);
|
|
203049
203062
|
if (xce) {
|
|
203050
203063
|
var D9 = xce.style;
|
|
203051
|
-
D9.width = F.w / 2 - 12 + "px", D9.height = wr +
|
|
203064
|
+
D9.width = F.w / 2 - 12 + "px", D9.height = wr + oi + 1 + "px", D9.left = et + 1 + "px", D9.top = parseFloat(r4.top) - 4 + "px";
|
|
203052
203065
|
}
|
|
203053
203066
|
}
|
|
203054
203067
|
if (qt) {
|
|
@@ -203163,7 +203176,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
203163
203176
|
var Lce = document.getElementById("overlayNoteDisable" + R);
|
|
203164
203177
|
if (Lce) {
|
|
203165
203178
|
var $9 = Lce.style;
|
|
203166
|
-
$9.width = F.w + "px", $9.height = wr +
|
|
203179
|
+
$9.width = F.w + "px", $9.height = wr + oi + yi + en + oi + ne + Tr + "px", $9.left = "0px", $9.top = Ea + "px";
|
|
203167
203180
|
}
|
|
203168
203181
|
}
|
|
203169
203182
|
}
|
|
@@ -203626,12 +203639,12 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
203626
203639
|
typeof Vi > "u" || !c.Utils.stringValidate(Vi) ? pt.value = Qr.tooltip : pt.value = Vi;
|
|
203627
203640
|
var Wa = Qr.clickURL;
|
|
203628
203641
|
c.Utils.stringValidate(Wa) && (It.value = Wa);
|
|
203629
|
-
var
|
|
203630
|
-
if (c.Utils.stringValidate(
|
|
203642
|
+
var oi = Qr.urlTarget;
|
|
203643
|
+
if (c.Utils.stringValidate(oi)) {
|
|
203631
203644
|
var F = c.Utils.arrayIndexOfObjectValue(
|
|
203632
203645
|
en,
|
|
203633
203646
|
"value",
|
|
203634
|
-
|
|
203647
|
+
oi
|
|
203635
203648
|
);
|
|
203636
203649
|
F != -1 && (en.selectedIndex = F);
|
|
203637
203650
|
}
|
|
@@ -204064,8 +204077,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
204064
204077
|
Re.lineWidth = T.lineVisible ? Wa < 8 ? Wa : 8 : 0, Re.fillStyle = T.fillColor;
|
|
204065
204078
|
}
|
|
204066
204079
|
if (Re.strokeStyle = T.lineColor, pn != 0) {
|
|
204067
|
-
var
|
|
204068
|
-
Re.rotate(
|
|
204080
|
+
var oi = pn - c.imageR;
|
|
204081
|
+
Re.rotate(oi * Math.PI / 180);
|
|
204069
204082
|
}
|
|
204070
204083
|
var Ri = T.rotation;
|
|
204071
204084
|
switch (typeof Ri < "u" && Ri !== null && Ri != 0 && Re.rotate(Ri * Math.PI / 180), Re.globalAlpha = 1, et != "arrow" && Re.beginPath(), et) {
|
|
@@ -204147,10 +204160,10 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
204147
204160
|
Br.push(Vi.name);
|
|
204148
204161
|
}
|
|
204149
204162
|
for (var pn = 0, xn = Br.length; pn < xn; pn++) {
|
|
204150
|
-
var Wa = Br[pn],
|
|
204151
|
-
if (
|
|
204152
|
-
for (var Ri = 0; Ri <
|
|
204153
|
-
mle(
|
|
204163
|
+
var Wa = Br[pn], oi = Hqe(Wa);
|
|
204164
|
+
if (oi.length !== 0)
|
|
204165
|
+
for (var Ri = 0; Ri < oi.length; Ri++)
|
|
204166
|
+
mle(oi[Ri], M);
|
|
204154
204167
|
}
|
|
204155
204168
|
}
|
|
204156
204169
|
}
|
|
@@ -204302,14 +204315,14 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
204302
204315
|
Wa + 1,
|
|
204303
204316
|
wr.length
|
|
204304
204317
|
);
|
|
204305
|
-
var
|
|
204318
|
+
var oi = I5.findIndex(function(xa, sa, yo) {
|
|
204306
204319
|
return xa == "S";
|
|
204307
204320
|
});
|
|
204308
|
-
if (
|
|
204309
|
-
b_ = I5.slice(0,
|
|
204310
|
-
|
|
204321
|
+
if (oi != "-1") {
|
|
204322
|
+
b_ = I5.slice(0, oi), A5 = I5.slice(
|
|
204323
|
+
oi + 1,
|
|
204311
204324
|
wr.length
|
|
204312
|
-
), y_ = GL.slice(0,
|
|
204325
|
+
), y_ = GL.slice(0, oi), jL = GL.slice(oi + 1, wr.length);
|
|
204313
204326
|
var Ri = A5.findIndex(function(xa, sa, yo) {
|
|
204314
204327
|
return xa == "S";
|
|
204315
204328
|
});
|
|
@@ -205466,7 +205479,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
205466
205479
|
"TOOLTIP",
|
|
205467
205480
|
Sr + " : " + Bn.getAttribute("USER")
|
|
205468
205481
|
);
|
|
205469
|
-
var $n = Bn.getAttribute("TYPEID"), yi = Bn.getAttribute("ID"), Br = Bn.getAttribute("CELL"), wr = Bn.getAttribute("X"), Vi = Bn.getAttribute("Y"), Wa = Bn.getAttribute("ZOOM"),
|
|
205482
|
+
var $n = Bn.getAttribute("TYPEID"), yi = Bn.getAttribute("ID"), Br = Bn.getAttribute("CELL"), wr = Bn.getAttribute("X"), Vi = Bn.getAttribute("Y"), Wa = Bn.getAttribute("ZOOM"), oi = Bn.getAttribute("USER"), Ri = c.Utils.stringPadFront(Br, 6, "0") + c.Utils.stringPadFront(yi, 6, "0"), Tr = Br + " " + wr + ", " + Vi + ", " + Wa + ": " + oi;
|
|
205470
205483
|
Xs[Xs.length] = {
|
|
205471
205484
|
text: Tr,
|
|
205472
205485
|
value: yi,
|
|
@@ -205476,7 +205489,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
205476
205489
|
x: wr,
|
|
205477
205490
|
y: Vi,
|
|
205478
205491
|
zoom: Wa,
|
|
205479
|
-
user:
|
|
205492
|
+
user: oi,
|
|
205480
205493
|
name: Sr,
|
|
205481
205494
|
mediaType: Bn.getAttribute("MEDIATYPE"),
|
|
205482
205495
|
media: Bn.getAttribute("MEDIA"),
|
|
@@ -205804,7 +205817,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
205804
205817
|
c.Utils.getResource("UI_TRACKINGPANELLABELZOOM")
|
|
205805
205818
|
);
|
|
205806
205819
|
Vi.appendChild(Wa), xn.appendChild(Vi);
|
|
205807
|
-
var
|
|
205820
|
+
var oi = c.Utils.createContainerElement(
|
|
205808
205821
|
"div",
|
|
205809
205822
|
"labelUserNameTextBox" + R,
|
|
205810
205823
|
"inline-block",
|
|
@@ -205825,7 +205838,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
205825
205838
|
), Ri = document.createTextNode(
|
|
205826
205839
|
c.Utils.getResource("UI_TRACKINGPANELLABELUSERNAME")
|
|
205827
205840
|
);
|
|
205828
|
-
|
|
205841
|
+
oi.appendChild(Ri), xn.appendChild(oi);
|
|
205829
205842
|
var Tr = "#FFFFFF", ui = 24, va = 8, Wi = 22, Qi = 14, ea = 34, mo = 4, Na = 15, Ho = 15, qa = 34, Oi = 4, is = 20, Go = 20, po = 1, xo = 120, vo = 20, Fr = 6, ho = 34, Pr = 4, xa = parseInt(
|
|
205830
205843
|
c.Utils.getResource("DEFAULT_TRACKINGPANELLABELFONTSIZE"),
|
|
205831
205844
|
10
|
|
@@ -206331,7 +206344,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
206331
206344
|
c.browser == c.browsers.CHROME || c.browser == c.browsers.SAFARI;
|
|
206332
206345
|
var Sr = M[6], $n = M[7], yi = M[8], Br = M[4], wr = M[5];
|
|
206333
206346
|
Sr > 15 && (Sr = 15), $n > 15 && ($n = 15), yi > 22 && (yi = 22), Br > 1 && (Br = 1), wr > 18 && (wr = 18);
|
|
206334
|
-
var Vi = ne / 2, Wa = ($n - wr) / 2,
|
|
206347
|
+
var Vi = ne / 2, Wa = ($n - wr) / 2, oi = Sr / 2, Ri = document.getElementById("trackingPanelBackground" + R);
|
|
206335
206348
|
if (Ri) {
|
|
206336
206349
|
var Tr = Ri.style;
|
|
206337
206350
|
Tr.width = F + "px", Tr.height = J + "px", Tr.backgroundColor = ze, c.Utils.setOpacity(Ri, Ee, He);
|
|
@@ -206628,7 +206641,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
206628
206641
|
if (hf) {
|
|
206629
206642
|
c.Utils.graphicSize(hf, Br, wr);
|
|
206630
206643
|
var Bf = hf.style;
|
|
206631
|
-
Bf.left = Li + "px", Bf.top = On + Wa + "px", Li +=
|
|
206644
|
+
Bf.left = Li + "px", Bf.top = On + Wa + "px", Li += oi;
|
|
206632
206645
|
}
|
|
206633
206646
|
var Aa = document.getElementById(
|
|
206634
206647
|
"labelCountingCompleteTextBox" + R
|
|
@@ -206687,7 +206700,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
206687
206700
|
if (Wg) {
|
|
206688
206701
|
c.Utils.graphicSize(Wg, Br, wr);
|
|
206689
206702
|
var Xg = Wg.style;
|
|
206690
|
-
Xg.left = Li + "px", Xg.top = On + Wa + "px", Li +=
|
|
206703
|
+
Xg.left = Li + "px", Xg.top = On + Wa + "px", Li += oi;
|
|
206691
206704
|
}
|
|
206692
206705
|
var t0 = document.getElementById("buttonTrackingSave" + R);
|
|
206693
206706
|
if (t0) {
|
|
@@ -207759,7 +207772,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
207759
207772
|
var R = !1, F = df(Jt, T);
|
|
207760
207773
|
if (F != Rn) {
|
|
207761
207774
|
Rn = F;
|
|
207762
|
-
var J = F / Cr, se =
|
|
207775
|
+
var J = F / Cr, se = nr * J, ne = vn * J, ve = (nr - se) / 2, Ee = (vn - ne) / 2;
|
|
207763
207776
|
if (F < Cr) {
|
|
207764
207777
|
var ze = Ym(
|
|
207765
207778
|
parseFloat(pe.left),
|
|
@@ -207802,7 +207815,7 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
207802
207815
|
!1
|
|
207803
207816
|
), nn) {
|
|
207804
207817
|
var pn = Ge;
|
|
207805
|
-
si =
|
|
207818
|
+
si = nr * pn, ni = vn * pn, Ha = -(nr / pn), Ro = -(vn / pn), Hr = ur * pn, Hs = Ur * pn, ae.width = si, ae.height = ni, Se.width = ae.width + "px", Se.height = ae.height + "px", Se.left = Ha + "px", Se.top = Ro + "px";
|
|
207806
207819
|
} else {
|
|
207807
207820
|
var xn = Cn[Vt], Bn = sr[Vt];
|
|
207808
207821
|
ae.width = xn, ae.height = Bn;
|
|
@@ -208694,8 +208707,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
208694
208707
|
return;
|
|
208695
208708
|
var Wa = m.getLabelEditable(Nn);
|
|
208696
208709
|
if (Wa) {
|
|
208697
|
-
var
|
|
208698
|
-
|
|
208710
|
+
var oi = hi.style, Ri = ga.x - hi.mouseXPrior, Tr = ga.y - hi.mouseYPrior, ui = parseFloat(oi.left) + Ri, va = parseFloat(oi.top) + Tr;
|
|
208711
|
+
oi.left = ui + "px", oi.top = va + "px", hi.mouseXPrior = ga.x, hi.mouseYPrior = ga.y, FT(R, hi, ga);
|
|
208699
208712
|
}
|
|
208700
208713
|
} else if (!Ee && c.mousePan)
|
|
208701
208714
|
if (gs)
|
|
@@ -209090,8 +209103,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
209090
209103
|
}
|
|
209091
209104
|
} else if (hi) {
|
|
209092
209105
|
if (m.getLabelEditable(Nn)) {
|
|
209093
|
-
var
|
|
209094
|
-
|
|
209106
|
+
var oi = hi.style, Ri = Oi.x - hi.mouseXPrior, Tr = Oi.y - hi.mouseYPrior, ui = parseFloat(oi.left) + Ri, va = parseFloat(oi.top) + Tr;
|
|
209107
|
+
oi.left = ui + "px", oi.top = va + "px", FT(R, hi, Oi);
|
|
209095
209108
|
}
|
|
209096
209109
|
hi.style.zIndex = hi.zIndex, hi = null;
|
|
209097
209110
|
}
|
|
@@ -209182,8 +209195,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
209182
209195
|
} else if (hi) {
|
|
209183
209196
|
if (typeof c.externalEditPermissionFunction == "function" && !c.externalEditPermissionFunction())
|
|
209184
209197
|
return;
|
|
209185
|
-
var
|
|
209186
|
-
|
|
209198
|
+
var oi = hi.style, Ri = ga.x - hi.mouseXPrior, Tr = ga.y - hi.mouseYPrior, ui = parseFloat(oi.left) + Ri, va = parseFloat(oi.top) + Tr;
|
|
209199
|
+
oi.left = ui + "px", oi.top = va + "px", hi.mouseXPrior = ga.x, hi.mouseYPrior = ga.y, FT(R, hi, ga);
|
|
209187
209200
|
} else if (!Ee && c.mousePan)
|
|
209188
209201
|
if (gs)
|
|
209189
209202
|
Fs = ne;
|
|
@@ -209451,8 +209464,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
209451
209464
|
);
|
|
209452
209465
|
}
|
|
209453
209466
|
} else if (hi) {
|
|
209454
|
-
var
|
|
209455
|
-
|
|
209467
|
+
var oi = hi.style, Ri = Oi.x - hi.mouseXPrior, Tr = Oi.y - hi.mouseYPrior, ui = parseFloat(oi.left) + Ri, va = parseFloat(oi.top) + Tr;
|
|
209468
|
+
oi.left = ui + "px", oi.top = va + "px", FT(R, hi, Oi), hi.style.zIndex = hi.zIndex, hi = null;
|
|
209456
209469
|
}
|
|
209457
209470
|
ga = null, c.mousePan && !gs && m.updateView();
|
|
209458
209471
|
}
|
|
@@ -209682,8 +209695,8 @@ Tile loading complete for backfill: all requested tiles received.`), He = !1;
|
|
|
209682
209695
|
);
|
|
209683
209696
|
}
|
|
209684
209697
|
} else if (hi) {
|
|
209685
|
-
var
|
|
209686
|
-
|
|
209698
|
+
var oi = hi.style, Ri = Oi.x - hi.mouseXPrior, Tr = Oi.y - hi.mouseYPrior, ui = parseFloat(oi.left) + Ri, va = parseFloat(oi.top) + Tr;
|
|
209699
|
+
oi.left = ui + "px", oi.top = va + "px", FT(R, hi, Oi), hi.style.zIndex = hi.zIndex, hi = null;
|
|
209687
209700
|
}
|
|
209688
209701
|
ga = null, c.mousePan && !gs && m.updateView();
|
|
209689
209702
|
}
|
|
@@ -209929,7 +209942,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
209929
209942
|
"normal"
|
|
209930
209943
|
);
|
|
209931
209944
|
c.Utils.setOpacity(qn, 0.4, de);
|
|
209932
|
-
var
|
|
209945
|
+
var nr = c.Utils.getResource("UI_TOOLBARINTERNALBUTTONZOOMOUTTEXT"), vn = document.createTextNode(nr);
|
|
209933
209946
|
qn.appendChild(vn), c.ToolbarDisplay.appendChild(qn), xr = qn.style, c.Utils.setTextNodeStyle(
|
|
209934
209947
|
vn,
|
|
209935
209948
|
"black",
|
|
@@ -210012,51 +210025,51 @@ c.ZoomifyToolbar = function(t) {
|
|
|
210012
210025
|
), c.Utils.disableTextInteraction(ni), c.Utils.addEventListener(
|
|
210013
210026
|
qn,
|
|
210014
210027
|
"mouseover",
|
|
210015
|
-
|
|
210028
|
+
ir
|
|
210016
210029
|
), c.Utils.addEventListener(
|
|
210017
210030
|
qn,
|
|
210018
210031
|
"mousedown",
|
|
210019
|
-
|
|
210032
|
+
ir
|
|
210020
210033
|
), c.Utils.addEventListener(
|
|
210021
210034
|
qn,
|
|
210022
210035
|
"mouseup",
|
|
210023
|
-
|
|
210036
|
+
ir
|
|
210024
210037
|
), c.Utils.addEventListener(
|
|
210025
210038
|
qn,
|
|
210026
210039
|
"mouseout",
|
|
210027
|
-
|
|
210040
|
+
ir
|
|
210028
210041
|
), c.Utils.addEventListener(
|
|
210029
210042
|
ur,
|
|
210030
210043
|
"mouseover",
|
|
210031
|
-
|
|
210044
|
+
ir
|
|
210032
210045
|
), c.Utils.addEventListener(
|
|
210033
210046
|
ur,
|
|
210034
210047
|
"mousedown",
|
|
210035
|
-
|
|
210048
|
+
ir
|
|
210036
210049
|
), c.Utils.addEventListener(
|
|
210037
210050
|
ur,
|
|
210038
210051
|
"mouseup",
|
|
210039
|
-
|
|
210052
|
+
ir
|
|
210040
210053
|
), c.Utils.addEventListener(
|
|
210041
210054
|
ur,
|
|
210042
210055
|
"mouseout",
|
|
210043
|
-
|
|
210056
|
+
ir
|
|
210044
210057
|
), c.Utils.addEventListener(
|
|
210045
210058
|
cn,
|
|
210046
210059
|
"mouseover",
|
|
210047
|
-
|
|
210060
|
+
ir
|
|
210048
210061
|
), c.Utils.addEventListener(
|
|
210049
210062
|
cn,
|
|
210050
210063
|
"mousedown",
|
|
210051
|
-
|
|
210064
|
+
ir
|
|
210052
210065
|
), c.Utils.addEventListener(
|
|
210053
210066
|
cn,
|
|
210054
210067
|
"mouseup",
|
|
210055
|
-
|
|
210068
|
+
ir
|
|
210056
210069
|
), c.Utils.addEventListener(
|
|
210057
210070
|
cn,
|
|
210058
210071
|
"mouseout",
|
|
210059
|
-
|
|
210072
|
+
ir
|
|
210060
210073
|
), a.zIndex = (c.baseZIndex + 2).toString(), c.ViewerDisplay.appendChild(c.ToolbarDisplay), c.Utils.addEventListener(
|
|
210061
210074
|
c.ToolbarDisplay,
|
|
210062
210075
|
"mouseover",
|
|
@@ -210257,7 +210270,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
210257
210270
|
"mouseover",
|
|
210258
210271
|
ln
|
|
210259
210272
|
);
|
|
210260
|
-
var
|
|
210273
|
+
var nr = new c.Utils.Button(
|
|
210261
210274
|
"buttonSliderZoom",
|
|
210262
210275
|
null,
|
|
210263
210276
|
c.skinPath,
|
|
@@ -210272,7 +210285,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
210272
210285
|
ln,
|
|
210273
210286
|
"TIP_SLIDERZOOM"
|
|
210274
210287
|
);
|
|
210275
|
-
Ot.appendChild(
|
|
210288
|
+
Ot.appendChild(nr.elmt);
|
|
210276
210289
|
}
|
|
210277
210290
|
if (c.zoomButtonsVisible) {
|
|
210278
210291
|
var vn = new c.Utils.Button(
|
|
@@ -211206,7 +211219,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211206
211219
|
"TIP_IMAGEFILTERPLUS"
|
|
211207
211220
|
);
|
|
211208
211221
|
de.appendChild(qn.elmt);
|
|
211209
|
-
var
|
|
211222
|
+
var nr = new c.Utils.Graphic(
|
|
211210
211223
|
"imageFilterStateDivider",
|
|
211211
211224
|
c.skinPath,
|
|
211212
211225
|
me[94],
|
|
@@ -211215,7 +211228,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211215
211228
|
"1px",
|
|
211216
211229
|
"1px"
|
|
211217
211230
|
);
|
|
211218
|
-
if (de.appendChild(
|
|
211231
|
+
if (de.appendChild(nr.elmt), c.grayscaleVisible) {
|
|
211219
211232
|
var vn = c.Utils.createContainerElement(
|
|
211220
211233
|
"div",
|
|
211221
211234
|
"labelGrayscaleTextBox",
|
|
@@ -211539,7 +211552,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211539
211552
|
);
|
|
211540
211553
|
}
|
|
211541
211554
|
this.getInitialized = function() {
|
|
211542
|
-
return
|
|
211555
|
+
return ai();
|
|
211543
211556
|
}, this.getSkinArray = function() {
|
|
211544
211557
|
return o;
|
|
211545
211558
|
}, this.getSkinSizes = function() {
|
|
@@ -211619,7 +211632,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211619
211632
|
this.setViewport = function(me) {
|
|
211620
211633
|
t = me, r = t.getViewportID().toString();
|
|
211621
211634
|
};
|
|
211622
|
-
function
|
|
211635
|
+
function ai() {
|
|
211623
211636
|
return n;
|
|
211624
211637
|
}
|
|
211625
211638
|
function Mr(me) {
|
|
@@ -211670,8 +211683,8 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211670
211683
|
var ut, jt, Ot, hn, Pt;
|
|
211671
211684
|
if (ut = c.trackingEditMode == "edit" ? 176 : c.tracking ? 164 : c.editMode == "edit" || c.trackingEditMode == "edit" ? 161 : c.editMode == "markup" ? 152 : c.imageFilters ? 100 : c.screensaver || c.preloadVisible || c.tourPath || c.slidePath || c.imageSetPath ? 77 : c.rotationVisible ? 58 : c.measureVisible ? 51 : c.helpVisible > 0 || c.fullScreenVisible || c.fullPageVisible ? 45 : c.resetVisible ? 35 : c.panButtonsVisible ? 32 : c.sliderZoomVisible ? 19 : c.minimizeVisible ? 14 : c.logoVisible ? 8 : 6, jt = me.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN0"), jt !== null && (Ot = jt.nodeValue), hn = me.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN" + ut.toString()), hn !== null && (Pt = hn.nodeValue), typeof Ot < "u" && c.Utils.stringValidate(Ot) && typeof Pt < "u" && c.Utils.stringValidate(Pt)) {
|
|
211672
211685
|
for (var yt = !1, vr = 0, qn = ut + 1; vr < qn; vr++) {
|
|
211673
|
-
var
|
|
211674
|
-
c.Utils.stringValidate(
|
|
211686
|
+
var nr = me.getElementsByTagName("FILES")[0].attributes.getNamedItem("SKIN" + vr).nodeValue;
|
|
211687
|
+
c.Utils.stringValidate(nr) ? s[vr] = de + "/" + nr : (s[vr] = "null", yt = !0);
|
|
211675
211688
|
}
|
|
211676
211689
|
yt && c.Utils.showMessage(c.Utils.getResource("ERROR_SKINXMLMISSINGNAMES")), Mi(Ge, s);
|
|
211677
211690
|
} else
|
|
@@ -211680,9 +211693,9 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211680
211693
|
typeof me > "u" || me === null ? me = c.toolbarVisible > 0 ? c.toolbarCurrentW : 0 : c.toolbarCurrentW = me, (typeof de > "u" || de === null) && (de = c.toolbarVisible > 0 && c.toolbarVisible != 8 ? i : 0), (typeof Oe > "u" || Oe === null) && (Oe = 0), (typeof tt > "u" || tt === null) && (tt = c.toolbarPosition == 1 ? c.viewerH - i : 0), a = c.ToolbarDisplay.style, a.width = me + "px", a.height = de + "px", a.left = Oe + "px", a.top = tt + "px", Ba(me, de);
|
|
211681
211694
|
};
|
|
211682
211695
|
function Ba(me, de) {
|
|
211683
|
-
var Oe = me, tt = de, Ge = l[2], ut = l[3], jt = l[4], Ot = l[5], hn = l[6], Pt = l[7], yt = l[8], vr = l[9], qn = l[10],
|
|
211696
|
+
var Oe = me, tt = de, Ge = l[2], ut = l[3], jt = l[4], Ot = l[5], hn = l[6], Pt = l[7], yt = l[8], vr = l[9], qn = l[10], nr = l[11], vn = l[12], ur = l[13], Ur = l[14], mn = l[15], cn = 0, si = (tt - ut) / 2 + 1, ni = (tt - Ot) / 2, Hr = (tt - Pt) / 2, Hs = Hr * 1.3, Ha = Hr + 4, Ro = Hr + 2, Si = c.logoVisible == 1 ? 0 : yt / 2, pi = c.logoVisible == 1 ? 0 : yt / 2, ga = yt - (hn - jt), Rs = 20, lo = 0, $o = 0;
|
|
211684
211697
|
if (c.zoomButtonsVisible && (lo += 2), c.panButtonsVisible && (lo += 4, $o += 1), c.resetVisible && (lo += 1), (c.fullScreenVisible || c.fullPageVisible) && (lo += 1, $o += 1), c.helpVisible && (lo += 1, !c.fullScreenVisible && !c.fullPageVisible && ($o += 1)), c.measureVisible && (!c.fullScreenVisible && !c.fullPageVisible && ($o += 1), lo += 1), c.rotationVisible && (lo += 2, $o += 1), (c.tour || c.slideshow) && (lo += 3, $o += 1, c.audioContent && (lo += 1)), c.imageFilters && (lo += 1, $o += 1), c.preloadVisible && (lo += 1, $o += 1), c.comparison && c.syncVisible && (lo += 1, $o += 1), c.imageSet && c.sliderImageSetVisible) {
|
|
211685
|
-
var uc = ur, Js =
|
|
211698
|
+
var uc = ur, Js = nr, Ds = vn;
|
|
211686
211699
|
P = !1, lo += 2;
|
|
211687
211700
|
}
|
|
211688
211701
|
c.progressVisible || (Ur = 0);
|
|
@@ -211730,7 +211743,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
211730
211743
|
var Mc = Gs.style;
|
|
211731
211744
|
Mc.left = cn + "px", Mc.top = Hr + "px", cn += yt;
|
|
211732
211745
|
}
|
|
211733
|
-
Zx = document.getElementById("trackSliderZoom"), g0 = document.getElementById("buttonSliderZoom"), Zx && g0 && (Vd = Zx.style, nh = g0.style, Vd && nh && (y ? (Vd.display = "none", nh.display = "none") : (Vd.display = "inline-block", nh.display = "inline-block", c.Utils.graphicSize(Zx,
|
|
211746
|
+
Zx = document.getElementById("trackSliderZoom"), g0 = document.getElementById("buttonSliderZoom"), Zx && g0 && (Vd = Zx.style, nh = g0.style, Vd && nh && (y ? (Vd.display = "none", nh.display = "none") : (Vd.display = "inline-block", nh.display = "inline-block", c.Utils.graphicSize(Zx, nr, vn), Vd.left = cn - 2 + "px", Vd.top = Ha + "px", c.Utils.buttonSize(g0, vr, qn), nh.left = parseFloat(Vd.left) + "px", nh.top = Ro + "px", cn += ur)));
|
|
211734
211747
|
var Ol = document.getElementById("buttonZoomIn");
|
|
211735
211748
|
if (Ol) {
|
|
211736
211749
|
c.Utils.buttonSize(Ol, hn, Pt);
|
|
@@ -212014,7 +212027,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212014
212027
|
), Ge = parseInt(
|
|
212015
212028
|
c.Utils.getResource("DEFAULT_IMAGEFILTERTEXTPADDINGSMALL"),
|
|
212016
212029
|
10
|
|
212017
|
-
), ut = l[6], jt = l[7], Ot = l[8], hn = l[4], Pt = l[5], yt = l[11], vr = l[12], qn = l[9],
|
|
212030
|
+
), ut = l[6], jt = l[7], Ot = l[8], hn = l[4], Pt = l[5], yt = l[11], vr = l[12], qn = l[9], nr = l[10], vn = l[13];
|
|
212018
212031
|
l[15];
|
|
212019
212032
|
var ur = Ot - (ut - hn), Ur = de + 8, mn = 90, cn = 20, si = 3, ni = 37, Hr = 14, Hs = parseInt(
|
|
212020
212033
|
c.Utils.getResource("DEFAULT_IMAGEFILTERLISTWIDTH"),
|
|
@@ -212054,7 +212067,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212054
212067
|
"1em",
|
|
212055
212068
|
"left",
|
|
212056
212069
|
"none"
|
|
212057
|
-
), te.display = "inline-block", Y.display = "inline-block", c.Utils.graphicSize(X, yt, vr), te.left = yr + mn + 3 + "px", te.top = On + "px", c.Utils.buttonSize(K, qn,
|
|
212070
|
+
), te.display = "inline-block", Y.display = "inline-block", c.Utils.graphicSize(X, yt, vr), te.left = yr + mn + 3 + "px", te.top = On + "px", c.Utils.buttonSize(K, qn, nr), Y.left = parseFloat(te.left) + "px", Y.top = On - 4 + "px", t_.width = ni + "px", t_.height = Hr + "px", t_.left = yr + mn + 3 + vn + "px", t_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212058
212071
|
Ss,
|
|
212059
212072
|
"black",
|
|
212060
212073
|
"verdana",
|
|
@@ -212085,7 +212098,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212085
212098
|
"1em",
|
|
212086
212099
|
"left",
|
|
212087
212100
|
"none"
|
|
212088
|
-
), ee.display = "inline-block", ue.display = "inline-block", c.Utils.graphicSize(ie, yt, vr), ee.left = yr + mn + 3 + "px", ee.top = On + "px", c.Utils.buttonSize(oe, qn,
|
|
212101
|
+
), ee.display = "inline-block", ue.display = "inline-block", c.Utils.graphicSize(ie, yt, vr), ee.left = yr + mn + 3 + "px", ee.top = On + "px", c.Utils.buttonSize(oe, qn, nr), ue.left = parseFloat(ee.left) + "px", ue.top = On - 4 + "px", a_.width = ni + "px", a_.height = Hr + "px", a_.left = yr + mn + 3 + vn + "px", a_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212089
212102
|
xs,
|
|
212090
212103
|
"black",
|
|
212091
212104
|
"verdana",
|
|
@@ -212116,7 +212129,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212116
212129
|
"1em",
|
|
212117
212130
|
"left",
|
|
212118
212131
|
"none"
|
|
212119
|
-
), ae.display = "inline-block", re.display = "inline-block", c.Utils.graphicSize(he, yt, vr), ae.left = yr + mn + 3 + "px", ae.top = On + "px", c.Utils.buttonSize(Se, qn,
|
|
212132
|
+
), ae.display = "inline-block", re.display = "inline-block", c.Utils.graphicSize(he, yt, vr), ae.left = yr + mn + 3 + "px", ae.top = On + "px", c.Utils.buttonSize(Se, qn, nr), re.left = parseFloat(ae.left) + "px", re.top = On - 4 + "px", Yx.width = ni + "px", Yx.height = Hr + "px", Yx.left = yr + mn + 3 + vn + "px", Yx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212120
212133
|
Mc,
|
|
212121
212134
|
"black",
|
|
212122
212135
|
"verdana",
|
|
@@ -212147,7 +212160,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212147
212160
|
"1em",
|
|
212148
212161
|
"left",
|
|
212149
212162
|
"none"
|
|
212150
|
-
), Ae.display = "inline-block", qe.display = "inline-block", c.Utils.graphicSize(fe, yt, vr), Ae.left = yr + mn + 3 + "px", Ae.top = On + "px", c.Utils.buttonSize(Ve, qn,
|
|
212163
|
+
), Ae.display = "inline-block", qe.display = "inline-block", c.Utils.graphicSize(fe, yt, vr), Ae.left = yr + mn + 3 + "px", Ae.top = On + "px", c.Utils.buttonSize(Ve, qn, nr), qe.left = parseFloat(Ae.left) + "px", qe.top = On - 4 + "px", c_.width = ni + "px", c_.height = Hr + "px", c_.left = yr + mn + 3 + vn + "px", c_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212151
212164
|
Yl,
|
|
212152
212165
|
"black",
|
|
212153
212166
|
"verdana",
|
|
@@ -212178,7 +212191,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212178
212191
|
"1em",
|
|
212179
212192
|
"left",
|
|
212180
212193
|
"none"
|
|
212181
|
-
), we.display = "inline-block", ye.display = "inline-block", c.Utils.graphicSize(Fe, yt, vr), we.left = yr + mn + 3 + "px", we.top = On + "px", c.Utils.buttonSize(je, qn,
|
|
212194
|
+
), we.display = "inline-block", ye.display = "inline-block", c.Utils.graphicSize(Fe, yt, vr), we.left = yr + mn + 3 + "px", we.top = On + "px", c.Utils.buttonSize(je, qn, nr), ye.left = parseFloat(we.left) + "px", ye.top = On - 4 + "px", i_.width = ni + "px", i_.height = Hr + "px", i_.left = yr + mn + 3 + vn + "px", i_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212182
212195
|
Zc,
|
|
212183
212196
|
"black",
|
|
212184
212197
|
"verdana",
|
|
@@ -212209,7 +212222,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212209
212222
|
"1em",
|
|
212210
212223
|
"left",
|
|
212211
212224
|
"none"
|
|
212212
|
-
), $e.display = "inline-block", ke.display = "inline-block", c.Utils.graphicSize(ge, yt, vr), $e.left = yr + mn + 3 + "px", $e.top = On + "px", c.Utils.buttonSize(De, qn,
|
|
212225
|
+
), $e.display = "inline-block", ke.display = "inline-block", c.Utils.graphicSize(ge, yt, vr), $e.left = yr + mn + 3 + "px", $e.top = On + "px", c.Utils.buttonSize(De, qn, nr), ke.left = parseFloat($e.left) + "px", ke.top = On - 4 + "px", Kx.width = ni + "px", Kx.height = Hr + "px", Kx.left = yr + mn + 3 + vn + "px", Kx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212213
212226
|
vl,
|
|
212214
212227
|
"black",
|
|
212215
212228
|
"verdana",
|
|
@@ -212240,7 +212253,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212240
212253
|
"1em",
|
|
212241
212254
|
"left",
|
|
212242
212255
|
"none"
|
|
212243
|
-
), Ze.display = "inline-block", ft.display = "inline-block", c.Utils.graphicSize(st, yt, vr), Ze.left = yr + mn + 3 + "px", Ze.top = On + "px", c.Utils.buttonSize(Ye, qn,
|
|
212256
|
+
), Ze.display = "inline-block", ft.display = "inline-block", c.Utils.graphicSize(st, yt, vr), Ze.left = yr + mn + 3 + "px", Ze.top = On + "px", c.Utils.buttonSize(Ye, qn, nr), ft.left = parseFloat(Ze.left) + "px", ft.top = On - 4 + "px", v_.width = ni + "px", v_.height = Hr + "px", v_.left = yr + mn + 3 + vn + "px", v_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212244
212257
|
Dc,
|
|
212245
212258
|
"black",
|
|
212246
212259
|
"verdana",
|
|
@@ -212275,7 +212288,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212275
212288
|
"1em",
|
|
212276
212289
|
"left",
|
|
212277
212290
|
"none"
|
|
212278
|
-
), At.display = "inline-block", Et.display = "inline-block", c.Utils.graphicSize(wt, yt, vr), At.left = yr + mn + 3 + "px", At.top = On + "px", c.Utils.buttonSize(ot, qn,
|
|
212291
|
+
), At.display = "inline-block", Et.display = "inline-block", c.Utils.graphicSize(wt, yt, vr), At.left = yr + mn + 3 + "px", At.top = On + "px", c.Utils.buttonSize(ot, qn, nr), Et.left = parseFloat(At.left) + "px", Et.top = On - 4 + "px", c.Utils.buttonSize(W2, qn, nr), BL.left = parseFloat(At.left) + 50 + "px", BL.top = On - 4 + "px", Qx.width = ni + "px", Qx.height = Hr + "px", Qx.left = yr + mn + 3 + vn + "px", Qx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212279
212292
|
dc,
|
|
212280
212293
|
"black",
|
|
212281
212294
|
"verdana",
|
|
@@ -212324,7 +212337,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212324
212337
|
"1em",
|
|
212325
212338
|
"left",
|
|
212326
212339
|
"none"
|
|
212327
|
-
), nt.display = "inline-block", Pe.display = "inline-block", c.Utils.graphicSize(Xe, yt, vr), nt.left = yr + mn + 3 + "px", nt.top = On + "px", c.Utils.buttonSize(bt, qn,
|
|
212340
|
+
), nt.display = "inline-block", Pe.display = "inline-block", c.Utils.graphicSize(Xe, yt, vr), nt.left = yr + mn + 3 + "px", nt.top = On + "px", c.Utils.buttonSize(bt, qn, nr), Pe.left = parseFloat(nt.left) + "px", Pe.top = On - 4 + "px", c.Utils.buttonSize(B2, qn, nr), HL.left = parseFloat(At.left) + 50 + "px", HL.top = On - 4 + "px", g_.width = ni + "px", g_.height = Hr + "px", g_.left = yr + mn + 3 + vn + "px", g_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212328
212341
|
qc,
|
|
212329
212342
|
"black",
|
|
212330
212343
|
"verdana",
|
|
@@ -212373,7 +212386,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212373
212386
|
"1em",
|
|
212374
212387
|
"left",
|
|
212375
212388
|
"none"
|
|
212376
|
-
), Qt.display = "inline-block", Gt.display = "inline-block", c.Utils.graphicSize(gt, yt, vr), Qt.left = yr + mn + 3 + "px", Qt.top = On + "px", c.Utils.buttonSize(Nt, qn,
|
|
212389
|
+
), Qt.display = "inline-block", Gt.display = "inline-block", c.Utils.graphicSize(gt, yt, vr), Qt.left = yr + mn + 3 + "px", Qt.top = On + "px", c.Utils.buttonSize(Nt, qn, nr), Gt.left = parseFloat(Qt.left) + "px", Gt.top = On - 4 + "px", c.Utils.buttonSize(V2, qn, nr), FL.left = parseFloat(At.left) + 50 + "px", FL.top = On - 4 + "px", m_.width = ni + "px", m_.height = Hr + "px", m_.left = yr + mn + 3 + vn + "px", m_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212377
212390
|
dd,
|
|
212378
212391
|
"black",
|
|
212379
212392
|
"verdana",
|
|
@@ -212418,7 +212431,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212418
212431
|
"1em",
|
|
212419
212432
|
"left",
|
|
212420
212433
|
"none"
|
|
212421
|
-
), an.display = "inline-block", Ln.display = "inline-block", c.Utils.graphicSize(Kt, yt, vr), an.left = yr + mn + 3 + "px", an.top = On + "px", c.Utils.buttonSize(yn, qn,
|
|
212434
|
+
), an.display = "inline-block", Ln.display = "inline-block", c.Utils.graphicSize(Kt, yt, vr), an.left = yr + mn + 3 + "px", an.top = On + "px", c.Utils.buttonSize(yn, qn, nr), Ln.left = parseFloat(an.left) + "px", Ln.top = On - 4 + "px", Xx.width = ni + "px", Xx.height = Hr + "px", Xx.left = yr + mn + 3 + vn + "px", Xx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212422
212435
|
Bl,
|
|
212423
212436
|
"black",
|
|
212424
212437
|
"verdana",
|
|
@@ -212449,7 +212462,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212449
212462
|
"1em",
|
|
212450
212463
|
"left",
|
|
212451
212464
|
"none"
|
|
212452
|
-
), Zn.display = "inline-block", jr.display = "inline-block", c.Utils.graphicSize(An, yt, vr), Zn.left = yr + mn + 3 + "px", Zn.top = On + "px", c.Utils.buttonSize(Ir, qn,
|
|
212465
|
+
), Zn.display = "inline-block", jr.display = "inline-block", c.Utils.graphicSize(An, yt, vr), Zn.left = yr + mn + 3 + "px", Zn.top = On + "px", c.Utils.buttonSize(Ir, qn, nr), jr.left = parseFloat(Zn.left) + "px", jr.top = On - 4 + "px", r_.width = ni + "px", r_.height = Hr + "px", r_.left = yr + mn + 3 + vn + "px", r_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212453
212466
|
af,
|
|
212454
212467
|
"black",
|
|
212455
212468
|
"verdana",
|
|
@@ -212480,7 +212493,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212480
212493
|
"1em",
|
|
212481
212494
|
"left",
|
|
212482
212495
|
"none"
|
|
212483
|
-
), Wt.display = "inline-block", En.display = "inline-block", c.Utils.graphicSize(jn, yt, vr), Wt.left = yr + mn + 3 + "px", Wt.top = On + "px", c.Utils.buttonSize(zn, qn,
|
|
212496
|
+
), Wt.display = "inline-block", En.display = "inline-block", c.Utils.graphicSize(jn, yt, vr), Wt.left = yr + mn + 3 + "px", Wt.top = On + "px", c.Utils.buttonSize(zn, qn, nr), En.left = parseFloat(Wt.left) + "px", En.top = On - 4 + "px", Wx.width = ni + "px", Wx.height = Hr + "px", Wx.left = yr + mn + 3 + vn + "px", Wx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212484
212497
|
pc,
|
|
212485
212498
|
"black",
|
|
212486
212499
|
"verdana",
|
|
@@ -212511,7 +212524,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212511
212524
|
"1em",
|
|
212512
212525
|
"left",
|
|
212513
212526
|
"none"
|
|
212514
|
-
), gr.display = "inline-block", zt.display = "inline-block", c.Utils.graphicSize(pr, yt, vr), gr.left = yr + mn + 3 + "px", gr.top = On + "px", c.Utils.buttonSize(vt, qn,
|
|
212527
|
+
), gr.display = "inline-block", zt.display = "inline-block", c.Utils.graphicSize(pr, yt, vr), gr.left = yr + mn + 3 + "px", gr.top = On + "px", c.Utils.buttonSize(vt, qn, nr), zt.left = parseFloat(gr.left) + "px", zt.top = On - 4 + "px", l_.width = ni + "px", l_.height = Hr + "px", l_.left = yr + mn + 3 + vn + "px", l_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212515
212528
|
Yc,
|
|
212516
212529
|
"black",
|
|
212517
212530
|
"verdana",
|
|
@@ -212542,7 +212555,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212542
212555
|
"1em",
|
|
212543
212556
|
"left",
|
|
212544
212557
|
"none"
|
|
212545
|
-
), Be.display = "inline-block", Dt.display = "inline-block", c.Utils.graphicSize(gn, yt, vr), Be.left = yr + mn + 3 + "px", Be.top = On + "px", c.Utils.buttonSize(_t, qn,
|
|
212558
|
+
), Be.display = "inline-block", Dt.display = "inline-block", c.Utils.graphicSize(gn, yt, vr), Be.left = yr + mn + 3 + "px", Be.top = On + "px", c.Utils.buttonSize(_t, qn, nr), Dt.left = parseFloat(Be.left) + "px", Dt.top = On - 4 + "px", h_.width = ni + "px", h_.height = Hr + "px", h_.left = yr + mn + 3 + vn + "px", h_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212546
212559
|
Md,
|
|
212547
212560
|
"black",
|
|
212548
212561
|
"verdana",
|
|
@@ -212573,7 +212586,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212573
212586
|
"1em",
|
|
212574
212587
|
"left",
|
|
212575
212588
|
"none"
|
|
212576
|
-
), Mt.display = "inline-block", Ht.display = "inline-block", c.Utils.graphicSize(Ft, yt, vr), Mt.left = yr + mn + 3 + "px", Mt.top = On + "px", c.Utils.buttonSize(Zt, qn,
|
|
212589
|
+
), Mt.display = "inline-block", Ht.display = "inline-block", c.Utils.graphicSize(Ft, yt, vr), Mt.left = yr + mn + 3 + "px", Mt.top = On + "px", c.Utils.buttonSize(Zt, qn, nr), Ht.left = parseFloat(Mt.left) + "px", Ht.top = On - 4 + "px", f_.width = ni + "px", f_.height = Hr + "px", f_.left = yr + mn + 3 + vn + "px", f_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212577
212590
|
Ku,
|
|
212578
212591
|
"black",
|
|
212579
212592
|
"verdana",
|
|
@@ -212604,7 +212617,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212604
212617
|
"1em",
|
|
212605
212618
|
"left",
|
|
212606
212619
|
"none"
|
|
212607
|
-
), Mn.display = "inline-block", Vt.display = "inline-block", c.Utils.graphicSize(tn, yt, vr), Mn.left = yr + mn + 3 + "px", Mn.top = On + "px", c.Utils.buttonSize(Jt, qn,
|
|
212620
|
+
), Mn.display = "inline-block", Vt.display = "inline-block", c.Utils.graphicSize(tn, yt, vr), Mn.left = yr + mn + 3 + "px", Mn.top = On + "px", c.Utils.buttonSize(Jt, qn, nr), Vt.left = parseFloat(Mn.left) + "px", Vt.top = On - 4 + "px", qx.width = ni + "px", qx.height = Hr + "px", qx.left = yr + mn + 3 + vn + "px", qx.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212608
212621
|
Kc,
|
|
212609
212622
|
"black",
|
|
212610
212623
|
"verdana",
|
|
@@ -212637,7 +212650,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212637
212650
|
"1em",
|
|
212638
212651
|
"left",
|
|
212639
212652
|
"none"
|
|
212640
|
-
), Vn.display = "inline-block", Cr.display = "inline-block", c.Utils.graphicSize(nn, yt, vr), Vn.left = yr + mn + 3 + "px", Vn.top = On + "px", c.Utils.buttonSize(Rn, qn,
|
|
212653
|
+
), Vn.display = "inline-block", Cr.display = "inline-block", c.Utils.graphicSize(nn, yt, vr), Vn.left = yr + mn + 3 + "px", Vn.top = On + "px", c.Utils.buttonSize(Rn, qn, nr), Cr.left = parseFloat(Vn.left) + "px", Cr.top = On - 4 + "px", p_.width = ni + "px", p_.height = Hr + "px", p_.left = yr + mn + 3 + vn + "px", p_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212641
212654
|
of,
|
|
212642
212655
|
"black",
|
|
212643
212656
|
"verdana",
|
|
@@ -212668,7 +212681,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212668
212681
|
"1em",
|
|
212669
212682
|
"left",
|
|
212670
212683
|
"none"
|
|
212671
|
-
), cr.display = "inline-block", sr.display = "inline-block", c.Utils.graphicSize(kr, yt, vr), cr.left = yr + mn + 3 + "px", cr.top = On + "px", c.Utils.buttonSize(Cn, qn,
|
|
212684
|
+
), cr.display = "inline-block", sr.display = "inline-block", c.Utils.graphicSize(kr, yt, vr), cr.left = yr + mn + 3 + "px", cr.top = On + "px", c.Utils.buttonSize(Cn, qn, nr), sr.left = parseFloat(cr.left) + "px", sr.top = On - 4 + "px", Xh.width = ni + "px", Xh.height = Hr + "px", Xh.left = yr + mn + 3 + vn + "px", Xh.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212672
212685
|
Ll,
|
|
212673
212686
|
"black",
|
|
212674
212687
|
"verdana",
|
|
@@ -212699,7 +212712,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212699
212712
|
"1em",
|
|
212700
212713
|
"left",
|
|
212701
212714
|
"none"
|
|
212702
|
-
), d_.display = "inline-block", w5.display = "inline-block", c.Utils.graphicSize($L, yt, vr), d_.left = yr + mn + 3 + "px", d_.top = On + "px", c.Utils.buttonSize(UL, qn,
|
|
212715
|
+
), d_.display = "inline-block", w5.display = "inline-block", c.Utils.graphicSize($L, yt, vr), d_.left = yr + mn + 3 + "px", d_.top = On + "px", c.Utils.buttonSize(UL, qn, nr), w5.left = parseFloat(d_.left) + "px", w5.top = On - 4 + "px", u_.width = ni + "px", u_.height = Hr + "px", u_.left = yr + mn + 3 + vn + "px", u_.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212703
212716
|
_c,
|
|
212704
212717
|
"black",
|
|
212705
212718
|
"verdana",
|
|
@@ -212730,7 +212743,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212730
212743
|
"1em",
|
|
212731
212744
|
"left",
|
|
212732
212745
|
"none"
|
|
212733
|
-
), cr.display = "inline-block", sr.display = "inline-block", c.Utils.graphicSize(kr, yt, vr), cr.left = yr + mn + 3 + "px", cr.top = On + "px", c.Utils.buttonSize(Cn, qn,
|
|
212746
|
+
), cr.display = "inline-block", sr.display = "inline-block", c.Utils.graphicSize(kr, yt, vr), cr.left = yr + mn + 3 + "px", cr.top = On + "px", c.Utils.buttonSize(Cn, qn, nr), sr.left = parseFloat(cr.left) + "px", sr.top = On - 4 + "px", Xh.width = ni + "px", Xh.height = Hr + "px", Xh.left = yr + mn + 3 + vn + "px", Xh.top = On - 6 + "px", c.Utils.setTextAreaStyle(
|
|
212734
212747
|
Ll,
|
|
212735
212748
|
"black",
|
|
212736
212749
|
"verdana",
|
|
@@ -212999,7 +213012,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
212999
213012
|
if (!vr)
|
|
213000
213013
|
pi = Ot, Pt = br, yt = G;
|
|
213001
213014
|
else {
|
|
213002
|
-
var qn = parseFloat(br.left) - tt,
|
|
213015
|
+
var qn = parseFloat(br.left) - tt, nr = parseFloat(ii.left) - tt, vn = Math.abs(qn - jt), ur = Math.abs(nr - jt);
|
|
213003
213016
|
vn < ur ? (pi = Ot, hn = t.getImageFilterValuePrior(
|
|
213004
213017
|
G + "2"
|
|
213005
213018
|
), Pt = br, yt = G) : (pi = t.getImageFilterValuePrior(G), hn = Ot, Pt = ii, G.substring(
|
|
@@ -213432,7 +213445,7 @@ c.ZoomifyToolbar = function(t) {
|
|
|
213432
213445
|
de.pageY
|
|
213433
213446
|
));
|
|
213434
213447
|
}
|
|
213435
|
-
function
|
|
213448
|
+
function ir(de) {
|
|
213436
213449
|
var de = c.Utils.event(de);
|
|
213437
213450
|
if (de) {
|
|
213438
213451
|
var Oe = de.type, tt = c.Utils.target(de);
|