@fideus-labs/ngff-zarr 0.16.0 → 0.17.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/esm/io/to_ngff_zarr.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { MemoryStore } from "./from_ngff_zarr.js";
|
|
|
4
4
|
export interface ToNgffZarrOptions {
|
|
5
5
|
overwrite?: boolean;
|
|
6
6
|
/**
|
|
7
|
-
* OME-Zarr version to write. Defaults to "0.
|
|
7
|
+
* OME-Zarr version to write. Defaults to "0.5" for regular Zarr files.
|
|
8
8
|
* For .ozx files (RFC-9), this must be version 0.5. If omitted for .ozx files,
|
|
9
9
|
* it defaults to 0.5. If explicitly set to any other value for .ozx files,
|
|
10
10
|
* an error will be thrown.
|
|
@@ -48,11 +48,11 @@ export interface ToNgffZarrOzxOptions {
|
|
|
48
48
|
* // Writing to .ozx file - version 0.5 is used automatically
|
|
49
49
|
* await toNgffZarr("output.ozx", multiscales);
|
|
50
50
|
*
|
|
51
|
-
* // Writing to regular zarr with version 0.
|
|
51
|
+
* // Writing to regular zarr with version 0.5 (default)
|
|
52
52
|
* await toNgffZarr("output.zarr", multiscales);
|
|
53
53
|
*
|
|
54
|
-
* // Writing to regular zarr with version 0.
|
|
55
|
-
* await toNgffZarr("output.zarr", multiscales, { version: "0.
|
|
54
|
+
* // Writing to regular zarr with version 0.4
|
|
55
|
+
* await toNgffZarr("output.zarr", multiscales, { version: "0.4" });
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
58
|
export declare function toNgffZarr(store: string | MemoryStore | zarr.FetchStore, multiscales: Multiscales, options?: ToNgffZarrOptions): Promise<void>;
|
package/esm/io/to_ngff_zarr.js
CHANGED
|
@@ -23,16 +23,16 @@ import { processAxesForRfcs, writeMultiscalesToMemoryStore, } from "./to_ngff_za
|
|
|
23
23
|
* // Writing to .ozx file - version 0.5 is used automatically
|
|
24
24
|
* await toNgffZarr("output.ozx", multiscales);
|
|
25
25
|
*
|
|
26
|
-
* // Writing to regular zarr with version 0.
|
|
26
|
+
* // Writing to regular zarr with version 0.5 (default)
|
|
27
27
|
* await toNgffZarr("output.zarr", multiscales);
|
|
28
28
|
*
|
|
29
|
-
* // Writing to regular zarr with version 0.
|
|
30
|
-
* await toNgffZarr("output.zarr", multiscales, { version: "0.
|
|
29
|
+
* // Writing to regular zarr with version 0.4
|
|
30
|
+
* await toNgffZarr("output.zarr", multiscales, { version: "0.4" });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export async function toNgffZarr(store, multiscales, options = {}) {
|
|
34
34
|
const _overwrite = options.overwrite ?? true;
|
|
35
|
-
const _version = options.version ?? "0.
|
|
35
|
+
const _version = options.version ?? "0.5";
|
|
36
36
|
const enabledRfcs = options.enabledRfcs;
|
|
37
37
|
// Handle .ozx paths (RFC-9)
|
|
38
38
|
if (typeof store === "string" && isOzxPath(store)) {
|