@vitessce/vit-s 3.9.7 → 3.9.9

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
@@ -22680,6 +22680,12 @@ function transformEntriesForZipFileStore(entries) {
22680
22680
  }));
22681
22681
  return newEntries;
22682
22682
  }
22683
+ function flattenOmeAttrs(rootAttrs) {
22684
+ if (rootAttrs && typeof rootAttrs.ome === "object" && rootAttrs.ome !== null) {
22685
+ return { ...rootAttrs.ome, ...rootAttrs };
22686
+ }
22687
+ return rootAttrs;
22688
+ }
22683
22689
  var Subscribable = class {
22684
22690
  constructor() {
22685
22691
  this.listeners = /* @__PURE__ */ new Set();
@@ -34106,6 +34112,7 @@ const CoordinationType$1 = {
34106
34112
  SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
34107
34113
  SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
34108
34114
  SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
34115
+ SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
34109
34116
  SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
34110
34117
  SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
34111
34118
  SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
@@ -34476,7 +34483,8 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34476
34483
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
34477
34484
  CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
34478
34485
  CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
34479
- CoordinationType$1.LEGEND_VISIBLE
34486
+ CoordinationType$1.LEGEND_VISIBLE,
34487
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
34480
34488
  ],
34481
34489
  [ViewType$1.SCATTERPLOT]: [
34482
34490
  CoordinationType$1.DATASET,
@@ -34860,6 +34868,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34860
34868
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
34861
34869
  CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
34862
34870
  CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
34871
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
34863
34872
  CoordinationType$1.IMAGE_CHANNEL,
34864
34873
  CoordinationType$1.IMAGE_LAYER,
34865
34874
  CoordinationType$1.SEGMENTATION_CHANNEL,
@@ -35114,7 +35123,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
35114
35123
  CoordinationType$1.HIERARCHY_LEVELS
35115
35124
  ]
35116
35125
  });
35117
- const version = "3.9.7";
35126
+ const version = "3.9.9";
35118
35127
  const META_VERSION = {
35119
35128
  version
35120
35129
  };
@@ -35607,6 +35616,8 @@ z.object({
35607
35616
  // projectionScale: z.number(),
35608
35617
  // position: z.array(z.number()).length(3),
35609
35618
  // projectionOrientation: z.array(z.number()).length(4),
35619
+ 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(),
35620
+ 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()
35610
35621
  }).partial().nullable();
35611
35622
  z.object({
35612
35623
  projectionAnnotationSpacing: z.number(),
@@ -36867,7 +36878,8 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
36867
36878
  availableElements.forEach(({ path, attrs }) => {
36868
36879
  var _a3, _b2, _c2, _d2, _e2;
36869
36880
  const relPath = path.substring(1);
36870
- const firstCoordinateSystem = (_e2 = (_d2 = (_c2 = (_b2 = (_a3 = attrs == null ? void 0 : attrs.multiscales) == null ? void 0 : _a3[0]) == null ? void 0 : _b2.coordinateTransformations) == null ? void 0 : _c2[0]) == null ? void 0 : _d2.output) == null ? void 0 : _e2.name;
36881
+ const omeAttrs = flattenOmeAttrs(attrs);
36882
+ const firstCoordinateSystem = (_e2 = (_d2 = (_c2 = (_b2 = (_a3 = omeAttrs == null ? void 0 : omeAttrs.multiscales) == null ? void 0 : _a3[0]) == null ? void 0 : _b2.coordinateTransformations) == null ? void 0 : _c2[0]) == null ? void 0 : _d2.output) == null ? void 0 : _e2.name;
36871
36883
  if (relPath.match(/^(images)\/([^/]*)$/)) {
36872
36884
  options.image = {
36873
36885
  path: relPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vit-s",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
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/styles": "3.9.7",
35
- "@vitessce/abstract": "3.9.7",
36
- "@vitessce/error": "3.9.7",
37
- "@vitessce/plugins": "3.9.7",
38
- "@vitessce/schemas": "3.9.7",
39
- "@vitessce/utils": "3.9.7",
40
- "@vitessce/constants-internal": "3.9.7",
41
- "@vitessce/sets-utils": "3.9.7",
42
- "@vitessce/config": "3.9.7",
43
- "@vitessce/zarr-utils": "3.9.7",
44
- "@vitessce/globals": "3.9.7"
34
+ "@vitessce/abstract": "3.9.9",
35
+ "@vitessce/styles": "3.9.9",
36
+ "@vitessce/error": "3.9.9",
37
+ "@vitessce/constants-internal": "3.9.9",
38
+ "@vitessce/plugins": "3.9.9",
39
+ "@vitessce/schemas": "3.9.9",
40
+ "@vitessce/utils": "3.9.9",
41
+ "@vitessce/sets-utils": "3.9.9",
42
+ "@vitessce/zarr-utils": "3.9.9",
43
+ "@vitessce/config": "3.9.9",
44
+ "@vitessce/globals": "3.9.9"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/jest-dom": "^6.6.3",
@@ -50,7 +50,7 @@
50
50
  "react-dom": "18.3.1",
51
51
  "vite": "^7.0.0",
52
52
  "vitest": "^3.1.4",
53
- "@vitessce/types": "3.9.7"
53
+ "@vitessce/types": "3.9.9"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"