@vitessce/json 3.8.10 → 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-D0HG6I1i.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) {
@@ -19654,34 +19684,6 @@ class CellsJsonAsObsSegmentationsLoader extends JsonLoader {
19654
19684
  }, url, coordinationValues);
19655
19685
  }
19656
19686
  }
19657
- function extent$1(values2, valueof) {
19658
- let min2;
19659
- let max2;
19660
- {
19661
- for (const value of values2) {
19662
- if (value != null) {
19663
- if (min2 === void 0) {
19664
- if (value >= value) min2 = max2 = value;
19665
- } else {
19666
- if (min2 > value) min2 = value;
19667
- if (max2 < value) max2 = value;
19668
- }
19669
- }
19670
- }
19671
- }
19672
- return [min2, max2];
19673
- }
19674
- function max$1(values2, valueof) {
19675
- let max2;
19676
- {
19677
- for (const value of values2) {
19678
- if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
19679
- max2 = value;
19680
- }
19681
- }
19682
- }
19683
- return max2;
19684
- }
19685
19687
  const clustersSchema = z.object({
19686
19688
  rows: z.array(z.string()),
19687
19689
  cols: z.array(z.string()),
@@ -138912,22 +138914,22 @@ async function getDecoder(fileDirectory) {
138912
138914
  const Decoder = await importFn();
138913
138915
  return new Decoder(fileDirectory);
138914
138916
  }
138915
- addDecoder([void 0, 1], () => import("./raw-EsCy1Pin.js").then((m) => m.default));
138916
- addDecoder(5, () => import("./lzw-C9-J2OOY.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));
138917
138919
  addDecoder(6, () => {
138918
138920
  throw new Error("old style JPEG compression is not supported.");
138919
138921
  });
138920
- addDecoder(7, () => import("./jpeg-CGy5HvVv.js").then((m) => m.default));
138921
- addDecoder([8, 32946], () => import("./deflate-Dgp_aqBN.js").then((m) => m.default));
138922
- addDecoder(32773, () => import("./packbits-D24E1iyc.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));
138923
138925
  addDecoder(
138924
138926
  34887,
138925
- () => import("./lerc-DsLusSgJ.js").then(async (m) => {
138927
+ () => import("./lerc-BDyPGgaN.js").then(async (m) => {
138926
138928
  await m.zstd.init();
138927
138929
  return m;
138928
138930
  }).then((m) => m.default)
138929
138931
  );
138930
- addDecoder(50001, () => import("./webimage-Dha0_JXQ.js").then((m) => m.default));
138932
+ addDecoder(50001, () => import("./webimage-Bf6gcEvN.js").then((m) => m.default));
138931
138933
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
138932
138934
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
138933
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-D0HG6I1i.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-D0HG6I1i.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-D0HG6I1i.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-D0HG6I1i.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-D0HG6I1i.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-D0HG6I1i.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-D0HG6I1i.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.10",
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.10",
24
- "@vitessce/gl": "3.8.10",
25
- "@vitessce/globals": "3.8.10",
26
- "@vitessce/schemas": "3.8.10",
27
- "@vitessce/sets-utils": "3.8.10",
28
- "@vitessce/spatial-utils": "3.8.10",
29
- "@vitessce/utils": "3.8.10",
30
- "@vitessce/abstract": "3.8.10",
31
- "@vitessce/error": "3.8.10",
32
- "@vitessce/zarr-utils": "3.8.10",
33
- "@vitessce/config": "3.8.10"
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",