@vitessce/vit-s 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.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -21695,6 +21695,12 @@ function transformEntriesForZipFileStore(entries) {
21695
21695
  }));
21696
21696
  return newEntries;
21697
21697
  }
21698
+ function flattenOmeAttrs(rootAttrs) {
21699
+ if (rootAttrs && typeof rootAttrs.ome === "object" && rootAttrs.ome !== null) {
21700
+ return { ...rootAttrs.ome, ...rootAttrs };
21701
+ }
21702
+ return rootAttrs;
21703
+ }
21698
21704
  var Subscribable = class {
21699
21705
  constructor() {
21700
21706
  this.listeners = /* @__PURE__ */ new Set();
@@ -33082,6 +33088,7 @@ const CoordinationType$1 = {
33082
33088
  SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
33083
33089
  SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
33084
33090
  SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
33091
+ SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
33085
33092
  SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
33086
33093
  SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
33087
33094
  SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
@@ -33452,7 +33459,8 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
33452
33459
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
33453
33460
  CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
33454
33461
  CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
33455
- CoordinationType$1.LEGEND_VISIBLE
33462
+ CoordinationType$1.LEGEND_VISIBLE,
33463
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
33456
33464
  ],
33457
33465
  [ViewType$1.SCATTERPLOT]: [
33458
33466
  CoordinationType$1.DATASET,
@@ -33836,6 +33844,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
33836
33844
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
33837
33845
  CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
33838
33846
  CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
33847
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
33839
33848
  CoordinationType$1.IMAGE_CHANNEL,
33840
33849
  CoordinationType$1.IMAGE_LAYER,
33841
33850
  CoordinationType$1.SEGMENTATION_CHANNEL,
@@ -34090,7 +34099,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34090
34099
  CoordinationType$1.HIERARCHY_LEVELS
34091
34100
  ]
34092
34101
  });
34093
- const version = "3.9.6";
34102
+ const version = "4.0.0-test.2";
34094
34103
  const META_VERSION = {
34095
34104
  version
34096
34105
  };
@@ -34583,6 +34592,8 @@ z.object({
34583
34592
  // projectionScale: z.number(),
34584
34593
  // position: z.array(z.number()).length(3),
34585
34594
  // projectionOrientation: z.array(z.number()).length(4),
34595
+ 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(),
34596
+ 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()
34586
34597
  }).partial().nullable();
34587
34598
  z.object({
34588
34599
  projectionAnnotationSpacing: z.number(),
@@ -35841,7 +35852,8 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
35841
35852
  });
35842
35853
  availableElements.forEach(({ path, attrs }) => {
35843
35854
  const relPath = path.substring(1);
35844
- const firstCoordinateSystem = attrs?.multiscales?.[0]?.coordinateTransformations?.[0]?.output?.name;
35855
+ const omeAttrs = flattenOmeAttrs(attrs);
35856
+ const firstCoordinateSystem = omeAttrs?.multiscales?.[0]?.coordinateTransformations?.[0]?.output?.name;
35845
35857
  if (relPath.match(/^(images)\/([^/]*)$/)) {
35846
35858
  options.image = {
35847
35859
  path: relPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vit-s",
3
- "version": "4.0.0-test.0",
3
+ "version": "4.0.0-test.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -31,17 +31,17 @@
31
31
  "react-error-boundary": "^5.0.0",
32
32
  "@placemarkio/flat-drop-files": "^1.0.2",
33
33
  "zarrita": "0.6.1",
34
- "@vitessce/error": "4.0.0-test.0",
35
- "@vitessce/constants-internal": "4.0.0-test.0",
36
- "@vitessce/abstract": "4.0.0-test.0",
37
- "@vitessce/schemas": "4.0.0-test.0",
38
- "@vitessce/utils": "4.0.0-test.0",
39
- "@vitessce/sets-utils": "4.0.0-test.0",
40
- "@vitessce/globals": "4.0.0-test.0",
41
- "@vitessce/config": "4.0.0-test.0",
42
- "@vitessce/styles": "4.0.0-test.0",
43
- "@vitessce/zarr-utils": "4.0.0-test.0",
44
- "@vitessce/plugins": "4.0.0-test.0"
34
+ "@vitessce/abstract": "4.0.0-test.2",
35
+ "@vitessce/error": "4.0.0-test.2",
36
+ "@vitessce/constants-internal": "4.0.0-test.2",
37
+ "@vitessce/schemas": "4.0.0-test.2",
38
+ "@vitessce/utils": "4.0.0-test.2",
39
+ "@vitessce/sets-utils": "4.0.0-test.2",
40
+ "@vitessce/plugins": "4.0.0-test.2",
41
+ "@vitessce/styles": "4.0.0-test.2",
42
+ "@vitessce/globals": "4.0.0-test.2",
43
+ "@vitessce/config": "4.0.0-test.2",
44
+ "@vitessce/zarr-utils": "4.0.0-test.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/jest-dom": "^6.6.3",
@@ -50,7 +50,7 @@
50
50
  "react-dom": "19.1.0",
51
51
  "vite": "^7.0.0",
52
52
  "vitest": "^3.1.4",
53
- "@vitessce/types": "4.0.0-test.0"
53
+ "@vitessce/types": "4.0.0-test.2"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"