@vitessce/schemas 3.9.5 → 3.9.7
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 +43 -10
- package/dist-tsc/file-def-options.d.ts +11 -22
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +24 -11
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.d.ts.map +1 -1
- package/dist-tsc/index.js +1 -1
- package/package.json +6 -6
- package/src/file-def-options.ts +22 -8
- package/src/index.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -8037,6 +8037,7 @@ const FileType$1 = {
|
|
|
8037
8037
|
// Neuroglancer
|
|
8038
8038
|
// Precomputed (mesh) format
|
|
8039
8039
|
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
8040
|
+
OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
|
|
8040
8041
|
// New file types to support old file types:
|
|
8041
8042
|
// - cells.json
|
|
8042
8043
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -8265,6 +8266,7 @@ const CoordinationType$1 = {
|
|
|
8265
8266
|
[FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
|
|
8266
8267
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
|
|
8267
8268
|
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
|
|
8269
|
+
[FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
|
|
8268
8270
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
|
|
8269
8271
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
8270
8272
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
@@ -8484,6 +8486,8 @@ const CoordinationType$1 = {
|
|
|
8484
8486
|
];
|
|
8485
8487
|
({
|
|
8486
8488
|
[ViewType$1.NEUROGLANCER]: [
|
|
8489
|
+
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
8490
|
+
CoordinationType$1.META_COORDINATION_SCOPES_BY,
|
|
8487
8491
|
CoordinationType$1.DATASET,
|
|
8488
8492
|
CoordinationType$1.SPATIAL_TARGET_X,
|
|
8489
8493
|
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
@@ -8505,7 +8509,26 @@ const CoordinationType$1 = {
|
|
|
8505
8509
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
8506
8510
|
CoordinationType$1.EMBEDDING_TYPE,
|
|
8507
8511
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
8508
|
-
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
8512
|
+
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
8513
|
+
CoordinationType$1.FILE_UID,
|
|
8514
|
+
CoordinationType$1.IMAGE_LAYER,
|
|
8515
|
+
CoordinationType$1.SEGMENTATION_LAYER,
|
|
8516
|
+
CoordinationType$1.IMAGE_CHANNEL,
|
|
8517
|
+
CoordinationType$1.SEGMENTATION_CHANNEL,
|
|
8518
|
+
CoordinationType$1.POINT_LAYER,
|
|
8519
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
8520
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
8521
|
+
CoordinationType$1.FEATURE_HIGHLIGHT,
|
|
8522
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
8523
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
8524
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
8525
|
+
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
8526
|
+
CoordinationType$1.SPATIAL_LAYER_OPACITY,
|
|
8527
|
+
CoordinationType$1.SPATIAL_LAYER_VISIBLE,
|
|
8528
|
+
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
8529
|
+
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
|
8530
|
+
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
|
8531
|
+
CoordinationType$1.LEGEND_VISIBLE
|
|
8509
8532
|
],
|
|
8510
8533
|
[ViewType$1.SCATTERPLOT]: [
|
|
8511
8534
|
CoordinationType$1.DATASET,
|
|
@@ -9683,17 +9706,26 @@ const meshGlbSchema = z.object({
|
|
|
9683
9706
|
sceneScaleZ: z.number(),
|
|
9684
9707
|
materialSide: z.enum(["front", "back"])
|
|
9685
9708
|
}).partial().nullable();
|
|
9686
|
-
const
|
|
9709
|
+
const ngPrecomputedMeshSchema = z.object({
|
|
9687
9710
|
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
9688
9711
|
// Or can/should that be inferred from the data?
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9712
|
+
// Note: None of these make sense to specify at the file level, since they
|
|
9713
|
+
// are global camera settings that would apply to all layers.
|
|
9714
|
+
// Intead, initial values should be set via the usual coordination space mechanism,
|
|
9715
|
+
// and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
|
|
9716
|
+
// dimensionX: z.number(),
|
|
9717
|
+
// dimensionY: z.number(),
|
|
9718
|
+
// dimensionZ: z.number(),
|
|
9719
|
+
// dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
|
|
9693
9720
|
// TODO: should the following be passed via coordination types instead?
|
|
9694
|
-
projectionScale: z.number(),
|
|
9695
|
-
position: z.array(z.number()).length(3),
|
|
9696
|
-
projectionOrientation: z.array(z.number()).length(4)
|
|
9721
|
+
// projectionScale: z.number(),
|
|
9722
|
+
// position: z.array(z.number()).length(3),
|
|
9723
|
+
// projectionOrientation: z.array(z.number()).length(4),
|
|
9724
|
+
}).partial().nullable();
|
|
9725
|
+
const ngPointAnnotationSchema = z.object({
|
|
9726
|
+
projectionAnnotationSpacing: z.number(),
|
|
9727
|
+
featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
|
|
9728
|
+
pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code.")
|
|
9697
9729
|
}).partial().nullable();
|
|
9698
9730
|
const obsEmbeddingAnndataSchema = annDataObsEmbedding;
|
|
9699
9731
|
const obsSpotsAnndataSchema = annDataObsLocations;
|
|
@@ -9921,7 +9953,8 @@ export {
|
|
|
9921
9953
|
meshGlbSchema,
|
|
9922
9954
|
moleculesLayerObj,
|
|
9923
9955
|
neighborhoodsLayerObj,
|
|
9924
|
-
|
|
9956
|
+
ngPointAnnotationSchema,
|
|
9957
|
+
ngPrecomputedMeshSchema,
|
|
9925
9958
|
obsEmbeddingAnndataSchema,
|
|
9926
9959
|
obsEmbeddingCsvSchema,
|
|
9927
9960
|
obsEmbeddingSpatialdataSchema,
|
|
@@ -384,30 +384,19 @@ 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
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
projectionScale: z.ZodOptional<z.ZodNumber>;
|
|
393
|
-
position: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
394
|
-
projectionOrientation: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
387
|
+
export declare const ngPrecomputedMeshSchema: z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
388
|
+
export declare const ngPointAnnotationSchema: z.ZodNullable<z.ZodObject<{
|
|
389
|
+
projectionAnnotationSpacing: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
featureIndexProp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
391
|
+
pointIndexProp: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
395
392
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
dimensionUnit?: "nm" | "um" | "µm" | "mm" | "cm" | "m" | undefined;
|
|
400
|
-
projectionScale?: number | undefined;
|
|
401
|
-
position?: number[] | undefined;
|
|
402
|
-
projectionOrientation?: number[] | undefined;
|
|
393
|
+
projectionAnnotationSpacing?: number | undefined;
|
|
394
|
+
featureIndexProp?: string | undefined;
|
|
395
|
+
pointIndexProp?: string | undefined;
|
|
403
396
|
}, {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
dimensionUnit?: "nm" | "um" | "µm" | "mm" | "cm" | "m" | undefined;
|
|
408
|
-
projectionScale?: number | undefined;
|
|
409
|
-
position?: number[] | undefined;
|
|
410
|
-
projectionOrientation?: number[] | undefined;
|
|
397
|
+
projectionAnnotationSpacing?: number | undefined;
|
|
398
|
+
featureIndexProp?: string | undefined;
|
|
399
|
+
pointIndexProp?: string | undefined;
|
|
411
400
|
}>>;
|
|
412
401
|
/**
|
|
413
402
|
* Options schemas for atomic file types.
|
|
@@ -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;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtB,CAAC"}
|
|
@@ -263,17 +263,30 @@ export const meshGlbSchema = z.object({
|
|
|
263
263
|
materialSide: z.enum(['front', 'back']),
|
|
264
264
|
}).partial().nullable();
|
|
265
265
|
// NG
|
|
266
|
-
export const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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),
|
|
281
|
+
}).partial().nullable();
|
|
282
|
+
export const ngPointAnnotationSchema = z.object({
|
|
283
|
+
projectionAnnotationSpacing: z.number(),
|
|
284
|
+
featureIndexProp: z.string()
|
|
285
|
+
.optional()
|
|
286
|
+
.describe('The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify \'gene\' to use prop_gene() in the Neuroglancer shader code.'),
|
|
287
|
+
pointIndexProp: z.string()
|
|
288
|
+
.optional()
|
|
289
|
+
.describe('The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify \'point_id\' to use prop_point_id() in the Neuroglancer shader code.'),
|
|
277
290
|
}).partial().nullable();
|
|
278
291
|
/**
|
|
279
292
|
* Options schemas for atomic file types.
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsPointsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, obsEmbeddingSpatialdataSchema, meshGlbSchema,
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsPointsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, obsEmbeddingSpatialdataSchema, meshGlbSchema, ngPrecomputedMeshSchema, ngPointAnnotationSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
package/dist-tsc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,aAAa,EACb,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
package/dist-tsc/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsPointsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, obsEmbeddingSpatialdataSchema, meshGlbSchema,
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsPointsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, obsEmbeddingSpatialdataSchema, meshGlbSchema, ngPrecomputedMeshSchema, ngPointAnnotationSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.7",
|
|
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/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
26
|
+
"@vitessce/constants": "3.9.7",
|
|
27
|
+
"@vitessce/constants-internal": "3.9.7",
|
|
28
|
+
"@vitessce/plugins": "3.9.7",
|
|
29
|
+
"@vitessce/globals": "3.9.7",
|
|
30
|
+
"@vitessce/utils": "3.9.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -291,17 +291,31 @@ export const meshGlbSchema = z.object({
|
|
|
291
291
|
}).partial().nullable();
|
|
292
292
|
|
|
293
293
|
// NG
|
|
294
|
-
export const
|
|
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?
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
297
|
+
|
|
298
|
+
// Note: None of these make sense to specify at the file level, since they
|
|
299
|
+
// are global camera settings that would apply to all layers.
|
|
300
|
+
// Intead, initial values should be set via the usual coordination space mechanism,
|
|
301
|
+
// and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
|
|
302
|
+
// dimensionX: z.number(),
|
|
303
|
+
// dimensionY: z.number(),
|
|
304
|
+
// dimensionZ: z.number(),
|
|
305
|
+
// dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
|
|
301
306
|
// TODO: should the following be passed via coordination types instead?
|
|
302
|
-
projectionScale: z.number(),
|
|
303
|
-
position: z.array(z.number()).length(3),
|
|
304
|
-
projectionOrientation: z.array(z.number()).length(4),
|
|
307
|
+
// projectionScale: z.number(),
|
|
308
|
+
// position: z.array(z.number()).length(3),
|
|
309
|
+
// projectionOrientation: z.array(z.number()).length(4),
|
|
310
|
+
}).partial().nullable();
|
|
311
|
+
export const ngPointAnnotationSchema = z.object({
|
|
312
|
+
projectionAnnotationSpacing: z.number(),
|
|
313
|
+
featureIndexProp: z.string()
|
|
314
|
+
.optional()
|
|
315
|
+
.describe('The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify \'gene\' to use prop_gene() in the Neuroglancer shader code.'),
|
|
316
|
+
pointIndexProp: z.string()
|
|
317
|
+
.optional()
|
|
318
|
+
.describe('The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify \'point_id\' to use prop_point_id() in the Neuroglancer shader code.'),
|
|
305
319
|
}).partial().nullable();
|
|
306
320
|
|
|
307
321
|
/**
|
package/src/index.ts
CHANGED