@vitessce/schemas 4.0.0-test.0 → 4.0.0-test.1
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-tsc/file-def-options.d.ts +10 -1
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +22 -15
- package/package.json +6 -6
- package/src/file-def-options.ts +8 -1
- package/dist/index.js +0 -9989
|
@@ -384,7 +384,16 @@ export declare const meshGlbSchema: z.ZodNullable<z.ZodObject<{
|
|
|
384
384
|
sceneScaleZ?: number | undefined;
|
|
385
385
|
materialSide?: "front" | "back" | undefined;
|
|
386
386
|
}>>;
|
|
387
|
-
export declare const ngPrecomputedMeshSchema: z.ZodNullable<z.ZodObject<{
|
|
387
|
+
export declare const ngPrecomputedMeshSchema: z.ZodNullable<z.ZodObject<{
|
|
388
|
+
subsources: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
|
|
389
|
+
enableDefaultSubsources: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
subsources?: Record<string, boolean> | undefined;
|
|
392
|
+
enableDefaultSubsources?: boolean | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
subsources?: Record<string, boolean> | undefined;
|
|
395
|
+
enableDefaultSubsources?: boolean | undefined;
|
|
396
|
+
}>>;
|
|
388
397
|
export declare const ngPointAnnotationSchema: z.ZodNullable<z.ZodObject<{
|
|
389
398
|
projectionAnnotationSpacing: z.ZodOptional<z.ZodNumber>;
|
|
390
399
|
featureIndexProp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuKxB,eAAO,MAAM,kBAAkB;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBlB,CAAC;AAEb,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtB,CAAC"}
|
|
@@ -262,23 +262,30 @@ export const meshGlbSchema = z.object({
|
|
|
262
262
|
sceneScaleZ: z.number(),
|
|
263
263
|
materialSide: z.enum(['front', 'back']),
|
|
264
264
|
}).partial().nullable();
|
|
265
|
-
// NG
|
|
265
|
+
// NG SegmentationLayer
|
|
266
266
|
export const ngPrecomputedMeshSchema = z.object({
|
|
267
|
-
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
268
|
-
// Or can/should that be inferred from the data?
|
|
269
|
-
// Note: None of these make sense to specify at the file level, since they
|
|
270
|
-
// are global camera settings that would apply to all layers.
|
|
271
|
-
// Intead, initial values should be set via the usual coordination space mechanism,
|
|
272
|
-
// and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
|
|
273
|
-
// dimensionX: z.number(),
|
|
274
|
-
// dimensionY: z.number(),
|
|
275
|
-
// dimensionZ: z.number(),
|
|
276
|
-
// dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
|
|
277
|
-
// TODO: should the following be passed via coordination types instead?
|
|
278
|
-
// projectionScale: z.number(),
|
|
279
|
-
// position: z.array(z.number()).length(3),
|
|
280
|
-
// projectionOrientation: z.array(z.number()).length(4),
|
|
267
|
+
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
268
|
+
// Or can/should that be inferred from the data?
|
|
269
|
+
// Note: None of these make sense to specify at the file level, since they
|
|
270
|
+
// are global camera settings that would apply to all layers.
|
|
271
|
+
// Intead, initial values should be set via the usual coordination space mechanism,
|
|
272
|
+
// and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
|
|
273
|
+
// dimensionX: z.number(),
|
|
274
|
+
// dimensionY: z.number(),
|
|
275
|
+
// dimensionZ: z.number(),
|
|
276
|
+
// dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
|
|
277
|
+
// TODO: should the following be passed via coordination types instead?
|
|
278
|
+
// projectionScale: z.number(),
|
|
279
|
+
// position: z.array(z.number()).length(3),
|
|
280
|
+
// projectionOrientation: z.array(z.number()).length(4),
|
|
281
|
+
subsources: z.record(z.boolean())
|
|
282
|
+
.describe('Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.')
|
|
283
|
+
.optional(),
|
|
284
|
+
enableDefaultSubsources: z.boolean()
|
|
285
|
+
.describe('When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.')
|
|
286
|
+
.optional(),
|
|
281
287
|
}).partial().nullable();
|
|
288
|
+
// Annotation Layer
|
|
282
289
|
export const ngPointAnnotationSchema = z.object({
|
|
283
290
|
projectionAnnotationSpacing: z.number(),
|
|
284
291
|
featureIndexProp: z.string()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "4.0.0-test.
|
|
3
|
+
"version": "4.0.0-test.1",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"semver": "^7.3.8",
|
|
24
24
|
"uuid": "^9.0.0",
|
|
25
25
|
"zod": "^3.21.4",
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/constants
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/plugins": "4.0.0-test.
|
|
26
|
+
"@vitessce/globals": "4.0.0-test.1",
|
|
27
|
+
"@vitessce/constants-internal": "4.0.0-test.1",
|
|
28
|
+
"@vitessce/constants": "4.0.0-test.1",
|
|
29
|
+
"@vitessce/utils": "4.0.0-test.1",
|
|
30
|
+
"@vitessce/plugins": "4.0.0-test.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -290,7 +290,7 @@ export const meshGlbSchema = z.object({
|
|
|
290
290
|
materialSide: z.enum(['front', 'back']),
|
|
291
291
|
}).partial().nullable();
|
|
292
292
|
|
|
293
|
-
// NG
|
|
293
|
+
// NG SegmentationLayer
|
|
294
294
|
export const ngPrecomputedMeshSchema = z.object({
|
|
295
295
|
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
296
296
|
// Or can/should that be inferred from the data?
|
|
@@ -307,7 +307,14 @@ export const ngPrecomputedMeshSchema = z.object({
|
|
|
307
307
|
// projectionScale: z.number(),
|
|
308
308
|
// position: z.array(z.number()).length(3),
|
|
309
309
|
// projectionOrientation: z.array(z.number()).length(4),
|
|
310
|
+
subsources: z.record(z.boolean())
|
|
311
|
+
.describe('Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.')
|
|
312
|
+
.optional(),
|
|
313
|
+
enableDefaultSubsources: z.boolean()
|
|
314
|
+
.describe('When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.')
|
|
315
|
+
.optional(),
|
|
310
316
|
}).partial().nullable();
|
|
317
|
+
// Annotation Layer
|
|
311
318
|
export const ngPointAnnotationSchema = z.object({
|
|
312
319
|
projectionAnnotationSpacing: z.number(),
|
|
313
320
|
featureIndexProp: z.string()
|