@fideus-labs/ngff-zarr 0.0.1 → 0.1.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 +9 -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 +25 -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 +216 -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 +273 -26
- package/esm/methods/itkwasm.d.ts +6 -0
- package/esm/methods/itkwasm.d.ts.map +1 -0
- package/esm/methods/itkwasm.js +816 -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 +644 -0
- package/esm/schemas/coordinate_systems.d.ts.map +1 -0
- package/esm/schemas/coordinate_systems.js +140 -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 +581 -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 +439 -0
- package/esm/schemas/rfc4.d.ts.map +1 -0
- package/esm/schemas/rfc4.js +129 -0
- package/esm/schemas/units.d.ts.map +1 -1
- package/esm/schemas/units.js +5 -0
- package/esm/schemas/zarr_metadata.d.ts +302 -9
- 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 +25 -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 +242 -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 +273 -26
- package/script/methods/itkwasm.d.ts +6 -0
- package/script/methods/itkwasm.d.ts.map +1 -0
- package/script/methods/itkwasm.js +842 -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 +644 -0
- package/script/schemas/coordinate_systems.d.ts.map +1 -0
- package/script/schemas/coordinate_systems.js +143 -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 +581 -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 +439 -0
- package/script/schemas/rfc4.d.ts.map +1 -0
- package/script/schemas/rfc4.js +132 -0
- package/script/schemas/units.d.ts.map +1 -1
- package/script/schemas/units.js +5 -0
- package/script/schemas/zarr_metadata.d.ts +302 -9
- 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
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
// Forward declaration for recursive types
|
|
82
|
+
const BaseCoordinateTransformationSchema = zod_1.z.union([
|
|
83
|
+
exports.IdentityTransformationSchema,
|
|
84
|
+
exports.MapAxisTransformationSchema,
|
|
85
|
+
exports.TranslationTransformationSchema,
|
|
86
|
+
exports.ScaleTransformationSchema,
|
|
87
|
+
exports.AffineTransformationSchema,
|
|
88
|
+
exports.RotationTransformationSchema,
|
|
89
|
+
]);
|
|
90
|
+
// Sequence transformation (for chaining transformations)
|
|
91
|
+
exports.SequenceTransformationSchema = zod_1.z.object({
|
|
92
|
+
type: zod_1.z.literal("sequence"),
|
|
93
|
+
transformations: zod_1.z.array(BaseCoordinateTransformationSchema),
|
|
94
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
95
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
96
|
+
name: zod_1.z.string().optional(),
|
|
97
|
+
});
|
|
98
|
+
// Inverse transformation
|
|
99
|
+
exports.InverseTransformationSchema = zod_1.z.object({
|
|
100
|
+
type: zod_1.z.literal("inverseOf"),
|
|
101
|
+
transformation: BaseCoordinateTransformationSchema,
|
|
102
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
103
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
104
|
+
name: zod_1.z.string().optional(),
|
|
105
|
+
});
|
|
106
|
+
// Bijection transformation (forward and inverse)
|
|
107
|
+
exports.BijectionTransformationSchema = zod_1.z.object({
|
|
108
|
+
type: zod_1.z.literal("bijection"),
|
|
109
|
+
forward: BaseCoordinateTransformationSchema,
|
|
110
|
+
inverse: BaseCoordinateTransformationSchema,
|
|
111
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
112
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
113
|
+
name: zod_1.z.string().optional(),
|
|
114
|
+
});
|
|
115
|
+
// By dimension transformation
|
|
116
|
+
exports.ByDimensionTransformationSchema = zod_1.z.object({
|
|
117
|
+
type: zod_1.z.literal("byDimension"),
|
|
118
|
+
transformations: zod_1.z.array(BaseCoordinateTransformationSchema),
|
|
119
|
+
input: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
120
|
+
output: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
121
|
+
name: zod_1.z.string().optional(),
|
|
122
|
+
});
|
|
123
|
+
// Complete coordinate transformation schema (union of all types)
|
|
124
|
+
exports.CoordinateTransformationSchema = zod_1.z.union([
|
|
125
|
+
exports.IdentityTransformationSchema,
|
|
126
|
+
exports.MapAxisTransformationSchema,
|
|
127
|
+
exports.TranslationTransformationSchema,
|
|
128
|
+
exports.ScaleTransformationSchema,
|
|
129
|
+
exports.AffineTransformationSchema,
|
|
130
|
+
exports.RotationTransformationSchema,
|
|
131
|
+
exports.SequenceTransformationSchema,
|
|
132
|
+
exports.InverseTransformationSchema,
|
|
133
|
+
exports.BijectionTransformationSchema,
|
|
134
|
+
exports.ByDimensionTransformationSchema,
|
|
135
|
+
]);
|
|
136
|
+
// Array coordinate system schema
|
|
137
|
+
exports.ArrayCoordinateSystemSchema = zod_1.z.object({
|
|
138
|
+
name: zod_1.z.string().min(1),
|
|
139
|
+
axes: zod_1.z.array(zod_1.z.object({
|
|
140
|
+
name: zod_1.z.string(),
|
|
141
|
+
type: zod_1.z.literal("array"),
|
|
142
|
+
})),
|
|
143
|
+
});
|
|
@@ -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");
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { UnitsSchema } from "./units.js";
|
|
3
|
-
|
|
3
|
+
declare const ZarrArraySchema: z.ZodObject<{
|
|
4
|
+
shape: z.ZodArray<z.ZodNumber>;
|
|
5
|
+
dtype: z.ZodString;
|
|
6
|
+
chunks: z.ZodArray<z.ZodNumber>;
|
|
7
|
+
path: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}>;
|
|
4
10
|
export declare const NgffImageOptionsSchema: z.ZodObject<{
|
|
5
|
-
data: typeof
|
|
11
|
+
data: typeof ZarrArraySchema;
|
|
6
12
|
dims: z.ZodArray<z.ZodString>;
|
|
7
13
|
scale: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8
14
|
translation: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -10,4 +16,5 @@ export declare const NgffImageOptionsSchema: z.ZodObject<{
|
|
|
10
16
|
axesUnits: z.ZodOptional<z.ZodRecord<z.ZodString, typeof UnitsSchema>>;
|
|
11
17
|
computedCallbacks: z.ZodDefault<z.ZodArray<z.ZodAny>>;
|
|
12
18
|
}>;
|
|
19
|
+
export {};
|
|
13
20
|
//# sourceMappingURL=ngff_image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngff_image.d.ts","sourceRoot":"","sources":["../../src/schemas/ngff_image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ngff_image.d.ts","sourceRoot":"","sources":["../../src/schemas/ngff_image.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,QAAA,MAAM,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;IACnB,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CAClC,CAMC,CAAC;AAEH,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,SAAS,CAAC;IAC/C,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7C,WAAW,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,WAAW,CAAC,CAAC,CAAC;IACvE,iBAAiB,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;CACvD,CAQC,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NgffImageOptionsSchema = 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 units_js_1 = require("./units.js");
|
|
6
|
-
|
|
8
|
+
// Since NgffImage now uses zarr.Array directly, we create a basic schema for validation
|
|
9
|
+
const ZarrArraySchema = zod_1.z.object({
|
|
10
|
+
shape: zod_1.z.array(zod_1.z.number()),
|
|
11
|
+
dtype: zod_1.z.string(),
|
|
12
|
+
chunks: zod_1.z.array(zod_1.z.number()),
|
|
13
|
+
path: zod_1.z.string().optional(),
|
|
14
|
+
name: zod_1.z.string().optional(),
|
|
15
|
+
});
|
|
7
16
|
exports.NgffImageOptionsSchema = zod_1.z.object({
|
|
8
|
-
data:
|
|
17
|
+
data: ZarrArraySchema,
|
|
9
18
|
dims: zod_1.z.array(zod_1.z.string()),
|
|
10
19
|
scale: zod_1.z.record(zod_1.z.string(), zod_1.z.number()),
|
|
11
20
|
translation: zod_1.z.record(zod_1.z.string(), zod_1.z.number()),
|