@vitessce/constants-internal 3.5.2 → 3.5.3

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
@@ -16,7 +16,8 @@ const ViewType = {
16
16
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
17
17
  DOT_PLOT: "dotPlot",
18
18
  FEATURE_BAR_PLOT: "featureBarPlot",
19
- BIOMARKER_SELECT: "biomarkerSelect"
19
+ BIOMARKER_SELECT: "biomarkerSelect",
20
+ LINK_CONTROLLER: "linkController"
20
21
  };
21
22
  const DataType = {
22
23
  OBS_LABELS: "obsLabels",
@@ -38,6 +39,10 @@ const AsyncFunctionType = {
38
39
  // String input (rather than Node input)
39
40
  AUTOCOMPLETE_FEATURE: "autocompleteFeature",
40
41
  // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
42
+ GET_ALTERNATIVE_TERMS: "getAlternativeTerms",
43
+ // (curieString) -> list of alternative curie strings
44
+ GET_TERM_MAPPING: "getTermMapping",
45
+ // (keyCuriePrefix, valueCuriePrefix) -> Record<curieString, curieString> for key to value
41
46
  TRANSFORM_FEATURE: "transformFeature",
42
47
  // (featureNode, targetModality) -> list of feature nodes from target modality
43
48
  RELATED_FEATURES: "relatedFeatures",
@@ -916,6 +921,7 @@ const COMPONENT_COORDINATION_TYPES = {
916
921
  CoordinationType.OBS_COLOR_ENCODING,
917
922
  CoordinationType.ADDITIONAL_OBS_SETS
918
923
  ],
924
+ [ViewType.LINK_CONTROLLER]: [],
919
925
  [ViewType.BIOMARKER_SELECT]: [
920
926
  CoordinationType.FEATURE_SELECTION,
921
927
  CoordinationType.SAMPLE_SET_SELECTION
@@ -923,10 +929,10 @@ const COMPONENT_COORDINATION_TYPES = {
923
929
  ]
924
930
  };
925
931
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
926
- const version = "3.5.2";
927
- const date = "2024-11-25";
932
+ const version = "3.5.3";
933
+ const date = "2025-01-14";
928
934
  const branch = "changeset-release/main";
929
- const hash = "bca77bd4";
935
+ const hash = "681f7748";
930
936
  const version$1 = {
931
937
  note,
932
938
  version,
@@ -934,6 +940,39 @@ const version$1 = {
934
940
  branch,
935
941
  hash
936
942
  };
943
+ const GLOBAL_LABELS = ["z", "t"];
944
+ const DEFAULT_RASTER_DOMAIN_TYPE = "Min/Max";
945
+ const DEFAULT_MOLECULES_LAYER = {
946
+ opacity: 1,
947
+ radius: 20,
948
+ visible: true
949
+ };
950
+ const DEFAULT_CELLS_LAYER = {
951
+ opacity: 1,
952
+ radius: 50,
953
+ visible: true,
954
+ stroked: false
955
+ };
956
+ const DEFAULT_NEIGHBORHOODS_LAYER = {
957
+ visible: false
958
+ };
959
+ const DEFAULT_LAYER_TYPE_ORDERING = [
960
+ "molecules",
961
+ "cells",
962
+ "neighborhoods",
963
+ "raster"
964
+ ];
965
+ const DEFAULT_RASTER_LAYER_PROPS = {
966
+ visible: true,
967
+ colormap: null,
968
+ opacity: 1,
969
+ domainType: DEFAULT_RASTER_DOMAIN_TYPE,
970
+ transparentColor: [0, 0, 0],
971
+ // Importing the full viv package here would add a lot of weight to the bundle
972
+ renderingMode: "Additive",
973
+ // viv.RENDERING_MODES.ADDITIVE,
974
+ use3d: false
975
+ };
937
976
  export {
938
977
  ALT_ZARR_STORE_TYPES,
939
978
  AUTO_INDEPENDENT_COORDINATION_TYPES,
@@ -941,10 +980,17 @@ export {
941
980
  COMPONENT_COORDINATION_TYPES,
942
981
  CoordinationType,
943
982
  DATA_TYPE_COORDINATION_VALUE_USAGE,
983
+ DEFAULT_CELLS_LAYER,
984
+ DEFAULT_LAYER_TYPE_ORDERING,
985
+ DEFAULT_MOLECULES_LAYER,
986
+ DEFAULT_NEIGHBORHOODS_LAYER,
987
+ DEFAULT_RASTER_DOMAIN_TYPE,
988
+ DEFAULT_RASTER_LAYER_PROPS,
944
989
  DataType,
945
990
  DescriptionType,
946
991
  FILE_TYPE_DATA_TYPE_MAPPING,
947
992
  FileType,
993
+ GLOBAL_LABELS,
948
994
  version$1 as META_VERSION,
949
995
  STATUS,
950
996
  ViewHelpMapping,
@@ -22,6 +22,7 @@ export declare const ViewType: {
22
22
  DOT_PLOT: string;
23
23
  FEATURE_BAR_PLOT: string;
24
24
  BIOMARKER_SELECT: string;
25
+ LINK_CONTROLLER: string;
25
26
  };
26
27
  export declare const DataType: {
27
28
  OBS_LABELS: string;
@@ -41,6 +42,8 @@ export declare const DataType: {
41
42
  };
42
43
  export declare const AsyncFunctionType: {
43
44
  AUTOCOMPLETE_FEATURE: string;
45
+ GET_ALTERNATIVE_TERMS: string;
46
+ GET_TERM_MAPPING: string;
44
47
  TRANSFORM_FEATURE: string;
45
48
  RELATED_FEATURES: string;
46
49
  FEATURE_TO_URL: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;CAY7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;CAoBpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
@@ -22,6 +22,7 @@ export const ViewType = {
22
22
  DOT_PLOT: 'dotPlot',
23
23
  FEATURE_BAR_PLOT: 'featureBarPlot',
24
24
  BIOMARKER_SELECT: 'biomarkerSelect',
25
+ LINK_CONTROLLER: 'linkController',
25
26
  };
26
27
  export const DataType = {
27
28
  OBS_LABELS: 'obsLabels',
@@ -42,6 +43,8 @@ export const DataType = {
42
43
  export const AsyncFunctionType = {
43
44
  // String input (rather than Node input)
44
45
  AUTOCOMPLETE_FEATURE: 'autocompleteFeature', // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
46
+ GET_ALTERNATIVE_TERMS: 'getAlternativeTerms', // (curieString) -> list of alternative curie strings
47
+ GET_TERM_MAPPING: 'getTermMapping', // (keyCuriePrefix, valueCuriePrefix) -> Record<curieString, curieString> for key to value
45
48
  TRANSFORM_FEATURE: 'transformFeature', // (featureNode, targetModality) -> list of feature nodes from target modality
46
49
  RELATED_FEATURES: 'relatedFeatures', // (featureNode) -> list of related feature nodes
47
50
  FEATURE_TO_URL: 'featureToUrl', // (featureNode) -> URL
@@ -1 +1 @@
1
- {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAqaxC,CAAC"}
1
+ {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAsaxC,CAAC"}
@@ -445,6 +445,7 @@ export const COMPONENT_COORDINATION_TYPES = {
445
445
  CoordinationType.OBS_COLOR_ENCODING,
446
446
  CoordinationType.ADDITIONAL_OBS_SETS,
447
447
  ],
448
+ [ViewType.LINK_CONTROLLER]: [],
448
449
  [ViewType.BIOMARKER_SELECT]: [
449
450
  CoordinationType.FEATURE_SELECTION,
450
451
  CoordinationType.SAMPLE_SET_SELECTION,
@@ -2,4 +2,5 @@ export { ViewType, DataType, FileType, CoordinationType, AsyncFunctionType, View
2
2
  export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE, ALT_ZARR_STORE_TYPES, } from './constant-relationships.js';
3
3
  export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES, } from './coordination.js';
4
4
  export { default as META_VERSION } from './version.json';
5
+ export * from './spatial-constants.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,wBAAwB,CAAC"}
package/dist-tsc/index.js CHANGED
@@ -2,3 +2,4 @@ export { ViewType, DataType, FileType, CoordinationType, AsyncFunctionType, View
2
2
  export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE, ALT_ZARR_STORE_TYPES, } from './constant-relationships.js';
3
3
  export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES, } from './coordination.js';
4
4
  export { default as META_VERSION } from './version.json';
5
+ export * from './spatial-constants.js';
@@ -0,0 +1,27 @@
1
+ export declare const GLOBAL_LABELS: string[];
2
+ export declare const DEFAULT_RASTER_DOMAIN_TYPE = "Min/Max";
3
+ export declare const DEFAULT_MOLECULES_LAYER: {
4
+ opacity: number;
5
+ radius: number;
6
+ visible: boolean;
7
+ };
8
+ export declare const DEFAULT_CELLS_LAYER: {
9
+ opacity: number;
10
+ radius: number;
11
+ visible: boolean;
12
+ stroked: boolean;
13
+ };
14
+ export declare const DEFAULT_NEIGHBORHOODS_LAYER: {
15
+ visible: boolean;
16
+ };
17
+ export declare const DEFAULT_LAYER_TYPE_ORDERING: string[];
18
+ export declare const DEFAULT_RASTER_LAYER_PROPS: {
19
+ visible: boolean;
20
+ colormap: null;
21
+ opacity: number;
22
+ domainType: string;
23
+ transparentColor: number[];
24
+ renderingMode: string;
25
+ use3d: boolean;
26
+ };
27
+ //# sourceMappingURL=spatial-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatial-constants.d.ts","sourceRoot":"","sources":["../src/spatial-constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,UAAa,CAAC;AAExC,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD,eAAO,MAAM,uBAAuB;;;;CAEnC,CAAC;AACF,eAAO,MAAM,mBAAmB;;;;;CAE/B,CAAC;AACF,eAAO,MAAM,2BAA2B;;CAEvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAKvC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;CAStC,CAAC"}
@@ -0,0 +1,27 @@
1
+ export const GLOBAL_LABELS = ['z', 't'];
2
+ export const DEFAULT_RASTER_DOMAIN_TYPE = 'Min/Max';
3
+ export const DEFAULT_MOLECULES_LAYER = {
4
+ opacity: 1, radius: 20, visible: true,
5
+ };
6
+ export const DEFAULT_CELLS_LAYER = {
7
+ opacity: 1, radius: 50, visible: true, stroked: false,
8
+ };
9
+ export const DEFAULT_NEIGHBORHOODS_LAYER = {
10
+ visible: false,
11
+ };
12
+ export const DEFAULT_LAYER_TYPE_ORDERING = [
13
+ 'molecules',
14
+ 'cells',
15
+ 'neighborhoods',
16
+ 'raster',
17
+ ];
18
+ export const DEFAULT_RASTER_LAYER_PROPS = {
19
+ visible: true,
20
+ colormap: null,
21
+ opacity: 1,
22
+ domainType: DEFAULT_RASTER_DOMAIN_TYPE,
23
+ transparentColor: [0, 0, 0],
24
+ // Importing the full viv package here would add a lot of weight to the bundle
25
+ renderingMode: 'Additive', // viv.RENDERING_MODES.ADDITIVE,
26
+ use3d: false,
27
+ };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.5.2",
4
- "date": "2024-11-25",
3
+ "version": "3.5.3",
4
+ "date": "2025-01-14",
5
5
  "branch": "changeset-release/main",
6
- "hash": "bca77bd4"
6
+ "hash": "681f7748"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/constants-internal",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
package/src/constants.ts CHANGED
@@ -22,6 +22,7 @@ export const ViewType = {
22
22
  DOT_PLOT: 'dotPlot',
23
23
  FEATURE_BAR_PLOT: 'featureBarPlot',
24
24
  BIOMARKER_SELECT: 'biomarkerSelect',
25
+ LINK_CONTROLLER: 'linkController',
25
26
  };
26
27
 
27
28
  export const DataType = {
@@ -44,6 +45,8 @@ export const DataType = {
44
45
  export const AsyncFunctionType = {
45
46
  // String input (rather than Node input)
46
47
  AUTOCOMPLETE_FEATURE: 'autocompleteFeature', // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
48
+ GET_ALTERNATIVE_TERMS: 'getAlternativeTerms', // (curieString) -> list of alternative curie strings
49
+ GET_TERM_MAPPING: 'getTermMapping', // (keyCuriePrefix, valueCuriePrefix) -> Record<curieString, curieString> for key to value
47
50
 
48
51
  TRANSFORM_FEATURE: 'transformFeature', // (featureNode, targetModality) -> list of feature nodes from target modality
49
52
  RELATED_FEATURES: 'relatedFeatures', // (featureNode) -> list of related feature nodes
@@ -447,6 +447,7 @@ export const COMPONENT_COORDINATION_TYPES = {
447
447
  CoordinationType.OBS_COLOR_ENCODING,
448
448
  CoordinationType.ADDITIONAL_OBS_SETS,
449
449
  ],
450
+ [ViewType.LINK_CONTROLLER]: [],
450
451
  [ViewType.BIOMARKER_SELECT]: [
451
452
  CoordinationType.FEATURE_SELECTION,
452
453
  CoordinationType.SAMPLE_SET_SELECTION,
package/src/index.ts CHANGED
@@ -18,3 +18,4 @@ export {
18
18
  COMPONENT_COORDINATION_TYPES,
19
19
  } from './coordination.js';
20
20
  export { default as META_VERSION } from './version.json';
21
+ export * from './spatial-constants.js';
@@ -0,0 +1,32 @@
1
+
2
+ export const GLOBAL_LABELS = ['z', 't'];
3
+
4
+ export const DEFAULT_RASTER_DOMAIN_TYPE = 'Min/Max';
5
+
6
+ export const DEFAULT_MOLECULES_LAYER = {
7
+ opacity: 1, radius: 20, visible: true,
8
+ };
9
+ export const DEFAULT_CELLS_LAYER = {
10
+ opacity: 1, radius: 50, visible: true, stroked: false,
11
+ };
12
+ export const DEFAULT_NEIGHBORHOODS_LAYER = {
13
+ visible: false,
14
+ };
15
+
16
+ export const DEFAULT_LAYER_TYPE_ORDERING = [
17
+ 'molecules',
18
+ 'cells',
19
+ 'neighborhoods',
20
+ 'raster',
21
+ ];
22
+
23
+ export const DEFAULT_RASTER_LAYER_PROPS = {
24
+ visible: true,
25
+ colormap: null,
26
+ opacity: 1,
27
+ domainType: DEFAULT_RASTER_DOMAIN_TYPE,
28
+ transparentColor: [0, 0, 0],
29
+ // Importing the full viv package here would add a lot of weight to the bundle
30
+ renderingMode: 'Additive', // viv.RENDERING_MODES.ADDITIVE,
31
+ use3d: false,
32
+ };
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.5.2",
4
- "date": "2024-11-25",
3
+ "version": "3.5.3",
4
+ "date": "2025-01-14",
5
5
  "branch": "changeset-release/main",
6
- "hash": "bca77bd4"
6
+ "hash": "681f7748"
7
7
  }