@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
package/dist/index.d.ts
CHANGED
|
@@ -1581,22 +1581,38 @@ type OmeroChannel = OmeroMetadata["channels"][number];
|
|
|
1581
1581
|
declare function loadOmeroChannels(source: OmeZarrImageSource): Promise<OmeroChannel[]>;
|
|
1582
1582
|
declare function loadOmeroDefaults(source: OmeZarrImageSource): Promise<OmeroMetadata["rdefs"]>;
|
|
1583
1583
|
|
|
1584
|
+
type HttpOmeZarrImageSourceProps = {
|
|
1585
|
+
url: string;
|
|
1586
|
+
version?: Version;
|
|
1587
|
+
};
|
|
1588
|
+
type FileSystemOmeZarrImageSourceProps = {
|
|
1589
|
+
directory: FileSystemDirectoryHandle;
|
|
1590
|
+
version?: Version;
|
|
1591
|
+
path?: `/${string}`;
|
|
1592
|
+
};
|
|
1584
1593
|
/** Opens an OME-Zarr multiscale image Zarr group from either a URL or local directory. */
|
|
1585
1594
|
declare class OmeZarrImageSource {
|
|
1586
1595
|
readonly location: Location<Readable>;
|
|
1587
1596
|
readonly version?: Version;
|
|
1597
|
+
private constructor();
|
|
1598
|
+
open(): Promise<OmeZarrImageLoader>;
|
|
1588
1599
|
/**
|
|
1600
|
+
* Creates an OmeZarrImageSource from an HTTP(S) URL.
|
|
1601
|
+
*
|
|
1589
1602
|
* @param url URL of Zarr root
|
|
1603
|
+
* @param version OME-Zarr version
|
|
1590
1604
|
*/
|
|
1591
|
-
|
|
1605
|
+
static fromHttp(props: HttpOmeZarrImageSourceProps): OmeZarrImageSource;
|
|
1592
1606
|
/**
|
|
1607
|
+
* Creates an OmeZarrImageSource from a local filesystem directory.
|
|
1608
|
+
*
|
|
1593
1609
|
* @param directory return value of `window.showDirectoryPicker()` which gives the browser
|
|
1594
1610
|
* permission to access a directory (only works in Chrome/Edge)
|
|
1611
|
+
* @param version OME-Zarr version
|
|
1595
1612
|
* @param path path to image, beginning with "/". This argument allows the application to only
|
|
1596
1613
|
* ask the user once for permission to the root directory
|
|
1597
1614
|
*/
|
|
1598
|
-
|
|
1599
|
-
open(): Promise<OmeZarrImageLoader>;
|
|
1615
|
+
static fromFileSystem(props: FileSystemOmeZarrImageSourceProps): OmeZarrImageSource;
|
|
1600
1616
|
}
|
|
1601
1617
|
|
|
1602
1618
|
declare class Plane {
|