@vitessce/schemas 3.9.6 → 3.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -8163,6 +8163,7 @@ const CoordinationType$1 = {
|
|
|
8163
8163
|
SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
|
|
8164
8164
|
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
8165
8165
|
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
8166
|
+
SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
|
|
8166
8167
|
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
8167
8168
|
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
8168
8169
|
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
@@ -8528,7 +8529,8 @@ const CoordinationType$1 = {
|
|
|
8528
8529
|
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
8529
8530
|
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
|
8530
8531
|
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
|
8531
|
-
CoordinationType$1.LEGEND_VISIBLE
|
|
8532
|
+
CoordinationType$1.LEGEND_VISIBLE,
|
|
8533
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
|
|
8532
8534
|
],
|
|
8533
8535
|
[ViewType$1.SCATTERPLOT]: [
|
|
8534
8536
|
CoordinationType$1.DATASET,
|
|
@@ -8912,6 +8914,7 @@ const CoordinationType$1 = {
|
|
|
8912
8914
|
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
8913
8915
|
CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
|
|
8914
8916
|
CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
8917
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
|
|
8915
8918
|
CoordinationType$1.IMAGE_CHANNEL,
|
|
8916
8919
|
CoordinationType$1.IMAGE_LAYER,
|
|
8917
8920
|
CoordinationType$1.SEGMENTATION_CHANNEL,
|
|
@@ -9721,6 +9724,8 @@ const ngPrecomputedMeshSchema = z.object({
|
|
|
9721
9724
|
// projectionScale: z.number(),
|
|
9722
9725
|
// position: z.array(z.number()).length(3),
|
|
9723
9726
|
// projectionOrientation: z.array(z.number()).length(4),
|
|
9727
|
+
subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
|
|
9728
|
+
enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
|
|
9724
9729
|
}).partial().nullable();
|
|
9725
9730
|
const ngPointAnnotationSchema = z.object({
|
|
9726
9731
|
projectionAnnotationSpacing: z.number(),
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;EAKjC,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAS5C,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAcrC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;EAKxC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAQpC,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;EAO5C,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;EAQxC,CAAC;AAUH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;G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
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": "3.9.
|
|
3
|
+
"version": "3.9.8",
|
|
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/constants": "3.9.
|
|
27
|
-
"@vitessce/constants-internal": "3.9.
|
|
28
|
-
"@vitessce/plugins": "3.9.
|
|
29
|
-
"@vitessce/utils": "3.9.
|
|
30
|
-
"@vitessce/globals": "3.9.
|
|
26
|
+
"@vitessce/constants": "3.9.8",
|
|
27
|
+
"@vitessce/constants-internal": "3.9.8",
|
|
28
|
+
"@vitessce/plugins": "3.9.8",
|
|
29
|
+
"@vitessce/utils": "3.9.8",
|
|
30
|
+
"@vitessce/globals": "3.9.8"
|
|
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()
|