@vitessce/constants-internal 3.8.0 → 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,7 +4,7 @@ const ViewType = {
4
4
  SCATTERPLOT: "scatterplot",
5
5
  SPATIAL: "spatial",
6
6
  SPATIAL_BETA: "spatialBeta",
7
- SPATIAL_ACCELERATED: "spatialAccelerated",
7
+ // SPATIAL_ACCELERATED: 'spatialAccelerated',
8
8
  HEATMAP: "heatmap",
9
9
  LAYER_CONTROLLER: "layerController",
10
10
  LAYER_CONTROLLER_BETA: "layerControllerBeta",
@@ -1304,10 +1304,10 @@ const COMPONENT_COORDINATION_TYPES = {
1304
1304
  ]
1305
1305
  };
1306
1306
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
1307
- const version = "3.8.0";
1308
- const date = "2025-09-17";
1307
+ const version = "3.8.1";
1308
+ const date = "2025-09-18";
1309
1309
  const branch = "changeset-release/main";
1310
- const hash = "571e67cb";
1310
+ const hash = "1faac6ff";
1311
1311
  const version$1 = {
1312
1312
  note,
1313
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
  });
@@ -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;
@@ -1 +1 @@
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"}
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,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',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.8.0",
4
- "date": "2025-09-17",
3
+ "version": "3.8.1",
4
+ "date": "2025-09-18",
5
5
  "branch": "changeset-release/main",
6
- "hash": "571e67cb"
6
+ "hash": "1faac6ff"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/constants-internal",
3
- "version": "3.8.0",
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,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',
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.8.0",
4
- "date": "2025-09-17",
3
+ "version": "3.8.1",
4
+ "date": "2025-09-18",
5
5
  "branch": "changeset-release/main",
6
- "hash": "571e67cb"
6
+ "hash": "1faac6ff"
7
7
  }