@fideus-labs/ngff-zarr 0.0.1 → 0.2.0
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/README.md +10 -2
- package/esm/io/from_ngff_zarr.d.ts +4 -1
- package/esm/io/from_ngff_zarr.d.ts.map +1 -1
- package/esm/io/from_ngff_zarr.js +94 -27
- package/esm/io/hcs.d.ts +18 -0
- package/esm/io/hcs.d.ts.map +1 -0
- package/esm/io/hcs.js +51 -0
- package/esm/io/itk_image_to_ngff_image.d.ts +30 -0
- package/esm/io/itk_image_to_ngff_image.d.ts.map +1 -0
- package/esm/io/itk_image_to_ngff_image.js +127 -0
- package/esm/io/ngff_image_to_itk_image.d.ts +30 -0
- package/esm/io/ngff_image_to_itk_image.d.ts.map +1 -0
- package/esm/io/ngff_image_to_itk_image.js +218 -0
- package/esm/io/to_multiscales.d.ts +18 -0
- package/esm/io/to_multiscales.d.ts.map +1 -0
- package/esm/io/to_multiscales.js +62 -0
- package/esm/io/to_ngff_image.d.ts +17 -0
- package/esm/io/to_ngff_image.d.ts.map +1 -0
- package/esm/io/to_ngff_image.js +136 -0
- package/esm/io/to_ngff_zarr.d.ts +3 -2
- package/esm/io/to_ngff_zarr.d.ts.map +1 -1
- package/esm/io/to_ngff_zarr.js +289 -26
- package/esm/methods/itkwasm.d.ts +6 -0
- package/esm/methods/itkwasm.d.ts.map +1 -0
- package/esm/methods/itkwasm.js +958 -0
- package/esm/mod.d.ts +9 -2
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +10 -2
- package/esm/schemas/coordinate_systems.d.ts +251 -0
- package/esm/schemas/coordinate_systems.d.ts.map +1 -0
- package/esm/schemas/coordinate_systems.js +139 -0
- package/esm/schemas/index.d.ts +9 -0
- package/esm/schemas/index.d.ts.map +1 -0
- package/esm/schemas/index.js +38 -0
- package/esm/schemas/methods.d.ts.map +1 -1
- package/esm/schemas/methods.js +2 -0
- package/esm/schemas/multiscales.d.ts.map +1 -1
- package/esm/schemas/multiscales.js +2 -0
- package/esm/schemas/ngff_image.d.ts +9 -2
- package/esm/schemas/ngff_image.d.ts.map +1 -1
- package/esm/schemas/ngff_image.js +11 -2
- package/esm/schemas/ome_zarr.d.ts +617 -0
- package/esm/schemas/ome_zarr.d.ts.map +1 -0
- package/esm/schemas/ome_zarr.js +208 -0
- package/esm/schemas/rfc4.d.ts +334 -0
- package/esm/schemas/rfc4.d.ts.map +1 -0
- package/esm/schemas/rfc4.js +129 -0
- package/esm/schemas/units.d.ts +70 -5
- package/esm/schemas/units.d.ts.map +1 -1
- package/esm/schemas/units.js +4 -12
- package/esm/schemas/zarr_metadata.d.ts +10 -4
- package/esm/schemas/zarr_metadata.d.ts.map +1 -1
- package/esm/schemas/zarr_metadata.js +22 -1
- package/esm/types/array_interface.d.ts +7 -0
- package/esm/types/array_interface.d.ts.map +1 -0
- package/esm/types/array_interface.js +1 -0
- package/esm/types/hcs.d.ts +70 -0
- package/esm/types/hcs.d.ts.map +1 -0
- package/esm/types/hcs.js +204 -0
- package/esm/types/methods.d.ts.map +1 -1
- package/esm/types/methods.js +2 -0
- package/esm/types/multiscales.d.ts.map +1 -1
- package/esm/types/ngff_image.d.ts +6 -3
- package/esm/types/ngff_image.d.ts.map +1 -1
- package/esm/types/ngff_image.js +13 -1
- package/esm/types/rfc4.d.ts +94 -0
- package/esm/types/rfc4.d.ts.map +1 -0
- package/esm/types/rfc4.js +135 -0
- package/esm/types/units.d.ts +1 -1
- package/esm/types/units.d.ts.map +1 -1
- package/esm/types/zarr_metadata.d.ts +14 -5
- package/esm/types/zarr_metadata.d.ts.map +1 -1
- package/esm/utils/create_queue.d.ts +6 -0
- package/esm/utils/create_queue.d.ts.map +1 -0
- package/esm/utils/create_queue.js +11 -0
- package/esm/utils/factory.d.ts +1 -1
- package/esm/utils/factory.d.ts.map +1 -1
- package/esm/utils/factory.js +16 -7
- package/esm/utils/method_metadata.d.ts +10 -0
- package/esm/utils/method_metadata.d.ts.map +1 -0
- package/esm/utils/method_metadata.js +37 -0
- package/esm/utils/validation.d.ts.map +1 -1
- package/package.json +7 -1
- package/script/io/from_ngff_zarr.d.ts +4 -1
- package/script/io/from_ngff_zarr.d.ts.map +1 -1
- package/script/io/from_ngff_zarr.js +94 -27
- package/script/io/hcs.d.ts +18 -0
- package/script/io/hcs.d.ts.map +1 -0
- package/script/io/hcs.js +55 -0
- package/script/io/itk_image_to_ngff_image.d.ts +30 -0
- package/script/io/itk_image_to_ngff_image.d.ts.map +1 -0
- package/script/io/itk_image_to_ngff_image.js +153 -0
- package/script/io/ngff_image_to_itk_image.d.ts +30 -0
- package/script/io/ngff_image_to_itk_image.d.ts.map +1 -0
- package/script/io/ngff_image_to_itk_image.js +244 -0
- package/script/io/to_multiscales.d.ts +18 -0
- package/script/io/to_multiscales.d.ts.map +1 -0
- package/script/io/to_multiscales.js +67 -0
- package/script/io/to_ngff_image.d.ts +17 -0
- package/script/io/to_ngff_image.d.ts.map +1 -0
- package/script/io/to_ngff_image.js +162 -0
- package/script/io/to_ngff_zarr.d.ts +3 -2
- package/script/io/to_ngff_zarr.d.ts.map +1 -1
- package/script/io/to_ngff_zarr.js +289 -26
- package/script/methods/itkwasm.d.ts +6 -0
- package/script/methods/itkwasm.d.ts.map +1 -0
- package/script/methods/itkwasm.js +984 -0
- package/script/mod.d.ts +9 -2
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +12 -3
- package/script/schemas/coordinate_systems.d.ts +251 -0
- package/script/schemas/coordinate_systems.d.ts.map +1 -0
- package/script/schemas/coordinate_systems.js +142 -0
- package/script/schemas/index.d.ts +9 -0
- package/script/schemas/index.d.ts.map +1 -0
- package/script/schemas/index.js +101 -0
- package/script/schemas/methods.d.ts.map +1 -1
- package/script/schemas/methods.js +2 -0
- package/script/schemas/multiscales.d.ts.map +1 -1
- package/script/schemas/multiscales.js +2 -0
- package/script/schemas/ngff_image.d.ts +9 -2
- package/script/schemas/ngff_image.d.ts.map +1 -1
- package/script/schemas/ngff_image.js +11 -2
- package/script/schemas/ome_zarr.d.ts +617 -0
- package/script/schemas/ome_zarr.d.ts.map +1 -0
- package/script/schemas/ome_zarr.js +211 -0
- package/script/schemas/rfc4.d.ts +334 -0
- package/script/schemas/rfc4.d.ts.map +1 -0
- package/script/schemas/rfc4.js +132 -0
- package/script/schemas/units.d.ts +70 -5
- package/script/schemas/units.d.ts.map +1 -1
- package/script/schemas/units.js +4 -12
- package/script/schemas/zarr_metadata.d.ts +10 -4
- package/script/schemas/zarr_metadata.d.ts.map +1 -1
- package/script/schemas/zarr_metadata.js +23 -2
- package/script/types/array_interface.d.ts +7 -0
- package/script/types/array_interface.d.ts.map +1 -0
- package/script/types/array_interface.js +2 -0
- package/script/types/hcs.d.ts +70 -0
- package/script/types/hcs.d.ts.map +1 -0
- package/script/types/hcs.js +233 -0
- package/script/types/methods.d.ts.map +1 -1
- package/script/types/methods.js +2 -0
- package/script/types/multiscales.d.ts.map +1 -1
- package/script/types/ngff_image.d.ts +6 -3
- package/script/types/ngff_image.d.ts.map +1 -1
- package/script/types/ngff_image.js +13 -1
- package/script/types/rfc4.d.ts +94 -0
- package/script/types/rfc4.d.ts.map +1 -0
- package/script/types/rfc4.js +143 -0
- package/script/types/units.d.ts +1 -1
- package/script/types/units.d.ts.map +1 -1
- package/script/types/zarr_metadata.d.ts +14 -5
- package/script/types/zarr_metadata.d.ts.map +1 -1
- package/script/utils/create_queue.d.ts +6 -0
- package/script/utils/create_queue.d.ts.map +1 -0
- package/script/utils/create_queue.js +17 -0
- package/script/utils/factory.d.ts +1 -1
- package/script/utils/factory.d.ts.map +1 -1
- package/script/utils/factory.js +39 -7
- package/script/utils/method_metadata.d.ts +10 -0
- package/script/utils/method_metadata.d.ts.map +1 -0
- package/script/utils/method_metadata.js +40 -0
- package/script/utils/validation.d.ts.map +1 -1
- package/esm/schemas/lazy_array.d.ts +0 -8
- package/esm/schemas/lazy_array.d.ts.map +0 -1
- package/esm/schemas/lazy_array.js +0 -7
- package/esm/types/lazy_array.d.ts +0 -18
- package/esm/types/lazy_array.d.ts.map +0 -1
- package/esm/types/lazy_array.js +0 -27
- package/script/schemas/lazy_array.d.ts +0 -8
- package/script/schemas/lazy_array.d.ts.map +0 -1
- package/script/schemas/lazy_array.js +0 -10
- package/script/types/lazy_array.d.ts +0 -18
- package/script/types/lazy_array.d.ts.map +0 -1
- package/script/types/lazy_array.js +0 -31
package/script/mod.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export * from "./types/units.js";
|
|
2
2
|
export * from "./types/methods.js";
|
|
3
|
-
export * from "./types/
|
|
3
|
+
export * from "./types/array_interface.js";
|
|
4
4
|
export * from "./types/zarr_metadata.js";
|
|
5
5
|
export * from "./types/ngff_image.js";
|
|
6
6
|
export * from "./types/multiscales.js";
|
|
7
|
+
export * from "./types/rfc4.js";
|
|
8
|
+
export * from "./types/hcs.js";
|
|
7
9
|
export * from "./schemas/units.js";
|
|
8
10
|
export * from "./schemas/methods.js";
|
|
9
|
-
export * from "./schemas/lazy_array.js";
|
|
10
11
|
export * from "./schemas/zarr_metadata.js";
|
|
11
12
|
export * from "./schemas/ngff_image.js";
|
|
12
13
|
export * from "./schemas/multiscales.js";
|
|
13
14
|
export { isValidDimension, isValidUnit, validateMetadata, } from "./utils/validation.js";
|
|
14
15
|
export { createAxis, createDataset, createMetadata, createMultiscales, createNgffImage, } from "./utils/factory.js";
|
|
16
|
+
export { getMethodMetadata } from "./utils/method_metadata.js";
|
|
15
17
|
export * from "./io/from_ngff_zarr.js";
|
|
16
18
|
export * from "./io/to_ngff_zarr.js";
|
|
19
|
+
export * from "./io/to_multiscales.js";
|
|
20
|
+
export type { MemoryStore } from "./io/from_ngff_zarr.js";
|
|
21
|
+
export * from "./io/itk_image_to_ngff_image.js";
|
|
22
|
+
export * from "./io/ngff_image_to_itk_image.js";
|
|
23
|
+
export * from "./io/hcs.js";
|
|
17
24
|
//# sourceMappingURL=mod.d.ts.map
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC"}
|
package/script/mod.js
CHANGED
|
@@ -14,16 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createNgffImage = exports.createMultiscales = exports.createMetadata = exports.createDataset = exports.createAxis = exports.validateMetadata = exports.isValidUnit = exports.isValidDimension = void 0;
|
|
17
|
+
exports.getMethodMetadata = exports.createNgffImage = exports.createMultiscales = exports.createMetadata = exports.createDataset = exports.createAxis = exports.validateMetadata = exports.isValidUnit = exports.isValidDimension = void 0;
|
|
18
|
+
// SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
|
|
19
|
+
// SPDX-License-Identifier: MIT
|
|
18
20
|
__exportStar(require("./types/units.js"), exports);
|
|
19
21
|
__exportStar(require("./types/methods.js"), exports);
|
|
20
|
-
__exportStar(require("./types/
|
|
22
|
+
__exportStar(require("./types/array_interface.js"), exports);
|
|
21
23
|
__exportStar(require("./types/zarr_metadata.js"), exports);
|
|
22
24
|
__exportStar(require("./types/ngff_image.js"), exports);
|
|
23
25
|
__exportStar(require("./types/multiscales.js"), exports);
|
|
26
|
+
__exportStar(require("./types/rfc4.js"), exports);
|
|
27
|
+
__exportStar(require("./types/hcs.js"), exports);
|
|
24
28
|
__exportStar(require("./schemas/units.js"), exports);
|
|
25
29
|
__exportStar(require("./schemas/methods.js"), exports);
|
|
26
|
-
__exportStar(require("./schemas/lazy_array.js"), exports);
|
|
27
30
|
__exportStar(require("./schemas/zarr_metadata.js"), exports);
|
|
28
31
|
__exportStar(require("./schemas/ngff_image.js"), exports);
|
|
29
32
|
__exportStar(require("./schemas/multiscales.js"), exports);
|
|
@@ -37,5 +40,11 @@ Object.defineProperty(exports, "createDataset", { enumerable: true, get: functio
|
|
|
37
40
|
Object.defineProperty(exports, "createMetadata", { enumerable: true, get: function () { return factory_js_1.createMetadata; } });
|
|
38
41
|
Object.defineProperty(exports, "createMultiscales", { enumerable: true, get: function () { return factory_js_1.createMultiscales; } });
|
|
39
42
|
Object.defineProperty(exports, "createNgffImage", { enumerable: true, get: function () { return factory_js_1.createNgffImage; } });
|
|
43
|
+
var method_metadata_js_1 = require("./utils/method_metadata.js");
|
|
44
|
+
Object.defineProperty(exports, "getMethodMetadata", { enumerable: true, get: function () { return method_metadata_js_1.getMethodMetadata; } });
|
|
40
45
|
__exportStar(require("./io/from_ngff_zarr.js"), exports);
|
|
41
46
|
__exportStar(require("./io/to_ngff_zarr.js"), exports);
|
|
47
|
+
__exportStar(require("./io/to_multiscales.js"), exports);
|
|
48
|
+
__exportStar(require("./io/itk_image_to_ngff_image.js"), exports);
|
|
49
|
+
__exportStar(require("./io/ngff_image_to_itk_image.js"), exports);
|
|
50
|
+
__exportStar(require("./io/hcs.js"), exports);
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CoordinateSystemSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
axes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
name: z.ZodLiteral<"c">;
|
|
6
|
+
type: z.ZodLiteral<"channel">;
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
name: z.ZodEnum<{
|
|
9
|
+
x: "x";
|
|
10
|
+
y: "y";
|
|
11
|
+
z: "z";
|
|
12
|
+
}>;
|
|
13
|
+
type: z.ZodLiteral<"space">;
|
|
14
|
+
unit: z.ZodEnum<{
|
|
15
|
+
angstrom: "angstrom";
|
|
16
|
+
attometer: "attometer";
|
|
17
|
+
centimeter: "centimeter";
|
|
18
|
+
decimeter: "decimeter";
|
|
19
|
+
exameter: "exameter";
|
|
20
|
+
femtometer: "femtometer";
|
|
21
|
+
foot: "foot";
|
|
22
|
+
gigameter: "gigameter";
|
|
23
|
+
hectometer: "hectometer";
|
|
24
|
+
inch: "inch";
|
|
25
|
+
kilometer: "kilometer";
|
|
26
|
+
megameter: "megameter";
|
|
27
|
+
meter: "meter";
|
|
28
|
+
micrometer: "micrometer";
|
|
29
|
+
mile: "mile";
|
|
30
|
+
millimeter: "millimeter";
|
|
31
|
+
nanometer: "nanometer";
|
|
32
|
+
parsec: "parsec";
|
|
33
|
+
petameter: "petameter";
|
|
34
|
+
picometer: "picometer";
|
|
35
|
+
terameter: "terameter";
|
|
36
|
+
yard: "yard";
|
|
37
|
+
yoctometer: "yoctometer";
|
|
38
|
+
yottameter: "yottameter";
|
|
39
|
+
zeptometer: "zeptometer";
|
|
40
|
+
zettameter: "zettameter";
|
|
41
|
+
}>;
|
|
42
|
+
orientation: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<{
|
|
43
|
+
type: "anatomical";
|
|
44
|
+
value: "left-to-right" | "right-to-left" | "anterior-to-posterior" | "posterior-to-anterior" | "inferior-to-superior" | "superior-to-inferior" | "dorsal-to-ventral" | "ventral-to-dorsal" | "dorsal-to-palmar" | "palmar-to-dorsal" | "dorsal-to-plantar" | "plantar-to-dorsal" | "rostral-to-caudal" | "caudal-to-rostral" | "cranial-to-caudal" | "caudal-to-cranial" | "proximal-to-distal" | "distal-to-proximal";
|
|
45
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
46
|
+
type: "anatomical";
|
|
47
|
+
value: "left-to-right" | "right-to-left" | "anterior-to-posterior" | "posterior-to-anterior" | "inferior-to-superior" | "superior-to-inferior" | "dorsal-to-ventral" | "ventral-to-dorsal" | "dorsal-to-palmar" | "palmar-to-dorsal" | "dorsal-to-plantar" | "plantar-to-dorsal" | "rostral-to-caudal" | "caudal-to-rostral" | "cranial-to-caudal" | "caudal-to-cranial" | "proximal-to-distal" | "distal-to-proximal";
|
|
48
|
+
}, unknown>>, z.ZodNull]>>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
name: z.ZodLiteral<"t">;
|
|
51
|
+
type: z.ZodLiteral<"time">;
|
|
52
|
+
unit: z.ZodEnum<{
|
|
53
|
+
attosecond: "attosecond";
|
|
54
|
+
centisecond: "centisecond";
|
|
55
|
+
day: "day";
|
|
56
|
+
decisecond: "decisecond";
|
|
57
|
+
exasecond: "exasecond";
|
|
58
|
+
femtosecond: "femtosecond";
|
|
59
|
+
gigasecond: "gigasecond";
|
|
60
|
+
hectosecond: "hectosecond";
|
|
61
|
+
hour: "hour";
|
|
62
|
+
kilosecond: "kilosecond";
|
|
63
|
+
megasecond: "megasecond";
|
|
64
|
+
microsecond: "microsecond";
|
|
65
|
+
millisecond: "millisecond";
|
|
66
|
+
minute: "minute";
|
|
67
|
+
nanosecond: "nanosecond";
|
|
68
|
+
petasecond: "petasecond";
|
|
69
|
+
picosecond: "picosecond";
|
|
70
|
+
second: "second";
|
|
71
|
+
terasecond: "terasecond";
|
|
72
|
+
yoctosecond: "yoctosecond";
|
|
73
|
+
yottasecond: "yottasecond";
|
|
74
|
+
zeptosecond: "zeptosecond";
|
|
75
|
+
zettasecond: "zettasecond";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strip>]>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export declare const IdentityTransformationSchema: z.ZodType<{
|
|
80
|
+
type: "identity";
|
|
81
|
+
input?: string | string[] | undefined;
|
|
82
|
+
output?: string | string[] | undefined;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
export declare const MapAxisTransformationSchema: z.ZodType<{
|
|
86
|
+
type: "mapAxis";
|
|
87
|
+
mapAxis: Record<string, string>;
|
|
88
|
+
input?: string | string[] | undefined;
|
|
89
|
+
output?: string | string[] | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const TranslationTransformationSchema: z.ZodType<{
|
|
93
|
+
type: "translation";
|
|
94
|
+
translation?: number[] | undefined;
|
|
95
|
+
path?: string | undefined;
|
|
96
|
+
input?: string | string[] | undefined;
|
|
97
|
+
output?: string | string[] | undefined;
|
|
98
|
+
name?: string | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
export declare const ScaleTransformationSchema: z.ZodType<{
|
|
101
|
+
type: "scale";
|
|
102
|
+
scale?: number[] | undefined;
|
|
103
|
+
path?: string | undefined;
|
|
104
|
+
input?: string | string[] | undefined;
|
|
105
|
+
output?: string | string[] | undefined;
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
export declare const AffineTransformationSchema: z.ZodType<{
|
|
109
|
+
type: "affine";
|
|
110
|
+
affine?: number[][] | undefined;
|
|
111
|
+
path?: string | undefined;
|
|
112
|
+
input?: string | string[] | undefined;
|
|
113
|
+
output?: string | string[] | undefined;
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const RotationTransformationSchema: z.ZodType<{
|
|
117
|
+
type: "rotation";
|
|
118
|
+
rotation?: number[] | undefined;
|
|
119
|
+
path?: string | undefined;
|
|
120
|
+
input?: string | string[] | undefined;
|
|
121
|
+
output?: string | string[] | undefined;
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
type BaseCoordinateTransformation = {
|
|
125
|
+
type: "identity" | "mapAxis" | "translation" | "scale" | "affine" | "rotation";
|
|
126
|
+
input?: string | string[] | undefined;
|
|
127
|
+
output?: string | string[] | undefined;
|
|
128
|
+
name?: string | undefined;
|
|
129
|
+
mapAxis?: Record<string, string> | undefined;
|
|
130
|
+
translation?: number[] | undefined;
|
|
131
|
+
path?: string | undefined;
|
|
132
|
+
scale?: number[] | undefined;
|
|
133
|
+
affine?: number[][] | undefined;
|
|
134
|
+
rotation?: number[] | undefined;
|
|
135
|
+
};
|
|
136
|
+
export declare const SequenceTransformationSchema: z.ZodType<{
|
|
137
|
+
type: "sequence";
|
|
138
|
+
transformations: BaseCoordinateTransformation[];
|
|
139
|
+
input?: string | string[] | undefined;
|
|
140
|
+
output?: string | string[] | undefined;
|
|
141
|
+
name?: string | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export declare const InverseTransformationSchema: z.ZodType<{
|
|
144
|
+
type: "inverseOf";
|
|
145
|
+
transformation: BaseCoordinateTransformation;
|
|
146
|
+
input?: string | string[] | undefined;
|
|
147
|
+
output?: string | string[] | undefined;
|
|
148
|
+
name?: string | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
export declare const BijectionTransformationSchema: z.ZodType<{
|
|
151
|
+
type: "bijection";
|
|
152
|
+
forward: BaseCoordinateTransformation;
|
|
153
|
+
inverse: BaseCoordinateTransformation;
|
|
154
|
+
input?: string | string[] | undefined;
|
|
155
|
+
output?: string | string[] | undefined;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
export declare const ByDimensionTransformationSchema: z.ZodType<{
|
|
159
|
+
type: "byDimension";
|
|
160
|
+
transformations: BaseCoordinateTransformation[];
|
|
161
|
+
input?: string | string[] | undefined;
|
|
162
|
+
output?: string | string[] | undefined;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
export declare const CoordinateTransformationSchema: z.ZodType<{
|
|
166
|
+
type: "identity";
|
|
167
|
+
input?: string | string[] | undefined;
|
|
168
|
+
output?: string | string[] | undefined;
|
|
169
|
+
name?: string | undefined;
|
|
170
|
+
} | {
|
|
171
|
+
type: "mapAxis";
|
|
172
|
+
mapAxis: Record<string, string>;
|
|
173
|
+
input?: string | string[] | undefined;
|
|
174
|
+
output?: string | string[] | undefined;
|
|
175
|
+
name?: string | undefined;
|
|
176
|
+
} | {
|
|
177
|
+
type: "translation";
|
|
178
|
+
translation?: number[] | undefined;
|
|
179
|
+
path?: string | undefined;
|
|
180
|
+
input?: string | string[] | undefined;
|
|
181
|
+
output?: string | string[] | undefined;
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
type: "scale";
|
|
185
|
+
scale?: number[] | undefined;
|
|
186
|
+
path?: string | undefined;
|
|
187
|
+
input?: string | string[] | undefined;
|
|
188
|
+
output?: string | string[] | undefined;
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
type: "affine";
|
|
192
|
+
affine?: number[][] | undefined;
|
|
193
|
+
path?: string | undefined;
|
|
194
|
+
input?: string | string[] | undefined;
|
|
195
|
+
output?: string | string[] | undefined;
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
} | {
|
|
198
|
+
type: "rotation";
|
|
199
|
+
rotation?: number[] | undefined;
|
|
200
|
+
path?: string | undefined;
|
|
201
|
+
input?: string | string[] | undefined;
|
|
202
|
+
output?: string | string[] | undefined;
|
|
203
|
+
name?: string | undefined;
|
|
204
|
+
} | {
|
|
205
|
+
type: "sequence";
|
|
206
|
+
transformations: BaseCoordinateTransformation[];
|
|
207
|
+
input?: string | string[] | undefined;
|
|
208
|
+
output?: string | string[] | undefined;
|
|
209
|
+
name?: string | undefined;
|
|
210
|
+
} | {
|
|
211
|
+
type: "inverseOf";
|
|
212
|
+
transformation: BaseCoordinateTransformation;
|
|
213
|
+
input?: string | string[] | undefined;
|
|
214
|
+
output?: string | string[] | undefined;
|
|
215
|
+
name?: string | undefined;
|
|
216
|
+
} | {
|
|
217
|
+
type: "bijection";
|
|
218
|
+
forward: BaseCoordinateTransformation;
|
|
219
|
+
inverse: BaseCoordinateTransformation;
|
|
220
|
+
input?: string | string[] | undefined;
|
|
221
|
+
output?: string | string[] | undefined;
|
|
222
|
+
name?: string | undefined;
|
|
223
|
+
} | {
|
|
224
|
+
type: "byDimension";
|
|
225
|
+
transformations: BaseCoordinateTransformation[];
|
|
226
|
+
input?: string | string[] | undefined;
|
|
227
|
+
output?: string | string[] | undefined;
|
|
228
|
+
name?: string | undefined;
|
|
229
|
+
}>;
|
|
230
|
+
export declare const ArrayCoordinateSystemSchema: z.ZodObject<{
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
axes: z.ZodArray<z.ZodObject<{
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
type: z.ZodLiteral<"array">;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type CoordinateSystem = z.infer<typeof CoordinateSystemSchema>;
|
|
238
|
+
export type IdentityTransformation = z.infer<typeof IdentityTransformationSchema>;
|
|
239
|
+
export type MapAxisTransformation = z.infer<typeof MapAxisTransformationSchema>;
|
|
240
|
+
export type TranslationTransformation = z.infer<typeof TranslationTransformationSchema>;
|
|
241
|
+
export type ScaleTransformation = z.infer<typeof ScaleTransformationSchema>;
|
|
242
|
+
export type AffineTransformation = z.infer<typeof AffineTransformationSchema>;
|
|
243
|
+
export type RotationTransformation = z.infer<typeof RotationTransformationSchema>;
|
|
244
|
+
export type SequenceTransformation = z.infer<typeof SequenceTransformationSchema>;
|
|
245
|
+
export type InverseTransformation = z.infer<typeof InverseTransformationSchema>;
|
|
246
|
+
export type BijectionTransformation = z.infer<typeof BijectionTransformationSchema>;
|
|
247
|
+
export type ByDimensionTransformation = z.infer<typeof ByDimensionTransformationSchema>;
|
|
248
|
+
export type CoordinateTransformation = z.infer<typeof CoordinateTransformationSchema>;
|
|
249
|
+
export type ArrayCoordinateSystem = z.infer<typeof ArrayCoordinateSystemSchema>;
|
|
250
|
+
export {};
|
|
251
|
+
//# sourceMappingURL=coordinate_systems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coordinate_systems.d.ts","sourceRoot":"","sources":["../../src/schemas/coordinate_systems.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC;AAGH,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC;IACnD,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAKC,CAAC;AAGH,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC;IAClD,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO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AAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArrayCoordinateSystemSchema = exports.CoordinateTransformationSchema = exports.ByDimensionTransformationSchema = exports.BijectionTransformationSchema = exports.InverseTransformationSchema = exports.SequenceTransformationSchema = exports.RotationTransformationSchema = exports.AffineTransformationSchema = exports.ScaleTransformationSchema = exports.TranslationTransformationSchema = exports.MapAxisTransformationSchema = exports.IdentityTransformationSchema = exports.CoordinateSystemSchema = void 0;
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
|
|
5
|
+
// SPDX-License-Identifier: MIT
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const rfc4_js_1 = require("./rfc4.js");
|
|
8
|
+
// RFC5: Coordinate Systems and Transformations
|
|
9
|
+
// Coordinate System schema
|
|
10
|
+
exports.CoordinateSystemSchema = zod_1.z.object({
|
|
11
|
+
name: zod_1.z.string().min(1), // MUST be non-empty and unique
|
|
12
|
+
axes: zod_1.z.array(rfc4_js_1.AxisSchema), // Array of axes that define the coordinate system
|
|
13
|
+
});
|
|
14
|
+
// Identity transformation
|
|
15
|
+
exports.IdentityTransformationSchema = zod_1.z.object({
|
|
16
|
+
type: zod_1.z.literal("identity"),
|
|
17
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
18
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
19
|
+
name: zod_1.z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
// Map Axis transformation (axis permutation)
|
|
22
|
+
exports.MapAxisTransformationSchema = zod_1.z.object({
|
|
23
|
+
type: zod_1.z.literal("mapAxis"),
|
|
24
|
+
mapAxis: zod_1.z.record(zod_1.z.string(), zod_1.z.string()), // Dictionary mapping axis names
|
|
25
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
26
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
27
|
+
name: zod_1.z.string().optional(),
|
|
28
|
+
});
|
|
29
|
+
// Translation transformation
|
|
30
|
+
exports.TranslationTransformationSchema = zod_1.z
|
|
31
|
+
.object({
|
|
32
|
+
type: zod_1.z.literal("translation"),
|
|
33
|
+
translation: zod_1.z.array(zod_1.z.number()).optional(),
|
|
34
|
+
path: zod_1.z.string().optional(), // For binary data
|
|
35
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
36
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
37
|
+
name: zod_1.z.string().optional(),
|
|
38
|
+
})
|
|
39
|
+
.refine((data) => data.translation !== undefined || data.path !== undefined, {
|
|
40
|
+
message: "Either translation array or path must be provided",
|
|
41
|
+
});
|
|
42
|
+
// Scale transformation
|
|
43
|
+
exports.ScaleTransformationSchema = zod_1.z
|
|
44
|
+
.object({
|
|
45
|
+
type: zod_1.z.literal("scale"),
|
|
46
|
+
scale: zod_1.z.array(zod_1.z.number()).optional(),
|
|
47
|
+
path: zod_1.z.string().optional(), // For binary data
|
|
48
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
49
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
50
|
+
name: zod_1.z.string().optional(),
|
|
51
|
+
})
|
|
52
|
+
.refine((data) => data.scale !== undefined || data.path !== undefined, {
|
|
53
|
+
message: "Either scale array or path must be provided",
|
|
54
|
+
});
|
|
55
|
+
// Affine transformation
|
|
56
|
+
exports.AffineTransformationSchema = zod_1.z
|
|
57
|
+
.object({
|
|
58
|
+
type: zod_1.z.literal("affine"),
|
|
59
|
+
affine: zod_1.z.array(zod_1.z.array(zod_1.z.number())).optional(), // 2D array for matrix
|
|
60
|
+
path: zod_1.z.string().optional(), // For binary data
|
|
61
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
62
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
63
|
+
name: zod_1.z.string().optional(),
|
|
64
|
+
})
|
|
65
|
+
.refine((data) => data.affine !== undefined || data.path !== undefined, {
|
|
66
|
+
message: "Either affine matrix or path must be provided",
|
|
67
|
+
});
|
|
68
|
+
// Rotation transformation
|
|
69
|
+
exports.RotationTransformationSchema = zod_1.z
|
|
70
|
+
.object({
|
|
71
|
+
type: zod_1.z.literal("rotation"),
|
|
72
|
+
rotation: zod_1.z.array(zod_1.z.number()).optional(),
|
|
73
|
+
path: zod_1.z.string().optional(), // For binary data
|
|
74
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
75
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
76
|
+
name: zod_1.z.string().optional(),
|
|
77
|
+
})
|
|
78
|
+
.refine((data) => data.rotation !== undefined || data.path !== undefined, {
|
|
79
|
+
message: "Either rotation array or path must be provided",
|
|
80
|
+
});
|
|
81
|
+
const BaseCoordinateTransformationSchema = zod_1.z.union([
|
|
82
|
+
exports.IdentityTransformationSchema,
|
|
83
|
+
exports.MapAxisTransformationSchema,
|
|
84
|
+
exports.TranslationTransformationSchema,
|
|
85
|
+
exports.ScaleTransformationSchema,
|
|
86
|
+
exports.AffineTransformationSchema,
|
|
87
|
+
exports.RotationTransformationSchema,
|
|
88
|
+
]);
|
|
89
|
+
// Sequence transformation (for chaining transformations)
|
|
90
|
+
exports.SequenceTransformationSchema = zod_1.z.object({
|
|
91
|
+
type: zod_1.z.literal("sequence"),
|
|
92
|
+
transformations: zod_1.z.array(BaseCoordinateTransformationSchema),
|
|
93
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
94
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
95
|
+
name: zod_1.z.string().optional(),
|
|
96
|
+
});
|
|
97
|
+
// Inverse transformation
|
|
98
|
+
exports.InverseTransformationSchema = zod_1.z.object({
|
|
99
|
+
type: zod_1.z.literal("inverseOf"),
|
|
100
|
+
transformation: BaseCoordinateTransformationSchema,
|
|
101
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
102
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
103
|
+
name: zod_1.z.string().optional(),
|
|
104
|
+
});
|
|
105
|
+
// Bijection transformation (forward and inverse)
|
|
106
|
+
exports.BijectionTransformationSchema = zod_1.z.object({
|
|
107
|
+
type: zod_1.z.literal("bijection"),
|
|
108
|
+
forward: BaseCoordinateTransformationSchema,
|
|
109
|
+
inverse: BaseCoordinateTransformationSchema,
|
|
110
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
111
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
112
|
+
name: zod_1.z.string().optional(),
|
|
113
|
+
});
|
|
114
|
+
// By dimension transformation
|
|
115
|
+
exports.ByDimensionTransformationSchema = zod_1.z.object({
|
|
116
|
+
type: zod_1.z.literal("byDimension"),
|
|
117
|
+
transformations: zod_1.z.array(BaseCoordinateTransformationSchema),
|
|
118
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
119
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
120
|
+
name: zod_1.z.string().optional(),
|
|
121
|
+
});
|
|
122
|
+
// Complete coordinate transformation schema (union of all types)
|
|
123
|
+
exports.CoordinateTransformationSchema = zod_1.z.union([
|
|
124
|
+
exports.IdentityTransformationSchema,
|
|
125
|
+
exports.MapAxisTransformationSchema,
|
|
126
|
+
exports.TranslationTransformationSchema,
|
|
127
|
+
exports.ScaleTransformationSchema,
|
|
128
|
+
exports.AffineTransformationSchema,
|
|
129
|
+
exports.RotationTransformationSchema,
|
|
130
|
+
exports.SequenceTransformationSchema,
|
|
131
|
+
exports.InverseTransformationSchema,
|
|
132
|
+
exports.BijectionTransformationSchema,
|
|
133
|
+
exports.ByDimensionTransformationSchema,
|
|
134
|
+
]);
|
|
135
|
+
// Array coordinate system schema
|
|
136
|
+
exports.ArrayCoordinateSystemSchema = zod_1.z.object({
|
|
137
|
+
name: zod_1.z.string().min(1),
|
|
138
|
+
axes: zod_1.z.array(zod_1.z.object({
|
|
139
|
+
name: zod_1.z.string(),
|
|
140
|
+
type: zod_1.z.literal("array"),
|
|
141
|
+
})),
|
|
142
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./units.js";
|
|
2
|
+
export * from "./methods.js";
|
|
3
|
+
export { type AnatomicalOrientation, AnatomicalOrientationSchema, type AnatomicalOrientationValues, AnatomicalOrientationValuesSchema, type Axes as RFC4Axes, type AxesNames, AxesNamesSchema, AxesSchema as RFC4AxesSchema, type Axis as RFC4Axis, AxisSchema as RFC4AxisSchema, type AxisType, AxisTypeSchema, type BaseAxis, BaseAxisSchema, type ChannelAxis, ChannelAxisSchema, type Orientation, OrientationSchema, type SpaceAxesNames, SpaceAxesNamesSchema, type SpaceAxis, SpaceAxisSchema, type SpaceUnit, SpaceUnitSchema, type TimeAxis, TimeAxisSchema, type TimeUnit, TimeUnitSchema, } from "./rfc4.js";
|
|
4
|
+
export * from "./coordinate_systems.js";
|
|
5
|
+
export { AxisSchema, DatasetSchema, IdentitySchema, MetadataSchema, OmeroChannelSchema, OmeroSchema, OmeroWindowSchema, ScaleSchema, TransformSchema, TranslationSchema, } from "./zarr_metadata.js";
|
|
6
|
+
export { AxisSchemaV05, type AxisV05, type CoordinateTransformation as OmeZarrCoordinateTransformation, DatasetSchemaV01, DatasetSchemaV05, type DatasetV01, type DatasetV05, type Image, ImageSchema, ImageSchemaV01, ImageSchemaV05, type ImageV01, type ImageV05, type LabelColor, LabelColorSchema, type LabelProperty, LabelPropertySchema, LabelSchemaV04, type LabelV04, type Multiscales, MultiscalesSchema, MultiscalesSchemaV01, MultiscalesSchemaV05, type MultiscalesV01, type MultiscalesV05, type OmeMetadata, OmeMetadataSchema, type Omero as OmeZarrOmero, type OmeroChannel as OmeZarrOmeroChannel, OmeroChannelSchema as OmeZarrOmeroChannelSchema, OmeroSchema as OmeZarrOmeroSchema, type OmeroWindow as OmeZarrOmeroWindow, OmeroWindowSchema as OmeZarrOmeroWindowSchema, type OmeSeries, OmeSeriesSchema, OmeZarrCoordinateTransformationSchema, type OmeZarrMetadata, OmeZarrMetadataSchema, type OmeZarrVersion, OmeZarrVersion01Schema, OmeZarrVersion02Schema, OmeZarrVersion03Schema, OmeZarrVersion04Schema, OmeZarrVersion05Schema, OmeZarrVersionSchema, type PlateAcquisition, PlateAcquisitionSchema, type PlateColumn, PlateColumnSchema, type PlateRow, PlateRowSchema, PlateSchemaV05, type PlateV05, type PlateWell, PlateWellSchema, type WellImage, WellImageSchema, WellSchemaV05, type WellV05, } from "./ome_zarr.js";
|
|
7
|
+
export * from "./ngff_image.js";
|
|
8
|
+
export * from "./multiscales.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,KAAK,qBAAqB,EAC1B,2BAA2B,EAE3B,KAAK,2BAA2B,EAChC,iCAAiC,EACjC,KAAK,IAAI,IAAI,QAAQ,EACrB,KAAK,SAAS,EACd,eAAe,EACf,UAAU,IAAI,cAAc,EAC5B,KAAK,IAAI,IAAI,QAAQ,EACrB,UAAU,IAAI,cAAc,EAC5B,KAAK,QAAQ,EACb,cAAc,EACd,KAAK,QAAQ,EACb,cAAc,EACd,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,SAAS,EACd,eAAe,EACf,KAAK,SAAS,EACd,eAAe,EACf,KAAK,QAAQ,EACb,cAAc,EACd,KAAK,QAAQ,EACb,cAAc,GACf,MAAM,WAAW,CAAC;AAGnB,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EACL,UAAU,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAEL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,wBAAwB,IAAI,+BAA+B,EAEhE,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,KAAK,EACV,WAAW,EAEX,cAAc,EACd,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,UAAU,EAEf,gBAAgB,EAChB,KAAK,aAAa,EAClB,mBAAmB,EACnB,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,iBAAiB,EAEjB,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,KAAK,IAAI,YAAY,EAC1B,KAAK,YAAY,IAAI,mBAAmB,EACxC,kBAAkB,IAAI,yBAAyB,EAC/C,WAAW,IAAI,kBAAkB,EACjC,KAAK,WAAW,IAAI,kBAAkB,EAEtC,iBAAiB,IAAI,wBAAwB,EAC7C,KAAK,SAAS,EAEd,eAAe,EACf,qCAAqC,EACrC,KAAK,eAAe,EAEpB,qBAAqB,EAErB,KAAK,cAAc,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EAEtB,oBAAoB,EACpB,KAAK,gBAAgB,EAErB,sBAAsB,EACtB,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,QAAQ,EACb,cAAc,EACd,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,eAAe,EACf,KAAK,SAAS,EAEd,eAAe,EACf,aAAa,EACb,KAAK,OAAO,GACb,MAAM,eAAe,CAAC;AAGvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PlateAcquisitionSchema = exports.OmeZarrVersionSchema = exports.OmeZarrVersion05Schema = exports.OmeZarrVersion04Schema = exports.OmeZarrVersion03Schema = exports.OmeZarrVersion02Schema = exports.OmeZarrVersion01Schema = exports.OmeZarrMetadataSchema = exports.OmeZarrCoordinateTransformationSchema = exports.OmeSeriesSchema = exports.OmeZarrOmeroWindowSchema = exports.OmeZarrOmeroSchema = exports.OmeZarrOmeroChannelSchema = exports.OmeMetadataSchema = exports.MultiscalesSchemaV05 = exports.MultiscalesSchemaV01 = exports.MultiscalesSchema = exports.LabelSchemaV04 = exports.LabelPropertySchema = exports.LabelColorSchema = exports.ImageSchemaV05 = exports.ImageSchemaV01 = exports.ImageSchema = exports.DatasetSchemaV05 = exports.DatasetSchemaV01 = exports.AxisSchemaV05 = exports.TranslationSchema = exports.TransformSchema = exports.ScaleSchema = exports.OmeroWindowSchema = exports.OmeroSchema = exports.OmeroChannelSchema = exports.MetadataSchema = exports.IdentitySchema = exports.DatasetSchema = exports.AxisSchema = exports.TimeUnitSchema = exports.TimeAxisSchema = exports.SpaceUnitSchema = exports.SpaceAxisSchema = exports.SpaceAxesNamesSchema = exports.OrientationSchema = exports.ChannelAxisSchema = exports.BaseAxisSchema = exports.AxisTypeSchema = exports.RFC4AxisSchema = exports.RFC4AxesSchema = exports.AxesNamesSchema = exports.AnatomicalOrientationValuesSchema = exports.AnatomicalOrientationSchema = void 0;
|
|
18
|
+
exports.WellSchemaV05 = exports.WellImageSchema = exports.PlateWellSchema = exports.PlateSchemaV05 = exports.PlateRowSchema = exports.PlateColumnSchema = void 0;
|
|
19
|
+
// SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
|
|
20
|
+
// SPDX-License-Identifier: MIT
|
|
21
|
+
// Re-export all schemas with explicit naming to avoid conflicts
|
|
22
|
+
__exportStar(require("./units.js"), exports);
|
|
23
|
+
__exportStar(require("./methods.js"), exports);
|
|
24
|
+
// RFC4 schemas
|
|
25
|
+
var rfc4_js_1 = require("./rfc4.js");
|
|
26
|
+
Object.defineProperty(exports, "AnatomicalOrientationSchema", { enumerable: true, get: function () { return rfc4_js_1.AnatomicalOrientationSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "AnatomicalOrientationValuesSchema", { enumerable: true, get: function () { return rfc4_js_1.AnatomicalOrientationValuesSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "AxesNamesSchema", { enumerable: true, get: function () { return rfc4_js_1.AxesNamesSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "RFC4AxesSchema", { enumerable: true, get: function () { return rfc4_js_1.AxesSchema; } });
|
|
30
|
+
Object.defineProperty(exports, "RFC4AxisSchema", { enumerable: true, get: function () { return rfc4_js_1.AxisSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "AxisTypeSchema", { enumerable: true, get: function () { return rfc4_js_1.AxisTypeSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "BaseAxisSchema", { enumerable: true, get: function () { return rfc4_js_1.BaseAxisSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "ChannelAxisSchema", { enumerable: true, get: function () { return rfc4_js_1.ChannelAxisSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "OrientationSchema", { enumerable: true, get: function () { return rfc4_js_1.OrientationSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "SpaceAxesNamesSchema", { enumerable: true, get: function () { return rfc4_js_1.SpaceAxesNamesSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "SpaceAxisSchema", { enumerable: true, get: function () { return rfc4_js_1.SpaceAxisSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "SpaceUnitSchema", { enumerable: true, get: function () { return rfc4_js_1.SpaceUnitSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "TimeAxisSchema", { enumerable: true, get: function () { return rfc4_js_1.TimeAxisSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "TimeUnitSchema", { enumerable: true, get: function () { return rfc4_js_1.TimeUnitSchema; } });
|
|
40
|
+
// Coordinate systems (RFC5)
|
|
41
|
+
__exportStar(require("./coordinate_systems.js"), exports);
|
|
42
|
+
// Zarr metadata schemas (with RFC4 integration)
|
|
43
|
+
var zarr_metadata_js_1 = require("./zarr_metadata.js");
|
|
44
|
+
Object.defineProperty(exports, "AxisSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.AxisSchema; } });
|
|
45
|
+
Object.defineProperty(exports, "DatasetSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.DatasetSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "IdentitySchema", { enumerable: true, get: function () { return zarr_metadata_js_1.IdentitySchema; } });
|
|
47
|
+
Object.defineProperty(exports, "MetadataSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.MetadataSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "OmeroChannelSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.OmeroChannelSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "OmeroSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.OmeroSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "OmeroWindowSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.OmeroWindowSchema; } });
|
|
51
|
+
Object.defineProperty(exports, "ScaleSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.ScaleSchema; } });
|
|
52
|
+
Object.defineProperty(exports, "TransformSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.TransformSchema; } });
|
|
53
|
+
Object.defineProperty(exports, "TranslationSchema", { enumerable: true, get: function () { return zarr_metadata_js_1.TranslationSchema; } });
|
|
54
|
+
// OME-Zarr specification schemas
|
|
55
|
+
var ome_zarr_js_1 = require("./ome_zarr.js");
|
|
56
|
+
// Axis schemas
|
|
57
|
+
Object.defineProperty(exports, "AxisSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.AxisSchemaV05; } });
|
|
58
|
+
// Dataset schemas
|
|
59
|
+
Object.defineProperty(exports, "DatasetSchemaV01", { enumerable: true, get: function () { return ome_zarr_js_1.DatasetSchemaV01; } });
|
|
60
|
+
Object.defineProperty(exports, "DatasetSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.DatasetSchemaV05; } });
|
|
61
|
+
Object.defineProperty(exports, "ImageSchema", { enumerable: true, get: function () { return ome_zarr_js_1.ImageSchema; } });
|
|
62
|
+
// Image schemas
|
|
63
|
+
Object.defineProperty(exports, "ImageSchemaV01", { enumerable: true, get: function () { return ome_zarr_js_1.ImageSchemaV01; } });
|
|
64
|
+
Object.defineProperty(exports, "ImageSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.ImageSchemaV05; } });
|
|
65
|
+
// Label schemas
|
|
66
|
+
Object.defineProperty(exports, "LabelColorSchema", { enumerable: true, get: function () { return ome_zarr_js_1.LabelColorSchema; } });
|
|
67
|
+
Object.defineProperty(exports, "LabelPropertySchema", { enumerable: true, get: function () { return ome_zarr_js_1.LabelPropertySchema; } });
|
|
68
|
+
Object.defineProperty(exports, "LabelSchemaV04", { enumerable: true, get: function () { return ome_zarr_js_1.LabelSchemaV04; } });
|
|
69
|
+
Object.defineProperty(exports, "MultiscalesSchema", { enumerable: true, get: function () { return ome_zarr_js_1.MultiscalesSchema; } });
|
|
70
|
+
// Multiscales schemas
|
|
71
|
+
Object.defineProperty(exports, "MultiscalesSchemaV01", { enumerable: true, get: function () { return ome_zarr_js_1.MultiscalesSchemaV01; } });
|
|
72
|
+
Object.defineProperty(exports, "MultiscalesSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.MultiscalesSchemaV05; } });
|
|
73
|
+
Object.defineProperty(exports, "OmeMetadataSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeMetadataSchema; } });
|
|
74
|
+
Object.defineProperty(exports, "OmeZarrOmeroChannelSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeroChannelSchema; } });
|
|
75
|
+
Object.defineProperty(exports, "OmeZarrOmeroSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeroSchema; } });
|
|
76
|
+
// Core schemas
|
|
77
|
+
Object.defineProperty(exports, "OmeZarrOmeroWindowSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeroWindowSchema; } });
|
|
78
|
+
// OME metadata schemas
|
|
79
|
+
Object.defineProperty(exports, "OmeSeriesSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeSeriesSchema; } });
|
|
80
|
+
Object.defineProperty(exports, "OmeZarrCoordinateTransformationSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrCoordinateTransformationSchema; } });
|
|
81
|
+
// Comprehensive schema
|
|
82
|
+
Object.defineProperty(exports, "OmeZarrMetadataSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrMetadataSchema; } });
|
|
83
|
+
Object.defineProperty(exports, "OmeZarrVersion01Schema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersion01Schema; } });
|
|
84
|
+
Object.defineProperty(exports, "OmeZarrVersion02Schema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersion02Schema; } });
|
|
85
|
+
Object.defineProperty(exports, "OmeZarrVersion03Schema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersion03Schema; } });
|
|
86
|
+
Object.defineProperty(exports, "OmeZarrVersion04Schema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersion04Schema; } });
|
|
87
|
+
Object.defineProperty(exports, "OmeZarrVersion05Schema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersion05Schema; } });
|
|
88
|
+
// Version schemas
|
|
89
|
+
Object.defineProperty(exports, "OmeZarrVersionSchema", { enumerable: true, get: function () { return ome_zarr_js_1.OmeZarrVersionSchema; } });
|
|
90
|
+
// Plate schemas
|
|
91
|
+
Object.defineProperty(exports, "PlateAcquisitionSchema", { enumerable: true, get: function () { return ome_zarr_js_1.PlateAcquisitionSchema; } });
|
|
92
|
+
Object.defineProperty(exports, "PlateColumnSchema", { enumerable: true, get: function () { return ome_zarr_js_1.PlateColumnSchema; } });
|
|
93
|
+
Object.defineProperty(exports, "PlateRowSchema", { enumerable: true, get: function () { return ome_zarr_js_1.PlateRowSchema; } });
|
|
94
|
+
Object.defineProperty(exports, "PlateSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.PlateSchemaV05; } });
|
|
95
|
+
Object.defineProperty(exports, "PlateWellSchema", { enumerable: true, get: function () { return ome_zarr_js_1.PlateWellSchema; } });
|
|
96
|
+
// Well schemas
|
|
97
|
+
Object.defineProperty(exports, "WellImageSchema", { enumerable: true, get: function () { return ome_zarr_js_1.WellImageSchema; } });
|
|
98
|
+
Object.defineProperty(exports, "WellSchemaV05", { enumerable: true, get: function () { return ome_zarr_js_1.WellSchemaV05; } });
|
|
99
|
+
// NGFF Image and Multiscales
|
|
100
|
+
__exportStar(require("./ngff_image.js"), exports);
|
|
101
|
+
__exportStar(require("./multiscales.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/schemas/methods.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/schemas/methods.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,UAI5B,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MethodsSchema = void 0;
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
|
|
5
|
+
// SPDX-License-Identifier: MIT
|
|
4
6
|
const zod_1 = require("zod");
|
|
5
7
|
exports.MethodsSchema = zod_1.z.enum([
|
|
6
8
|
"itkwasm_gaussian",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiscales.d.ts","sourceRoot":"","sources":["../../src/schemas/multiscales.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multiscales.d.ts","sourceRoot":"","sources":["../../src/schemas/multiscales.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,UAK9B,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,UAQvC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MultiscalesOptionsSchema = exports.ChunkSpecSchema = void 0;
|
|
4
|
+
// SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
|
|
5
|
+
// SPDX-License-Identifier: MIT
|
|
4
6
|
const zod_1 = require("zod");
|
|
5
7
|
const ngff_image_js_1 = require("./ngff_image.js");
|
|
6
8
|
const zarr_metadata_js_1 = require("./zarr_metadata.js");
|