@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 +4 -4
- package/dist-tsc/constant-relationships.test.js +15 -1
- package/dist-tsc/constants.d.ts +0 -1
- package/dist-tsc/constants.d.ts.map +1 -1
- package/dist-tsc/constants.js +1 -1
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constant-relationships.test.ts +15 -1
- package/src/constants.ts +1 -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",
|
|
@@ -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.
|
|
1308
|
-
const date = "2025-09-
|
|
1307
|
+
const version = "3.8.1";
|
|
1308
|
+
const date = "2025-09-18";
|
|
1309
1309
|
const branch = "changeset-release/main";
|
|
1310
|
-
const hash = "
|
|
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
|
});
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
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',
|
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
|
});
|
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