@vitessce/json 3.8.9 → 3.8.13

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
2
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -368,6 +368,8 @@ const CoordinationType$1 = {
368
368
  // Per-spatial-layer
369
369
  SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
370
370
  // Per-image-channel (for spatial-accelerated)
371
+ SPATIAL_LOD_FACTOR: "spatialLodFactor",
372
+ // LOD factor for 3D volume rendering
371
373
  // For clipping plane sliders
372
374
  SPATIAL_SLICE_X: "spatialSliceX",
373
375
  SPATIAL_SLICE_Y: "spatialSliceY",
@@ -7118,6 +7120,34 @@ const VIEWER_PALETTE = [
7118
7120
  [255, 128, 0],
7119
7121
  [255, 0, 0]
7120
7122
  ];
7123
+ function extent$1(values2, valueof) {
7124
+ let min2;
7125
+ let max2;
7126
+ {
7127
+ for (const value of values2) {
7128
+ if (value != null) {
7129
+ if (min2 === void 0) {
7130
+ if (value >= value) min2 = max2 = value;
7131
+ } else {
7132
+ if (min2 > value) min2 = value;
7133
+ if (max2 < value) max2 = value;
7134
+ }
7135
+ }
7136
+ }
7137
+ }
7138
+ return [min2, max2];
7139
+ }
7140
+ function max$1(values2, valueof) {
7141
+ let max2;
7142
+ {
7143
+ for (const value of values2) {
7144
+ if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
7145
+ max2 = value;
7146
+ }
7147
+ }
7148
+ }
7149
+ return max2;
7150
+ }
7121
7151
  configSchema1_0_0.shape.coordinationSpace.unwrap();
7122
7152
  configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
7123
7153
  function upgradeReplaceViewProp(prefix, view, coordinationSpace) {
@@ -11941,13 +11971,7 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
11941
11971
  };
11942
11972
  }
11943
11973
  if (relPath.match(/^(shapes)\/([^/]*)$/)) {
11944
- options.obsSpots = {
11945
- path: relPath,
11946
- coordinateSystem: firstCoordinateSystem
11947
- };
11948
- }
11949
- if (relPath.match(/^(points)\/([^/]*)$/)) {
11950
- options.obsPoints = {
11974
+ options.obsSegmentations = {
11951
11975
  path: relPath,
11952
11976
  coordinateSystem: firstCoordinateSystem
11953
11977
  };
@@ -11961,21 +11985,6 @@ class SpatialDataAutoConfig extends AbstractAutoConfig {
11961
11985
  // region: null,
11962
11986
  };
11963
11987
  }
11964
- const hasObs = tableEls.find((el) => el.path === `${path}/obs`);
11965
- if (hasObs) {
11966
- const columnOrder = hasObs.attrs?.["column-order"];
11967
- options.obsSets = {
11968
- // region: null,
11969
- tablePath: relPath,
11970
- obsSets: columnOrder.map((c) => ({
11971
- // TODO: determine whether this column is string/categorical.
11972
- // TODO: determine whether this column contains too many
11973
- // categories to make sense to consider a cell set.
11974
- path: `${hasObs.path.substring(1)}/${c}`,
11975
- name: c
11976
- }))
11977
- };
11978
- }
11979
11988
  }
11980
11989
  });
11981
11990
  return options;
@@ -19675,34 +19684,6 @@ class CellsJsonAsObsSegmentationsLoader extends JsonLoader {
19675
19684
  }, url, coordinationValues);
19676
19685
  }
19677
19686
  }
