omezarr-tilesource 0.1.1 → 0.2.0
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/README.md +28 -22
- package/dist/__vite-browser-external-BIIyDRRX.js +7 -0
- package/dist/__vite-browser-external-YbutIfMq-Cv1_GH0S.js +7 -0
- package/dist/blosc-D7C3XedS.js +692 -0
- package/dist/chunk-BXES_1_E.js +13 -0
- package/dist/chunk-INHXZS53-DODoS5wr.js +13 -0
- package/dist/dist-DIvEDGnZ.js +87 -0
- package/dist/lz4-O6H78S8a.js +626 -0
- package/dist/omezarr-tilesource.d.ts +2 -0
- package/dist/omezarr-tilesource.js +62278 -14455
- package/dist/omezarr-tilesource.umd.cjs +42 -42
- package/dist/png-K1gqQ34g-FkA_MCNO.js +1950 -0
- package/dist/zstd-GeB6dyr_.js +583 -0
- package/package.json +18 -19
- package/dist/blosc-D1xNXZJs.js +0 -719
- package/dist/chunk-INHXZS53-DiyuLb3Z.js +0 -14
- package/dist/lz4-1Ws5oVWR.js +0 -640
- package/dist/zstd-C4EcZnjq.js +0 -603
package/README.md
CHANGED
|
@@ -30,33 +30,39 @@ import { OMEZarrTileSource } from "omezarr-tilesource";
|
|
|
30
30
|
|
|
31
31
|
const url = ...;
|
|
32
32
|
|
|
33
|
-
// only
|
|
33
|
+
// configuration with URL (only works with zipped OME-Zarr URLs ending with .ozx)
|
|
34
|
+
const tileSource1 = url;
|
|
35
|
+
|
|
36
|
+
// inline configuration with options object (requires prior enabling, see below)
|
|
34
37
|
OMEZarrTileSource.enable(OpenSeadragon);
|
|
38
|
+
const tileSource2 = {
|
|
39
|
+
type: "ome-zarr",
|
|
40
|
+
url: url,
|
|
41
|
+
// zip: undefined, // undefined = OME-Zarr ZIP auto-detection based on .ozx suffix
|
|
42
|
+
// t: undefined,
|
|
43
|
+
// c: undefined,
|
|
44
|
+
// z: undefined
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// direct instantiation with URL (works with any OME-Zarr storage backend)
|
|
48
|
+
const tileSource3 = new OMEZarrTileSource(url);
|
|
49
|
+
|
|
50
|
+
// direct instantiation with options object (no prior enabling required)
|
|
51
|
+
const tileSource4 = new OMEZarrTileSource({
|
|
52
|
+
url: url,
|
|
53
|
+
// zip: undefined, // undefined = OME-Zarr ZIP auto-detection based on .ozx suffix
|
|
54
|
+
// t: undefined,
|
|
55
|
+
// c: undefined,
|
|
56
|
+
// z: undefined
|
|
57
|
+
});
|
|
35
58
|
|
|
36
59
|
const viewer = OpenSeadragon(
|
|
37
60
|
...
|
|
38
61
|
tileSources: [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
type: "ome-zarr",
|
|
44
|
-
url: url,
|
|
45
|
-
// zip: undefined, // undefined = OME-Zarr ZIP auto-detection based on .ozx suffix
|
|
46
|
-
// t: undefined,
|
|
47
|
-
// c: undefined,
|
|
48
|
-
// z: undefined
|
|
49
|
-
},
|
|
50
|
-
// direct instantiation with a URL string (works with any OME-Zarr storage backend)
|
|
51
|
-
new OMEZarrTileSource(url),
|
|
52
|
-
// direct instantiation with an options object (no prior enabling required)
|
|
53
|
-
new OMEZarrTileSource({
|
|
54
|
-
url: url,
|
|
55
|
-
// zip: undefined, // undefined = OME-Zarr ZIP auto-detection based on .ozx suffix
|
|
56
|
-
// t: undefined,
|
|
57
|
-
// c: undefined,
|
|
58
|
-
// z: undefined
|
|
59
|
-
})
|
|
62
|
+
tileSource1,
|
|
63
|
+
tileSource2,
|
|
64
|
+
tileSource3,
|
|
65
|
+
tileSource4
|
|
60
66
|
]
|
|
61
67
|
);
|
|
62
68
|
```
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/ome-zarr.js@0.0.19/node_modules/ome-zarr.js/dist/__vite-browser-external-YbutIfMq.js
|
|
2
|
+
var e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
default: {}
|
|
5
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as _ };
|