@vitessce/zarr 4.0.0-test.0 → 4.0.0-test.2
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 +14 -2
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -3072,6 +3072,12 @@ function zarrOpenRoot(url, fileType, opts) {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
return root$1(store);
|
|
3074
3074
|
}
|
|
3075
|
+
function flattenOmeAttrs(rootAttrs) {
|
|
3076
|
+
if (rootAttrs && typeof rootAttrs.ome === "object" && rootAttrs.ome !== null) {
|
|
3077
|
+
return { ...rootAttrs.ome, ...rootAttrs };
|
|
3078
|
+
}
|
|
3079
|
+
return rootAttrs;
|
|
3080
|
+
}
|
|
3075
3081
|
class VitessceError extends Error {
|
|
3076
3082
|
constructor(message) {
|
|
3077
3083
|
super(message);
|
|
@@ -4338,6 +4344,7 @@ const CoordinationType$1 = {
|
|
|
4338
4344
|
SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
|
|
4339
4345
|
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
4340
4346
|
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
4347
|
+
SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
|
|
4341
4348
|
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
4342
4349
|
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
4343
4350
|
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
@@ -4703,7 +4710,8 @@ const CoordinationType$1 = {
|
|
|
4703
4710
|
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
4704
4711
|
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
|
4705
4712
|
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
|
4706
|
-
CoordinationType$1.LEGEND_VISIBLE
|
|
4713
|
+
CoordinationType$1.LEGEND_VISIBLE,
|
|
4714
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
|
|
4707
4715
|
],
|
|
4708
4716
|
[ViewType$1.SCATTERPLOT]: [
|
|
4709
4717
|
CoordinationType$1.DATASET,
|
|
@@ -5087,6 +5095,7 @@ const CoordinationType$1 = {
|
|
|
5087
5095
|
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
5088
5096
|
CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
|
|
5089
5097
|
CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
5098
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
|
|
5090
5099
|
CoordinationType$1.IMAGE_CHANNEL,
|
|
5091
5100
|
CoordinationType$1.IMAGE_LAYER,
|
|
5092
5101
|
CoordinationType$1.SEGMENTATION_CHANNEL,
|
|
@@ -5876,7 +5885,8 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
|
|
|
5876
5885
|
});
|
|
5877
5886
|
availableElements.forEach(({ path, attrs }) => {
|
|
5878
5887
|
const relPath = path.substring(1);
|
|
5879
|
-
const
|
|
5888
|
+
const omeAttrs = flattenOmeAttrs(attrs);
|
|
5889
|
+
const firstCoordinateSystem = omeAttrs?.multiscales?.[0]?.coordinateTransformations?.[0]?.output?.name;
|
|
5880
5890
|
if (relPath.match(/^(images)\/([^/]*)$/)) {
|
|
5881
5891
|
options.image = {
|
|
5882
5892
|
path: relPath,
|
|
@@ -14775,6 +14785,8 @@ z.object({
|
|
|
14775
14785
|
// projectionScale: z.number(),
|
|
14776
14786
|
// position: z.array(z.number()).length(3),
|
|
14777
14787
|
// projectionOrientation: z.array(z.number()).length(4),
|
|
14788
|
+
subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
|
|
14789
|
+
enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
|
|
14778
14790
|
}).partial().nullable();
|
|
14779
14791
|
z.object({
|
|
14780
14792
|
projectionAnnotationSpacing: z.number(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/zarr",
|
|
3
|
-
"version": "4.0.0-test.
|
|
3
|
+
"version": "4.0.0-test.2",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"apache-arrow": "^17.0.0",
|
|
23
23
|
"parquet-wasm": "^0.6.1",
|
|
24
24
|
"ol": "^10.2.1",
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/
|
|
32
|
-
"@vitessce/globals": "4.0.0-test.
|
|
33
|
-
"@vitessce/zarr-utils": "4.0.0-test.
|
|
25
|
+
"@vitessce/constants-internal": "4.0.0-test.2",
|
|
26
|
+
"@vitessce/image-utils": "4.0.0-test.2",
|
|
27
|
+
"@vitessce/utils": "4.0.0-test.2",
|
|
28
|
+
"@vitessce/abstract": "4.0.0-test.2",
|
|
29
|
+
"@vitessce/error": "4.0.0-test.2",
|
|
30
|
+
"@vitessce/config": "4.0.0-test.2",
|
|
31
|
+
"@vitessce/sets-utils": "4.0.0-test.2",
|
|
32
|
+
"@vitessce/globals": "4.0.0-test.2",
|
|
33
|
+
"@vitessce/zarr-utils": "4.0.0-test.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vitessce/types": "4.0.0-test.
|
|
36
|
+
"@vitessce/types": "4.0.0-test.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|