@idetik/core 0.2.3 → 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/dist/index.d.ts +19 -3
- package/dist/index.js +687 -658
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +26 -26
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/data/ome_zarr/image_source.d.ts +20 -3
- package/dist/types/src/data/ome_zarr/image_source.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,21 +2,38 @@ import { Location } from "@zarrita/core";
|
|
|
2
2
|
import { Readable } from "@zarrita/storage";
|
|
3
3
|
import { OmeZarrImageLoader } from "./image_loader";
|
|
4
4
|
import { Version as OmeZarrVersion } from "./metadata_loaders";
|
|
5
|
+
type HttpOmeZarrImageSourceProps = {
|
|
6
|
+
url: string;
|
|
7
|
+
version?: OmeZarrVersion;
|
|
8
|
+
};
|
|
9
|
+
type FileSystemOmeZarrImageSourceProps = {
|
|
10
|
+
directory: FileSystemDirectoryHandle;
|
|
11
|
+
version?: OmeZarrVersion;
|
|
12
|
+
path?: `/${string}`;
|
|
13
|
+
};
|
|
5
14
|
/** Opens an OME-Zarr multiscale image Zarr group from either a URL or local directory. */
|
|
6
15
|
export declare class OmeZarrImageSource {
|
|
7
16
|
readonly location: Location<Readable>;
|
|
8
17
|
readonly version?: OmeZarrVersion;
|
|
18
|
+
private constructor();
|
|
19
|
+
open(): Promise<OmeZarrImageLoader>;
|
|
9
20
|
/**
|
|
21
|
+
* Creates an OmeZarrImageSource from an HTTP(S) URL.
|
|
22
|
+
*
|
|
10
23
|
* @param url URL of Zarr root
|
|
24
|
+
* @param version OME-Zarr version
|
|
11
25
|
*/
|
|
12
|
-
|
|
26
|
+
static fromHttp(props: HttpOmeZarrImageSourceProps): OmeZarrImageSource;
|
|
13
27
|
/**
|
|
28
|
+
* Creates an OmeZarrImageSource from a local filesystem directory.
|
|
29
|
+
*
|
|
14
30
|
* @param directory return value of `window.showDirectoryPicker()` which gives the browser
|
|
15
31
|
* permission to access a directory (only works in Chrome/Edge)
|
|
32
|
+
* @param version OME-Zarr version
|
|
16
33
|
* @param path path to image, beginning with "/". This argument allows the application to only
|
|
17
34
|
* ask the user once for permission to the root directory
|
|
18
35
|
*/
|
|
19
|
-
|
|
20
|
-
open(): Promise<OmeZarrImageLoader>;
|
|
36
|
+
static fromFileSystem(props: FileSystemOmeZarrImageSourceProps): OmeZarrImageSource;
|
|
21
37
|
}
|
|
38
|
+
export {};
|
|
22
39
|
//# sourceMappingURL=image_source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image_source.d.ts","sourceRoot":"","sources":["../../../../../src/data/ome_zarr/image_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQ5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAGL,OAAO,IAAI,cAAc,EAC1B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"image_source.d.ts","sourceRoot":"","sources":["../../../../../src/data/ome_zarr/image_source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQ5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAGL,OAAO,IAAI,cAAc,EAC1B,MAAM,oBAAoB,CAAC;AAO5B,KAAK,2BAA2B,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,KAAK,iCAAiC,GAAG;IACvC,SAAS,EAAE,yBAAyB,CAAC;IACrC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,0FAA0F;AAC1F,qBAAa,kBAAkB;IAC7B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IAElC,OAAO;IAKM,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAsChD;;;;;OAKG;WACW,QAAQ,CAAC,KAAK,EAAE,2BAA2B;IAQzD;;;;;;;;OAQG;WACW,cAAc,CAAC,KAAK,EAAE,iCAAiC;CAOtE"}
|