omezarr-tilesource 0.0.2 → 0.1.1

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
@@ -3,19 +3,23 @@
3
3
  [![Release](https://img.shields.io/github/v/release/TissUUmaps/OMEZarrTileSource?label=release)](https://github.com/TissUUmaps/OMEZarrTileSource/releases)
4
4
  [![Issues](https://img.shields.io/github/issues/TissUUmaps/OMEZarrTileSource?label=issues)](https://github.com/TissUUmaps/OMEZarrTileSource/issues)
5
5
  [![Pull requests](https://img.shields.io/github/issues-pr/TissUUmaps/OMEZarrTileSource?label=pr)](https://github.com/TissUUmaps/OMEZarrTileSource/pulls)
6
- [![Pages](https://img.shields.io/github/actions/workflow/status/TissUUmaps/OMEZarrTileSource/pages.yml?label=pages)](https://github.com/TissUUmaps/OMEZarrTileSource/actions/workflows/pages.yml)
6
+ [![Deploy](https://img.shields.io/github/actions/workflow/status/TissUUmaps/OMEZarrTileSource/deploy.yml?label=deploy)](https://github.com/TissUUmaps/OMEZarrTileSource/actions/workflows/deploy.yml)
7
7
  [![Publish](https://img.shields.io/github/actions/workflow/status/TissUUmaps/OMEZarrTileSource/publish.yml?label=publish)](https://github.com/TissUUmaps/OMEZarrTileSource/actions/workflows/publish.yml)
8
- [![NPM version](https://img.shields.io/npm/v/OMEZarrTileSource?label=npm)](https://www.npmjs.com/package/OMEZarrTileSource)
8
+ [![NPM version](https://img.shields.io/npm/v/omezarr-tilesource?label=npm)](https://www.npmjs.com/package/omezarr-tilesource)
9
9
  [![License](https://img.shields.io/github/license/TissUUmaps/OMEZarrTileSource?label=license)](LICENSE)
10
10
 
11
11
  An OpenSeadragon tile source for the OME-Zarr bioimage file format
12
12
 
13
+ ## Prerequisites
14
+
15
+ OpenSeadragon 5 or newer
16
+
13
17
  ## Installation
14
18
 
15
- Using npm:
19
+ Using pnpm:
16
20
 
17
21
  ```sh
18
- npm install omezarr-tilesource
22
+ pnpm add omezarr-tilesource
19
23
  ```
20
24
 
21
25
  ## Usage
@@ -42,7 +46,7 @@ const viewer = OpenSeadragon(
42
46
  // t: undefined,
43
47
  // c: undefined,
44
48
  // z: undefined
45
- }
49
+ },
46
50
  // direct instantiation with a URL string (works with any OME-Zarr storage backend)
47
51
  new OMEZarrTileSource(url),
48
52
  // direct instantiation with an options object (no prior enabling required)
@@ -0,0 +1,52 @@
1
+ import { default as default_2 } from 'openseadragon';
2
+
3
+ export declare class OMEZarrTileSource extends default_2.TileSource {
4
+ static readonly DUMMY_XHR: XMLHttpRequest;
5
+ readonly url: string;
6
+ aspectRatio: number;
7
+ dimensions: default_2.Point;
8
+ maxLevel: number;
9
+ ready: boolean;
10
+ readonly zip?: boolean;
11
+ readonly t?: number;
12
+ readonly c?: number;
13
+ readonly z?: number;
14
+ private _omero?;
15
+ private _multiscale?;
16
+ private _axisIndices?;
17
+ private _arrays?;
18
+ constructor(url: string);
19
+ constructor(options: OMEZarrTileSourceOptions);
20
+ supports(data: string | object | object[] | Document): boolean;
21
+ configure(data: string | object | object[] | Document, _url: string, postData?: string | null): OMEZarrTileSourceOptions;
22
+ equals(other: default_2.TileSource): boolean;
23
+ getImageInfo(url: string): void;
24
+ getTileWidth(level: number): number;
25
+ getTileHeight(level: number): number;
26
+ getLevelScale(level: number): number;
27
+ getTileUrl(level: number, x: number, y: number): string;
28
+ getTileHashKey(level: number, x: number, y: number): string;
29
+ downloadTileStart(context: default_2.ImageJob): void;
30
+ downloadTileAbort(context: default_2.ImageJob): void;
31
+ static enable(os?: typeof default_2): void;
32
+ private static _getMultiscale;
33
+ private static _getAxisIndices;
34
+ }
35
+
36
+ export declare type OMEZarrTileSourceClass = typeof OMEZarrTileSource;
37
+
38
+ export declare interface OMEZarrTileSourceOptions {
39
+ type?: "ome-zarr";
40
+ url: string;
41
+ zip?: boolean;
42
+ t?: number;
43
+ c?: number;
44
+ z?: number;
45
+ }
46
+
47
+ export { }
48
+
49
+
50
+ declare module "openseadragon" {
51
+ let OMEZarrTileSource: OMEZarrTileSourceClass;
52
+ }