@vitessce/constants-internal 3.7.1 → 3.8.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/index.js CHANGED
@@ -4,6 +4,7 @@ const ViewType = {
4
4
  SCATTERPLOT: "scatterplot",
5
5
  SPATIAL: "spatial",
6
6
  SPATIAL_BETA: "spatialBeta",
7
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
7
8
  HEATMAP: "heatmap",
8
9
  LAYER_CONTROLLER: "layerController",
9
10
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -319,6 +320,8 @@ const CoordinationType = {
319
320
  // Could be per-image-layer
320
321
  SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
321
322
  // Per-spatial-layer
323
+ SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
324
+ // Per-image-channel (for spatial-accelerated)
322
325
  // For clipping plane sliders
323
326
  SPATIAL_SLICE_X: "spatialSliceX",
324
327
  SPATIAL_SLICE_Y: "spatialSliceY",
@@ -897,6 +900,7 @@ const COMPONENT_COORDINATION_TYPES = {
897
900
  CoordinationType.SPATIAL_RENDERING_MODE,
898
901
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
899
902
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
903
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
900
904
  CoordinationType.SPATIAL_SLICE_X,
901
905
  CoordinationType.SPATIAL_SLICE_Y,
902
906
  CoordinationType.SPATIAL_SLICE_Z,
@@ -1070,6 +1074,7 @@ const COMPONENT_COORDINATION_TYPES = {
1070
1074
  CoordinationType.SPATIAL_RENDERING_MODE,
1071
1075
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
1072
1076
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
1077
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
1073
1078
  CoordinationType.SPATIAL_SLICE_X,
1074
1079
  CoordinationType.SPATIAL_SLICE_Y,
1075
1080
  CoordinationType.SPATIAL_SLICE_Z,
@@ -1299,10 +1304,10 @@ const COMPONENT_COORDINATION_TYPES = {
1299
1304
  ]
1300
1305
  };
1301
1306
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
1302
- const version = "3.7.1";
1303
- const date = "2025-09-16";
1307
+ const version = "3.8.1";
1308
+ const date = "2025-09-18";
1304
1309
  const branch = "changeset-release/main";
1305
- const hash = "d61a814a";
1310
+ const hash = "1faac6ff";
1306
1311
  const version$1 = {
1307
1312
  note,
1308
1313
  version,
@@ -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
  });
@@ -289,6 +289,7 @@ export declare const CoordinationType: {
289
289
  SPATIAL_RENDERING_MODE: string;
290
290
  VOLUMETRIC_RENDERING_ALGORITHM: string;
291
291
  SPATIAL_TARGET_RESOLUTION: string;
292
+ SPATIAL_MAX_RESOLUTION: string;
292
293
  SPATIAL_SLICE_X: string;
293
294
  SPATIAL_SLICE_Y: string;
294
295
  SPATIAL_SLICE_Z: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwJpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4I5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwJpB,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"}
@@ -9,6 +9,7 @@ export const ViewType = {
9
9
  SCATTERPLOT: 'scatterplot',
10
10
  SPATIAL: 'spatial',
11
11
  SPATIAL_BETA: 'spatialBeta',
12
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
12
13
  HEATMAP: 'heatmap',
13
14
  LAYER_CONTROLLER: 'layerController',
14
15
  LAYER_CONTROLLER_BETA: 'layerControllerBeta',
@@ -316,6 +317,7 @@ export const CoordinationType = {
316
317
  SPATIAL_RENDERING_MODE: 'spatialRenderingMode', // For whole spatial view
317
318
  VOLUMETRIC_RENDERING_ALGORITHM: 'volumetricRenderingAlgorithm', // Could be per-image-layer
318
319
  SPATIAL_TARGET_RESOLUTION: 'spatialTargetResolution', // Per-spatial-layer
320
+ SPATIAL_MAX_RESOLUTION: 'spatialMaxResolution', // Per-image-channel (for spatial-accelerated)
319
321
  // For clipping plane sliders
320
322
  SPATIAL_SLICE_X: 'spatialSliceX',
321
323
  SPATIAL_SLICE_Y: 'spatialSliceY',
@@ -1 +1 @@
1
- {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UA0B/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAmoBxC,CAAC"}
1
+ {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UA0B/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAqoBxC,CAAC"}
@@ -283,6 +283,7 @@ export const COMPONENT_COORDINATION_TYPES = {
283
283
  CoordinationType.SPATIAL_RENDERING_MODE,
284
284
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
285
285
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
286
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
286
287
  CoordinationType.SPATIAL_SLICE_X,
287
288
  CoordinationType.SPATIAL_SLICE_Y,
288
289
  CoordinationType.SPATIAL_SLICE_Z,
@@ -456,6 +457,7 @@ export const COMPONENT_COORDINATION_TYPES = {
456
457
  CoordinationType.SPATIAL_RENDERING_MODE,
457
458
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
458
459
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
460
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
459
461
  CoordinationType.SPATIAL_SLICE_X,
460
462
  CoordinationType.SPATIAL_SLICE_Y,
461
463
  CoordinationType.SPATIAL_SLICE_Z,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.7.1",
4
- "date": "2025-09-16",
3
+ "version": "3.8.1",
4
+ "date": "2025-09-18",
5
5
  "branch": "changeset-release/main",
6
- "hash": "d61a814a"
6
+ "hash": "1faac6ff"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/constants-internal",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -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
  });
package/src/constants.ts CHANGED
@@ -9,6 +9,7 @@ export const ViewType = {
9
9
  SCATTERPLOT: 'scatterplot',
10
10
  SPATIAL: 'spatial',
11
11
  SPATIAL_BETA: 'spatialBeta',
12
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
12
13
  HEATMAP: 'heatmap',
13
14
  LAYER_CONTROLLER: 'layerController',
14
15
  LAYER_CONTROLLER_BETA: 'layerControllerBeta',
@@ -329,6 +330,7 @@ export const CoordinationType = {
329
330
  SPATIAL_RENDERING_MODE: 'spatialRenderingMode', // For whole spatial view
330
331
  VOLUMETRIC_RENDERING_ALGORITHM: 'volumetricRenderingAlgorithm', // Could be per-image-layer
331
332
  SPATIAL_TARGET_RESOLUTION: 'spatialTargetResolution', // Per-spatial-layer
333
+ SPATIAL_MAX_RESOLUTION: 'spatialMaxResolution', // Per-image-channel (for spatial-accelerated)
332
334
  // For clipping plane sliders
333
335
  SPATIAL_SLICE_X: 'spatialSliceX',
334
336
  SPATIAL_SLICE_Y: 'spatialSliceY',
@@ -286,6 +286,7 @@ export const COMPONENT_COORDINATION_TYPES = {
286
286
  CoordinationType.SPATIAL_RENDERING_MODE,
287
287
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
288
288
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
289
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
289
290
  CoordinationType.SPATIAL_SLICE_X,
290
291
  CoordinationType.SPATIAL_SLICE_Y,
291
292
  CoordinationType.SPATIAL_SLICE_Z,
@@ -459,6 +460,7 @@ export const COMPONENT_COORDINATION_TYPES = {
459
460
  CoordinationType.SPATIAL_RENDERING_MODE,
460
461
  CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
461
462
  CoordinationType.SPATIAL_TARGET_RESOLUTION,
463
+ CoordinationType.SPATIAL_MAX_RESOLUTION,
462
464
  CoordinationType.SPATIAL_SLICE_X,
463
465
  CoordinationType.SPATIAL_SLICE_Y,
464
466
  CoordinationType.SPATIAL_SLICE_Z,
package/src/version.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.7.1",
4
- "date": "2025-09-16",
3
+ "version": "3.8.1",
4
+ "date": "2025-09-18",
5
5
  "branch": "changeset-release/main",
6
- "hash": "d61a814a"
6
+ "hash": "1faac6ff"
7
7
  }