omezarr-tilesource 0.1.2 → 0.3.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 +30 -7
- package/dist/__vite-browser-external-BIIyDRRX.js +7 -0
- package/dist/__vite-browser-external-YbutIfMq-DmIpWUUk.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 +20 -19
- package/dist/omezarr-tilesource.js +2821 -14554
- package/dist/omezarr-tilesource.umd.cjs +42 -42
- package/dist/png-K1gqQ34g-BW3a7qE6.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
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import { Channel } from 'ome-zarr.js';
|
|
1
2
|
import { default as default_2 } from 'openseadragon';
|
|
3
|
+
import * as zarr from 'zarrita';
|
|
4
|
+
|
|
5
|
+
export declare interface OMEZarrTileData {
|
|
6
|
+
chunk: zarr.Chunk<zarr.NumberDataType | zarr.BigintDataType>;
|
|
7
|
+
channel: Channel;
|
|
8
|
+
autoBoost?: boolean;
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
export declare class OMEZarrTileSource extends default_2.TileSource {
|
|
4
|
-
static readonly DUMMY_XHR: XMLHttpRequest;
|
|
5
12
|
readonly url: string;
|
|
6
|
-
aspectRatio: number;
|
|
7
|
-
dimensions: default_2.Point;
|
|
8
|
-
maxLevel: number;
|
|
9
|
-
ready: boolean;
|
|
10
13
|
readonly zip?: boolean;
|
|
11
|
-
readonly t?: number;
|
|
12
14
|
readonly c?: number;
|
|
13
15
|
readonly z?: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
readonly t?: number;
|
|
17
|
+
readonly dataType: "ome-zarr" | "context2d";
|
|
18
|
+
readonly autoBoost?: boolean;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
private _image?;
|
|
17
22
|
private _arrays?;
|
|
18
23
|
constructor(url: string);
|
|
19
24
|
constructor(options: OMEZarrTileSourceOptions);
|
|
@@ -29,24 +34,20 @@ export declare class OMEZarrTileSource extends default_2.TileSource {
|
|
|
29
34
|
downloadTileStart(context: default_2.ImageJob): void;
|
|
30
35
|
downloadTileAbort(context: default_2.ImageJob): void;
|
|
31
36
|
static enable(os?: typeof default_2): void;
|
|
32
|
-
private static
|
|
33
|
-
private
|
|
37
|
+
private static _learnConverters;
|
|
38
|
+
private _getActiveChannelIndices;
|
|
39
|
+
private static _render;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
|
-
export declare type OMEZarrTileSourceClass = typeof OMEZarrTileSource;
|
|
37
|
-
|
|
38
42
|
export declare interface OMEZarrTileSourceOptions {
|
|
39
43
|
type?: "ome-zarr";
|
|
40
44
|
url: string;
|
|
41
45
|
zip?: boolean;
|
|
42
|
-
t?: number;
|
|
43
46
|
c?: number;
|
|
44
47
|
z?: number;
|
|
48
|
+
t?: number;
|
|
49
|
+
dataType?: "ome-zarr" | "context2d";
|
|
50
|
+
autoBoost?: boolean;
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
export { }
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
declare module "openseadragon" {
|
|
51
|
-
let OMEZarrTileSource: OMEZarrTileSourceClass;
|
|
52
|
-
}
|