@vitessce/constants-internal
Advanced tools
Comparing version 2.0.3 to 3.0.0
@@ -1,4 +0,4 @@ | ||
export { ViewType, DataType, FileType, CoordinationType, STATUS, } from './constants'; | ||
export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE } from './constant-relationships'; | ||
export { DEFAULT_COORDINATION_VALUES, AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination'; | ||
export { ViewType, DataType, FileType, CoordinationType, STATUS, } from './constants.js'; | ||
export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE } from './constant-relationships.js'; | ||
export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js'; | ||
export { default as META_VERSION } from './version.json'; |
{ | ||
"name": "@vitessce/constants-internal", | ||
"version": "2.0.3", | ||
"version": "3.0.0", | ||
"author": "Gehlenborg Lab", | ||
@@ -11,9 +11,11 @@ "homepage": "http://vitessce.io", | ||
"license": "MIT", | ||
"main": "dist/index.mjs", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"src" | ||
"dist-tsc" | ||
], | ||
"devDependencies": { | ||
"vite": "^3.0.0", | ||
"vite": "^4.3.0", | ||
"vitest": "^0.23.4" | ||
@@ -24,3 +26,10 @@ }, | ||
"test": "pnpm exec vitest --run -r ../../ --dir ." | ||
}, | ||
"module": "dist/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist-tsc/index.d.ts", | ||
"import": "./dist/index.js" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { FileType, DataType, CoordinationType } from './constants'; | ||
import { FileType, DataType, CoordinationType } from './constants.js'; | ||
@@ -26,2 +26,4 @@ /** | ||
[FileType.FEATURE_LABELS_ANNDATA_ZARR]: DataType.FEATURE_LABELS, | ||
[FileType.IMAGE_OME_TIFF]: DataType.IMAGE, | ||
[FileType.OBS_SEGMENTATIONS_OME_TIFF]: DataType.OBS_SEGMENTATIONS, | ||
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX, | ||
@@ -28,0 +30,0 @@ [FileType.OBS_SETS_MUDATA_ZARR]: DataType.OBS_SETS, |
@@ -1,5 +0,5 @@ | ||
import { DataType } from './constants'; | ||
import { DataType } from './constants.js'; | ||
import { | ||
DATA_TYPE_COORDINATION_VALUE_USAGE, | ||
} from './constant-relationships'; | ||
} from './constant-relationships.js'; | ||
@@ -6,0 +6,0 @@ describe('src/app/constant-relationships.js', () => { |
@@ -67,2 +67,5 @@ /** | ||
NEIGHBORHOODS_JSON: 'neighborhoods.json', | ||
// OME-TIFF | ||
IMAGE_OME_TIFF: 'image.ome-tiff', | ||
OBS_SEGMENTATIONS_OME_TIFF: 'obsSegmentations.ome-tiff', | ||
// New file types to support old file types: | ||
@@ -146,2 +149,3 @@ // - cells.json | ||
OBS_SET_HIGHLIGHT: 'obsSetHighlight', | ||
OBS_SET_EXPANSION: 'obsSetExpansion', | ||
OBS_SET_COLOR: 'obsSetColor', | ||
@@ -169,2 +173,3 @@ FEATURE_FILTER: 'featureFilter', | ||
FEATURE_VALUE_TRANSFORM_COEFFICIENT: 'featureValueTransformCoefficient', | ||
TOOLTIPS_VISIBLE: 'tooltipsVisible', | ||
}; | ||
@@ -171,0 +176,0 @@ |
@@ -1,67 +0,3 @@ | ||
import { CoordinationType, ViewType } from './constants'; | ||
import { CoordinationType, ViewType } from './constants.js'; | ||
/** | ||
* Coordination types may have default values, | ||
* which can be defined here, and used by the | ||
* auto initialization strategy. | ||
*/ | ||
export const DEFAULT_COORDINATION_VALUES = { | ||
[CoordinationType.OBS_TYPE]: 'cell', | ||
[CoordinationType.FEATURE_TYPE]: 'gene', | ||
[CoordinationType.FEATURE_VALUE_TYPE]: 'expression', | ||
[CoordinationType.OBS_LABELS_TYPE]: null, | ||
[CoordinationType.EMBEDDING_ZOOM]: null, | ||
[CoordinationType.EMBEDDING_ROTATION]: 0, | ||
[CoordinationType.EMBEDDING_TARGET_X]: null, | ||
[CoordinationType.EMBEDDING_TARGET_Y]: null, | ||
[CoordinationType.EMBEDDING_TARGET_Z]: 0, | ||
[CoordinationType.EMBEDDING_OBS_SET_POLYGONS_VISIBLE]: false, | ||
[CoordinationType.EMBEDDING_OBS_SET_LABELS_VISIBLE]: false, | ||
[CoordinationType.EMBEDDING_OBS_SET_LABEL_SIZE]: 14, | ||
[CoordinationType.EMBEDDING_OBS_RADIUS]: 1, | ||
[CoordinationType.EMBEDDING_OBS_RADIUS_MODE]: 'auto', | ||
[CoordinationType.EMBEDDING_OBS_OPACITY]: 1, | ||
[CoordinationType.EMBEDDING_OBS_OPACITY_MODE]: 'auto', | ||
[CoordinationType.SPATIAL_ZOOM]: null, | ||
[CoordinationType.SPATIAL_ROTATION]: 0, | ||
[CoordinationType.SPATIAL_TARGET_X]: null, | ||
[CoordinationType.SPATIAL_TARGET_Y]: null, | ||
[CoordinationType.SPATIAL_TARGET_Z]: null, | ||
[CoordinationType.SPATIAL_ROTATION_X]: null, | ||
[CoordinationType.SPATIAL_ROTATION_Y]: null, | ||
[CoordinationType.SPATIAL_ROTATION_Z]: null, | ||
[CoordinationType.SPATIAL_AXIS_FIXED]: false, | ||
[CoordinationType.SPATIAL_ROTATION_ORBIT]: 0, | ||
[CoordinationType.SPATIAL_ORBIT_AXIS]: 'Y', | ||
[CoordinationType.SPATIAL_IMAGE_LAYER]: null, | ||
[CoordinationType.SPATIAL_SEGMENTATION_LAYER]: null, | ||
[CoordinationType.SPATIAL_POINT_LAYER]: null, | ||
[CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER]: null, | ||
[CoordinationType.HEATMAP_ZOOM_X]: 0, | ||
[CoordinationType.HEATMAP_ZOOM_Y]: 0, | ||
[CoordinationType.HEATMAP_TARGET_X]: 0, | ||
[CoordinationType.HEATMAP_TARGET_Y]: 0, | ||
[CoordinationType.FEATURE_VALUE_COLORMAP]: 'plasma', | ||
[CoordinationType.FEATURE_VALUE_COLORMAP_RANGE]: [0.0, 1.0], | ||
[CoordinationType.FEATURE_VALUE_TRANSFORM]: null, | ||
[CoordinationType.FEATURE_VALUE_TRANSFORM_COEFFICIENT]: 1, | ||
[CoordinationType.FEATURE_FILTER]: null, | ||
[CoordinationType.FEATURE_HIGHLIGHT]: null, | ||
[CoordinationType.FEATURE_SELECTION]: null, | ||
[CoordinationType.OBS_FILTER]: null, | ||
[CoordinationType.OBS_HIGHLIGHT]: null, | ||
[CoordinationType.OBS_SET_SELECTION]: null, | ||
[CoordinationType.OBS_SET_HIGHLIGHT]: null, | ||
[CoordinationType.OBS_SET_COLOR]: null, | ||
[CoordinationType.OBS_COLOR_ENCODING]: 'cellSetSelection', | ||
[CoordinationType.GENOMIC_ZOOM_X]: 0, | ||
[CoordinationType.GENOMIC_ZOOM_Y]: 0, | ||
[CoordinationType.GENOMIC_TARGET_X]: 1549999999.5, | ||
[CoordinationType.GENOMIC_TARGET_Y]: 1549999999.5, | ||
[CoordinationType.ADDITIONAL_OBS_SETS]: null, | ||
[CoordinationType.MOLECULE_HIGHLIGHT]: null, | ||
[CoordinationType.GATING_FEATURE_SELECTION_X]: null, | ||
[CoordinationType.GATING_FEATURE_SELECTION_Y]: null, | ||
}; | ||
// The following coordination types should be | ||
@@ -73,2 +9,3 @@ // initialized to independent scopes when | ||
// like "legacy" Vitessce (pre-coordination model). | ||
// TODO: delegate to PluginCoordinationType class | ||
export const AUTO_INDEPENDENT_COORDINATION_TYPES = [ | ||
@@ -129,2 +66,3 @@ CoordinationType.HEATMAP_ZOOM_X, | ||
CoordinationType.ADDITIONAL_OBS_SETS, | ||
CoordinationType.TOOLTIPS_VISIBLE, | ||
], | ||
@@ -198,2 +136,3 @@ [ViewType.GATING]: [ | ||
CoordinationType.MOLECULE_HIGHLIGHT, | ||
CoordinationType.TOOLTIPS_VISIBLE, | ||
], | ||
@@ -222,2 +161,3 @@ [ViewType.HEATMAP]: [ | ||
CoordinationType.ADDITIONAL_OBS_SETS, | ||
CoordinationType.TOOLTIPS_VISIBLE, | ||
], | ||
@@ -228,2 +168,3 @@ [ViewType.OBS_SETS]: [ | ||
CoordinationType.OBS_SET_SELECTION, | ||
CoordinationType.OBS_SET_EXPANSION, | ||
CoordinationType.OBS_SET_HIGHLIGHT, | ||
@@ -239,2 +180,3 @@ CoordinationType.OBS_SET_COLOR, | ||
CoordinationType.OBS_SET_SELECTION, | ||
CoordinationType.OBS_SET_EXPANSION, | ||
CoordinationType.OBS_SET_HIGHLIGHT, | ||
@@ -281,2 +223,6 @@ CoordinationType.OBS_SET_COLOR, | ||
CoordinationType.FEATURE_SELECTION, | ||
CoordinationType.ADDITIONAL_OBS_SETS, | ||
CoordinationType.OBS_SET_COLOR, | ||
CoordinationType.OBS_COLOR_ENCODING, | ||
CoordinationType.OBS_SET_SELECTION, | ||
], | ||
@@ -283,0 +229,0 @@ [ViewType.LAYER_CONTROLLER]: [ |
export { | ||
ViewType, DataType, FileType, CoordinationType, STATUS, | ||
} from './constants'; | ||
export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE } from './constant-relationships'; | ||
export { DEFAULT_COORDINATION_VALUES, AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination'; | ||
} from './constants.js'; | ||
export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE } from './constant-relationships.js'; | ||
export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js'; | ||
export { default as META_VERSION } from './version.json'; |
{ | ||
"note": "This file is regenerated by push-demo.sh.", | ||
"version": "2.0.3", | ||
"branch": "release-v2.0.3", | ||
"date": "2023-02-07", | ||
"hash": "ca9494c3" | ||
"version": "3.0.0", | ||
"branch": "release-v3.0.0", | ||
"date": "2023-06-05", | ||
"hash": "74d01aab" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
73914
25
1802
Yes