vitessce 3.9.6 → 3.9.7
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/{OrbitControls-gS0qAcAF.js → OrbitControls-BLYziVW9.js} +1 -1
- package/dist/{ReactNeuroglancer-BUfn_iuv.js → ReactNeuroglancer-Bin57sPT.js} +215 -211
- package/dist/{deflate-_PAyjIxQ.js → deflate-BEZlA6X1.js} +1 -1
- package/dist/{higlass-DKNFlOLu.js → higlass-BPrGcV1I.js} +1 -1
- package/dist/{index-BMZKt_WD.js → index-CTA0fK_z.js} +2 -2
- package/dist/{index-CApj7rdC.js → index-Dh0zZtzS.js} +3 -3
- package/dist/{index-CiwyZ_Wn.js → index-MlEP9vQM.js} +125738 -125681
- package/dist/index.min.js +1 -1
- package/dist/{jpeg-D6QGAYrj.js → jpeg-Cun0OxfD.js} +1 -1
- package/dist/{lerc-CpU83gFy.js → lerc-ADlKVK18.js} +1 -1
- package/dist/{lzw-IDKOxNdH.js → lzw-CSvNSq19.js} +1 -1
- package/dist/{packbits-Dj8eDgHa.js → packbits-CRRtWWM7.js} +1 -1
- package/dist/{raw-BBDtkWgc.js → raw-DvNidFcW.js} +1 -1
- package/dist/{troika-three-text.esm-DtEcqwS6.js → troika-three-text.esm-DL9HnGkw.js} +1 -1
- package/dist/{webimage-zvGex_8D.js → webimage-DnlFNfKG.js} +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var f_ = Object.defineProperty;
|
|
2
2
|
var p_ = (i, e, t) => e in i ? f_(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var Qn = (i, e, t) => p_(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { aI as Qe, b2 as g_, b3 as Ot, b4 as ut, b5 as Hv, b6 as qv, b7 as $k, b8 as jv, b9 as Mr, ba as Jv, bb as aa, bc as Ro, bd as Ao, be as Gk, bf as oa, bg as qu, bh as Nr, bi as ju, bj as Ju, bk as xs, bl as m_, bm as v_, bn as y_, bo as Ku, bp as S_, bq as b_, br as Wk, bs as Yu, bt as w_, bu as C_, bv as x_, bw as E_, bx as k_, by as Kv, bz as Hk, bA as T_, bB as Yv, bC as L_, bD as D_, bE as I_, bF as P_, bG as R_, bH as A_, bI as __, bJ as M_, bK as N_, bL as O_, ao as Hb } from "./index-
|
|
4
|
+
import { aI as Qe, b2 as g_, b3 as Ot, b4 as ut, b5 as Hv, b6 as qv, b7 as $k, b8 as jv, b9 as Mr, ba as Jv, bb as aa, bc as Ro, bd as Ao, be as Gk, bf as oa, bg as qu, bh as Nr, bi as ju, bj as Ju, bk as xs, bl as m_, bm as v_, bn as y_, bo as Ku, bp as S_, bq as b_, br as Wk, bs as Yu, bt as w_, bu as C_, bv as x_, bw as E_, bx as k_, by as Kv, bz as Hk, bA as T_, bB as Yv, bC as L_, bD as D_, bE as I_, bF as P_, bG as R_, bH as A_, bI as __, bJ as M_, bK as N_, bL as O_, ao as Hb } from "./index-MlEP9vQM.js";
|
|
5
5
|
import qb from "react";
|
|
6
6
|
var V_ = g_();
|
|
7
7
|
const H = /* @__PURE__ */ Qe(V_);
|
|
@@ -19927,7 +19927,7 @@ class aE {
|
|
|
19927
19927
|
for (const l of this.layers) {
|
|
19928
19928
|
var r = ae(l, 2);
|
|
19929
19929
|
const d = r[0], u = r[1];
|
|
19930
|
-
|
|
19930
|
+
GW(d, s[u]);
|
|
19931
19931
|
}
|
|
19932
19932
|
} catch {
|
|
19933
19933
|
return !1;
|
|
@@ -21799,12 +21799,12 @@ class QG extends X {
|
|
|
21799
21799
|
n.textContent = "";
|
|
21800
21800
|
}
|
|
21801
21801
|
}
|
|
21802
|
-
var mE = { exports: {} }, Xd = { exports: {} },
|
|
21802
|
+
var mE = { exports: {} }, Xd = { exports: {} }, eW = Xd.exports, vE;
|
|
21803
21803
|
function Wo() {
|
|
21804
21804
|
return vE || (vE = 1, function(i, e) {
|
|
21805
21805
|
(function(t, n) {
|
|
21806
21806
|
i.exports = n();
|
|
21807
|
-
})(
|
|
21807
|
+
})(eW, function() {
|
|
21808
21808
|
var t = navigator.userAgent, n = navigator.platform, r = /gecko\/\d/i.test(t), s = /MSIE \d/.test(t), a = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t), l = /Edge\/(\d+)/.exec(t), d = s || a || l, u = d && (s ? document.documentMode || 6 : +(l || a)[1]), h = !l && /WebKit\//.test(t), g = h && /Qt\/\d+\.\d+/.test(t), v = !l && /Chrome\/(\d+)/.exec(t), y = v && +v[1], C = /Opera\//.test(t), w = /Apple Computer/.test(navigator.vendor), b = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t), E = /PhantomJS/.test(t), T = w && (/Mobile\/\w+/.test(t) || navigator.maxTouchPoints > 2), P = /Android/.test(t), R = T || P || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t), I = T || /Mac/.test(n), L = /\bCrOS\b/.test(t), A = /win/i.test(n), M = C && t.match(/Version\/(\d*\.\d*)/);
|
|
21809
21809
|
M && (M = Number(M[1])), M && M >= 15 && (C = !1, h = !0);
|
|
21810
21810
|
var O = I && (g || C && (M == null || M < 12.11)), F = r || d && u >= 9;
|
|
@@ -27918,7 +27918,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27918
27918
|
}(Xd)), Xd.exports;
|
|
27919
27919
|
}
|
|
27920
27920
|
var yE;
|
|
27921
|
-
function
|
|
27921
|
+
function tW() {
|
|
27922
27922
|
return yE || (yE = 1, function(i, e) {
|
|
27923
27923
|
(function(t) {
|
|
27924
27924
|
t(Wo());
|
|
@@ -28620,7 +28620,7 @@ function t4() {
|
|
|
28620
28620
|
});
|
|
28621
28621
|
}()), mE.exports;
|
|
28622
28622
|
}
|
|
28623
|
-
|
|
28623
|
+
tW();
|
|
28624
28624
|
var SE = { exports: {} }, bE;
|
|
28625
28625
|
function $I() {
|
|
28626
28626
|
return bE || (bE = 1, function(i, e) {
|
|
@@ -28733,7 +28733,7 @@ function $I() {
|
|
|
28733
28733
|
}
|
|
28734
28734
|
$I();
|
|
28735
28735
|
var wE = { exports: {} }, CE;
|
|
28736
|
-
function
|
|
28736
|
+
function nW() {
|
|
28737
28737
|
return CE || (CE = 1, function(i, e) {
|
|
28738
28738
|
(function(t) {
|
|
28739
28739
|
t(Wo(), $I());
|
|
@@ -28834,9 +28834,9 @@ function n4() {
|
|
|
28834
28834
|
});
|
|
28835
28835
|
}()), wE.exports;
|
|
28836
28836
|
}
|
|
28837
|
-
|
|
28837
|
+
nW();
|
|
28838
28838
|
var xE = { exports: {} }, EE;
|
|
28839
|
-
function
|
|
28839
|
+
function iW() {
|
|
28840
28840
|
return EE || (EE = 1, function(i, e) {
|
|
28841
28841
|
(function(t) {
|
|
28842
28842
|
t(Wo());
|
|
@@ -28931,10 +28931,10 @@ function i4() {
|
|
|
28931
28931
|
});
|
|
28932
28932
|
}()), xE.exports;
|
|
28933
28933
|
}
|
|
28934
|
-
|
|
28935
|
-
var
|
|
28936
|
-
const cs = /* @__PURE__ */ Qe(
|
|
28937
|
-
class
|
|
28934
|
+
iW();
|
|
28935
|
+
var rW = Wo();
|
|
28936
|
+
const cs = /* @__PURE__ */ Qe(rW), sW = 100;
|
|
28937
|
+
class aW extends Ah {
|
|
28938
28938
|
constructor(e) {
|
|
28939
28939
|
super(), this.viewer = e, this.parsedValue = null, this.debouncedValueUpdater = it(() => {
|
|
28940
28940
|
const s = this.textEditor.getValue();
|
|
@@ -28962,7 +28962,7 @@ class a4 extends Ah {
|
|
|
28962
28962
|
}]
|
|
28963
28963
|
});
|
|
28964
28964
|
}
|
|
28965
|
-
},
|
|
28965
|
+
}, sW), this.content.classList.add("neuroglancer-state-editor");
|
|
28966
28966
|
const t = this.applyButton = document.createElement("button");
|
|
28967
28967
|
t.textContent = "Apply changes", this.content.appendChild(t), t.addEventListener("click", () => this.applyChanges()), t.disabled = !0;
|
|
28968
28968
|
const n = this.closeButton = document.createElement("button");
|
|
@@ -28993,7 +28993,7 @@ class a4 extends Ah {
|
|
|
28993
28993
|
}
|
|
28994
28994
|
}
|
|
28995
28995
|
var Bd = {}, kE;
|
|
28996
|
-
function
|
|
28996
|
+
function oW() {
|
|
28997
28997
|
if (kE) return Bd;
|
|
28998
28998
|
kE = 1, Bd.__esModule = !0;
|
|
28999
28999
|
var i = eT(), e = t(i);
|
|
@@ -29004,8 +29004,8 @@ function o4() {
|
|
|
29004
29004
|
return Array.isArray(n) ? n : (0, e.default)(n);
|
|
29005
29005
|
}, Bd;
|
|
29006
29006
|
}
|
|
29007
|
-
var
|
|
29008
|
-
const
|
|
29007
|
+
var lW = oW();
|
|
29008
|
+
const cW = /* @__PURE__ */ Qe(lW), dW = {
|
|
29009
29009
|
side: "bottom",
|
|
29010
29010
|
size: 100,
|
|
29011
29011
|
minSize: 50,
|
|
@@ -29014,9 +29014,9 @@ const c4 = /* @__PURE__ */ Qe(l4), d4 = {
|
|
|
29014
29014
|
flex: 1,
|
|
29015
29015
|
visible: !1
|
|
29016
29016
|
};
|
|
29017
|
-
class
|
|
29017
|
+
class uW {
|
|
29018
29018
|
constructor() {
|
|
29019
|
-
this.location = new Ds(
|
|
29019
|
+
this.location = new Ds(dW);
|
|
29020
29020
|
}
|
|
29021
29021
|
get changed() {
|
|
29022
29022
|
return this.location.changed;
|
|
@@ -29031,7 +29031,7 @@ class u4 {
|
|
|
29031
29031
|
return No(this.location.toJSON());
|
|
29032
29032
|
}
|
|
29033
29033
|
}
|
|
29034
|
-
function
|
|
29034
|
+
function hW(i) {
|
|
29035
29035
|
const e = new ce();
|
|
29036
29036
|
function t(n, r) {
|
|
29037
29037
|
if (typeof n != "object") {
|
|
@@ -29043,7 +29043,7 @@ function h4(i) {
|
|
|
29043
29043
|
}
|
|
29044
29044
|
return t(i, ""), e;
|
|
29045
29045
|
}
|
|
29046
|
-
function
|
|
29046
|
+
function fW(i) {
|
|
29047
29047
|
const e = new Ge();
|
|
29048
29048
|
e.add(".type");
|
|
29049
29049
|
const t = new Ge();
|
|
@@ -29074,7 +29074,7 @@ function f4(i) {
|
|
|
29074
29074
|
}
|
|
29075
29075
|
return Te(e);
|
|
29076
29076
|
}
|
|
29077
|
-
function
|
|
29077
|
+
function pW(i, e) {
|
|
29078
29078
|
const t = {};
|
|
29079
29079
|
for (const n of e) {
|
|
29080
29080
|
const r = i.get(n);
|
|
@@ -29085,14 +29085,14 @@ function p4(i, e) {
|
|
|
29085
29085
|
}
|
|
29086
29086
|
return re(t);
|
|
29087
29087
|
}
|
|
29088
|
-
function
|
|
29088
|
+
function gW(i) {
|
|
29089
29089
|
return H({ type: i.RPC_TYPE_ID }, i.key || {});
|
|
29090
29090
|
}
|
|
29091
|
-
function
|
|
29092
|
-
const e = i.map(
|
|
29093
|
-
return e.map((n) =>
|
|
29091
|
+
function mW(i) {
|
|
29092
|
+
const e = i.map(hW), t = fW(e);
|
|
29093
|
+
return e.map((n) => pW(n, t));
|
|
29094
29094
|
}
|
|
29095
|
-
const
|
|
29095
|
+
const vW = 1e3, Wg = [{
|
|
29096
29096
|
label: "Visible chunks/T",
|
|
29097
29097
|
key: "visibleChunksTotal",
|
|
29098
29098
|
getter: (i) => {
|
|
@@ -29126,7 +29126,7 @@ const v4 = 1e3, Wg = [{
|
|
|
29126
29126
|
key: "downloadLatency",
|
|
29127
29127
|
getter: (i) => i[jC(fu.totalTime)] / i[jC(fu.totalChunks)]
|
|
29128
29128
|
}];
|
|
29129
|
-
class
|
|
29129
|
+
class yW extends ua {
|
|
29130
29130
|
constructor(e, t, n) {
|
|
29131
29131
|
super(e, n.location), this.chunkQueueManager = t, this.displayState = n, this.data = void 0, this.requestDataTimerId = -1, this.dataRequested = !1, this.body = document.createElement("div"), this.debouncedUpdateView = this.registerCancellable(it(() => this.updateView(), 0));
|
|
29132
29132
|
const r = this.body;
|
|
@@ -29141,7 +29141,7 @@ class y4 extends ua {
|
|
|
29141
29141
|
this.dataRequested = !0, e.getStatistics().then((t) => {
|
|
29142
29142
|
this.dataRequested = !1, this.data = t, this.debouncedUpdateView(), this.requestDataTimerId = window.setTimeout(() => {
|
|
29143
29143
|
this.requestDataTimerId = -1, this.requestData();
|
|
29144
|
-
},
|
|
29144
|
+
}, vW);
|
|
29145
29145
|
});
|
|
29146
29146
|
}
|
|
29147
29147
|
updateView() {
|
|
@@ -29157,7 +29157,7 @@ class y4 extends ua {
|
|
|
29157
29157
|
}
|
|
29158
29158
|
n.push(v);
|
|
29159
29159
|
}
|
|
29160
|
-
const s =
|
|
29160
|
+
const s = mW(n.map((u) => gW(u[0]))), a = new ce();
|
|
29161
29161
|
s.forEach((u, h) => {
|
|
29162
29162
|
a.set(n[h][0], u);
|
|
29163
29163
|
});
|
|
@@ -29199,7 +29199,7 @@ class y4 extends ua {
|
|
|
29199
29199
|
}
|
|
29200
29200
|
const l = document.createElement("tbody");
|
|
29201
29201
|
for (const u of n) {
|
|
29202
|
-
var d =
|
|
29202
|
+
var d = cW(u);
|
|
29203
29203
|
const h = d[0], g = d.slice(1), v = document.createElement("tr"), y = (C) => {
|
|
29204
29204
|
const w = document.createElement("td");
|
|
29205
29205
|
w.textContent = C, v.appendChild(w);
|
|
@@ -29253,7 +29253,7 @@ class gS extends X {
|
|
|
29253
29253
|
s += r > 0 ? 1 : r < 0 ? -1 : 0, s = (s + 256) % 256, n[0] = s / 256, wu(n, n[0], n[1], n[2]), this.model.value = n;
|
|
29254
29254
|
}
|
|
29255
29255
|
}
|
|
29256
|
-
class
|
|
29256
|
+
class SW extends X {
|
|
29257
29257
|
constructor(e, t = {}) {
|
|
29258
29258
|
super(), this.model = e, this.element = document.createElement("label"), this.inputElement = document.createElement("input");
|
|
29259
29259
|
let n = t.validator, r = t.label;
|
|
@@ -29315,10 +29315,10 @@ class GI extends X {
|
|
|
29315
29315
|
this.updateView();
|
|
29316
29316
|
}
|
|
29317
29317
|
}
|
|
29318
|
-
const
|
|
29319
|
-
class
|
|
29318
|
+
const bW = H(H({}, da), { side: "left", row: 2 });
|
|
29319
|
+
class wW {
|
|
29320
29320
|
constructor() {
|
|
29321
|
-
this.location = new Ds(
|
|
29321
|
+
this.location = new Ds(bW);
|
|
29322
29322
|
}
|
|
29323
29323
|
get changed() {
|
|
29324
29324
|
return this.location.changed;
|
|
@@ -29333,7 +29333,7 @@ class w4 {
|
|
|
29333
29333
|
this.location.restoreState(e);
|
|
29334
29334
|
}
|
|
29335
29335
|
}
|
|
29336
|
-
class
|
|
29336
|
+
class CW extends ua {
|
|
29337
29337
|
constructor(e, t, n) {
|
|
29338
29338
|
super(e, t.location), this.addTitleBar({ title: "Settings" });
|
|
29339
29339
|
const r = document.createElement("div");
|
|
@@ -29345,7 +29345,7 @@ class C4 extends ua {
|
|
|
29345
29345
|
u.element.placeholder = "Title", u.element.classList.add("neuroglancer-settings-title"), s.appendChild(u.element);
|
|
29346
29346
|
}
|
|
29347
29347
|
const a = (u, h) => {
|
|
29348
|
-
const g = this.registerDisposer(new
|
|
29348
|
+
const g = this.registerDisposer(new SW(h, { label: u }));
|
|
29349
29349
|
g.element.classList.add("neuroglancer-settings-limit-widget"), s.appendChild(g.element);
|
|
29350
29350
|
};
|
|
29351
29351
|
a("GPU memory limit", n.chunkQueueManager.capacities.gpuMemory.sizeLimit), a("System memory limit", n.chunkQueueManager.capacities.systemMemory.sizeLimit), a("Concurrent chunk requests", n.chunkQueueManager.capacities.download.itemLimit);
|
|
@@ -29365,7 +29365,7 @@ class C4 extends ua {
|
|
|
29365
29365
|
d("Cross-section background", n.crossSectionBackgroundColor), d("Projection background", n.perspectiveViewBackgroundColor);
|
|
29366
29366
|
}
|
|
29367
29367
|
}
|
|
29368
|
-
class
|
|
29368
|
+
class xW extends X {
|
|
29369
29369
|
constructor(e, t) {
|
|
29370
29370
|
super(), this.selectedLayer = e, this.toolBinder = t, this.element = document.createElement("div"), this.viewContext = void 0, this.updateView = this.registerCancellable(dt(() => {
|
|
29371
29371
|
let r = this.viewContext;
|
|
@@ -29422,16 +29422,22 @@ class x4 extends X {
|
|
|
29422
29422
|
return n.appendChild(r), n.appendChild(l), n;
|
|
29423
29423
|
}
|
|
29424
29424
|
}
|
|
29425
|
-
function
|
|
29425
|
+
function EW(i) {
|
|
29426
29426
|
return encodeURI(i).replace(/[!'()*;,]/g, function(e) {
|
|
29427
29427
|
return "%" + e.charCodeAt(0).toString(16).toUpperCase();
|
|
29428
29428
|
});
|
|
29429
29429
|
}
|
|
29430
|
-
class
|
|
29430
|
+
class kW extends X {
|
|
29431
29431
|
constructor(e, t, n = "") {
|
|
29432
29432
|
super(), this.gl = e, this.frameNumberCounter = t;
|
|
29433
29433
|
const r = n + "chunk_worker.bundle.js";
|
|
29434
|
-
this.worker = typeof n == "string" ? new Worker(r) : n,
|
|
29434
|
+
this.worker = typeof n == "string" ? new Worker(r) : n, typeof n != "string" && this.worker.addEventListener("message", (s) => {
|
|
29435
|
+
if (s.data?.functionName === "Worker" && s.data?.path === "async_computation.bundle.js") {
|
|
29436
|
+
s.stopImmediatePropagation();
|
|
29437
|
+
const a = n.AsyncComputationWorker;
|
|
29438
|
+
a && new a().postMessage({ port: s.data.port }, [s.data.port]);
|
|
29439
|
+
}
|
|
29440
|
+
}, !0), this.chunkQueueManager = this.registerDisposer(new Mm(new VV(this.worker), this.gl, this.frameNumberCounter, {
|
|
29435
29441
|
gpuMemory: new Ld({ defaultItemLimit: 1e6, defaultSizeLimit: 1e9 }),
|
|
29436
29442
|
systemMemory: new Ld({ defaultItemLimit: 1e7, defaultSizeLimit: 2e9 }),
|
|
29437
29443
|
download: new Ld({ defaultItemLimit: 100, defaultSizeLimit: Number.POSITIVE_INFINITY }),
|
|
@@ -29443,20 +29449,20 @@ class k4 extends X {
|
|
|
29443
29449
|
}
|
|
29444
29450
|
}
|
|
29445
29451
|
const WI = ["showHelpButton", "showSettingsButton", "showEditStateButton", "showLayerListPanelButton", "showSelectionPanelButton", "showLayerSidePanelButton", "showLocation", "showAnnotationToolStatus"], HI = [...WI, "showLayerPanel", "showLayerHoverValues"], qI = [...HI, "showUIControls", "showPanelBorders"];
|
|
29446
|
-
function
|
|
29452
|
+
function TW() {
|
|
29447
29453
|
return Object.fromEntries(qI.map((i) => [i, new Ut(!0)]));
|
|
29448
29454
|
}
|
|
29449
|
-
function
|
|
29455
|
+
function LW(i, e) {
|
|
29450
29456
|
for (const t of qI) {
|
|
29451
29457
|
const n = e[t];
|
|
29452
29458
|
n !== void 0 && (i[t].value = n);
|
|
29453
29459
|
}
|
|
29454
29460
|
}
|
|
29455
|
-
const
|
|
29461
|
+
const DW = typeof NEUROGLANCER_OVERRIDE_DEFAULT_VIEWER_OPTIONS < "u" ? NEUROGLANCER_OVERRIDE_DEFAULT_VIEWER_OPTIONS : {
|
|
29456
29462
|
showLayerDialog: !0,
|
|
29457
29463
|
resetStateWhenEmpty: !0
|
|
29458
29464
|
};
|
|
29459
|
-
class
|
|
29465
|
+
class IW extends mh {
|
|
29460
29466
|
constructor(e) {
|
|
29461
29467
|
super(), this.viewer = e, this.add("title", e.title), this.add("dimensions", e.coordinateSpace), this.add("relativeDisplayScales", e.relativeDisplayScales), this.add("displayDimensions", e.displayDimensions), this.add("position", e.position), this.add("crossSectionOrientation", e.crossSectionOrientation), this.add("crossSectionScale", e.crossSectionScale), this.add("crossSectionDepth", e.crossSectionDepthRange), this.add("projectionOrientation", e.projectionOrientation), this.add("projectionScale", e.projectionScale), this.add("projectionDepth", e.projectionDepthRange), this.add("layers", e.layerSpecification), this.add("showAxisLines", e.showAxisLines), this.add("wireFrame", e.wireFrame), this.add("showScaleBar", e.showScaleBar), this.add("showDefaultAnnotations", e.showDefaultAnnotations), this.add("showSlices", e.showPerspectiveSliceViews), this.add("gpuMemoryLimit", e.dataContext.chunkQueueManager.capacities.gpuMemory.sizeLimit), this.add("prefetch", e.dataContext.chunkQueueManager.enablePrefetch), this.add("systemMemoryLimit", e.dataContext.chunkQueueManager.capacities.systemMemory.sizeLimit), this.add("concurrentDownloads", e.dataContext.chunkQueueManager.capacities.download.itemLimit), this.add("selectedLayer", e.selectedLayer), this.add("crossSectionBackgroundColor", e.crossSectionBackgroundColor), this.add("projectionBackgroundColor", e.perspectiveViewBackgroundColor), this.add("layout", e.layout), this.add("statistics", e.statisticsDisplayState), this.add("helpPanel", e.helpPanelState), this.add("settingsPanel", e.settingsPanelState), this.add("selection", e.selectionDetailsState), this.add("layerListPanel", e.layerListPanelState), this.add("partialViewport", e.partialViewport), this.add("selectedStateServer", e.selectedStateServer);
|
|
29462
29468
|
}
|
|
@@ -29484,13 +29490,13 @@ class I4 extends mh {
|
|
|
29484
29490
|
const ps = {
|
|
29485
29491
|
expectingExternalUI: !1
|
|
29486
29492
|
};
|
|
29487
|
-
class
|
|
29493
|
+
class PW extends X {
|
|
29488
29494
|
constructor(e, t = {}) {
|
|
29489
|
-
super(), this.display = e, this.title = new Kt(void 0, Le), this.coordinateSpace = new py(), this.position = this.registerDisposer(new Js(this.coordinateSpace)), this.relativeDisplayScales = this.registerDisposer(new xD(this.coordinateSpace)), this.displayDimensions = this.registerDisposer(new kD(this.coordinateSpace)), this.displayDimensionRenderInfo = this.registerDisposer(new ED(this.relativeDisplayScales.addRef(), this.displayDimensions.addRef())), this.crossSectionOrientation = this.registerDisposer(new wo()), this.crossSectionScale = this.registerDisposer(new L3(this.displayDimensionRenderInfo.addRef())), this.projectionOrientation = this.registerDisposer(new wo()), this.crossSectionDepthRange = this.registerDisposer(new $m(-10, this.displayDimensionRenderInfo)), this.projectionDepthRange = this.registerDisposer(new $m(-50, this.displayDimensionRenderInfo)), this.projectionScale = this.registerDisposer(new D3(this.displayDimensionRenderInfo.addRef())), this.navigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.crossSectionOrientation.addRef()), this.crossSectionScale.addRef(), this.crossSectionDepthRange.addRef())), this.perspectiveNavigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.projectionOrientation.addRef()), this.projectionScale.addRef(), this.projectionDepthRange.addRef())), this.mouseState = new
|
|
29495
|
+
super(), this.display = e, this.title = new Kt(void 0, Le), this.coordinateSpace = new py(), this.position = this.registerDisposer(new Js(this.coordinateSpace)), this.relativeDisplayScales = this.registerDisposer(new xD(this.coordinateSpace)), this.displayDimensions = this.registerDisposer(new kD(this.coordinateSpace)), this.displayDimensionRenderInfo = this.registerDisposer(new ED(this.relativeDisplayScales.addRef(), this.displayDimensions.addRef())), this.crossSectionOrientation = this.registerDisposer(new wo()), this.crossSectionScale = this.registerDisposer(new L3(this.displayDimensionRenderInfo.addRef())), this.projectionOrientation = this.registerDisposer(new wo()), this.crossSectionDepthRange = this.registerDisposer(new $m(-10, this.displayDimensionRenderInfo)), this.projectionDepthRange = this.registerDisposer(new $m(-50, this.displayDimensionRenderInfo)), this.projectionScale = this.registerDisposer(new D3(this.displayDimensionRenderInfo.addRef())), this.navigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.crossSectionOrientation.addRef()), this.crossSectionScale.addRef(), this.crossSectionDepthRange.addRef())), this.perspectiveNavigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.projectionOrientation.addRef()), this.projectionScale.addRef(), this.projectionDepthRange.addRef())), this.mouseState = new MW(), this.layerManager = this.registerDisposer(new jI()), this.selectedLayer = this.registerDisposer(new zW(this.layerManager.addRef())), this.showAxisLines = new Ut(!0, !0), this.wireFrame = new Ut(!1, !1), this.showScaleBar = new Ut(!0, !0), this.showPerspectiveSliceViews = new Ut(!0, !0), this.visibleLayerRoles = GV(), this.showDefaultAnnotations = new Ut(!0, !0), this.crossSectionBackgroundColor = new su(lt(0.5, 0.5, 0.5)), this.perspectiveViewBackgroundColor = new su(lt(0, 0, 0)), this.scaleBarOptions = new y$(), this.partialViewport = new gV(), this.statisticsDisplayState = new uW(), this.helpPanelState = new dG(), this.settingsPanelState = new wW(), this.layerSelectedValues = this.registerDisposer(new NW(this.layerManager, this.mouseState)), this.selectionDetailsState = this.registerDisposer(new OW(this.coordinateSpace, this.layerSelectedValues)), this.selectedStateServer = new Kt("", Le), this.layerListPanelState = new JG(), this.resetInitiated = new be(), this.makeUrlFromState = (P) => ps.expectingExternalUI ? "/#!" + EW(re(P)) : window.location.toString(), this.uiControlVisibility = {}, this.visible = !0, this.toolInputEventMapBinder = (P, R) => {
|
|
29490
29496
|
R.registerDisposer(this.inputEventBindings.sliceView.addParent(P, Number.POSITIVE_INFINITY)), R.registerDisposer(this.inputEventBindings.perspectiveView.addParent(P, Number.POSITIVE_INFINITY));
|
|
29491
29497
|
}, this.toolBinder = this.registerDisposer(new Fz(this.toolInputEventMapBinder));
|
|
29492
29498
|
var n = t.dataContext;
|
|
29493
|
-
const r = n === void 0 ? new
|
|
29499
|
+
const r = n === void 0 ? new kW(e.gl, e, t.bundleRoot) : n;
|
|
29494
29500
|
var s = t.visibility;
|
|
29495
29501
|
const a = s === void 0 ? new Mt(Mt.VISIBLE) : s;
|
|
29496
29502
|
var l = t.inputEventBindings;
|
|
@@ -29504,16 +29510,16 @@ class P4 extends X {
|
|
|
29504
29510
|
var g = t.dataSourceProvider;
|
|
29505
29511
|
const v = g === void 0 ? J$({ credentialsManager: $o }) : g;
|
|
29506
29512
|
var y = t.uiConfiguration;
|
|
29507
|
-
const C = y === void 0 ?
|
|
29513
|
+
const C = y === void 0 ? TW() : y;
|
|
29508
29514
|
this.visibility = a, this.inputEventBindings = d, this.element = h, this.dataSourceProvider = v, this.uiConfiguration = C, this.registerDisposer(Tr((P) => {
|
|
29509
29515
|
this.display.applyWindowedViewportToElement(h, P);
|
|
29510
|
-
}, this.partialViewport)), this.registerDisposer(() => Et(this.element)), this.dataContext = this.registerDisposer(r),
|
|
29511
|
-
const w = H(H({},
|
|
29516
|
+
}, this.partialViewport)), this.registerDisposer(() => Et(this.element)), this.dataContext = this.registerDisposer(r), LW(C, t);
|
|
29517
|
+
const w = H(H({}, DW), t), b = w.resetStateWhenEmpty, E = w.showLayerDialog;
|
|
29512
29518
|
for (const P of HI)
|
|
29513
29519
|
this.uiControlVisibility[P] = this.makeUiControlVisibilityState(P);
|
|
29514
29520
|
this.registerDisposer(this.uiConfiguration.showPanelBorders.changed.add(() => {
|
|
29515
29521
|
this.updateShowBorders();
|
|
29516
|
-
})), this.showLayerDialog = E, this.resetStateWhenEmpty = b, this.layerSpecification = new
|
|
29522
|
+
})), this.showLayerDialog = E, this.resetStateWhenEmpty = b, this.layerSpecification = new WW(this.display, this.dataSourceProvider, this.layerManager, this.chunkManager, this.selectionDetailsState, this.selectedLayer, this.navigationState.coordinateSpace, this.navigationState.pose.position, this.toolBinder), this.registerDisposer(e.updateStarted.add(() => {
|
|
29517
29523
|
this.onUpdateDisplay();
|
|
29518
29524
|
})), this.showDefaultAnnotations.changed.add(() => {
|
|
29519
29525
|
this.showDefaultAnnotations.value ? this.visibleLayerRoles.add(ui.DEFAULT_ANNOTATION) : this.visibleLayerRoles.delete(ui.DEFAULT_ANNOTATION);
|
|
@@ -29527,7 +29533,7 @@ class P4 extends X {
|
|
|
29527
29533
|
this.layerSelectedValues.handleLayerChange();
|
|
29528
29534
|
})), this.registerDisposer(this.dataContext.chunkQueueManager.visibleChunksChanged.add(() => {
|
|
29529
29535
|
this.visible && e.scheduleRedraw();
|
|
29530
|
-
})), this.makeUI(), this.updateShowBorders(), this.registerActionListeners(), this.registerEventActionBindings(), this.registerDisposer(VI(h, this.navigationState.position)), this.state = new
|
|
29536
|
+
})), this.makeUI(), this.updateShowBorders(), this.registerActionListeners(), this.registerEventActionBindings(), this.registerDisposer(VI(h, this.navigationState.position)), this.state = new IW(this);
|
|
29531
29537
|
}
|
|
29532
29538
|
get chunkManager() {
|
|
29533
29539
|
return this.dataContext.chunkManager;
|
|
@@ -29568,7 +29574,7 @@ class P4 extends X {
|
|
|
29568
29574
|
g.style.marginRight = "5px", g.href = u, g.textContent = h, g.style.fontFamily = "sans-serif", g.style.color = "yellow", g.target = "_blank", t.appendChild(g);
|
|
29569
29575
|
}
|
|
29570
29576
|
}
|
|
29571
|
-
const s = this.registerDisposer(new
|
|
29577
|
+
const s = this.registerDisposer(new xW(this.selectedLayer, this.toolBinder));
|
|
29572
29578
|
if (t.appendChild(s.element), this.registerDisposer(new ti(this.uiControlVisibility.showAnnotationToolStatus, s.element)), sG) {
|
|
29573
29579
|
const l = this.registerDisposer(new aG(this));
|
|
29574
29580
|
t.appendChild(l.element);
|
|
@@ -29653,7 +29659,7 @@ class P4 extends X {
|
|
|
29653
29659
|
l.panel instanceof x1 && l.panel.close();
|
|
29654
29660
|
}, this.registerDisposer(this.sidePanelManager.registerPanel({
|
|
29655
29661
|
location: this.statisticsDisplayState.location,
|
|
29656
|
-
makePanel: () => new
|
|
29662
|
+
makePanel: () => new yW(this.sidePanelManager, this.chunkQueueManager, this.statisticsDisplayState)
|
|
29657
29663
|
})), this.registerDisposer(this.sidePanelManager.registerPanel({
|
|
29658
29664
|
location: this.helpPanelState.location,
|
|
29659
29665
|
makePanel: () => {
|
|
@@ -29662,7 +29668,7 @@ class P4 extends X {
|
|
|
29662
29668
|
}
|
|
29663
29669
|
})), this.registerDisposer(this.sidePanelManager.registerPanel({
|
|
29664
29670
|
location: this.settingsPanelState.location,
|
|
29665
|
-
makePanel: () => new
|
|
29671
|
+
makePanel: () => new CW(this.sidePanelManager, this.settingsPanelState, this)
|
|
29666
29672
|
}));
|
|
29667
29673
|
const a = () => {
|
|
29668
29674
|
const l = this.visibility.visible;
|
|
@@ -29741,7 +29747,7 @@ class P4 extends X {
|
|
|
29741
29747
|
this.toolBinder.activate(e);
|
|
29742
29748
|
}
|
|
29743
29749
|
editJsonState() {
|
|
29744
|
-
new
|
|
29750
|
+
new aW(this);
|
|
29745
29751
|
}
|
|
29746
29752
|
copyJsonStateToUrl() {
|
|
29747
29753
|
Jn(this.makeUrlFromState(this.state.toJSON()));
|
|
@@ -29762,8 +29768,8 @@ class P4 extends X {
|
|
|
29762
29768
|
}
|
|
29763
29769
|
}
|
|
29764
29770
|
}
|
|
29765
|
-
const TE = "tool", LE = "toolBindings", Hg = "localPosition", DE = "localDimensions", IE = "source",
|
|
29766
|
-
class
|
|
29771
|
+
const TE = "tool", LE = "toolBindings", Hg = "localPosition", DE = "localDimensions", IE = "source", RW = "transform", PE = "pick";
|
|
29772
|
+
class AW {
|
|
29767
29773
|
constructor() {
|
|
29768
29774
|
this.callbacks = [];
|
|
29769
29775
|
}
|
|
@@ -29884,7 +29890,7 @@ class Ho extends X {
|
|
|
29884
29890
|
}
|
|
29885
29891
|
getDataSourceSpecifications(e) {
|
|
29886
29892
|
let t, n = Y(e, IE, (s) => Array.isArray(s) ? s.map((a) => Gl(a)) : typeof s == "object" ? [Gl(s)] : (t = s, []));
|
|
29887
|
-
const r = Y(e,
|
|
29893
|
+
const r = Y(e, RW, jO);
|
|
29888
29894
|
return n.push(...this.getLegacyDataSourceSpecifications(t, e, r, n)), n = n.filter((s) => s.url), n.length === 0 && n.push(fD()), n;
|
|
29889
29895
|
}
|
|
29890
29896
|
restoreState(e) {
|
|
@@ -29923,7 +29929,7 @@ class Ho extends X {
|
|
|
29923
29929
|
return e;
|
|
29924
29930
|
}
|
|
29925
29931
|
toJSON() {
|
|
29926
|
-
return H({ type: this.type, [IE]:
|
|
29932
|
+
return H({ type: this.type, [IE]: _W(this.dataSources), [TE]: this.tool.toJSON(), [LE]: this.toolBinder.toJSON(), [DE]: this.localCoordinateSpace.toJSON(), [Hg]: this.localPosition.toJSON(), [PE]: this.pick.toJSON() }, this.panels.toJSON());
|
|
29927
29933
|
}
|
|
29928
29934
|
// Derived classes should override.
|
|
29929
29935
|
handleAction(e, t) {
|
|
@@ -29940,7 +29946,7 @@ class Ho extends X {
|
|
|
29940
29946
|
}
|
|
29941
29947
|
}
|
|
29942
29948
|
Ho.supportsPickOption = !1;
|
|
29943
|
-
function
|
|
29949
|
+
function _W(i) {
|
|
29944
29950
|
if (i.length !== 0)
|
|
29945
29951
|
return i.length === 1 ? i[0].toJSON() : i.map((e) => e.toJSON());
|
|
29946
29952
|
}
|
|
@@ -30150,7 +30156,7 @@ class jI extends X {
|
|
|
30150
30156
|
};
|
|
30151
30157
|
}
|
|
30152
30158
|
invokeAction(e, t) {
|
|
30153
|
-
const n = new
|
|
30159
|
+
const n = new AW();
|
|
30154
30160
|
for (let r of this.managedLayers) {
|
|
30155
30161
|
if (r.layer === null || !r.visible || t !== void 0 && r !== t)
|
|
30156
30162
|
continue;
|
|
@@ -30163,7 +30169,7 @@ class jI extends X {
|
|
|
30163
30169
|
r();
|
|
30164
30170
|
}
|
|
30165
30171
|
}
|
|
30166
|
-
class
|
|
30172
|
+
class MW {
|
|
30167
30173
|
constructor() {
|
|
30168
30174
|
this.changed = new be(), this.coordinateSpace = Pr, this.position = uo, this.unsnappedPosition = uo, this.active = !1, this.displayDimensions = void 0, this.pickedRenderLayer = null, this.pickedValue = new te(0, 0), this.pickedOffset = 0, this.pickedAnnotationLayer = void 0, this.pickedAnnotationId = void 0, this.pickedAnnotationBuffer = void 0, this.pickedAnnotationBufferBaseOffset = void 0, this.pickedAnnotationIndex = void 0, this.pickedAnnotationCount = void 0, this.pickedAnnotationType = void 0, this.forcerFunction = void 0;
|
|
30169
30175
|
}
|
|
@@ -30181,7 +30187,7 @@ class M4 {
|
|
|
30181
30187
|
(this.active !== e || e === !0) && (this.active = e, this.changed.dispatch());
|
|
30182
30188
|
}
|
|
30183
30189
|
}
|
|
30184
|
-
class
|
|
30190
|
+
class NW extends X {
|
|
30185
30191
|
constructor(e, t) {
|
|
30186
30192
|
super(), this.layerManager = e, this.mouseState = t, this.changed = new be(), this.needsUpdate = !0, this.registerDisposer(t.changed.add(() => {
|
|
30187
30193
|
this.handleChange();
|
|
@@ -30234,7 +30240,7 @@ class N4 extends X {
|
|
|
30234
30240
|
}
|
|
30235
30241
|
}
|
|
30236
30242
|
const RE = 10, cv = H(H({}, da), { minSize: 150, row: 1 }), AE = H(H({}, cv), { visible: !0 });
|
|
30237
|
-
class
|
|
30243
|
+
class OW extends X {
|
|
30238
30244
|
constructor(e, t) {
|
|
30239
30245
|
super(), this.coordinateSpace = e, this.layerSelectedValues = t, this.changed = new be(), this.history = [], this.historyIndex = 0, this.location = new Ds(cv), this.pin = new ct(!0), this.registerDisposer(Ir((n, r) => {
|
|
30240
30246
|
r || (this.capture(!0), n.registerDisposer(t.changed.add(n.registerCancellable(gh(() => this.capture(!0), 100, { leading: !0, trailing: !0 })))));
|
|
@@ -30300,7 +30306,7 @@ class O4 extends X {
|
|
|
30300
30306
|
e && (this.location.visible = !0), t.value = !t.value, t.value && this.capture();
|
|
30301
30307
|
}
|
|
30302
30308
|
capture(e = !1) {
|
|
30303
|
-
const t =
|
|
30309
|
+
const t = VW(this.layerSelectedValues);
|
|
30304
30310
|
e && t === void 0 || (this.value = t);
|
|
30305
30311
|
}
|
|
30306
30312
|
restoreState(e) {
|
|
@@ -30330,7 +30336,7 @@ class O4 extends X {
|
|
|
30330
30336
|
}), this.pin.value = r.length > 0 || n !== void 0, this.value = { position: n, coordinateSpace: t, layers: r };
|
|
30331
30337
|
}
|
|
30332
30338
|
}
|
|
30333
|
-
function
|
|
30339
|
+
function VW(i) {
|
|
30334
30340
|
const e = i.mouseState;
|
|
30335
30341
|
if (!e.active) return;
|
|
30336
30342
|
const t = [];
|
|
@@ -30351,13 +30357,13 @@ function V4(i) {
|
|
|
30351
30357
|
layers: t
|
|
30352
30358
|
};
|
|
30353
30359
|
}
|
|
30354
|
-
class
|
|
30360
|
+
class BW extends X {
|
|
30355
30361
|
constructor(e) {
|
|
30356
30362
|
super(), this.view = e, this.messages = new Oo(), this.seenGeneration = -1, this.state = void 0;
|
|
30357
30363
|
}
|
|
30358
30364
|
}
|
|
30359
|
-
let
|
|
30360
|
-
class
|
|
30365
|
+
let FW = 0;
|
|
30366
|
+
class UW extends X {
|
|
30361
30367
|
constructor(e, t, n, r, s, a) {
|
|
30362
30368
|
super(), this.layerManager = e, this.renderLayerType = t, this.view = n, this.roles = r, this.layerAdded = s, this.visibility = a, this.visibleLayers_ = new ce(), this.debouncedUpdateVisibleLayers = this.registerCancellable(it(() => this.updateVisibleLayers(), 0)), this.registerDisposer(e.layersChanged.add(this.debouncedUpdateVisibleLayers)), this.registerDisposer(r.changed.add(this.debouncedUpdateVisibleLayers)), this.updateVisibleLayers();
|
|
30363
30369
|
}
|
|
@@ -30365,11 +30371,11 @@ class U4 extends X {
|
|
|
30365
30371
|
this.visibleLayers.forEach((e) => e.dispose()), this.visibleLayers.clear(), super.disposed();
|
|
30366
30372
|
}
|
|
30367
30373
|
updateVisibleLayers() {
|
|
30368
|
-
const e = ++
|
|
30374
|
+
const e = ++FW, t = this.visibleLayers_, n = this.renderLayerType, r = this.layerAdded, s = this.roles;
|
|
30369
30375
|
for (let l of this.layerManager.readyRenderLayers())
|
|
30370
30376
|
if (l instanceof n && s.has(l.role)) {
|
|
30371
30377
|
let d = l, u = t.get(d);
|
|
30372
|
-
u === void 0 && (u = new
|
|
30378
|
+
u === void 0 && (u = new BW(this.view), u.registerDisposer(d.messages.addChild(u.messages)), u.registerDisposer(d.addRef()), u.registerDisposer(d.visibility.add(this.visibility)), t.set(d, u), r(d, u), d.attach(u)), u.seenGeneration = e;
|
|
30373
30379
|
}
|
|
30374
30380
|
for (const l of t) {
|
|
30375
30381
|
var a = ae(l, 2);
|
|
@@ -30382,13 +30388,13 @@ class U4 extends X {
|
|
|
30382
30388
|
}
|
|
30383
30389
|
}
|
|
30384
30390
|
function JI(i, e, t, n, r) {
|
|
30385
|
-
return n.registerDisposer(new
|
|
30391
|
+
return n.registerDisposer(new UW(i, e, n, t, (s, a) => {
|
|
30386
30392
|
a.registerDisposer(s.redrawNeeded.add(() => n.scheduleRedraw()));
|
|
30387
30393
|
const l = s.backend;
|
|
30388
30394
|
l && (l.rpc.invoke(yV, { layer: l.rpcId, view: n.rpcId }), a.registerDisposer(() => l.rpc.invoke(SV, { layer: l.rpcId, view: n.rpcId }))), n.scheduleRedraw(), a.registerDisposer(() => n.scheduleRedraw());
|
|
30389
30395
|
}, n.visibility));
|
|
30390
30396
|
}
|
|
30391
|
-
class
|
|
30397
|
+
class zW extends X {
|
|
30392
30398
|
constructor(e) {
|
|
30393
30399
|
super(), this.layerManager = e, this.changed = new be(), this.location = new Ds(_z), this.registerDisposer(e), this.location.changed.add(() => {
|
|
30394
30400
|
var t, n;
|
|
@@ -30470,7 +30476,7 @@ class z4 extends X {
|
|
|
30470
30476
|
this.location.reset(), this.layer = void 0;
|
|
30471
30477
|
}
|
|
30472
30478
|
}
|
|
30473
|
-
class $
|
|
30479
|
+
class $W extends X {
|
|
30474
30480
|
constructor(e, t) {
|
|
30475
30481
|
super(), this.layerManager = e, this.filter = t, this.changed = new be(), this.validate = it(() => {
|
|
30476
30482
|
const n = this.layerName_;
|
|
@@ -30605,7 +30611,7 @@ function XI(i, e) {
|
|
|
30605
30611
|
throw jo(i), t;
|
|
30606
30612
|
}
|
|
30607
30613
|
}
|
|
30608
|
-
function
|
|
30614
|
+
function GW(i, e) {
|
|
30609
30615
|
try {
|
|
30610
30616
|
XI(i, e);
|
|
30611
30617
|
} catch (t) {
|
|
@@ -30621,7 +30627,7 @@ class QI extends X {
|
|
|
30621
30627
|
super(...arguments), this.changed = new be();
|
|
30622
30628
|
}
|
|
30623
30629
|
}
|
|
30624
|
-
class
|
|
30630
|
+
class WW extends QI {
|
|
30625
30631
|
constructor(e, t, n, r, s, a, l, d, u) {
|
|
30626
30632
|
super(), this.display = e, this.dataSourceProviderRegistry = t, this.layerManager = n, this.chunkManager = r, this.selectionState = s, this.selectedLayer = a, this.coordinateSpace = l, this.globalPosition = d, this.toolBinder = u, this.coordinateSpaceCombiner = new yy(this.coordinateSpace, $O), this.subsets = new Ge(), this.layerSelectedValues = this.selectionState.layerSelectedValues, this.registerDisposer(n.layersChanged.add(this.changed.dispatch)), this.registerDisposer(n.specificationChanged.add(this.changed.dispatch));
|
|
30627
30633
|
}
|
|
@@ -30756,7 +30762,7 @@ function jo(i) {
|
|
|
30756
30762
|
function dv(i, e) {
|
|
30757
30763
|
return i === void 0 ? e : e === void 0 ? i : i.priority < e.priority ? e : i;
|
|
30758
30764
|
}
|
|
30759
|
-
function
|
|
30765
|
+
function HW(i) {
|
|
30760
30766
|
let e;
|
|
30761
30767
|
for (const n of tP)
|
|
30762
30768
|
e = dv(e, n(i));
|
|
@@ -30771,7 +30777,7 @@ function rP(i) {
|
|
|
30771
30777
|
let e;
|
|
30772
30778
|
for (const t of i) {
|
|
30773
30779
|
const r = t.subsourceEntry.subsource;
|
|
30774
|
-
e = dv(e,
|
|
30780
|
+
e = dv(e, HW(r));
|
|
30775
30781
|
}
|
|
30776
30782
|
return e;
|
|
30777
30783
|
}
|
|
@@ -30801,14 +30807,14 @@ qo(bS);
|
|
|
30801
30807
|
function ME(i, e) {
|
|
30802
30808
|
return e = Hi(e, 3432918353) >>> 0, e = (e << 15 | e >>> 17) >>> 0, e = Hi(e, 461845907) >>> 0, i ^= e, i = (i << 13 | i >>> 19) >>> 0, i = Hi(i, 5) + 3864292196 >>> 0, i;
|
|
30803
30809
|
}
|
|
30804
|
-
function
|
|
30810
|
+
function qW(i, e) {
|
|
30805
30811
|
return i ^= e, i ^= i >>> 16, i = Hi(i, 2246822507) >>> 0, i ^= i >>> 13, i *= 3266489909, i ^= i >>> 16, i >>> 0;
|
|
30806
30812
|
}
|
|
30807
30813
|
function aP(i, e, t) {
|
|
30808
30814
|
let n = i;
|
|
30809
|
-
return n = ME(n, e), n = ME(n, t),
|
|
30815
|
+
return n = ME(n, e), n = ME(n, t), qW(n, 8);
|
|
30810
30816
|
}
|
|
30811
|
-
class
|
|
30817
|
+
class jW extends Or {
|
|
30812
30818
|
constructor(e, t) {
|
|
30813
30819
|
super(e, t), this.properties = t.properties;
|
|
30814
30820
|
}
|
|
@@ -30816,7 +30822,7 @@ class j4 extends Or {
|
|
|
30816
30822
|
return { properties: e.properties };
|
|
30817
30823
|
}
|
|
30818
30824
|
}
|
|
30819
|
-
function
|
|
30825
|
+
function JW(i, e, t) {
|
|
30820
30826
|
const n = i.length - 1;
|
|
30821
30827
|
for (; ; ) {
|
|
30822
30828
|
if (e = e & n, i[e] === 0) {
|
|
@@ -30829,11 +30835,11 @@ function J4(i, e, t) {
|
|
|
30829
30835
|
function Au(i, e) {
|
|
30830
30836
|
return e <= 255 ? new Uint8Array(i) : e <= 65535 ? new Uint16Array(i) : new Uint32Array(i);
|
|
30831
30837
|
}
|
|
30832
|
-
function
|
|
30838
|
+
function KW(i) {
|
|
30833
30839
|
const e = i.length / 2, n = 2 ** (Math.ceil(Un(e)) + 1), r = Au(n, e + 1);
|
|
30834
30840
|
for (let s = 0; s < e; ++s) {
|
|
30835
30841
|
const a = i[2 * s], l = i[2 * s + 1];
|
|
30836
|
-
|
|
30842
|
+
JW(r, aP(
|
|
30837
30843
|
/*seed=*/
|
|
30838
30844
|
0,
|
|
30839
30845
|
a,
|
|
@@ -30842,7 +30848,7 @@ function K4(i) {
|
|
|
30842
30848
|
}
|
|
30843
30849
|
return r;
|
|
30844
30850
|
}
|
|
30845
|
-
function
|
|
30851
|
+
function YW(i, e, t, n) {
|
|
30846
30852
|
let r = aP(
|
|
30847
30853
|
/*seed=*/
|
|
30848
30854
|
0,
|
|
@@ -30864,16 +30870,16 @@ class oP {
|
|
|
30864
30870
|
this.inlineProperties = e.inlineProperties;
|
|
30865
30871
|
}
|
|
30866
30872
|
}
|
|
30867
|
-
class
|
|
30873
|
+
class XW {
|
|
30868
30874
|
constructor(e) {
|
|
30869
30875
|
var t;
|
|
30870
30876
|
this.segmentPropertyMap = e;
|
|
30871
30877
|
const n = e.inlineProperties;
|
|
30872
|
-
n !== void 0 && (this.inlineIdToIndex =
|
|
30878
|
+
n !== void 0 && (this.inlineIdToIndex = KW(n.ids)), this.tags = n?.properties.find((r) => r.type === "tags"), this.labels = n?.properties.find((r) => r.type === "label"), this.numericalProperties = (t = n?.properties.filter((r) => r.type === "number")) !== null && t !== void 0 ? t : [];
|
|
30873
30879
|
}
|
|
30874
30880
|
getSegmentInlineIndex(e) {
|
|
30875
30881
|
const t = this.inlineIdToIndex;
|
|
30876
|
-
return t === void 0 ? -1 :
|
|
30882
|
+
return t === void 0 ? -1 : YW(t, this.segmentPropertyMap.inlineProperties.ids, e.low, e.high);
|
|
30877
30883
|
}
|
|
30878
30884
|
getSegmentLabel(e) {
|
|
30879
30885
|
const t = this.getSegmentInlineIndex(e);
|
|
@@ -30896,7 +30902,7 @@ function lP(i, e, t) {
|
|
|
30896
30902
|
for (let n = 0, r = t.length; n < r; ++n)
|
|
30897
30903
|
e[t[n]] = i[n];
|
|
30898
30904
|
}
|
|
30899
|
-
function
|
|
30905
|
+
function ZW(i) {
|
|
30900
30906
|
const e = i.length;
|
|
30901
30907
|
if (e === 0) return !0;
|
|
30902
30908
|
let t = i[0], n = i[1];
|
|
@@ -30907,9 +30913,9 @@ function Z4(i) {
|
|
|
30907
30913
|
}
|
|
30908
30914
|
return !0;
|
|
30909
30915
|
}
|
|
30910
|
-
function
|
|
30916
|
+
function QW(i) {
|
|
30911
30917
|
const e = i.ids;
|
|
30912
|
-
if (
|
|
30918
|
+
if (ZW(e))
|
|
30913
30919
|
return i;
|
|
30914
30920
|
const t = e.length / 2, n = Au(t, t - 1);
|
|
30915
30921
|
for (let a = 0; a < t; ++a)
|
|
@@ -30931,19 +30937,19 @@ function Q4(i) {
|
|
|
30931
30937
|
});
|
|
30932
30938
|
return { ids: r, properties: s };
|
|
30933
30939
|
}
|
|
30934
|
-
function
|
|
30940
|
+
function e4(i, e, t) {
|
|
30935
30941
|
const n = new Array(e);
|
|
30936
30942
|
return n.fill(""), lP(i.values, n, t), H(H({}, i), { values: n });
|
|
30937
30943
|
}
|
|
30938
|
-
function
|
|
30944
|
+
function t4(i, e, t) {
|
|
30939
30945
|
const n = new Float32Array(e);
|
|
30940
30946
|
return n.fill(Number.NaN), lP(i.values, n, t), H(H({}, i), { values: n });
|
|
30941
30947
|
}
|
|
30942
30948
|
function NE(i, e, t) {
|
|
30943
30949
|
const n = i.type;
|
|
30944
|
-
return n === "label" || n === "description" || n === "string" || n === "tags" ?
|
|
30950
|
+
return n === "label" || n === "description" || n === "string" || n === "tags" ? e4(i, e, t) : t4(i, e, t);
|
|
30945
30951
|
}
|
|
30946
|
-
function
|
|
30952
|
+
function n4(i, e) {
|
|
30947
30953
|
if (i === void 0) return e;
|
|
30948
30954
|
if (e === void 0) return i;
|
|
30949
30955
|
let t = 0;
|
|
@@ -30987,32 +30993,32 @@ function nW(i, e) {
|
|
|
30987
30993
|
h.push(NE(g, t, a));
|
|
30988
30994
|
return { ids: u, properties: h };
|
|
30989
30995
|
}
|
|
30990
|
-
function
|
|
30996
|
+
function i4(i, e) {
|
|
30991
30997
|
return new oP({
|
|
30992
|
-
inlineProperties:
|
|
30998
|
+
inlineProperties: n4(i.inlineProperties, e.inlineProperties)
|
|
30993
30999
|
});
|
|
30994
31000
|
}
|
|
30995
|
-
function
|
|
31001
|
+
function r4(i) {
|
|
30996
31002
|
for (; ; ) {
|
|
30997
31003
|
if (i.length === 0) return;
|
|
30998
31004
|
if (i.length === 1) return i[0];
|
|
30999
31005
|
const e = [];
|
|
31000
31006
|
for (let t = 0, n = i.length; t < n; t += 2)
|
|
31001
|
-
t + 1 === n ? e.push(i[t]) : e.push(
|
|
31007
|
+
t + 1 === n ? e.push(i[t]) : e.push(i4(i[t], i[t + 1]));
|
|
31002
31008
|
i = e;
|
|
31003
31009
|
}
|
|
31004
31010
|
}
|
|
31005
|
-
function
|
|
31011
|
+
function s4(i, e) {
|
|
31006
31012
|
return i.memoize.getUncounted({ id: "getPreprocessedSegmentPropertyMap", maps: e.map((t) => ln(t)) }, () => {
|
|
31007
|
-
const t =
|
|
31013
|
+
const t = r4(e);
|
|
31008
31014
|
if (t !== void 0)
|
|
31009
|
-
return new
|
|
31015
|
+
return new XW(t);
|
|
31010
31016
|
});
|
|
31011
31017
|
}
|
|
31012
|
-
const
|
|
31013
|
-
function
|
|
31018
|
+
const a4 = /^[,\s]*[0-9]+(?:[,\s]+[0-9]+)*[,\s]*$/;
|
|
31019
|
+
function o4(i, e) {
|
|
31014
31020
|
var t;
|
|
31015
|
-
if (e.match(
|
|
31021
|
+
if (e.match(a4) !== null) {
|
|
31016
31022
|
const g = e.split(/[\s,]+/), v = [], y = new Ge();
|
|
31017
31023
|
for (let C = 0, w = g.length; C < w; ++C) {
|
|
31018
31024
|
const b = g[C];
|
|
@@ -31185,7 +31191,7 @@ function oW(i, e) {
|
|
|
31185
31191
|
function qg(i) {
|
|
31186
31192
|
return "\\u" + i.toString(16).padStart(4, "0");
|
|
31187
31193
|
}
|
|
31188
|
-
function
|
|
31194
|
+
function l4(i, e) {
|
|
31189
31195
|
var t;
|
|
31190
31196
|
if (e.errors !== void 0)
|
|
31191
31197
|
return { query: e, total: -1, count: 0, errors: e.errors };
|
|
@@ -31308,7 +31314,7 @@ function lW(i, e) {
|
|
|
31308
31314
|
total: s
|
|
31309
31315
|
};
|
|
31310
31316
|
}
|
|
31311
|
-
function
|
|
31317
|
+
function c4(i, e, t) {
|
|
31312
31318
|
const r = e.values;
|
|
31313
31319
|
var s = ae(t, 2);
|
|
31314
31320
|
const a = s[0], l = s[1], d = l <= a ? 0 : 256 / (l - a), u = new Uint32Array(258), h = i.query.numericalConstraints, g = h.findIndex((v) => v.fieldId === e.id);
|
|
@@ -31328,7 +31334,7 @@ function cW(i, e, t) {
|
|
|
31328
31334
|
}
|
|
31329
31335
|
return { queryResult: i, histogram: u, window: t };
|
|
31330
31336
|
}
|
|
31331
|
-
function
|
|
31337
|
+
function d4(i, e, t, n) {
|
|
31332
31338
|
if (i === void 0) {
|
|
31333
31339
|
t.length = 0, n.length = 0;
|
|
31334
31340
|
return;
|
|
@@ -31340,13 +31346,13 @@ function dW(i, e, t, n) {
|
|
|
31340
31346
|
}
|
|
31341
31347
|
for (let l = 0; l < s; ++l) {
|
|
31342
31348
|
const d = t[l], u = n[l], h = r[l];
|
|
31343
|
-
d !== void 0 && d.queryResult === e && xr(h.dataType, d.window, u) || (t[l] =
|
|
31349
|
+
d !== void 0 && d.queryResult === e && xr(h.dataType, d.window, u) || (t[l] = c4(e, h, u));
|
|
31344
31350
|
}
|
|
31345
31351
|
}
|
|
31346
31352
|
function cP(i) {
|
|
31347
31353
|
return i?.tags || i?.labels ? "label" : "id";
|
|
31348
31354
|
}
|
|
31349
|
-
function
|
|
31355
|
+
function u4(i, e) {
|
|
31350
31356
|
var t = e;
|
|
31351
31357
|
const n = t.ids;
|
|
31352
31358
|
if (n !== void 0)
|
|
@@ -31411,7 +31417,7 @@ function Zd(i, e, t) {
|
|
|
31411
31417
|
}
|
|
31412
31418
|
}
|
|
31413
31419
|
}
|
|
31414
|
-
function
|
|
31420
|
+
function h4(i, e, t) {
|
|
31415
31421
|
if (t.size === 0) return 0;
|
|
31416
31422
|
let n = 0;
|
|
31417
31423
|
return Zd(i, e, (r) => {
|
|
@@ -31422,7 +31428,7 @@ function OE(i, e, t, n) {
|
|
|
31422
31428
|
const r = i.includeTags.filter((a) => a !== e), s = i.excludeTags.filter((a) => a !== e);
|
|
31423
31429
|
return n === !0 && (t ? r : s).push(e), H(H({}, i), { includeTags: r, excludeTags: s });
|
|
31424
31430
|
}
|
|
31425
|
-
function
|
|
31431
|
+
function f4(i) {
|
|
31426
31432
|
return i.ids !== void 0 ? !1 : i.errors !== void 0 ? !0 : !(i.numericalConstraints.length > 0 || i.includeTags.length > 0 || i.excludeTags.length > 0 || i.prefix || i.regexp);
|
|
31427
31433
|
}
|
|
31428
31434
|
function wS(i, e) {
|
|
@@ -31439,11 +31445,11 @@ function Jg(i) {
|
|
|
31439
31445
|
e[Er] = t, e = i, i = e[Er];
|
|
31440
31446
|
return t;
|
|
31441
31447
|
}
|
|
31442
|
-
function
|
|
31448
|
+
function p4(i, e) {
|
|
31443
31449
|
let t = i[Qd], n = e[Qd];
|
|
31444
31450
|
return t > n ? (e[Er] = i, i) : (i[Er] = e, t === n && (e[Qd] = n + 1), e);
|
|
31445
31451
|
}
|
|
31446
|
-
function
|
|
31452
|
+
function g4(i, e) {
|
|
31447
31453
|
let t = i[Vl], n = e[Vl];
|
|
31448
31454
|
e[Vl] = t, t[_u] = e, i[Vl] = n, n[_u] = i;
|
|
31449
31455
|
}
|
|
@@ -31453,7 +31459,7 @@ function* VE(i) {
|
|
|
31453
31459
|
yield e, e = e[_u];
|
|
31454
31460
|
while (e !== i);
|
|
31455
31461
|
}
|
|
31456
|
-
function
|
|
31462
|
+
function m4(i) {
|
|
31457
31463
|
i[Er] = i, i[Qd] = 0, i[_u] = i[Vl] = i;
|
|
31458
31464
|
}
|
|
31459
31465
|
const qa = Kn("disjoint_sets:min");
|
|
@@ -31478,7 +31484,7 @@ class dP {
|
|
|
31478
31484
|
}
|
|
31479
31485
|
makeSet(e) {
|
|
31480
31486
|
let t = e.toString(), n = this.map, r = n.get(t);
|
|
31481
|
-
return r === void 0 ? (r = e.clone(),
|
|
31487
|
+
return r === void 0 ? (r = e.clone(), m4(r), r[qa] = r, n.set(t, r), r) : Jg(r);
|
|
31482
31488
|
}
|
|
31483
31489
|
/**
|
|
31484
31490
|
* Union the sets containing `a` and `b`.
|
|
@@ -31488,8 +31494,8 @@ class dP {
|
|
|
31488
31494
|
if (e = this.makeSet(e), t = this.makeSet(t), e === t)
|
|
31489
31495
|
return !1;
|
|
31490
31496
|
this.generation++;
|
|
31491
|
-
let n =
|
|
31492
|
-
|
|
31497
|
+
let n = p4(e, t);
|
|
31498
|
+
g4(e, t);
|
|
31493
31499
|
let r = e[qa], s = t[qa];
|
|
31494
31500
|
const a = (this.visibleSegmentEquivalencePolicy.value & Di.MAX_REPRESENTATIVE) !== 0;
|
|
31495
31501
|
return n[qa] = te.less(r, s) === a ? s : r, !0;
|
|
@@ -31563,13 +31569,13 @@ class dP {
|
|
|
31563
31569
|
* See the License for the specific language governing permissions and
|
|
31564
31570
|
* limitations under the License.
|
|
31565
31571
|
*/
|
|
31566
|
-
var
|
|
31572
|
+
var v4 = function(i, e, t, n) {
|
|
31567
31573
|
var r = arguments.length, s = r < 3 ? e : n === null ? n = Ai(e, t) : n, a;
|
|
31568
31574
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(i, e, t, n);
|
|
31569
31575
|
else for (var l = i.length - 1; l >= 0; l--) (a = i[l]) && (s = (r < 3 ? a(s) : r > 3 ? a(e, t, s) : a(e, t)) || s);
|
|
31570
31576
|
return r > 3 && s && Ri(e, t, s), s;
|
|
31571
31577
|
}, uv;
|
|
31572
|
-
const
|
|
31578
|
+
const y4 = "DisjointUint64Sets", uP = "DisjointUint64Sets.add", hP = "DisjointUint64Sets.clear", fP = "DisjointUint64Sets.highBitRepresentativeChanged", pP = "DisjointUint64Sets.deleteSet";
|
|
31573
31579
|
let cc = uv = class extends lh {
|
|
31574
31580
|
constructor() {
|
|
31575
31581
|
super(...arguments), this.disjointSets = new dP(), this.changed = new be();
|
|
@@ -31649,7 +31655,7 @@ let cc = uv = class extends lh {
|
|
|
31649
31655
|
}
|
|
31650
31656
|
}
|
|
31651
31657
|
};
|
|
31652
|
-
cc = uv =
|
|
31658
|
+
cc = uv = v4([ch(y4)], cc);
|
|
31653
31659
|
const so = new te(), Kg = new te();
|
|
31654
31660
|
kt(uP, function(i) {
|
|
31655
31661
|
let e = this.get(i.id);
|
|
@@ -31670,7 +31676,7 @@ kt(pP, function(i) {
|
|
|
31670
31676
|
let e = this.get(i.id);
|
|
31671
31677
|
so.low = i.l, so.high = i.h, e.disjointSets.deleteSet(so) && e.changed.dispatch();
|
|
31672
31678
|
});
|
|
31673
|
-
class
|
|
31679
|
+
class S4 extends bF {
|
|
31674
31680
|
constructor() {
|
|
31675
31681
|
super(...arguments), this.spanningTreeEdges = new ce(), this.equivalences = new cc(), this.connections = new Ge(), this.changed = new Ze();
|
|
31676
31682
|
}
|
|
@@ -31786,7 +31792,7 @@ class SW extends bF {
|
|
|
31786
31792
|
};
|
|
31787
31793
|
}
|
|
31788
31794
|
connect(e) {
|
|
31789
|
-
const t = new
|
|
31795
|
+
const t = new b4(this, e);
|
|
31790
31796
|
return e.segmentEquivalences.assignFrom(this.equivalences), Yg(e.visibleSegments, e.segmentEquivalences.disjointSets), t.registerDisposer(e.visibleSegments.changed.add(t.registerCancellable(it(() => Yg(e.visibleSegments, e.segmentEquivalences.disjointSets), 0)))), this.connections.add(t), t.registerDisposer(() => {
|
|
31791
31797
|
this.connections.delete(t);
|
|
31792
31798
|
}), t;
|
|
@@ -31801,7 +31807,7 @@ function Yg(i, e) {
|
|
|
31801
31807
|
for (const n of t)
|
|
31802
31808
|
i.add(n);
|
|
31803
31809
|
}
|
|
31804
|
-
class
|
|
31810
|
+
class b4 extends wF {
|
|
31805
31811
|
computeSplit(e, t) {
|
|
31806
31812
|
return this.graph.computeSplit(e, t);
|
|
31807
31813
|
}
|
|
@@ -31820,7 +31826,7 @@ function UE(i) {
|
|
|
31820
31826
|
dataType: t
|
|
31821
31827
|
});
|
|
31822
31828
|
}
|
|
31823
|
-
function
|
|
31829
|
+
function w4(i) {
|
|
31824
31830
|
if (i.compressedSegmentationBlockSize !== void 0 || i.volumeType !== mn.SEGMENTATION && !i.volumeSourceOptions.discreteValues)
|
|
31825
31831
|
return !1;
|
|
31826
31832
|
switch (i.dataType) {
|
|
@@ -31839,9 +31845,9 @@ function wW(i) {
|
|
|
31839
31845
|
return !1;
|
|
31840
31846
|
}
|
|
31841
31847
|
}
|
|
31842
|
-
function
|
|
31848
|
+
function C4(i) {
|
|
31843
31849
|
let e = i.rank, t = i.lowerVoxelBound, n = i.upperVoxelBound;
|
|
31844
|
-
if (!
|
|
31850
|
+
if (!w4(i))
|
|
31845
31851
|
return UE(i);
|
|
31846
31852
|
var r = i.volumeSourceOptions;
|
|
31847
31853
|
let s = r.displayRank, a = r.multiscaleToViewTransform, l = i.chunkToMultiscaleTransform, d = i.chunkToViewTransform;
|
|
@@ -31900,7 +31906,7 @@ function $c(i) {
|
|
|
31900
31906
|
minBlockSize: d,
|
|
31901
31907
|
chunkToViewTransform: l,
|
|
31902
31908
|
displayRank: n
|
|
31903
|
-
})) : g).map((y) =>
|
|
31909
|
+
})) : g).map((y) => C4(H(H({}, i), { chunkDataSize: y, chunkToViewTransform: l })));
|
|
31904
31910
|
}
|
|
31905
31911
|
/**
|
|
31906
31912
|
* @license
|
|
@@ -31917,14 +31923,14 @@ function $c(i) {
|
|
|
31917
31923
|
* See the License for the specific language governing permissions and
|
|
31918
31924
|
* limitations under the License.
|
|
31919
31925
|
*/
|
|
31920
|
-
const
|
|
31921
|
-
function
|
|
31926
|
+
const x4 = Ne(), E4 = Ne(), zE = 1e-3, k4 = 1e-3;
|
|
31927
|
+
function T4(i) {
|
|
31922
31928
|
let e = 0;
|
|
31923
31929
|
for (var t = 0; t < 3; ++t)
|
|
31924
31930
|
i[t] < 0 && (e += 1 << t);
|
|
31925
31931
|
return e;
|
|
31926
31932
|
}
|
|
31927
|
-
const gP = new Float32Array([0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1]),
|
|
31933
|
+
const gP = new Float32Array([0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1]), L4 = (() => {
|
|
31928
31934
|
const i = [0, 1, 2, 4, 5, 3, 6, 7], e = [0, 1, 2, 5, 3, 4, 6, 7], t = [0, 1, 1, 4, 4, 7, 4, 7, 1, 5, 0, 1, 1, 4, 4, 7, 0, 2, 2, 5, 5, 7, 5, 7, 2, 6, 0, 2, 2, 5, 5, 7, 0, 3, 3, 6, 6, 7, 6, 7, 3, 4, 0, 3, 3, 6, 6, 7], n = [0, 1, 2, 3, 4, 5, 6, 7, 1, 4, 5, 0, 3, 7, 2, 6, 2, 6, 0, 5, 7, 3, 1, 4, 3, 0, 6, 4, 1, 2, 7, 5, 4, 3, 7, 1, 0, 6, 5, 2, 5, 2, 1, 7, 6, 0, 4, 3, 6, 7, 3, 2, 5, 4, 0, 1, 7, 5, 4, 6, 2, 1, 3, 0], r = new Int32Array(8 * 8 * 6);
|
|
31929
31935
|
for (let s = 0; s < 8; ++s)
|
|
31930
31936
|
for (let a = 0; a < t.length; ++a) {
|
|
@@ -31944,7 +31950,7 @@ vec3 getBoundingBoxPlaneIntersectionVertexPosition(vec3 chunkSize, vec3 boxLower
|
|
|
31944
31950
|
highp vec3 v2 = max(lowerClipBound, min(upperClipBound, chunkSize * uVertexBasePosition[vidx.y] + boxLower));
|
|
31945
31951
|
highp vec3 vDir = v2 - v1;
|
|
31946
31952
|
highp float denom = dot(vDir, uPlaneNormal);
|
|
31947
|
-
if (abs(denom) > ${
|
|
31953
|
+
if (abs(denom) > ${k4}) {
|
|
31948
31954
|
highp float lambda = (planeDistance - dot(v1, uPlaneNormal)) / denom;
|
|
31949
31955
|
if ((lambda >= -${zE}) && (lambda <= (1.0 + ${zE}))) {
|
|
31950
31956
|
lambda = clamp(lambda, 0.0, 1.0);
|
|
@@ -31960,17 +31966,17 @@ vec3 getBoundingBoxPlaneIntersectionVertexPosition(vec3 chunkSize, vec3 boxLower
|
|
|
31960
31966
|
}
|
|
31961
31967
|
`);
|
|
31962
31968
|
}
|
|
31963
|
-
function
|
|
31969
|
+
function D4(i, e, t) {
|
|
31964
31970
|
const n = i.gl;
|
|
31965
31971
|
n.uniform3fv(i.uniform("uPlaneNormal"), e), n.uniform1f(i.uniform("uPlaneDistance"), t);
|
|
31966
|
-
const r =
|
|
31967
|
-
n.uniform2iv(i.uniform("uVertexIndex"),
|
|
31972
|
+
const r = T4(e);
|
|
31973
|
+
n.uniform2iv(i.uniform("uVertexIndex"), L4.subarray(r * 48, (r + 1) * 48));
|
|
31968
31974
|
}
|
|
31969
31975
|
function CS(i, e, t, n, r) {
|
|
31970
|
-
const s = bT(
|
|
31976
|
+
const s = bT(x4, e, n);
|
|
31971
31977
|
nu(s, s);
|
|
31972
|
-
const a = iy(ai(
|
|
31973
|
-
|
|
31978
|
+
const a = iy(ai(E4, t, r), s);
|
|
31979
|
+
D4(i, s, a);
|
|
31974
31980
|
}
|
|
31975
31981
|
/**
|
|
31976
31982
|
* @license
|
|
@@ -31987,8 +31993,8 @@ function CS(i, e, t, n, r) {
|
|
|
31987
31993
|
* See the License for the specific language governing permissions and
|
|
31988
31994
|
* limitations under the License.
|
|
31989
31995
|
*/
|
|
31990
|
-
const
|
|
31991
|
-
function
|
|
31996
|
+
const I4 = 1e-3, P4 = Je();
|
|
31997
|
+
function R4(i, e) {
|
|
31992
31998
|
if (Ar(i), Mu(i), i.addUniform("highp vec3", "uTranslation"), i.addUniform("highp mat4", "uProjectionMatrix"), i.addUniform("highp vec3", "uChunkDataSize"), i.addUniform("highp vec3", "uLowerClipBound"), i.addUniform("highp vec3", "uUpperClipBound"), e) {
|
|
31993
31999
|
tr(i), i.setVertexMain(`
|
|
31994
32000
|
int vertexIndex1 = gl_VertexID / ${hs};
|
|
@@ -32008,10 +32014,10 @@ vec3 position = getBoundingBoxPlaneIntersectionVertexPosition(uChunkDataSize, uT
|
|
|
32008
32014
|
gl_Position = uProjectionMatrix * vec4(position, 1.0);
|
|
32009
32015
|
gl_Position.z = 0.0;
|
|
32010
32016
|
vChunkPosition = (position - uTranslation) +
|
|
32011
|
-
${
|
|
32017
|
+
${I4} * abs(uPlaneNormal);
|
|
32012
32018
|
`);
|
|
32013
32019
|
}
|
|
32014
|
-
function
|
|
32020
|
+
function A4(i, e, t) {
|
|
32015
32021
|
t && ir(
|
|
32016
32022
|
i,
|
|
32017
32023
|
e,
|
|
@@ -32019,17 +32025,17 @@ function AW(i, e, t) {
|
|
|
32019
32025
|
1
|
|
32020
32026
|
);
|
|
32021
32027
|
}
|
|
32022
|
-
function
|
|
32028
|
+
function _4(i, e, t, n, r, s) {
|
|
32023
32029
|
const a = t.projectionParameters.value, l = a.centerDataPosition;
|
|
32024
|
-
CS(e, a.viewportNormalInGlobalCoordinates, l, s.transform, s.invTransform), i.uniformMatrix4fv(e.uniform("uProjectionMatrix"), !1, en(
|
|
32030
|
+
CS(e, a.viewportNormalInGlobalCoordinates, l, s.transform, s.invTransform), i.uniformMatrix4fv(e.uniform("uProjectionMatrix"), !1, en(P4, n, s.transform)), i.uniform3fv(e.uniform("uLowerClipBound"), r.lowerClipDisplayBound), i.uniform3fv(e.uniform("uUpperClipBound"), r.upperClipDisplayBound);
|
|
32025
32031
|
}
|
|
32026
|
-
function
|
|
32032
|
+
function M4(i, e, t) {
|
|
32027
32033
|
i.uniform3fv(e.uniform("uChunkDataSize"), t);
|
|
32028
32034
|
}
|
|
32029
|
-
function
|
|
32035
|
+
function N4(i, e, t, n) {
|
|
32030
32036
|
i.uniform3fv(e.uniform("uTranslation"), t), n ? nr(e.gl, 6, 1) : i.drawArrays(i.TRIANGLE_FAN, 0, 6);
|
|
32031
32037
|
}
|
|
32032
|
-
function
|
|
32038
|
+
function O4(i, e, t) {
|
|
32033
32039
|
return i > e ? t > i ? i : e > t ? e : t : t > e ? e : i > t ? i : t;
|
|
32034
32040
|
}
|
|
32035
32041
|
class mP extends By {
|
|
@@ -32051,7 +32057,7 @@ class mP extends By {
|
|
|
32051
32057
|
extraParameters: d,
|
|
32052
32058
|
defineShader: (u, h, g, v) => {
|
|
32053
32059
|
const y = h.chunkFormat, C = h.dataHistogramsEnabled, w = v.dataHistogramChannelSpecifications, b = v.numChannelDimensions;
|
|
32054
|
-
if (
|
|
32060
|
+
if (R4(u, y === null), u.addOutputBuffer("vec4", "v4f_fragData0", 0), u.addFragmentCode(`
|
|
32055
32061
|
void emit(vec4 color) {
|
|
32056
32062
|
v4f_fragData0 = color;
|
|
32057
32063
|
}
|
|
@@ -32117,7 +32123,7 @@ void main() {
|
|
|
32117
32123
|
}
|
|
32118
32124
|
beginChunkFormat(e, t, n) {
|
|
32119
32125
|
const r = this.gl, s = this.dataHistogramSpecifications.visibility.visible, a = this.shaderGetter({ chunkFormat: t, dataHistogramsEnabled: s }), l = a.shader, d = a.parameters, u = a.fallback;
|
|
32120
|
-
if (l !== null && (l.bind(),
|
|
32126
|
+
if (l !== null && (l.bind(), A4(l, n, t === null), t !== null)) {
|
|
32121
32127
|
if (s) {
|
|
32122
32128
|
const g = a.extraParameters.dataHistogramChannelSpecifications.length, v = this.dataHistogramSpecifications.bounds.value;
|
|
32123
32129
|
for (let y = 0; y < g; ++y)
|
|
@@ -32152,7 +32158,7 @@ void main() {
|
|
|
32152
32158
|
y.fill(1);
|
|
32153
32159
|
let M = E.size, O;
|
|
32154
32160
|
const F = P.spec.rank;
|
|
32155
|
-
|
|
32161
|
+
_4(l, g, t, s.viewProjectionMat, b, E), L !== null && L.beginSource(l, g), w = !0;
|
|
32156
32162
|
let q = 0, U = 0;
|
|
32157
32163
|
if (t.forEachVisibleChunk(b, E, (V) => {
|
|
32158
32164
|
let $ = A.get(V);
|
|
@@ -32164,18 +32170,18 @@ void main() {
|
|
|
32164
32170
|
const Ee = I[ne];
|
|
32165
32171
|
y[ne] = Ee === -1 || Ee >= F ? 1 : O[Ee];
|
|
32166
32172
|
}
|
|
32167
|
-
|
|
32173
|
+
M4(l, g, y);
|
|
32168
32174
|
}
|
|
32169
32175
|
const le = $.chunkGridPosition;
|
|
32170
32176
|
for (let ne = 0; ne < 3; ++ne) {
|
|
32171
32177
|
const Ee = I[ne];
|
|
32172
32178
|
d[ne] = Ee === -1 || Ee >= F ? 0 : M[ne] * le[Ee];
|
|
32173
32179
|
}
|
|
32174
|
-
L !== null && L.bindChunk(l, g, $, R, I, T, w), w = !1,
|
|
32180
|
+
L !== null && L.bindChunk(l, g, $, R, I, T, w), w = !1, N4(l, g, d, a), ++q;
|
|
32175
32181
|
} else
|
|
32176
32182
|
++U;
|
|
32177
32183
|
}), (q !== 0 || U !== 0) && u !== void 0) {
|
|
32178
|
-
const V = b.effectiveVoxelSize, $ =
|
|
32184
|
+
const V = b.effectiveVoxelSize, $ = O4(V[0], V[1], V[2]);
|
|
32179
32185
|
u.add($, $ / s.pixelSize, q, U);
|
|
32180
32186
|
}
|
|
32181
32187
|
}
|
|
@@ -32347,7 +32353,7 @@ function Bl(i = 0.5) {
|
|
|
32347
32353
|
* See the License for the specific language governing permissions and
|
|
32348
32354
|
* limitations under the License.
|
|
32349
32355
|
*/
|
|
32350
|
-
const xS = 12, vP = 8,
|
|
32356
|
+
const xS = 12, vP = 8, V4 = 6, B4 = `
|
|
32351
32357
|
vec3 getBoxFaceVertexPosition(int vertexIndex) {
|
|
32352
32358
|
const vec3 vertexPositions[] = vec3[](
|
|
32353
32359
|
// Front face
|
|
@@ -32397,10 +32403,10 @@ vec3 getBoxFaceVertexPosition(int vertexIndex) {
|
|
|
32397
32403
|
return vertexPositions[indices[vertexIndex]];
|
|
32398
32404
|
}
|
|
32399
32405
|
`;
|
|
32400
|
-
function
|
|
32401
|
-
i.drawArraysInstanced(WebGL2RenderingContext.TRIANGLES, 0, 6 *
|
|
32406
|
+
function F4(i, e, t) {
|
|
32407
|
+
i.drawArraysInstanced(WebGL2RenderingContext.TRIANGLES, 0, 6 * V4 * e, t);
|
|
32402
32408
|
}
|
|
32403
|
-
const yP = 0, Nu = yP + 1, hn = Nu + vP, SP = hn + xS,
|
|
32409
|
+
const yP = 0, Nu = yP + 1, hn = Nu + vP, SP = hn + xS, U4 = SP + 6, z4 = Float32Array.from([
|
|
32404
32410
|
// a1
|
|
32405
32411
|
0,
|
|
32406
32412
|
0,
|
|
@@ -32581,17 +32587,17 @@ void setBoundingBoxBorderColor(vec4 color) {
|
|
|
32581
32587
|
}
|
|
32582
32588
|
`);
|
|
32583
32589
|
}
|
|
32584
|
-
function $
|
|
32590
|
+
function $4(i) {
|
|
32585
32591
|
wP(i), i.addVertexCode(`
|
|
32586
32592
|
void setBoundingBoxFillColor(vec4 color) {
|
|
32587
32593
|
vColor = color;
|
|
32588
32594
|
}
|
|
32589
32595
|
`);
|
|
32590
32596
|
}
|
|
32591
|
-
class
|
|
32597
|
+
class G4 extends bP {
|
|
32592
32598
|
constructor() {
|
|
32593
32599
|
super(...arguments), this.edgeBoxCornerOffsetsBuffer = this.registerDisposer(zn.fromData(this.gl, om(
|
|
32594
|
-
|
|
32600
|
+
z4,
|
|
32595
32601
|
/*majorDimension=*/
|
|
32596
32602
|
7,
|
|
32597
32603
|
/*minorTiles=*/
|
|
@@ -32709,7 +32715,7 @@ emitAnnotation(color);
|
|
|
32709
32715
|
this.drawEdges(e), this.drawCorners(e);
|
|
32710
32716
|
}
|
|
32711
32717
|
}
|
|
32712
|
-
let
|
|
32718
|
+
let W4 = class extends bP {
|
|
32713
32719
|
constructor() {
|
|
32714
32720
|
super(...arguments), this.faceShaderGetter = this.getDependentShader("annotation/boundingBox/crossSection/face", (e) => {
|
|
32715
32721
|
const t = this.rank;
|
|
@@ -32744,7 +32750,7 @@ emitAnnotation(vec4(vColor.rgb, vColor.a * getLineAlpha() * vClipCoefficient));
|
|
|
32744
32750
|
`);
|
|
32745
32751
|
}), this.fillShaderGetter = this.getDependentShader("annotation/boundingBox/crossSection/fill", (e) => {
|
|
32746
32752
|
const t = this.rank;
|
|
32747
|
-
super.defineShader(e), Mu(e), e.addVarying("highp float", "vClipCoefficient"), $
|
|
32753
|
+
super.defineShader(e), Mu(e), e.addVarying("highp float", "vClipCoefficient"), $4(e), e.setVertexMain(`
|
|
32748
32754
|
float modelPositionA[${t}] = getBounds0();
|
|
32749
32755
|
float modelPositionB[${t}] = getBounds1();
|
|
32750
32756
|
for (int i = 0; i < ${t}; ++i) {
|
|
@@ -32789,7 +32795,7 @@ emitAnnotation(vec4(vColor.rgb, vColor.a * vClipCoefficient));
|
|
|
32789
32795
|
});
|
|
32790
32796
|
}
|
|
32791
32797
|
};
|
|
32792
|
-
function
|
|
32798
|
+
function H4(i, e) {
|
|
32793
32799
|
const t = i.length;
|
|
32794
32800
|
for (let n = 0; n < t; ++n) {
|
|
32795
32801
|
const r = e[n], s = e[n + t], a = i[n];
|
|
@@ -32797,15 +32803,15 @@ function HW(i, e) {
|
|
|
32797
32803
|
}
|
|
32798
32804
|
}
|
|
32799
32805
|
kc(_e.AXIS_ALIGNED_BOUNDING_BOX, {
|
|
32800
|
-
sliceViewRenderHelper:
|
|
32801
|
-
perspectiveViewRenderHelper:
|
|
32806
|
+
sliceViewRenderHelper: W4,
|
|
32807
|
+
perspectiveViewRenderHelper: G4,
|
|
32802
32808
|
defineShaderNoOpSetters(i) {
|
|
32803
32809
|
CP(i), wP(i);
|
|
32804
32810
|
},
|
|
32805
|
-
pickIdsPerInstance:
|
|
32811
|
+
pickIdsPerInstance: U4,
|
|
32806
32812
|
snapPosition(i, e, t, n) {
|
|
32807
32813
|
const r = i.length, s = new Float32Array(e, t, r * 2);
|
|
32808
|
-
n >= Nu && n < hn &&
|
|
32814
|
+
n >= Nu && n < hn && H4(i, s);
|
|
32809
32815
|
},
|
|
32810
32816
|
getRepresentativePoint(i, e, t) {
|
|
32811
32817
|
t === yP || t >= Nu && t < hn || t >= hn && t < SP, i.set(e.pointA);
|
|
@@ -32819,7 +32825,7 @@ kc(_e.AXIS_ALIGNED_BOUNDING_BOX, {
|
|
|
32819
32825
|
return H(H({}, i), { pointA: a, pointB: l });
|
|
32820
32826
|
}
|
|
32821
32827
|
});
|
|
32822
|
-
const Ja = 0, fv = Ja + 1,
|
|
32828
|
+
const Ja = 0, fv = Ja + 1, q4 = fv + 2;
|
|
32823
32829
|
function xP(i) {
|
|
32824
32830
|
i.addVertexCode(`
|
|
32825
32831
|
void setEndpointMarkerSize(float startSize, float endSize) {}
|
|
@@ -32948,11 +32954,11 @@ emitAnnotation(color);
|
|
|
32948
32954
|
this.drawEdges(e), this.drawEndpoints(e);
|
|
32949
32955
|
}
|
|
32950
32956
|
};
|
|
32951
|
-
function
|
|
32957
|
+
function j4(i, e) {
|
|
32952
32958
|
const t = i.length;
|
|
32953
32959
|
wT(i, e.subarray(0, t), e.subarray(t), i);
|
|
32954
32960
|
}
|
|
32955
|
-
function
|
|
32961
|
+
function J4(i, e, t) {
|
|
32956
32962
|
const n = i.length, r = n * t;
|
|
32957
32963
|
for (let s = 0; s < n; ++s)
|
|
32958
32964
|
i[s] = e[r + s];
|
|
@@ -32963,10 +32969,10 @@ kc(_e.LINE, {
|
|
|
32963
32969
|
defineShaderNoOpSetters(i) {
|
|
32964
32970
|
xP(i), EP(i);
|
|
32965
32971
|
},
|
|
32966
|
-
pickIdsPerInstance:
|
|
32972
|
+
pickIdsPerInstance: q4,
|
|
32967
32973
|
snapPosition(i, e, t, n) {
|
|
32968
32974
|
const r = i.length, s = new Float32Array(e, t, r * 2);
|
|
32969
|
-
n === Ja ?
|
|
32975
|
+
n === Ja ? j4(i, s) : J4(i, s, n - fv);
|
|
32970
32976
|
},
|
|
32971
32977
|
getRepresentativePoint(i, e, t) {
|
|
32972
32978
|
i.set(t === Ja || t === fv ? e.pointA : e.pointB);
|
|
@@ -33164,7 +33170,7 @@ struct EllipseQuadraticForm {
|
|
|
33164
33170
|
highp float E; // y coefficient
|
|
33165
33171
|
highp float F; // 1 coefficient
|
|
33166
33172
|
};
|
|
33167
|
-
`,
|
|
33173
|
+
`, K4 = [kP, `
|
|
33168
33174
|
EllipseQuadraticForm computeCrossSectionEllipse(mat3 A, vec3 c) {
|
|
33169
33175
|
EllipseQuadraticForm p;
|
|
33170
33176
|
p.A = A[0][0];
|
|
@@ -33179,7 +33185,7 @@ EllipseQuadraticForm computeCrossSectionEllipse(mat3 A, vec3 c) {
|
|
|
33179
33185
|
c[1] * c[2] * (A[1][2] + A[2][1]) + c[2] * c[2] * A[2][2] - 1.0;
|
|
33180
33186
|
return p;
|
|
33181
33187
|
}
|
|
33182
|
-
`],
|
|
33188
|
+
`], Y4 = `
|
|
33183
33189
|
struct CenterOrientEllipse {
|
|
33184
33190
|
vec2 k; // center
|
|
33185
33191
|
vec2 u1; // minor axis direction
|
|
@@ -33188,7 +33194,7 @@ struct CenterOrientEllipse {
|
|
|
33188
33194
|
float b; // semiminor axis
|
|
33189
33195
|
bool valid; // indicates if the ellipse is valid
|
|
33190
33196
|
};
|
|
33191
|
-
`,
|
|
33197
|
+
`, X4 = [kP, Y4, `
|
|
33192
33198
|
CenterOrientEllipse computeCenterOrientEllipse(EllipseQuadraticForm p) {
|
|
33193
33199
|
CenterOrientEllipse r;
|
|
33194
33200
|
float a11 = p.A;
|
|
@@ -33279,7 +33285,7 @@ void setEllipsoidFillColor(vec4 color) {
|
|
|
33279
33285
|
});
|
|
33280
33286
|
}
|
|
33281
33287
|
};
|
|
33282
|
-
class
|
|
33288
|
+
class Z4 extends TP {
|
|
33283
33289
|
constructor() {
|
|
33284
33290
|
super(...arguments), this.sphereRenderHelper = this.registerDisposer(new ZD(this.gl, 10, 10)), this.shaderGetter = this.getDependentShader("annotation/ellipsoid/projection", (e) => {
|
|
33285
33291
|
this.defineShader(e), this.sphereRenderHelper.defineShader(e), e.addUniform("highp vec4", "uLightDirection"), e.addUniform("highp mat4", "uNormalTransform"), e.addVarying("highp float", "vClipCoefficient"), e.setVertexMain(`
|
|
@@ -33312,10 +33318,10 @@ emitAnnotation(vec4(vColor.rgb * vLightingFactor, vColor.a * vClipCoefficient));
|
|
|
33312
33318
|
});
|
|
33313
33319
|
}
|
|
33314
33320
|
}
|
|
33315
|
-
class
|
|
33321
|
+
class Q4 extends TP {
|
|
33316
33322
|
constructor() {
|
|
33317
33323
|
super(...arguments), this.shaderGetter = this.getDependentShader("annotation/ellipsoid/crossSection", (e) => {
|
|
33318
|
-
Ar(e), this.defineShader(e), e.addUniform("highp mat4", "uViewportToObject"), e.addUniform("highp mat4", "uObjectToViewport"), e.addUniform("highp mat4", "uViewportToDevice"), e.addAttribute("highp vec2", "aCornerOffset"), e.addVarying("highp vec2", "vCircleCoord"), e.addVarying("highp float", "vClipCoefficient"), e.addVertexCode(
|
|
33324
|
+
Ar(e), this.defineShader(e), e.addUniform("highp mat4", "uViewportToObject"), e.addUniform("highp mat4", "uObjectToViewport"), e.addUniform("highp mat4", "uViewportToDevice"), e.addAttribute("highp vec2", "aCornerOffset"), e.addVarying("highp vec2", "vCircleCoord"), e.addVarying("highp float", "vClipCoefficient"), e.addVertexCode(K4), e.addVertexCode(X4), e.addVertexCode(rS), e.setVertexMain(`
|
|
33319
33325
|
SubspaceParams params = getSubspaceParams();
|
|
33320
33326
|
if (params.cull) {
|
|
33321
33327
|
gl_Position = vec4(2.0, 0.0, 0.0, 1.0);
|
|
@@ -33381,8 +33387,8 @@ emitAnnotation(vec4(vColor.rgb, vColor.a * vClipCoefficient));
|
|
|
33381
33387
|
}
|
|
33382
33388
|
}
|
|
33383
33389
|
kc(_e.ELLIPSOID, {
|
|
33384
|
-
sliceViewRenderHelper:
|
|
33385
|
-
perspectiveViewRenderHelper:
|
|
33390
|
+
sliceViewRenderHelper: Q4,
|
|
33391
|
+
perspectiveViewRenderHelper: Z4,
|
|
33386
33392
|
defineShaderNoOpSetters(i) {
|
|
33387
33393
|
i.addVertexCode(`
|
|
33388
33394
|
void setEllipsoidFillColor(vec4 color) {}
|
|
@@ -35752,12 +35758,12 @@ class OH extends X {
|
|
|
35752
35758
|
if (this.prevQuery === t)
|
|
35753
35759
|
s = r;
|
|
35754
35760
|
else {
|
|
35755
|
-
const b =
|
|
35756
|
-
s =
|
|
35761
|
+
const b = o4(n, t);
|
|
35762
|
+
s = l4(n, b);
|
|
35757
35763
|
}
|
|
35758
35764
|
const a = [];
|
|
35759
35765
|
let l = !1, d = "";
|
|
35760
|
-
const u = this.segmentationDisplayState.segmentationGroupState.value.visibleSegments, h = u.changed.count, g = this.visibleSegmentsGeneration, v =
|
|
35766
|
+
const u = this.segmentationDisplayState.segmentationGroupState.value.visibleSegments, h = u.changed.count, g = this.visibleSegmentsGeneration, v = f4(s.query);
|
|
35761
35767
|
if (v) {
|
|
35762
35768
|
if (g !== h || this.explicitSegments === void 0 || !this.explicitSegmentsVisible) {
|
|
35763
35769
|
this.visibleSegmentsGeneration = h;
|
|
@@ -35778,7 +35784,7 @@ class OH extends X {
|
|
|
35778
35784
|
insertCount: s.count
|
|
35779
35785
|
}), l = !0, this.queryResult.value = s), s.explicitIds !== void 0 ? d = `${s.count} ids` : v ? d = `${s.count} listed ids` : s.total > 0 && (d = `${s.count}/${s.total} matches`), r !== s || h !== g) {
|
|
35780
35786
|
let b = d, E = 0;
|
|
35781
|
-
n !== void 0 && s.count > 0 && (E =
|
|
35787
|
+
n !== void 0 && s.count > 0 && (E = h4(n, s, u), b += ` (${E} visible)`), this.selectedMatches = E, this.statusText.value = b;
|
|
35782
35788
|
}
|
|
35783
35789
|
this.prevQuery = t, this.matchStatusTextPrefix = d;
|
|
35784
35790
|
const w = this.explicitSegments;
|
|
@@ -35914,7 +35920,7 @@ class UH extends X {
|
|
|
35914
35920
|
}
|
|
35915
35921
|
updateHistograms() {
|
|
35916
35922
|
const e = this.queryResult.value;
|
|
35917
|
-
this.listElement !== void 0 && (
|
|
35923
|
+
this.listElement !== void 0 && (d4(this.segmentPropertyMap, e, this.propertyHistograms, this.bounds.window.value), this.updateHistogramRenderings());
|
|
35918
35924
|
}
|
|
35919
35925
|
updateHistogramRenderings() {
|
|
35920
35926
|
this.debouncedRender.cancel();
|
|
@@ -36118,7 +36124,7 @@ class $H extends Br {
|
|
|
36118
36124
|
(d, u, h) => {
|
|
36119
36125
|
const g = (se) => {
|
|
36120
36126
|
r.focus(), r.select();
|
|
36121
|
-
const we =
|
|
36127
|
+
const we = u4(d, se);
|
|
36122
36128
|
document.execCommand("insertText", !1, we), a.value = we, r.select();
|
|
36123
36129
|
}, v = h.registerDisposer(new OH(a, d, e.displayState, u)), y = e.displayState.segmentationGroupState.value, C = document.createElement("ul");
|
|
36124
36130
|
C.classList.add("neuroglancer-segment-query-errors"), u.appendChild(C);
|
|
@@ -37527,7 +37533,7 @@ function h6() {
|
|
|
37527
37533
|
const kv = "selectedAlpha", Tv = "notSelectedAlpha", Lv = "objectAlpha", Dv = "saturation", Iv = "hideSegmentZero", Pv = "baseSegmentColoring", Rv = "ignoreNullVisibleSet", f6 = "mesh", p6 = "skeletons", lk = "segments", Uu = "equivalences", Av = "colorSeed", ck = "segmentColors", _v = "meshRenderScale", Mv = "crossSectionRenderScale", zu = "skeletonRendering", g6 = "skeletonShader", dk = "segmentQuery", Nv = "meshSilhouetteRendering", uk = "linkedSegmentationGroup", hk = "linkedSegmentationColorGroup", Ov = "segmentDefaultColor", fk = "anchorSegment", a2 = "skeletonShaderControl";
|
|
37528
37534
|
class m6 extends X {
|
|
37529
37535
|
constructor(e) {
|
|
37530
|
-
super(), this.layer = e, this.specificationChanged = new Ze(), this.localGraph = new
|
|
37536
|
+
super(), this.layer = e, this.specificationChanged = new Ze(), this.localGraph = new S4(), this.visibleSegments = this.registerDisposer(Vu.makeWithCounterpart(this.layer.manager.rpc)), this.segmentPropertyMap = new ct(void 0), this.graph = new ct(void 0), this.segmentEquivalences = this.registerDisposer(cc.makeWithCounterpart(this.layer.manager.rpc, this.layer.registerDisposer(ci((n) => n && n.visibleSegmentEquivalencePolicy || Di.MIN_REPRESENTATIVE, [this.graph])))), this.localSegmentEquivalences = !1, this.maxIdLength = new ct(1), this.hideSegmentZero = new Ut(!0, !0), this.segmentQuery = new Kt("", Le), this.temporaryVisibleSegments = this.layer.registerDisposer(Vu.makeWithCounterpart(this.layer.manager.rpc)), this.temporarySegmentEquivalences = this.layer.registerDisposer(cc.makeWithCounterpart(this.layer.manager.rpc, this.segmentEquivalences.disjointSets.visibleSegmentEquivalencePolicy)), this.useTemporaryVisibleSegments = this.layer.registerDisposer(vn.make(this.layer.manager.rpc, !1)), this.useTemporarySegmentEquivalences = this.layer.registerDisposer(vn.make(this.layer.manager.rpc, !1));
|
|
37531
37537
|
const t = this.specificationChanged;
|
|
37532
37538
|
this.visibleSegments.changed.add(t.dispatch), this.hideSegmentZero.changed.add(t.dispatch), this.segmentQuery.changed.add(t.dispatch);
|
|
37533
37539
|
}
|
|
@@ -37682,7 +37688,7 @@ class Jt extends S6 {
|
|
|
37682
37688
|
});
|
|
37683
37689
|
})) : a.deactivate("Not supported on non-root linked segmentation layers") : a.deactivate("Not compatible with segmentation layer");
|
|
37684
37690
|
}
|
|
37685
|
-
this.displayState.originalSegmentationGroupState.segmentPropertyMap.value =
|
|
37691
|
+
this.displayState.originalSegmentationGroupState.segmentPropertyMap.value = s4(this.manager.chunkManager, t), this.displayState.originalSegmentationGroupState.graph.value = r;
|
|
37686
37692
|
}
|
|
37687
37693
|
getLegacyDataSourceSpecifications(e, t, n, r) {
|
|
37688
37694
|
const s = super.getLegacyDataSourceSpecifications(e, t, n, r), a = ye(t, f6, (d) => d === null ? null : Le(d)), l = ye(t, p6, (d) => d === null ? null : Le(d));
|
|
@@ -37972,7 +37978,7 @@ class T6 extends X {
|
|
|
37972
37978
|
r && this.changed.dispatch();
|
|
37973
37979
|
}
|
|
37974
37980
|
addRelationship(e) {
|
|
37975
|
-
const t = this.annotationDisplayState.relationshipStates.get(e), n = new $
|
|
37981
|
+
const t = this.annotationDisplayState.relationshipStates.get(e), n = new $W(this.layerManager.addRef(), E6);
|
|
37976
37982
|
n.registerDisposer(n.changed.add(() => {
|
|
37977
37983
|
t.segmentationState.value = n.layerName === void 0 ? void 0 : k6(n.layer);
|
|
37978
37984
|
}));
|
|
@@ -38753,7 +38759,7 @@ iI((i, e) => e.compressedSegmentationBlockSize != null ? new G6(i, e) : null);
|
|
|
38753
38759
|
function W6(i, e = document.getElementById("neuroglancer-container")) {
|
|
38754
38760
|
try {
|
|
38755
38761
|
let t = new mV(e);
|
|
38756
|
-
return new
|
|
38762
|
+
return new PW(t, i);
|
|
38757
38763
|
} catch (t) {
|
|
38758
38764
|
throw Xe.showMessage(`Error: ${t.message}`), t;
|
|
38759
38765
|
}
|
|
@@ -41835,9 +41841,9 @@ function yj(i) {
|
|
|
41835
41841
|
});
|
|
41836
41842
|
return { id: l, description: d, type: u, values: h };
|
|
41837
41843
|
}));
|
|
41838
|
-
return
|
|
41844
|
+
return QW({ ids: t, properties: r });
|
|
41839
41845
|
}
|
|
41840
|
-
It(Pt()(
|
|
41846
|
+
It(Pt()(jW), X2);
|
|
41841
41847
|
function Vh(i, e, t, n) {
|
|
41842
41848
|
try {
|
|
41843
41849
|
const r = Y(t, "@type", Le);
|
|
@@ -42607,7 +42613,7 @@ class Qj extends zo {
|
|
|
42607
42613
|
throw new Error("Invalid UI control specification");
|
|
42608
42614
|
Ar(a), a.addFragmentCode(`
|
|
42609
42615
|
#define VOLUME_RENDERING true
|
|
42610
|
-
`), l(a), a.addUniform("highp float", "uNearLimitFraction"), a.addUniform("highp float", "uFarLimitFraction"), a.addUniform("highp int", "uMaxSteps"), a.addUniform("highp vec3", "uTranslation"), a.addUniform("highp mat4", "uModelViewProjectionMatrix"), a.addUniform("highp mat4", "uInvModelViewProjectionMatrix"), a.addUniform("highp vec3", "uChunkDataSize"), a.addUniform("highp vec3", "uLowerClipBound"), a.addUniform("highp vec3", "uUpperClipBound"), a.addUniform("highp float", "uBrightnessFactor"), a.addVarying("highp vec4", "vNormalizedPosition"), a.addVertexCode(
|
|
42616
|
+
`), l(a), a.addUniform("highp float", "uNearLimitFraction"), a.addUniform("highp float", "uFarLimitFraction"), a.addUniform("highp int", "uMaxSteps"), a.addUniform("highp vec3", "uTranslation"), a.addUniform("highp mat4", "uModelViewProjectionMatrix"), a.addUniform("highp mat4", "uInvModelViewProjectionMatrix"), a.addUniform("highp vec3", "uChunkDataSize"), a.addUniform("highp vec3", "uLowerClipBound"), a.addUniform("highp vec3", "uUpperClipBound"), a.addUniform("highp float", "uBrightnessFactor"), a.addVarying("highp vec4", "vNormalizedPosition"), a.addVertexCode(B4), a.setVertexMain(`
|
|
42611
42617
|
vec3 boxVertex = getBoxFaceVertexPosition(gl_VertexID);
|
|
42612
42618
|
vec3 position = max(uLowerClipBound, min(uUpperClipBound, uTranslation + boxVertex * uChunkDataSize));
|
|
42613
42619
|
vNormalizedPosition = gl_Position = uModelViewProjectionMatrix * vec4(position, 1.0);
|
|
@@ -42771,7 +42777,7 @@ void main() {
|
|
|
42771
42777
|
const B = F[$];
|
|
42772
42778
|
R[$] = B === -1 || B >= P ? 0 : M[$] * V[B];
|
|
42773
42779
|
}
|
|
42774
|
-
l?.bindChunk(h, a, A, q, F, U, y), y = !1, h.uniform3fv(a.uniform("uTranslation"), R),
|
|
42780
|
+
l?.bindChunk(h, a, A, q, F, U, y), y = !1, h.uniform3fv(a.uniform("uTranslation"), R), F4(h, 1, 1), ++b;
|
|
42775
42781
|
} else
|
|
42776
42782
|
++E;
|
|
42777
42783
|
}), h.disable(WebGL2RenderingContext.CULL_FACE), v(), this.vertexIdHelper.disable();
|
|
@@ -43273,20 +43279,18 @@ class p8 extends qb.Component {
|
|
|
43273
43279
|
Qn(this, "applyColorsAndVisibility", (t) => {
|
|
43274
43280
|
if (!this.viewer)
|
|
43275
43281
|
return;
|
|
43276
|
-
const
|
|
43277
|
-
|
|
43278
|
-
this.
|
|
43279
|
-
|
|
43280
|
-
|
|
43281
|
-
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43285
|
-
|
|
43286
|
-
r[l] = n[l] || l8;
|
|
43287
|
-
const a = (this.props.viewerState?.layers ?? (this.viewer.state.toJSON().layers || [])).map((l, d) => d === 0 || l?.type === "segmentation" ? { ...l, segmentColors: r } : l);
|
|
43282
|
+
const r = (this.props.viewerState?.layers ?? (this.viewer.state.toJSON().layers || [])).map((s) => {
|
|
43283
|
+
const a = Object.keys(t).find((u) => s.name?.includes(u)), l = { ...t[a] || {} };
|
|
43284
|
+
this.allKnownIdsByLayer || (this.allKnownIdsByLayer = {}), this.allKnownIdsByLayer[a] || (this.allKnownIdsByLayer[a] = /* @__PURE__ */ new Set());
|
|
43285
|
+
for (const u of Object.keys(l))
|
|
43286
|
+
this.allKnownIdsByLayer[a].add(u);
|
|
43287
|
+
const d = {};
|
|
43288
|
+
for (const u of this.allKnownIdsByLayer[a] || [])
|
|
43289
|
+
d[u] = l[u] || l8;
|
|
43290
|
+
return s.type === "segmentation" ? { ...s, segmentColors: d } : s;
|
|
43291
|
+
});
|
|
43288
43292
|
this.withoutEmitting(() => {
|
|
43289
|
-
this.viewer.state.restoreState({ layers:
|
|
43293
|
+
this.viewer.state.restoreState({ layers: r });
|
|
43290
43294
|
});
|
|
43291
43295
|
});
|
|
43292
43296
|
Qn(this, "updateEventBindings", (t) => {
|
|
@@ -43354,7 +43358,7 @@ class p8 extends qb.Component {
|
|
|
43354
43358
|
}
|
|
43355
43359
|
}
|
|
43356
43360
|
});
|
|
43357
|
-
this.ngContainer = qb.createRef(), this.viewer = null, this.muteViewerChanged = !1, this.prevVisibleIds = /* @__PURE__ */ new Set(), this.prevColorMap = null, this.disposers = [], this.prevColorOverrides = /* @__PURE__ */ new Set(), this.overrideColorsById = /* @__PURE__ */ Object.create(null), this.
|
|
43361
|
+
this.ngContainer = qb.createRef(), this.viewer = null, this.muteViewerChanged = !1, this.prevVisibleIds = /* @__PURE__ */ new Set(), this.prevColorMap = null, this.disposers = [], this.prevColorOverrides = /* @__PURE__ */ new Set(), this.overrideColorsById = /* @__PURE__ */ Object.create(null), this.allKnownIdsByLayer = {};
|
|
43358
43362
|
}
|
|
43359
43363
|
componentDidMount() {
|
|
43360
43364
|
const {
|
|
@@ -43399,7 +43403,7 @@ class p8 extends qb.Component {
|
|
|
43399
43403
|
const I = Array.isArray(r.layers) ? r.layers : [];
|
|
43400
43404
|
this.viewer.state.restoreState({ layers: I }), s && Object.keys(s).length && this.applyColorsAndVisibility(s);
|
|
43401
43405
|
});
|
|
43402
|
-
const u = t.cellColorMapping ? Object.keys(t.cellColorMapping).length : 0, h = s ? Object.keys(s).length : 0, g = t.cellColorMapping !==
|
|
43406
|
+
const u = t.cellColorMapping ? Object.keys(t.cellColorMapping).length : 0, h = s ? Object.keys(s).length : 0, g = t.cellColorMapping !== this.props.cellColorMapping;
|
|
43403
43407
|
!this.didLayersChange(l, r) && (g || u !== h) && this.withoutEmitting(() => {
|
|
43404
43408
|
this.applyColorsAndVisibility(s);
|
|
43405
43409
|
});
|