@flywheel-io/fw-file-rs 0.3.18 → 0.5.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/dcm/dcm.d.ts +49 -35
- package/dcm/dcm.js +403 -364
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +20 -16
- package/package.json +1 -1
package/dcm/dcm.d.ts
CHANGED
|
@@ -1,75 +1,88 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export function create_dcm_as_bytes(tags_js: any): Uint8Array;
|
|
5
|
-
export function get_fw_meta(path_meta_pairs: any, arg1: any): any;
|
|
6
|
-
export function parse_header(bytes: Uint8Array, include_tags?: string[] | null): any;
|
|
7
|
-
export function group_series(path_meta_pairs: any, group_by_tags: any, split_localizer: boolean): any;
|
|
3
|
+
|
|
8
4
|
export class Context {
|
|
9
5
|
free(): void;
|
|
10
6
|
[Symbol.dispose](): void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
deid_header(bytes: Uint8Array): Uint8Array;
|
|
8
|
+
get_fw_meta(header: any): any;
|
|
9
|
+
rename_file(filename: string, bytes: Uint8Array): any;
|
|
10
|
+
deid_profile(yaml: string): Context;
|
|
11
|
+
group_series(path_header_pairs: any): any;
|
|
15
12
|
include_tags(tags: any): Context;
|
|
13
|
+
parse_header(bytes: Uint8Array): any;
|
|
14
|
+
stop_at_tags(tags: any): Context;
|
|
16
15
|
group_by_tags(tags: any): Context;
|
|
16
|
+
static is_dcm_filename(filename: string): boolean;
|
|
17
17
|
split_localizer(flag: boolean): Context;
|
|
18
|
-
|
|
19
|
-
deid_profile(yaml: string): Context;
|
|
20
|
-
/**
|
|
21
|
-
* Read file until pixel data using configured stop tags
|
|
22
|
-
*/
|
|
18
|
+
get_deid_profile(): DeidProfile | undefined;
|
|
23
19
|
read_until_pixels(file: File): Promise<Uint8Array>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
matches_file_filter(filename: string): boolean;
|
|
21
|
+
constructor();
|
|
22
|
+
static default(): Context;
|
|
23
|
+
mappings(mappings: any): Context;
|
|
24
|
+
max_size(size: number): Context;
|
|
28
25
|
}
|
|
26
|
+
|
|
29
27
|
export class DeidProfile {
|
|
30
28
|
private constructor();
|
|
31
29
|
free(): void;
|
|
32
30
|
[Symbol.dispose](): void;
|
|
33
|
-
static from_yaml(yaml: string): DeidProfile;
|
|
34
31
|
deid_dcm(dcm_bytes: Uint8Array): Uint8Array;
|
|
32
|
+
static from_yaml(yaml: string): DeidProfile;
|
|
35
33
|
}
|
|
34
|
+
|
|
36
35
|
export class WasmDCMGroup {
|
|
37
36
|
private constructor();
|
|
38
37
|
free(): void;
|
|
39
38
|
[Symbol.dispose](): void;
|
|
40
39
|
}
|
|
41
40
|
|
|
41
|
+
export function create_dcm_as_bytes(tags_js: any): Uint8Array;
|
|
42
|
+
|
|
43
|
+
export function get_fw_meta(path_meta_pairs: any, arg1: any): any;
|
|
44
|
+
|
|
45
|
+
export function group_series(path_meta_pairs: any, group_by_tags: any, split_localizer: boolean): any;
|
|
46
|
+
|
|
47
|
+
export function parse_header(bytes: Uint8Array, include_tags?: string[] | null): any;
|
|
48
|
+
|
|
49
|
+
export function read_until_pixels(file: File, stop_tags: any, max_size?: number | null): Promise<Uint8Array>;
|
|
50
|
+
|
|
42
51
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
43
52
|
|
|
44
53
|
export interface InitOutput {
|
|
45
54
|
readonly memory: WebAssembly.Memory;
|
|
46
55
|
readonly __wbg_context_free: (a: number, b: number) => void;
|
|
47
56
|
readonly context_default: () => number;
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
57
|
+
readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
|
|
58
|
+
readonly context_deid_profile: (a: number, b: number, c: number) => [number, number, number];
|
|
59
|
+
readonly context_get_deid_profile: (a: number) => number;
|
|
60
|
+
readonly context_get_fw_meta: (a: number, b: any) => [number, number, number];
|
|
51
61
|
readonly context_group_by_tags: (a: number, b: any) => [number, number, number];
|
|
52
|
-
readonly
|
|
62
|
+
readonly context_group_series: (a: number, b: any) => [number, number, number];
|
|
63
|
+
readonly context_include_tags: (a: number, b: any) => [number, number, number];
|
|
64
|
+
readonly context_is_dcm_filename: (a: number, b: number) => number;
|
|
53
65
|
readonly context_mappings: (a: number, b: any) => [number, number, number];
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
66
|
+
readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
|
|
67
|
+
readonly context_max_size: (a: number, b: number) => number;
|
|
56
68
|
readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
69
|
+
readonly context_read_until_pixels: (a: number, b: any) => any;
|
|
70
|
+
readonly context_rename_file: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
71
|
+
readonly context_split_localizer: (a: number, b: number) => number;
|
|
72
|
+
readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
60
73
|
readonly context_new: () => number;
|
|
61
|
-
readonly read_until_pixels: (a: any, b: any, c: number) => any;
|
|
62
|
-
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
63
74
|
readonly get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
64
75
|
readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
65
76
|
readonly __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
66
|
-
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
67
|
-
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
68
77
|
readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
78
|
+
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
79
|
+
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
69
80
|
readonly group_series: (a: any, b: any, c: number) => any;
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
81
|
+
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
82
|
+
readonly read_until_pixels: (a: any, b: any, c: number) => any;
|
|
83
|
+
readonly wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9: (a: number, b: number, c: any) => void;
|
|
84
|
+
readonly wasm_bindgen__closure__destroy__h24f1c33a4f08db65: (a: number, b: number) => void;
|
|
85
|
+
readonly wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9: (a: number, b: number, c: any, d: any) => void;
|
|
73
86
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
74
87
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
75
88
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -81,6 +94,7 @@ export interface InitOutput {
|
|
|
81
94
|
}
|
|
82
95
|
|
|
83
96
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
97
|
+
|
|
84
98
|
/**
|
|
85
99
|
* Instantiates the given `module`, which can either be bytes or
|
|
86
100
|
* a precompiled `WebAssembly.Module`.
|