@idetik/core 0.21.2 → 0.21.3
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/index.js +100 -90
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +28 -28
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/examples/image_2d/main.d.ts.map +1 -0
- package/dist/types/examples/image_2d/scale_bar.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/types/examples/ca_wave_dynamics/main.d.ts.map +0 -1
- package/dist/types/examples/chunk_streaming/main.d.ts +0 -2
- package/dist/types/examples/chunk_streaming/main.d.ts.map +0 -1
- package/dist/types/examples/chunk_streaming/scale_bar.d.ts.map +0 -1
- package/dist/types/examples/ome_zarr_v05/main.d.ts +0 -2
- package/dist/types/examples/ome_zarr_v05/main.d.ts.map +0 -1
- /package/dist/types/examples/{ca_wave_dynamics → image_2d}/main.d.ts +0 -0
- /package/dist/types/examples/{chunk_streaming → image_2d}/scale_bar.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -9808,7 +9808,7 @@ class PQ extends kI {
|
|
|
9808
9808
|
}
|
|
9809
9809
|
}
|
|
9810
9810
|
const VQ = 1.77, kC = 128, UC = 128 / VQ;
|
|
9811
|
-
class
|
|
9811
|
+
class ta extends PQ {
|
|
9812
9812
|
// width_ and height_ should always be defined by constructor (see setFrame)
|
|
9813
9813
|
width_ = kC;
|
|
9814
9814
|
height_ = UC;
|
|
@@ -9864,7 +9864,7 @@ class sa extends PQ {
|
|
|
9864
9864
|
}
|
|
9865
9865
|
}
|
|
9866
9866
|
const Vo = 60, Oo = 1.77, Ig = 0.1, xg = 180 - Ig;
|
|
9867
|
-
class
|
|
9867
|
+
class aa extends PQ {
|
|
9868
9868
|
fov_;
|
|
9869
9869
|
aspectRatio_;
|
|
9870
9870
|
constructor(A = {}) {
|
|
@@ -9906,7 +9906,7 @@ class ta extends PQ {
|
|
|
9906
9906
|
}
|
|
9907
9907
|
}
|
|
9908
9908
|
const dC = 0;
|
|
9909
|
-
class
|
|
9909
|
+
class ea {
|
|
9910
9910
|
camera_;
|
|
9911
9911
|
dragActive_ = !1;
|
|
9912
9912
|
dragStart_ = gA();
|
|
@@ -9975,7 +9975,7 @@ class lC {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
}
|
|
9977
9977
|
const bg = -1, LC = 0, _o = 1, JC = 9e-3, Xo = 1e-3, jo = 9e-4, zo = 0.5, $o = 60;
|
|
9978
|
-
class
|
|
9978
|
+
class na {
|
|
9979
9979
|
camera_;
|
|
9980
9980
|
orbitVelocity_ = new lC(0, 0, 0);
|
|
9981
9981
|
panVelocity_ = gA();
|
|
@@ -10243,7 +10243,7 @@ class Is extends kI {
|
|
|
10243
10243
|
};
|
|
10244
10244
|
}
|
|
10245
10245
|
}
|
|
10246
|
-
class
|
|
10246
|
+
class ra extends Rg {
|
|
10247
10247
|
type = "AxesLayer";
|
|
10248
10248
|
constructor(A) {
|
|
10249
10249
|
super();
|
|
@@ -10928,7 +10928,7 @@ function os(C, A) {
|
|
|
10928
10928
|
}), C;
|
|
10929
10929
|
}
|
|
10930
10930
|
const ss = 2;
|
|
10931
|
-
class
|
|
10931
|
+
class Da extends Rg {
|
|
10932
10932
|
type = "VolumeLayer";
|
|
10933
10933
|
source_;
|
|
10934
10934
|
sliceCoords_;
|
|
@@ -16798,6 +16798,8 @@ function wt(C, A) {
|
|
|
16798
16798
|
translation: H[r]
|
|
16799
16799
|
});
|
|
16800
16800
|
}
|
|
16801
|
+
if (C.axes[r].type === "space" && Ft(D))
|
|
16802
|
+
for (const F of D) F.translation -= 0.5 * F.scale;
|
|
16801
16803
|
return {
|
|
16802
16804
|
name: a,
|
|
16803
16805
|
index: r,
|
|
@@ -16829,6 +16831,14 @@ function zC(C, A) {
|
|
|
16829
16831
|
function gg(C, A) {
|
|
16830
16832
|
return C.findIndex((I) => Gt(I, A));
|
|
16831
16833
|
}
|
|
16834
|
+
function Ft(C) {
|
|
16835
|
+
if (C.length <= 1) return !1;
|
|
16836
|
+
for (let A = 1; A < C.length; A++) {
|
|
16837
|
+
const I = 0.5 * (C[A].scale - C[A - 1].scale), g = C[A].translation - C[A - 1].translation;
|
|
16838
|
+
if (Math.abs(g - I) > 1e-6) return !1;
|
|
16839
|
+
}
|
|
16840
|
+
return !0;
|
|
16841
|
+
}
|
|
16832
16842
|
var P;
|
|
16833
16843
|
(function(C) {
|
|
16834
16844
|
C.assertEqual = (B) => {
|
|
@@ -17054,11 +17064,11 @@ const iB = (C, A) => {
|
|
|
17054
17064
|
}
|
|
17055
17065
|
return { message: I };
|
|
17056
17066
|
};
|
|
17057
|
-
let
|
|
17058
|
-
function
|
|
17059
|
-
return
|
|
17067
|
+
let St = iB;
|
|
17068
|
+
function Nt() {
|
|
17069
|
+
return St;
|
|
17060
17070
|
}
|
|
17061
|
-
const
|
|
17071
|
+
const Rt = (C) => {
|
|
17062
17072
|
const { data: A, path: I, errorMaps: g, issueData: B } = C, Q = [...I, ...B.path || []], E = {
|
|
17063
17073
|
...B,
|
|
17064
17074
|
path: Q
|
|
@@ -17080,7 +17090,7 @@ const Nt = (C) => {
|
|
|
17080
17090
|
};
|
|
17081
17091
|
};
|
|
17082
17092
|
function Y(C, A) {
|
|
17083
|
-
const I =
|
|
17093
|
+
const I = Nt(), g = Rt({
|
|
17084
17094
|
issueData: A,
|
|
17085
17095
|
data: C.data,
|
|
17086
17096
|
path: C.path,
|
|
@@ -17362,7 +17372,7 @@ class v {
|
|
|
17362
17372
|
});
|
|
17363
17373
|
}
|
|
17364
17374
|
brand() {
|
|
17365
|
-
return new
|
|
17375
|
+
return new Vt({
|
|
17366
17376
|
typeName: x.ZodBranded,
|
|
17367
17377
|
type: this,
|
|
17368
17378
|
...b(this._def)
|
|
@@ -17397,28 +17407,28 @@ class v {
|
|
|
17397
17407
|
return this.safeParse(null).success;
|
|
17398
17408
|
}
|
|
17399
17409
|
}
|
|
17400
|
-
const
|
|
17410
|
+
const kt = /^c[^\s-]{8,}$/i, Ut = /^[0-9a-z]+$/, dt = /^[0-9A-HJKMNP-TV-Z]{26}$/i, lt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Lt = /^[a-z0-9_-]{21}$/i, Jt = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Yt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Mt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, ft = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
17401
17411
|
let Vg;
|
|
17402
|
-
const
|
|
17412
|
+
const Kt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ut = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ht = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, qt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, pt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, mt = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, sE = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", xt = new RegExp(`^${sE}$`);
|
|
17403
17413
|
function tE(C) {
|
|
17404
17414
|
let A = "[0-5]\\d";
|
|
17405
17415
|
C.precision ? A = `${A}\\.\\d{${C.precision}}` : C.precision == null && (A = `${A}(\\.\\d+)?`);
|
|
17406
17416
|
const I = C.precision ? "+" : "?";
|
|
17407
17417
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${A})${I}`;
|
|
17408
17418
|
}
|
|
17409
|
-
function
|
|
17419
|
+
function bt(C) {
|
|
17410
17420
|
return new RegExp(`^${tE(C)}$`);
|
|
17411
17421
|
}
|
|
17412
|
-
function
|
|
17422
|
+
function Tt(C) {
|
|
17413
17423
|
let A = `${sE}T${tE(C)}`;
|
|
17414
17424
|
const I = [];
|
|
17415
17425
|
return I.push(C.local ? "Z?" : "Z"), C.offset && I.push("([+-]\\d{2}:?\\d{2})"), A = `${A}(${I.join("|")})`, new RegExp(`^${A}$`);
|
|
17416
17426
|
}
|
|
17417
|
-
function Tt(C, A) {
|
|
17418
|
-
return !!((A === "v4" || !A) && ft.test(C) || (A === "v6" || !A) && ut.test(C));
|
|
17419
|
-
}
|
|
17420
17427
|
function Wt(C, A) {
|
|
17421
|
-
|
|
17428
|
+
return !!((A === "v4" || !A) && Kt.test(C) || (A === "v6" || !A) && Ht.test(C));
|
|
17429
|
+
}
|
|
17430
|
+
function vt(C, A) {
|
|
17431
|
+
if (!Jt.test(C))
|
|
17422
17432
|
return !1;
|
|
17423
17433
|
try {
|
|
17424
17434
|
const [I] = C.split(".");
|
|
@@ -17430,8 +17440,8 @@ function Wt(C, A) {
|
|
|
17430
17440
|
return !1;
|
|
17431
17441
|
}
|
|
17432
17442
|
}
|
|
17433
|
-
function
|
|
17434
|
-
return !!((A === "v4" || !A) &&
|
|
17443
|
+
function Zt(C, A) {
|
|
17444
|
+
return !!((A === "v4" || !A) && ut.test(C) || (A === "v6" || !A) && qt.test(C));
|
|
17435
17445
|
}
|
|
17436
17446
|
class ZA extends v {
|
|
17437
17447
|
_parse(A) {
|
|
@@ -17482,43 +17492,43 @@ class ZA extends v {
|
|
|
17482
17492
|
message: Q.message
|
|
17483
17493
|
}), g.dirty());
|
|
17484
17494
|
} else if (Q.kind === "email")
|
|
17485
|
-
|
|
17495
|
+
Mt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17486
17496
|
validation: "email",
|
|
17487
17497
|
code: d.invalid_string,
|
|
17488
17498
|
message: Q.message
|
|
17489
17499
|
}), g.dirty());
|
|
17490
17500
|
else if (Q.kind === "emoji")
|
|
17491
|
-
Vg || (Vg = new RegExp(
|
|
17501
|
+
Vg || (Vg = new RegExp(ft, "u")), Vg.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17492
17502
|
validation: "emoji",
|
|
17493
17503
|
code: d.invalid_string,
|
|
17494
17504
|
message: Q.message
|
|
17495
17505
|
}), g.dirty());
|
|
17496
17506
|
else if (Q.kind === "uuid")
|
|
17497
|
-
|
|
17507
|
+
lt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17498
17508
|
validation: "uuid",
|
|
17499
17509
|
code: d.invalid_string,
|
|
17500
17510
|
message: Q.message
|
|
17501
17511
|
}), g.dirty());
|
|
17502
17512
|
else if (Q.kind === "nanoid")
|
|
17503
|
-
|
|
17513
|
+
Lt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17504
17514
|
validation: "nanoid",
|
|
17505
17515
|
code: d.invalid_string,
|
|
17506
17516
|
message: Q.message
|
|
17507
17517
|
}), g.dirty());
|
|
17508
17518
|
else if (Q.kind === "cuid")
|
|
17509
|
-
|
|
17519
|
+
kt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17510
17520
|
validation: "cuid",
|
|
17511
17521
|
code: d.invalid_string,
|
|
17512
17522
|
message: Q.message
|
|
17513
17523
|
}), g.dirty());
|
|
17514
17524
|
else if (Q.kind === "cuid2")
|
|
17515
|
-
|
|
17525
|
+
Ut.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17516
17526
|
validation: "cuid2",
|
|
17517
17527
|
code: d.invalid_string,
|
|
17518
17528
|
message: Q.message
|
|
17519
17529
|
}), g.dirty());
|
|
17520
17530
|
else if (Q.kind === "ulid")
|
|
17521
|
-
|
|
17531
|
+
dt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17522
17532
|
validation: "ulid",
|
|
17523
17533
|
code: d.invalid_string,
|
|
17524
17534
|
message: Q.message
|
|
@@ -17549,39 +17559,39 @@ class ZA extends v {
|
|
|
17549
17559
|
code: d.invalid_string,
|
|
17550
17560
|
validation: { endsWith: Q.value },
|
|
17551
17561
|
message: Q.message
|
|
17552
|
-
}), g.dirty()) : Q.kind === "datetime" ?
|
|
17562
|
+
}), g.dirty()) : Q.kind === "datetime" ? Tt(Q).test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17553
17563
|
code: d.invalid_string,
|
|
17554
17564
|
validation: "datetime",
|
|
17555
17565
|
message: Q.message
|
|
17556
|
-
}), g.dirty()) : Q.kind === "date" ?
|
|
17566
|
+
}), g.dirty()) : Q.kind === "date" ? xt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17557
17567
|
code: d.invalid_string,
|
|
17558
17568
|
validation: "date",
|
|
17559
17569
|
message: Q.message
|
|
17560
|
-
}), g.dirty()) : Q.kind === "time" ?
|
|
17570
|
+
}), g.dirty()) : Q.kind === "time" ? bt(Q).test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17561
17571
|
code: d.invalid_string,
|
|
17562
17572
|
validation: "time",
|
|
17563
17573
|
message: Q.message
|
|
17564
|
-
}), g.dirty()) : Q.kind === "duration" ?
|
|
17574
|
+
}), g.dirty()) : Q.kind === "duration" ? Yt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17565
17575
|
validation: "duration",
|
|
17566
17576
|
code: d.invalid_string,
|
|
17567
17577
|
message: Q.message
|
|
17568
|
-
}), g.dirty()) : Q.kind === "ip" ?
|
|
17578
|
+
}), g.dirty()) : Q.kind === "ip" ? Wt(A.data, Q.version) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17569
17579
|
validation: "ip",
|
|
17570
17580
|
code: d.invalid_string,
|
|
17571
17581
|
message: Q.message
|
|
17572
|
-
}), g.dirty()) : Q.kind === "jwt" ?
|
|
17582
|
+
}), g.dirty()) : Q.kind === "jwt" ? vt(A.data, Q.alg) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17573
17583
|
validation: "jwt",
|
|
17574
17584
|
code: d.invalid_string,
|
|
17575
17585
|
message: Q.message
|
|
17576
|
-
}), g.dirty()) : Q.kind === "cidr" ?
|
|
17586
|
+
}), g.dirty()) : Q.kind === "cidr" ? Zt(A.data, Q.version) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17577
17587
|
validation: "cidr",
|
|
17578
17588
|
code: d.invalid_string,
|
|
17579
17589
|
message: Q.message
|
|
17580
|
-
}), g.dirty()) : Q.kind === "base64" ?
|
|
17590
|
+
}), g.dirty()) : Q.kind === "base64" ? pt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17581
17591
|
validation: "base64",
|
|
17582
17592
|
code: d.invalid_string,
|
|
17583
17593
|
message: Q.message
|
|
17584
|
-
}), g.dirty()) : Q.kind === "base64url" ?
|
|
17594
|
+
}), g.dirty()) : Q.kind === "base64url" ? mt.test(A.data) || (B = this._getOrReturnCtx(A, B), Y(B, {
|
|
17585
17595
|
validation: "base64url",
|
|
17586
17596
|
code: d.invalid_string,
|
|
17587
17597
|
message: Q.message
|
|
@@ -17816,7 +17826,7 @@ ZA.create = (C) => new ZA({
|
|
|
17816
17826
|
coerce: C?.coerce ?? !1,
|
|
17817
17827
|
...b(C)
|
|
17818
17828
|
});
|
|
17819
|
-
function
|
|
17829
|
+
function Pt(C, A) {
|
|
17820
17830
|
const I = (C.toString().split(".")[1] || "").length, g = (A.toString().split(".")[1] || "").length, B = I > g ? I : g, Q = Number.parseInt(C.toFixed(B).replace(".", "")), E = Number.parseInt(A.toFixed(B).replace(".", ""));
|
|
17821
17831
|
return Q % E / 10 ** B;
|
|
17822
17832
|
}
|
|
@@ -17855,7 +17865,7 @@ class cI extends v {
|
|
|
17855
17865
|
inclusive: Q.inclusive,
|
|
17856
17866
|
exact: !1,
|
|
17857
17867
|
message: Q.message
|
|
17858
|
-
}), B.dirty()) : Q.kind === "multipleOf" ?
|
|
17868
|
+
}), B.dirty()) : Q.kind === "multipleOf" ? Pt(A.data, Q.value) !== 0 && (g = this._getOrReturnCtx(A, g), Y(g, {
|
|
17859
17869
|
code: d.not_multiple_of,
|
|
17860
17870
|
multipleOf: Q.value,
|
|
17861
17871
|
message: Q.message
|
|
@@ -19351,7 +19361,7 @@ aQ.create = (C) => new aQ({
|
|
|
19351
19361
|
typeName: x.ZodNaN,
|
|
19352
19362
|
...b(C)
|
|
19353
19363
|
});
|
|
19354
|
-
class
|
|
19364
|
+
class Vt extends v {
|
|
19355
19365
|
_parse(A) {
|
|
19356
19366
|
const { ctx: I } = this._processInputParams(A), g = I.data;
|
|
19357
19367
|
return this._def.type._parse({
|
|
@@ -19432,7 +19442,7 @@ const yA = aB.create, eI = wI.create;
|
|
|
19432
19442
|
Gg.create;
|
|
19433
19443
|
_A.create;
|
|
19434
19444
|
FI.create;
|
|
19435
|
-
const
|
|
19445
|
+
const Ot = q({
|
|
19436
19446
|
/**The multiscale datasets for this image*/
|
|
19437
19447
|
multiscales: _(
|
|
19438
19448
|
q({
|
|
@@ -19560,7 +19570,7 @@ const Vt = q({
|
|
|
19560
19570
|
projection: X().optional()
|
|
19561
19571
|
}).optional()
|
|
19562
19572
|
}).optional()
|
|
19563
|
-
}).describe("JSON from OME-NGFF .zattrs"),
|
|
19573
|
+
}).describe("JSON from OME-NGFF .zattrs"), _t = q({
|
|
19564
19574
|
plate: q({
|
|
19565
19575
|
/**The acquisitions for this plate*/
|
|
19566
19576
|
acquisitions: _(
|
|
@@ -19619,7 +19629,7 @@ const Vt = q({
|
|
|
19619
19629
|
})
|
|
19620
19630
|
).min(1).describe("The wells of the plate")
|
|
19621
19631
|
}).optional()
|
|
19622
|
-
}).describe("JSON from OME-NGFF .zattrs"),
|
|
19632
|
+
}).describe("JSON from OME-NGFF .zattrs"), Xt = q({
|
|
19623
19633
|
well: q({
|
|
19624
19634
|
/**The fields of view for this well*/
|
|
19625
19635
|
images: _(
|
|
@@ -19633,7 +19643,7 @@ const Vt = q({
|
|
|
19633
19643
|
/**The version of the specification*/
|
|
19634
19644
|
version: yA("0.4").describe("The version of the specification").optional()
|
|
19635
19645
|
}).optional()
|
|
19636
|
-
}).describe("JSON from OME-NGFF .zattrs"),
|
|
19646
|
+
}).describe("JSON from OME-NGFF .zattrs"), jt = q({
|
|
19637
19647
|
/**The versioned OME-Zarr Metadata namespace*/
|
|
19638
19648
|
ome: q({
|
|
19639
19649
|
/**The multiscale datasets for this image*/
|
|
@@ -19763,7 +19773,7 @@ const Vt = q({
|
|
|
19763
19773
|
/**The version of the OME-Zarr Metadata*/
|
|
19764
19774
|
version: yA("0.5").describe("The version of the OME-Zarr Metadata")
|
|
19765
19775
|
}).describe("The versioned OME-Zarr Metadata namespace")
|
|
19766
|
-
}).describe("The zarr.json attributes key"),
|
|
19776
|
+
}).describe("The zarr.json attributes key"), zt = q({
|
|
19767
19777
|
/**The versioned OME-Zarr Metadata namespace*/
|
|
19768
19778
|
ome: q({
|
|
19769
19779
|
plate: q({
|
|
@@ -19825,7 +19835,7 @@ const Vt = q({
|
|
|
19825
19835
|
/**The version of the OME-Zarr Metadata*/
|
|
19826
19836
|
version: yA("0.5").describe("The version of the OME-Zarr Metadata")
|
|
19827
19837
|
}).describe("The versioned OME-Zarr Metadata namespace")
|
|
19828
|
-
}).describe("The zarr.json attributes key"),
|
|
19838
|
+
}).describe("The zarr.json attributes key"), $t = q({
|
|
19829
19839
|
/**The versioned OME-Zarr Metadata namespace*/
|
|
19830
19840
|
ome: q({
|
|
19831
19841
|
well: q({
|
|
@@ -19844,15 +19854,15 @@ const Vt = q({
|
|
|
19844
19854
|
/**The version of the OME-Zarr Metadata*/
|
|
19845
19855
|
version: yA("0.5").describe("The version of the OME-Zarr Metadata")
|
|
19846
19856
|
}).describe("The versioned OME-Zarr Metadata namespace")
|
|
19847
|
-
}).describe("JSON from OME-Zarr zarr.json"),
|
|
19848
|
-
function
|
|
19857
|
+
}).describe("JSON from OME-Zarr zarr.json"), Aa = ["0.4", "0.5"], Ia = new Set(Aa);
|
|
19858
|
+
function ga(C) {
|
|
19849
19859
|
if (!("ome" in C) || !(C.ome instanceof Object)) return;
|
|
19850
19860
|
const A = C.ome;
|
|
19851
|
-
if ("version" in A && typeof A.version == "string" &&
|
|
19861
|
+
if ("version" in A && typeof A.version == "string" && Ia.has(A.version))
|
|
19852
19862
|
return A.version;
|
|
19853
19863
|
}
|
|
19854
19864
|
function _B(C) {
|
|
19855
|
-
const A =
|
|
19865
|
+
const A = ga(C);
|
|
19856
19866
|
return A === void 0 ? "0.4" : A;
|
|
19857
19867
|
}
|
|
19858
19868
|
function SI(C) {
|
|
@@ -19868,10 +19878,10 @@ function nE(C, A) {
|
|
|
19868
19878
|
const I = { ...C };
|
|
19869
19879
|
return delete I[A], I;
|
|
19870
19880
|
}
|
|
19871
|
-
async function
|
|
19881
|
+
async function ya(C, A) {
|
|
19872
19882
|
const I = new WI(C), g = new UA(I), B = SI(A), Q = await VI(g, B);
|
|
19873
19883
|
try {
|
|
19874
|
-
return
|
|
19884
|
+
return Ba(Q.attrs);
|
|
19875
19885
|
} catch {
|
|
19876
19886
|
throw Error(
|
|
19877
19887
|
`Failed to parse OME-Zarr plate:
|
|
@@ -19879,21 +19889,21 @@ ${JSON.stringify(Q.attrs)}`
|
|
|
19879
19889
|
);
|
|
19880
19890
|
}
|
|
19881
19891
|
}
|
|
19882
|
-
function
|
|
19892
|
+
function Ba(C) {
|
|
19883
19893
|
switch (_B(C)) {
|
|
19884
19894
|
case "0.5":
|
|
19885
19895
|
return {
|
|
19886
|
-
...
|
|
19896
|
+
...zt.parse(C).ome,
|
|
19887
19897
|
originalVersion: "0.5"
|
|
19888
19898
|
};
|
|
19889
19899
|
case "0.4":
|
|
19890
19900
|
return {
|
|
19891
|
-
...
|
|
19901
|
+
...Ca(_t.parse(C)).ome,
|
|
19892
19902
|
originalVersion: "0.4"
|
|
19893
19903
|
};
|
|
19894
19904
|
}
|
|
19895
19905
|
}
|
|
19896
|
-
function
|
|
19906
|
+
function Ca(C) {
|
|
19897
19907
|
if (C.plate === void 0)
|
|
19898
19908
|
throw new Error("Plate metadata is missing in OME-Zarr v0.4 plate");
|
|
19899
19909
|
return {
|
|
@@ -19903,7 +19913,7 @@ function Ba(C) {
|
|
|
19903
19913
|
}
|
|
19904
19914
|
};
|
|
19905
19915
|
}
|
|
19906
|
-
function
|
|
19916
|
+
function Qa(C) {
|
|
19907
19917
|
if (C.well === void 0)
|
|
19908
19918
|
throw new Error("Well metadata is missing in OME-Zarr v0.4 well");
|
|
19909
19919
|
return {
|
|
@@ -19913,24 +19923,24 @@ function Ca(C) {
|
|
|
19913
19923
|
}
|
|
19914
19924
|
};
|
|
19915
19925
|
}
|
|
19916
|
-
function
|
|
19926
|
+
function Ea(C) {
|
|
19917
19927
|
switch (_B(C)) {
|
|
19918
19928
|
case "0.5":
|
|
19919
19929
|
return {
|
|
19920
|
-
|
|
19930
|
+
...$t.parse(C).ome,
|
|
19921
19931
|
originalVersion: "0.5"
|
|
19922
19932
|
};
|
|
19923
19933
|
case "0.4":
|
|
19924
19934
|
return {
|
|
19925
|
-
...
|
|
19935
|
+
...Qa(Xt.parse(C)).ome,
|
|
19926
19936
|
originalVersion: "0.4"
|
|
19927
19937
|
};
|
|
19928
19938
|
}
|
|
19929
19939
|
}
|
|
19930
|
-
async function
|
|
19940
|
+
async function ca(C, A, I) {
|
|
19931
19941
|
const g = C + "/" + A, B = new WI(g), Q = new UA(B), E = SI(I), i = await VI(Q, E);
|
|
19932
19942
|
try {
|
|
19933
|
-
return
|
|
19943
|
+
return Ea(i.attrs);
|
|
19934
19944
|
} catch {
|
|
19935
19945
|
throw Error(
|
|
19936
19946
|
`Failed to parse OME-Zarr well:
|
|
@@ -19938,15 +19948,15 @@ ${JSON.stringify(i.attrs)}`
|
|
|
19938
19948
|
);
|
|
19939
19949
|
}
|
|
19940
19950
|
}
|
|
19941
|
-
async function
|
|
19951
|
+
async function wa(C) {
|
|
19942
19952
|
const A = SI(C.version), I = await VI(C.location, A);
|
|
19943
19953
|
return XB(I.attrs).omero?.channels ?? [];
|
|
19944
19954
|
}
|
|
19945
|
-
async function
|
|
19955
|
+
async function Ga(C) {
|
|
19946
19956
|
const A = SI(C.version), I = await VI(C.location, A);
|
|
19947
19957
|
return XB(I.attrs).omero?.rdefs;
|
|
19948
19958
|
}
|
|
19949
|
-
function
|
|
19959
|
+
function ia(C) {
|
|
19950
19960
|
return {
|
|
19951
19961
|
ome: {
|
|
19952
19962
|
multiscales: C.multiscales,
|
|
@@ -19955,23 +19965,23 @@ function Ea(C) {
|
|
|
19955
19965
|
}
|
|
19956
19966
|
};
|
|
19957
19967
|
}
|
|
19958
|
-
function
|
|
19968
|
+
function oa(C) {
|
|
19959
19969
|
switch (_B(C)) {
|
|
19960
19970
|
case "0.5":
|
|
19961
19971
|
return {
|
|
19962
|
-
...
|
|
19972
|
+
...jt.parse(C).ome,
|
|
19963
19973
|
originalVersion: "0.5"
|
|
19964
19974
|
};
|
|
19965
19975
|
case "0.4":
|
|
19966
19976
|
return {
|
|
19967
|
-
...
|
|
19977
|
+
...ia(Ot.parse(C)).ome,
|
|
19968
19978
|
originalVersion: "0.4"
|
|
19969
19979
|
};
|
|
19970
19980
|
}
|
|
19971
19981
|
}
|
|
19972
19982
|
function XB(C) {
|
|
19973
19983
|
try {
|
|
19974
|
-
return
|
|
19984
|
+
return oa(C);
|
|
19975
19985
|
} catch {
|
|
19976
19986
|
throw Error(`Failed to parse OME-Zarr image:
|
|
19977
19987
|
${JSON.stringify(C)}`);
|
|
@@ -20047,7 +20057,7 @@ const rE = [
|
|
|
20047
20057
|
"prefetchSpace"
|
|
20048
20058
|
];
|
|
20049
20059
|
function jB(C) {
|
|
20050
|
-
|
|
20060
|
+
sa(C);
|
|
20051
20061
|
const A = {
|
|
20052
20062
|
x: C.prefetch.x,
|
|
20053
20063
|
y: C.prefetch.y,
|
|
@@ -20074,7 +20084,7 @@ function jB(C) {
|
|
|
20074
20084
|
};
|
|
20075
20085
|
return Object.freeze(B);
|
|
20076
20086
|
}
|
|
20077
|
-
function
|
|
20087
|
+
function Fa(C = {}) {
|
|
20078
20088
|
return jB(zB({
|
|
20079
20089
|
profile: "exploration",
|
|
20080
20090
|
prefetch: { x: 1, y: 1, z: 1, t: 0 },
|
|
@@ -20087,7 +20097,7 @@ function Ga(C = {}) {
|
|
|
20087
20097
|
]
|
|
20088
20098
|
}, C));
|
|
20089
20099
|
}
|
|
20090
|
-
function
|
|
20100
|
+
function Sa(C = {}) {
|
|
20091
20101
|
return jB(zB({
|
|
20092
20102
|
profile: "playback",
|
|
20093
20103
|
prefetch: { x: 0, y: 0, z: 0, t: 20 },
|
|
@@ -20100,7 +20110,7 @@ function Fa(C = {}) {
|
|
|
20100
20110
|
]
|
|
20101
20111
|
}, C));
|
|
20102
20112
|
}
|
|
20103
|
-
function
|
|
20113
|
+
function Na(C = {}) {
|
|
20104
20114
|
return jB(zB({
|
|
20105
20115
|
profile: "no-prefetch",
|
|
20106
20116
|
prefetch: { x: 0, y: 0, z: 0, t: 0 },
|
|
@@ -20113,7 +20123,7 @@ function Sa(C = {}) {
|
|
|
20113
20123
|
]
|
|
20114
20124
|
}, C));
|
|
20115
20125
|
}
|
|
20116
|
-
function
|
|
20126
|
+
function sa(C) {
|
|
20117
20127
|
for (const [g, B] of Object.entries(C.prefetch))
|
|
20118
20128
|
if (B !== void 0 && B < 0)
|
|
20119
20129
|
throw new Error(`prefetch.${g} must be a non-negative number`);
|
|
@@ -20132,7 +20142,7 @@ function zB(C, A = {}) {
|
|
|
20132
20142
|
priorityOrder: A.priorityOrder ?? C.priorityOrder
|
|
20133
20143
|
};
|
|
20134
20144
|
}
|
|
20135
|
-
class
|
|
20145
|
+
class Ra extends kI {
|
|
20136
20146
|
atlas_;
|
|
20137
20147
|
constructor(A, I) {
|
|
20138
20148
|
super(), this.programName = "points", this.atlas_ = I, A.forEach((Q) => {
|
|
@@ -20224,7 +20234,7 @@ class DE extends GB {
|
|
|
20224
20234
|
}
|
|
20225
20235
|
}
|
|
20226
20236
|
export {
|
|
20227
|
-
|
|
20237
|
+
ra as AxesLayer,
|
|
20228
20238
|
GA as Box2,
|
|
20229
20239
|
II as Box3,
|
|
20230
20240
|
j as Color,
|
|
@@ -20235,26 +20245,26 @@ export {
|
|
|
20235
20245
|
Rg as Layer,
|
|
20236
20246
|
Ho as LayerManager,
|
|
20237
20247
|
DB as OmeZarrImageSource,
|
|
20238
|
-
|
|
20239
|
-
|
|
20240
|
-
|
|
20241
|
-
|
|
20248
|
+
na as OrbitControls,
|
|
20249
|
+
ta as OrthographicCamera,
|
|
20250
|
+
ea as PanZoomControls,
|
|
20251
|
+
aa as PerspectiveCamera,
|
|
20242
20252
|
sI as Plane,
|
|
20243
|
-
|
|
20253
|
+
Ra as Points,
|
|
20244
20254
|
lC as Spherical,
|
|
20245
20255
|
DE as Texture2DArray,
|
|
20246
20256
|
uI as Texture3D,
|
|
20247
20257
|
xo as Viewport,
|
|
20248
|
-
|
|
20258
|
+
Da as VolumeLayer,
|
|
20249
20259
|
sC as WebGLRenderer,
|
|
20250
|
-
|
|
20260
|
+
Fa as createExplorationPolicy,
|
|
20251
20261
|
jB as createImageSourcePolicy,
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20262
|
+
Na as createNoPrefetchPolicy,
|
|
20263
|
+
Sa as createPlaybackPolicy,
|
|
20264
|
+
ya as loadOmeZarrPlate,
|
|
20265
|
+
ca as loadOmeZarrWell,
|
|
20266
|
+
wa as loadOmeroChannels,
|
|
20267
|
+
Ga as loadOmeroDefaults,
|
|
20258
20268
|
RC as parseViewportConfigs,
|
|
20259
20269
|
vQ as validateNewViewport
|
|
20260
20270
|
};
|