@vitessce/constants-internal 3.8.0 → 3.8.2
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 +8 -4
- package/dist-tsc/constant-relationships.d.ts.map +1 -1
- package/dist-tsc/constant-relationships.js +1 -0
- package/dist-tsc/constant-relationships.test.js +15 -1
- package/dist-tsc/constants.d.ts +1 -1
- package/dist-tsc/constants.d.ts.map +1 -1
- package/dist-tsc/constants.js +4 -1
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constant-relationships.test.ts +15 -1
- package/src/constant-relationships.ts +1 -0
- package/src/constants.ts +4 -1
- package/src/version.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const ViewType = {
|
|
|
4
4
|
SCATTERPLOT: "scatterplot",
|
|
5
5
|
SPATIAL: "spatial",
|
|
6
6
|
SPATIAL_BETA: "spatialBeta",
|
|
7
|
-
SPATIAL_ACCELERATED:
|
|
7
|
+
// SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
8
8
|
HEATMAP: "heatmap",
|
|
9
9
|
LAYER_CONTROLLER: "layerController",
|
|
10
10
|
LAYER_CONTROLLER_BETA: "layerControllerBeta",
|
|
@@ -184,6 +184,9 @@ const FileType = {
|
|
|
184
184
|
OBS_SEGMENTATIONS_OME_TIFF: "obsSegmentations.ome-tiff",
|
|
185
185
|
// GLB
|
|
186
186
|
OBS_SEGMENTATIONS_GLB: "obsSegmentations.glb",
|
|
187
|
+
// Neuroglancer
|
|
188
|
+
// Precomputed (mesh) format
|
|
189
|
+
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
187
190
|
// New file types to support old file types:
|
|
188
191
|
// - cells.json
|
|
189
192
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -441,6 +444,7 @@ const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
441
444
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
442
445
|
[FileType.FEATURE_LABELS_MUDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
443
446
|
[FileType.OBS_SEGMENTATIONS_GLB]: DataType.OBS_SEGMENTATIONS,
|
|
447
|
+
[FileType.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType.OBS_SEGMENTATIONS,
|
|
444
448
|
[FileType.IMAGE_SPATIALDATA_ZARR]: DataType.IMAGE,
|
|
445
449
|
[FileType.LABELS_SPATIALDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
446
450
|
[FileType.SHAPES_SPATIALDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
@@ -1304,10 +1308,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
1304
1308
|
]
|
|
1305
1309
|
};
|
|
1306
1310
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
1307
|
-
const version = "3.8.
|
|
1308
|
-
const date = "2025-09-
|
|
1311
|
+
const version = "3.8.2";
|
|
1312
|
+
const date = "2025-09-29";
|
|
1309
1313
|
const branch = "changeset-release/main";
|
|
1310
|
-
const hash = "
|
|
1314
|
+
const hash = "20b99b90";
|
|
1311
1315
|
const version$1 = {
|
|
1312
1316
|
note,
|
|
1313
1317
|
version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;
|
|
1
|
+
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;CAuEvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;CA6D9C,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;;;;CAuGhC,CAAC"}
|
|
@@ -47,6 +47,7 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
47
47
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
48
48
|
[FileType.FEATURE_LABELS_MUDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
49
49
|
[FileType.OBS_SEGMENTATIONS_GLB]: DataType.OBS_SEGMENTATIONS,
|
|
50
|
+
[FileType.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType.OBS_SEGMENTATIONS,
|
|
50
51
|
[FileType.IMAGE_SPATIALDATA_ZARR]: DataType.IMAGE,
|
|
51
52
|
[FileType.LABELS_SPATIALDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
52
53
|
[FileType.SHAPES_SPATIALDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { DataType } from './constants.js';
|
|
2
|
+
import { DataType, ViewType } from './constants.js';
|
|
3
3
|
import { DATA_TYPE_COORDINATION_VALUE_USAGE, } from './constant-relationships.js';
|
|
4
|
+
import { COMPONENT_COORDINATION_TYPES } from './coordination.js';
|
|
4
5
|
describe('src/app/constant-relationships.js', () => {
|
|
5
6
|
describe('DataType-to-CoordinationType usage mapping', () => {
|
|
6
7
|
it('every data type is mapped to an array of coordination types', () => {
|
|
@@ -9,4 +10,17 @@ describe('src/app/constant-relationships.js', () => {
|
|
|
9
10
|
expect(dataTypes.length).toEqual(mappedDataTypes.length);
|
|
10
11
|
});
|
|
11
12
|
});
|
|
13
|
+
describe('ViewType-to-CoordinationType usage mapping', () => {
|
|
14
|
+
it('every view type is mapped to an array of coordination types', () => {
|
|
15
|
+
const viewTypes = Object.values(ViewType).sort();
|
|
16
|
+
const mappedViewTypes = Object.keys(COMPONENT_COORDINATION_TYPES).sort();
|
|
17
|
+
// There may be view types in mappedViewTypes that are not yet
|
|
18
|
+
// defined as constants in viewTypes
|
|
19
|
+
// (e.g., higlass, used to debug higlass integration
|
|
20
|
+
// but not intended as a user-facing view).
|
|
21
|
+
const everyViewTypeIsMapped = viewTypes
|
|
22
|
+
.every(vt => mappedViewTypes.includes(vt));
|
|
23
|
+
expect(everyViewTypeIsMapped).toBe(true);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
12
26
|
});
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare const ViewType: {
|
|
|
9
9
|
SCATTERPLOT: string;
|
|
10
10
|
SPATIAL: string;
|
|
11
11
|
SPATIAL_BETA: string;
|
|
12
|
-
SPATIAL_ACCELERATED: string;
|
|
13
12
|
HEATMAP: string;
|
|
14
13
|
LAYER_CONTROLLER: string;
|
|
15
14
|
LAYER_CONTROLLER_BETA: string;
|
|
@@ -166,6 +165,7 @@ export declare const FileType: {
|
|
|
166
165
|
IMAGE_OME_TIFF: string;
|
|
167
166
|
OBS_SEGMENTATIONS_OME_TIFF: string;
|
|
168
167
|
OBS_SEGMENTATIONS_GLB: string;
|
|
168
|
+
OBS_SEGMENTATIONS_NG_PRECOMPUTED: string;
|
|
169
169
|
OBS_EMBEDDING_CELLS_JSON: string;
|
|
170
170
|
OBS_SEGMENTATIONS_CELLS_JSON: string;
|
|
171
171
|
OBS_LOCATIONS_CELLS_JSON: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6I5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC"}
|
package/dist-tsc/constants.js
CHANGED
|
@@ -9,7 +9,7 @@ export const ViewType = {
|
|
|
9
9
|
SCATTERPLOT: 'scatterplot',
|
|
10
10
|
SPATIAL: 'spatial',
|
|
11
11
|
SPATIAL_BETA: 'spatialBeta',
|
|
12
|
-
SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
12
|
+
// SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
13
13
|
HEATMAP: 'heatmap',
|
|
14
14
|
LAYER_CONTROLLER: 'layerController',
|
|
15
15
|
LAYER_CONTROLLER_BETA: 'layerControllerBeta',
|
|
@@ -180,6 +180,9 @@ export const FileType = {
|
|
|
180
180
|
OBS_SEGMENTATIONS_OME_TIFF: 'obsSegmentations.ome-tiff',
|
|
181
181
|
// GLB
|
|
182
182
|
OBS_SEGMENTATIONS_GLB: 'obsSegmentations.glb',
|
|
183
|
+
// Neuroglancer
|
|
184
|
+
// Precomputed (mesh) format
|
|
185
|
+
OBS_SEGMENTATIONS_NG_PRECOMPUTED: 'obsSegmentations.ng-precomputed',
|
|
183
186
|
// New file types to support old file types:
|
|
184
187
|
// - cells.json
|
|
185
188
|
OBS_EMBEDDING_CELLS_JSON: 'obsEmbedding.cells.json',
|
package/dist-tsc/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { DataType } from './constants.js';
|
|
2
|
+
import { DataType, ViewType } from './constants.js';
|
|
3
3
|
import {
|
|
4
4
|
DATA_TYPE_COORDINATION_VALUE_USAGE,
|
|
5
5
|
} from './constant-relationships.js';
|
|
6
|
+
import { COMPONENT_COORDINATION_TYPES } from './coordination.js';
|
|
6
7
|
|
|
7
8
|
describe('src/app/constant-relationships.js', () => {
|
|
8
9
|
describe('DataType-to-CoordinationType usage mapping', () => {
|
|
@@ -12,4 +13,17 @@ describe('src/app/constant-relationships.js', () => {
|
|
|
12
13
|
expect(dataTypes.length).toEqual(mappedDataTypes.length);
|
|
13
14
|
});
|
|
14
15
|
});
|
|
16
|
+
describe('ViewType-to-CoordinationType usage mapping', () => {
|
|
17
|
+
it('every view type is mapped to an array of coordination types', () => {
|
|
18
|
+
const viewTypes = Object.values(ViewType).sort();
|
|
19
|
+
const mappedViewTypes = Object.keys(COMPONENT_COORDINATION_TYPES).sort();
|
|
20
|
+
// There may be view types in mappedViewTypes that are not yet
|
|
21
|
+
// defined as constants in viewTypes
|
|
22
|
+
// (e.g., higlass, used to debug higlass integration
|
|
23
|
+
// but not intended as a user-facing view).
|
|
24
|
+
const everyViewTypeIsMapped = viewTypes
|
|
25
|
+
.every(vt => mappedViewTypes.includes(vt));
|
|
26
|
+
expect(everyViewTypeIsMapped).toBe(true);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
15
29
|
});
|
|
@@ -48,6 +48,7 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
48
48
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
49
49
|
[FileType.FEATURE_LABELS_MUDATA_ZARR]: DataType.FEATURE_LABELS,
|
|
50
50
|
[FileType.OBS_SEGMENTATIONS_GLB]: DataType.OBS_SEGMENTATIONS,
|
|
51
|
+
[FileType.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType.OBS_SEGMENTATIONS,
|
|
51
52
|
|
|
52
53
|
[FileType.IMAGE_SPATIALDATA_ZARR]: DataType.IMAGE,
|
|
53
54
|
[FileType.LABELS_SPATIALDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
package/src/constants.ts
CHANGED
|
@@ -9,7 +9,7 @@ export const ViewType = {
|
|
|
9
9
|
SCATTERPLOT: 'scatterplot',
|
|
10
10
|
SPATIAL: 'spatial',
|
|
11
11
|
SPATIAL_BETA: 'spatialBeta',
|
|
12
|
-
SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
12
|
+
// SPATIAL_ACCELERATED: 'spatialAccelerated',
|
|
13
13
|
HEATMAP: 'heatmap',
|
|
14
14
|
LAYER_CONTROLLER: 'layerController',
|
|
15
15
|
LAYER_CONTROLLER_BETA: 'layerControllerBeta',
|
|
@@ -192,6 +192,9 @@ export const FileType = {
|
|
|
192
192
|
OBS_SEGMENTATIONS_OME_TIFF: 'obsSegmentations.ome-tiff',
|
|
193
193
|
// GLB
|
|
194
194
|
OBS_SEGMENTATIONS_GLB: 'obsSegmentations.glb',
|
|
195
|
+
// Neuroglancer
|
|
196
|
+
// Precomputed (mesh) format
|
|
197
|
+
OBS_SEGMENTATIONS_NG_PRECOMPUTED: 'obsSegmentations.ng-precomputed',
|
|
195
198
|
// New file types to support old file types:
|
|
196
199
|
// - cells.json
|
|
197
200
|
OBS_EMBEDDING_CELLS_JSON: 'obsEmbedding.cells.json',
|
package/src/version.json
CHANGED