@vitessce/spatial-utils 3.3.2 → 3.3.4

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, e, a, b, c, d, F, G, Z, C, r, n, E, A, y, l, m, z, x, h, q, v, o, i, f, j, k, u, t, p, s, w } from "./index-27c044ac.js";
1
+ import { D, e, a, b, c, d, F, G, Z, C, r, n, E, A, y, l, m, z, x, h, q, v, o, i, f, j, k, u, t, p, s, w } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  export {
4
4
  D as DEFAULT_CELLS_LAYER,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-27c044ac.js";
1
+ import { B as BaseDecoder } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  const dctZigZag = new Int32Array([
4
4
  0,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-27c044ac.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a2ef4feb.js";
3
3
  import "react";
4
4
  const LercParameters = {
5
5
  Version: 0,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-27c044ac.js";
1
+ import { B as BaseDecoder } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  const MIN_BITS = 9;
4
4
  const CLEAR_CODE = 256;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-27c044ac.js";
1
+ import { B as BaseDecoder } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  class PackbitsDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-27c044ac.js";
1
+ import { B as BaseDecoder } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  class RawDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-27c044ac.js";
1
+ import { B as BaseDecoder } from "./index-a2ef4feb.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -1,5 +1,5 @@
1
1
  export function guessTileSize(arr: any): number;
2
- export function loadOmeZarr(url: any, requestInit: any): Promise<{
2
+ export function loadOmeZarr(root: any): Promise<{
3
3
  data: ZarritaPixelSource[];
4
4
  metadata: import("zarrita").Attributes;
5
5
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"load-ome-zarr.d.ts","sourceRoot":"","sources":["../src/load-ome-zarr.js"],"names":[],"mappings":"AAkBA,gDAMC;AAiDD;;;GAcC;AA9BD;IACE,kDASC;IADC,qBAAwB;CAE3B"}
1
+ {"version":3,"file":"load-ome-zarr.d.ts","sourceRoot":"","sources":["../src/load-ome-zarr.js"],"names":[],"mappings":"AAkBA,gDAMC;AAiDD;;;GAaC;AA7BD;IACE,kDASC;IADC,qBAAwB;CAE3B"}
@@ -1,6 +1,6 @@
1
1
  import { viv } from '@vitessce/gl';
2
2
  import { open as zarrOpen } from 'zarrita';
3
- import { zarrOpenRoot, createZarrArrayAdapter } from '@vitessce/zarr-utils';
3
+ import { createZarrArrayAdapter } from '@vitessce/zarr-utils';
4
4
  function prevPowerOf2(x) {
5
5
  return 2 ** Math.floor(Math.log2(x));
6
6
  }
@@ -62,8 +62,7 @@ export class ZarritaPixelSource extends viv.ZarrPixelSource {
62
62
  }
63
63
  // We use our own loadOmeZarr function (instead of viv.loadOmeZarr)
64
64
  // to bypass usage of zarr.js which is used in Viv's version.
65
- export async function loadOmeZarr(url, requestInit) {
66
- const root = await zarrOpenRoot(url, requestInit);
65
+ export async function loadOmeZarr(root) {
67
66
  const { data, rootAttrs, labels } = await loadMultiscales(root);
68
67
  const tileSize = guessTileSize(data[0]);
69
68
  const pyramid = data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/spatial-utils",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "zarrita": "0.4.0-next.4",
21
21
  "math.gl": "^3.5.6",
22
22
  "mathjs": "^9.2.0",
23
- "@vitessce/gl": "3.3.2",
24
- "@vitessce/utils": "3.3.2",
25
- "@vitessce/zarr-utils": "3.3.2"
23
+ "@vitessce/gl": "3.3.4",
24
+ "@vitessce/zarr-utils": "3.3.4",
25
+ "@vitessce/utils": "3.3.4"
26
26
  },
27
27
  "scripts": {
28
28
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
@@ -1,6 +1,6 @@
1
1
  import { viv } from '@vitessce/gl';
2
2
  import { open as zarrOpen } from 'zarrita';
3
- import { zarrOpenRoot, createZarrArrayAdapter } from '@vitessce/zarr-utils';
3
+ import { createZarrArrayAdapter } from '@vitessce/zarr-utils';
4
4
 
5
5
  function prevPowerOf2(x) {
6
6
  return 2 ** Math.floor(Math.log2(x));
@@ -71,8 +71,7 @@ export class ZarritaPixelSource extends viv.ZarrPixelSource {
71
71
 
72
72
  // We use our own loadOmeZarr function (instead of viv.loadOmeZarr)
73
73
  // to bypass usage of zarr.js which is used in Viv's version.
74
- export async function loadOmeZarr(url, requestInit) {
75
- const root = await zarrOpenRoot(url, requestInit);
74
+ export async function loadOmeZarr(root) {
76
75
  const { data, rootAttrs, labels } = await loadMultiscales(root);
77
76
  const tileSize = guessTileSize(data[0]);
78
77
  const pyramid = data