@vitessce/csv 3.9.6 → 3.9.8

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 +14 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -567,6 +567,7 @@ const CoordinationType$1 = {
567
567
  SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
568
568
  SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
569
569
  SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
570
+ SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
570
571
  SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
571
572
  SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
572
573
  SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
@@ -932,7 +933,8 @@ const CoordinationType$1 = {
932
933
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
933
934
  CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
934
935
  CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
935
- CoordinationType$1.LEGEND_VISIBLE
936
+ CoordinationType$1.LEGEND_VISIBLE,
937
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
936
938
  ],
937
939
  [ViewType$1.SCATTERPLOT]: [
938
940
  CoordinationType$1.DATASET,
@@ -1316,6 +1318,7 @@ const CoordinationType$1 = {
1316
1318
  CoordinationType$1.SPATIAL_CHANNEL_COLOR,
1317
1319
  CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
1318
1320
  CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
1321
+ CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
1319
1322
  CoordinationType$1.IMAGE_CHANNEL,
1320
1323
  CoordinationType$1.IMAGE_LAYER,
1321
1324
  CoordinationType$1.SEGMENTATION_CHANNEL,
@@ -2295,6 +2298,12 @@ class CoordinationLevel {
2295
2298
  function CL(value) {
2296
2299
  return new CoordinationLevel(value);
2297
2300
  }
2301
+ function flattenOmeAttrs(rootAttrs) {
2302
+ if (rootAttrs && typeof rootAttrs.ome === "object" && rootAttrs.ome !== null) {
2303
+ return { ...rootAttrs.ome, ...rootAttrs };
2304
+ }
2305
+ return rootAttrs;
2306
+ }
2298
2307
  class AbstractAutoConfig {
2299
2308
  constructor(parsedStore) {
2300
2309
  const { url, fileType, zmetadata } = parsedStore;
@@ -2387,7 +2396,8 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
2387
2396
  });
2388
2397
  availableElements.forEach(({ path, attrs }) => {
2389
2398
  const relPath = path.substring(1);
2390
- const firstCoordinateSystem = attrs?.multiscales?.[0]?.coordinateTransformations?.[0]?.output?.name;
2399
+ const omeAttrs = flattenOmeAttrs(attrs);
2400
+ const firstCoordinateSystem = omeAttrs?.multiscales?.[0]?.coordinateTransformations?.[0]?.output?.name;
2391
2401
  if (relPath.match(/^(images)\/([^/]*)$/)) {
2392
2402
  options.image = {
2393
2403
  path: relPath,
@@ -11191,6 +11201,8 @@ z.object({
11191
11201
  // projectionScale: z.number(),
11192
11202
  // position: z.array(z.number()).length(3),
11193
11203
  // projectionOrientation: z.array(z.number()).length(4),
11204
+ 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(),
11205
+ 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()
11194
11206
  }).partial().nullable();
11195
11207
  z.object({
11196
11208
  projectionAnnotationSpacing: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/csv",
3
- "version": "3.9.6",
3
+ "version": "3.9.8",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,11 +18,11 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "d3-dsv": "^1.1.1",
21
- "@vitessce/sets-utils": "3.9.6",
22
- "@vitessce/constants-internal": "3.9.6",
23
- "@vitessce/abstract": "3.9.6",
24
- "@vitessce/error": "3.9.6",
25
- "@vitessce/config": "3.9.6"
21
+ "@vitessce/constants-internal": "3.9.8",
22
+ "@vitessce/sets-utils": "3.9.8",
23
+ "@vitessce/error": "3.9.8",
24
+ "@vitessce/abstract": "3.9.8",
25
+ "@vitessce/config": "3.9.8"
26
26
  },
27
27
  "scripts": {
28
28
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",