19678
- function extent$1(values2, valueof) {
19679
- let min2;
19680
- let max2;
19681
- {
19682
- for (const value of values2) {
19683
- if (value != null) {
19684
- if (min2 === void 0) {
19685
- if (value >= value) min2 = max2 = value;
19686
- } else {
19687
- if (min2 > value) min2 = value;
19688
- if (max2 < value) max2 = value;
19689
- }
19690
- }
19691
- }
19692
- }
19693
- return [min2, max2];
19694
- }
19695
- function max$1(values2, valueof) {
19696
- let max2;
19697
- {
19698
- for (const value of values2) {
19699
- if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
19700
- max2 = value;
19701
- }
19702
- }
19703
- }
19704
- return max2;
19705
- }
19706
19687
  const clustersSchema = z.object({
19707
19688
  rows: z.array(z.string()),
19708
19689
  cols: z.array(z.string()),
@@ -138933,22 +138914,22 @@ async function getDecoder(fileDirectory) {
138933
138914
  const Decoder = await importFn();
138934
138915
  return new Decoder(fileDirectory);
138935
138916
  }
138936
- addDecoder([void 0, 1], () => import("./raw-CzWX7H6s.js").then((m) => m.default));
138937
- addDecoder(5, () => import("./lzw-Bzc1p7qc.js").then((m) => m.default));
138917
+ addDecoder([void 0, 1], () => import("./raw-CiSlz5iU.js").then((m) => m.default));
138918
+ addDecoder(5, () => import("./lzw-PjlHwnWk.js").then((m) => m.default));
138938
138919
  addDecoder(6, () => {
138939
138920
  throw new Error("old style JPEG compression is not supported.");
138940
138921
  });
138941
- addDecoder(7, () => import("./jpeg-OsN75fL4.js").then((m) => m.default));
138942
- addDecoder([8, 32946], () => import("./deflate-B7ZliDZ6.js").then((m) => m.default));
138943
- addDecoder(32773, () => import("./packbits-ymfhFruh.js").then((m) => m.default));
138922
+ addDecoder(7, () => import("./jpeg-CMQUyiHQ.js").then((m) => m.default));
138923
+ addDecoder([8, 32946], () => import("./deflate-CZehCoup.js").then((m) => m.default));
138924
+ addDecoder(32773, () => import("./packbits-DA7Isyxs.js").then((m) => m.default));
138944
138925
  addDecoder(
138945
138926
  34887,
138946
- () => import("./lerc-B0oGigMq.js").then(async (m) => {
138927
+ () => import("./lerc-BDyPGgaN.js").then(async (m) => {
138947
138928
  await m.zstd.init();
138948
138929
  return m;
138949
138930
  }).then((m) => m.default)
138950
138931
  );
138951
- addDecoder(50001, () => import("./webimage-DFx4tj0e.js").then((m) => m.default));
138932
+ addDecoder(50001, () => import("./webimage-Bf6gcEvN.js").then((m) => m.default));
138952
138933
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
138953
138934
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
138954
138935
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-DOA-Vajv.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-DLgJxMwz.js";
2
2
  export {
3
3
  C as CellsJsonAsObsEmbeddingLoader,
4
4
  d as CellsJsonAsObsLabelsLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
1
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-DOA-Vajv.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-DLgJxMwz.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
1
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
1
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
1
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOA-Vajv.js";
1
+ import { B as BaseDecoder } from "./index-DLgJxMwz.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.8.9",
3
+ "version": "3.8.13",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,17 +20,17 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarrita": "0.5.4",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.8.9",
24
- "@vitessce/gl": "3.8.9",
25
- "@vitessce/globals": "3.8.9",
26
- "@vitessce/schemas": "3.8.9",
27
- "@vitessce/sets-utils": "3.8.9",
28
- "@vitessce/spatial-utils": "3.8.9",
29
- "@vitessce/utils": "3.8.9",
30
- "@vitessce/abstract": "3.8.9",
31
- "@vitessce/error": "3.8.9",
32
- "@vitessce/zarr-utils": "3.8.9",
33
- "@vitessce/config": "3.8.9"
23
+ "@vitessce/constants-internal": "3.8.13",
24
+ "@vitessce/gl": "3.8.13",
25
+ "@vitessce/globals": "3.8.13",
26
+ "@vitessce/sets-utils": "3.8.13",
27
+ "@vitessce/schemas": "3.8.13",
28
+ "@vitessce/spatial-utils": "3.8.13",
29
+ "@vitessce/utils": "3.8.13",
30
+ "@vitessce/abstract": "3.8.13",
31
+ "@vitessce/zarr-utils": "3.8.13",
32
+ "@vitessce/error": "3.8.13",
33
+ "@vitessce/config": "3.8.13"
34
34
  },
35
35
  "scripts": {
36
36
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",