@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/{deflate-d62c010f.js → deflate-25daa8b4.js} +1 -1
- package/dist/{index-27c044ac.js → index-a2ef4feb.js} +12356 -26902
- package/dist/index.js +1 -1
- package/dist/{jpeg-780f2a29.js → jpeg-e9fb8e9a.js} +1 -1
- package/dist/{lerc-11712e42.js → lerc-5efebb70.js} +1 -1
- package/dist/{lzw-a22317ac.js → lzw-08382ca6.js} +1 -1
- package/dist/{packbits-757ef203.js → packbits-a59501fd.js} +1 -1
- package/dist/{raw-7e5381d5.js → raw-452825c1.js} +1 -1
- package/dist/{webimage-ec283d98.js → webimage-3bd5a0ac.js} +1 -1
- package/dist-tsc/load-ome-zarr.d.ts +1 -1
- package/dist-tsc/load-ome-zarr.d.ts.map +1 -1
- package/dist-tsc/load-ome-zarr.js +2 -3
- package/package.json +4 -4
- package/src/load-ome-zarr.js +2 -3
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-
|
|
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,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-
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ome-zarr.d.ts","sourceRoot":"","sources":["../src/load-ome-zarr.js"],"names":[],"mappings":"AAkBA,gDAMC;AAiDD;;;
|
|
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 {
|
|
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(
|
|
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.
|
|
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.
|
|
24
|
-
"@vitessce/utils": "3.3.
|
|
25
|
-
"@vitessce/
|
|
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",
|
package/src/load-ome-zarr.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { viv } from '@vitessce/gl';
|
|
2
2
|
import { open as zarrOpen } from 'zarrita';
|
|
3
|
-
import {
|
|
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(
|
|
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
|