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 CHANGED
@@ -30,33 +30,39 @@ import { OMEZarrTileSource } from "omezarr-tilesource";
30
30
 
31
31
  const url = ...;
32
32
 
33
- // only necessary when using inline tile source configuration (see below)
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
- // configuration with a URL string (only works with OME-Zarr ZIP URLs ending with .ozx)
40
- url,
41
- // inline configuration with an options object (requires prior enabling, see above)
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
+ import { t as e } from "./chunk-BXES_1_E.js";
2
+ //#region __vite-browser-external
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ t.exports = {};
5
+ }));
6
+ //#endregion
7
+ export default t();
@@ -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 _ };