@flywheel-io/fw-file-rs 0.6.1 → 0.7.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 +6 -8
- package/dcm/dcm.js +94 -109
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +6 -7
- package/package.json +1 -1
package/dcm/dcm.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export class Context {
|
|
|
13
13
|
group_series(path_header_pairs: any): any;
|
|
14
14
|
include_tags(tags: any): Context;
|
|
15
15
|
static is_dcm_filename(filename: string): boolean;
|
|
16
|
-
mappings(mappings: any): Context;
|
|
17
16
|
matches_file_filter(filename: string): boolean;
|
|
18
17
|
max_size(size: number): Context;
|
|
19
18
|
constructor();
|
|
@@ -64,7 +63,6 @@ export interface InitOutput {
|
|
|
64
63
|
readonly context_group_series: (a: number, b: any) => [number, number, number];
|
|
65
64
|
readonly context_include_tags: (a: number, b: any) => [number, number, number];
|
|
66
65
|
readonly context_is_dcm_filename: (a: number, b: number) => number;
|
|
67
|
-
readonly context_mappings: (a: number, b: any) => [number, number, number];
|
|
68
66
|
readonly context_matches_file_filter: (a: number, b: number, c: number) => number;
|
|
69
67
|
readonly context_max_size: (a: number, b: number) => number;
|
|
70
68
|
readonly context_parse_header: (a: number, b: number, c: number) => [number, number, number];
|
|
@@ -73,24 +71,24 @@ export interface InitOutput {
|
|
|
73
71
|
readonly context_split_localizer: (a: number, b: number) => number;
|
|
74
72
|
readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
75
73
|
readonly context_new: () => number;
|
|
74
|
+
readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
75
|
+
readonly get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
76
76
|
readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
77
|
-
readonly group_series: (a: any, b: any, c: number) => any;
|
|
78
77
|
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
78
|
+
readonly group_series: (a: any, b: any, c: number) => any;
|
|
79
79
|
readonly is_dicom_part10: (a: any) => any;
|
|
80
80
|
readonly read_until_pixels: (a: any, b: any, c: number) => any;
|
|
81
81
|
readonly __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
82
82
|
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
83
83
|
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly wasm_bindgen__closure__destroy__h137e736e2a3531af: (a: number, b: number) => void;
|
|
87
|
-
readonly wasm_bindgen__convert__closures_____invoke__h87c2cee7fa035307: (a: number, b: number, c: any) => [number, number];
|
|
88
|
-
readonly wasm_bindgen__convert__closures_____invoke__h0b186e11ef6abd41: (a: number, b: number, c: any, d: any) => void;
|
|
84
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59: (a: number, b: number, c: any) => [number, number];
|
|
85
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa: (a: number, b: number, c: any, d: any) => void;
|
|
89
86
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
90
87
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
91
88
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
92
89
|
readonly __externref_table_alloc: () => number;
|
|
93
90
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
91
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
94
92
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
95
93
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
96
94
|
readonly __wbindgen_start: () => void;
|
package/dcm/dcm.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
export class Context {
|
|
4
4
|
static __wrap(ptr) {
|
|
5
|
-
ptr = ptr >>> 0;
|
|
6
5
|
const obj = Object.create(Context.prototype);
|
|
7
6
|
obj.__wbg_ptr = ptr;
|
|
8
7
|
ContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -117,18 +116,6 @@ export class Context {
|
|
|
117
116
|
const ret = wasm.context_is_dcm_filename(ptr0, len0);
|
|
118
117
|
return ret !== 0;
|
|
119
118
|
}
|
|
120
|
-
/**
|
|
121
|
-
* @param {any} mappings
|
|
122
|
-
* @returns {Context}
|
|
123
|
-
*/
|
|
124
|
-
mappings(mappings) {
|
|
125
|
-
const ptr = this.__destroy_into_raw();
|
|
126
|
-
const ret = wasm.context_mappings(ptr, mappings);
|
|
127
|
-
if (ret[2]) {
|
|
128
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
129
|
-
}
|
|
130
|
-
return Context.__wrap(ret[0]);
|
|
131
|
-
}
|
|
132
119
|
/**
|
|
133
120
|
* @param {string} filename
|
|
134
121
|
* @returns {boolean}
|
|
@@ -150,7 +137,7 @@ export class Context {
|
|
|
150
137
|
}
|
|
151
138
|
constructor() {
|
|
152
139
|
const ret = wasm.context_new();
|
|
153
|
-
this.__wbg_ptr = ret
|
|
140
|
+
this.__wbg_ptr = ret;
|
|
154
141
|
ContextFinalization.register(this, this.__wbg_ptr, this);
|
|
155
142
|
return this;
|
|
156
143
|
}
|
|
@@ -217,7 +204,6 @@ if (Symbol.dispose) Context.prototype[Symbol.dispose] = Context.prototype.free;
|
|
|
217
204
|
|
|
218
205
|
export class DeidProfile {
|
|
219
206
|
static __wrap(ptr) {
|
|
220
|
-
ptr = ptr >>> 0;
|
|
221
207
|
const obj = Object.create(DeidProfile.prototype);
|
|
222
208
|
obj.__wbg_ptr = ptr;
|
|
223
209
|
DeidProfileFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -349,18 +335,17 @@ export function parse_header(bytes, include_tags) {
|
|
|
349
335
|
* @returns {Promise<Uint8Array>}
|
|
350
336
|
*/
|
|
351
337
|
export function read_until_pixels(file, stop_tags, max_size) {
|
|
352
|
-
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ?
|
|
338
|
+
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? Number.MAX_SAFE_INTEGER : (max_size) >>> 0);
|
|
353
339
|
return ret;
|
|
354
340
|
}
|
|
355
|
-
|
|
356
341
|
function __wbg_get_imports() {
|
|
357
342
|
const import0 = {
|
|
358
343
|
__proto__: null,
|
|
359
|
-
|
|
344
|
+
__wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
|
|
360
345
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
361
346
|
return ret;
|
|
362
347
|
},
|
|
363
|
-
|
|
348
|
+
__wbg_Number_c4bdf66bb78f7977: function(arg0) {
|
|
364
349
|
const ret = Number(arg0);
|
|
365
350
|
return ret;
|
|
366
351
|
},
|
|
@@ -371,68 +356,68 @@ function __wbg_get_imports() {
|
|
|
371
356
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
372
357
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
373
358
|
},
|
|
374
|
-
|
|
359
|
+
__wbg___wbindgen_bigint_get_as_i64_d9e915702856f831: function(arg0, arg1) {
|
|
375
360
|
const v = arg1;
|
|
376
361
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
377
362
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
378
363
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
379
364
|
},
|
|
380
|
-
|
|
365
|
+
__wbg___wbindgen_boolean_get_edaed31a367ce1bd: function(arg0) {
|
|
381
366
|
const v = arg0;
|
|
382
367
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
383
368
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
384
369
|
},
|
|
385
|
-
|
|
370
|
+
__wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
|
|
386
371
|
const ret = debugString(arg1);
|
|
387
372
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
373
|
const len1 = WASM_VECTOR_LEN;
|
|
389
374
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
390
375
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
391
376
|
},
|
|
392
|
-
|
|
377
|
+
__wbg___wbindgen_in_4990f46af709e33c: function(arg0, arg1) {
|
|
393
378
|
const ret = arg0 in arg1;
|
|
394
379
|
return ret;
|
|
395
380
|
},
|
|
396
|
-
|
|
381
|
+
__wbg___wbindgen_is_bigint_90b5ccfe67c78460: function(arg0) {
|
|
397
382
|
const ret = typeof(arg0) === 'bigint';
|
|
398
383
|
return ret;
|
|
399
384
|
},
|
|
400
|
-
|
|
385
|
+
__wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
|
|
401
386
|
const ret = typeof(arg0) === 'function';
|
|
402
387
|
return ret;
|
|
403
388
|
},
|
|
404
|
-
|
|
389
|
+
__wbg___wbindgen_is_null_6d937fbfb6478470: function(arg0) {
|
|
405
390
|
const ret = arg0 === null;
|
|
406
391
|
return ret;
|
|
407
392
|
},
|
|
408
|
-
|
|
393
|
+
__wbg___wbindgen_is_object_0beba4a1980d3eea: function(arg0) {
|
|
409
394
|
const val = arg0;
|
|
410
395
|
const ret = typeof(val) === 'object' && val !== null;
|
|
411
396
|
return ret;
|
|
412
397
|
},
|
|
413
|
-
|
|
398
|
+
__wbg___wbindgen_is_string_1fca8072260dd261: function(arg0) {
|
|
414
399
|
const ret = typeof(arg0) === 'string';
|
|
415
400
|
return ret;
|
|
416
401
|
},
|
|
417
|
-
|
|
402
|
+
__wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
|
|
418
403
|
const ret = arg0 === undefined;
|
|
419
404
|
return ret;
|
|
420
405
|
},
|
|
421
|
-
|
|
406
|
+
__wbg___wbindgen_jsval_eq_4e8c38722cb8ff51: function(arg0, arg1) {
|
|
422
407
|
const ret = arg0 === arg1;
|
|
423
408
|
return ret;
|
|
424
409
|
},
|
|
425
|
-
|
|
410
|
+
__wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582: function(arg0, arg1) {
|
|
426
411
|
const ret = arg0 == arg1;
|
|
427
412
|
return ret;
|
|
428
413
|
},
|
|
429
|
-
|
|
414
|
+
__wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
|
|
430
415
|
const obj = arg1;
|
|
431
416
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
432
417
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
433
418
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
434
419
|
},
|
|
435
|
-
|
|
420
|
+
__wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
|
|
436
421
|
const obj = arg1;
|
|
437
422
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
438
423
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -440,56 +425,56 @@ function __wbg_get_imports() {
|
|
|
440
425
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
441
426
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
442
427
|
},
|
|
443
|
-
|
|
428
|
+
__wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
|
|
444
429
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
445
430
|
},
|
|
446
|
-
|
|
431
|
+
__wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
|
|
447
432
|
arg0._wbg_cb_unref();
|
|
448
433
|
},
|
|
449
|
-
|
|
434
|
+
__wbg_arrayBuffer_e3174a1300c67c95: function(arg0) {
|
|
450
435
|
const ret = arg0.arrayBuffer();
|
|
451
436
|
return ret;
|
|
452
437
|
},
|
|
453
|
-
|
|
438
|
+
__wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
|
|
454
439
|
const ret = arg0.call(arg1, arg2);
|
|
455
440
|
return ret;
|
|
456
441
|
}, arguments); },
|
|
457
|
-
|
|
442
|
+
__wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
|
|
458
443
|
const ret = arg0.call(arg1);
|
|
459
444
|
return ret;
|
|
460
445
|
}, arguments); },
|
|
461
|
-
|
|
446
|
+
__wbg_done_b62d4a7d2286852a: function(arg0) {
|
|
462
447
|
const ret = arg0.done;
|
|
463
448
|
return ret;
|
|
464
449
|
},
|
|
465
|
-
|
|
450
|
+
__wbg_entries_c261c3fa1f281256: function(arg0) {
|
|
466
451
|
const ret = Object.entries(arg0);
|
|
467
452
|
return ret;
|
|
468
453
|
},
|
|
469
454
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
470
455
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
471
456
|
}, arguments); },
|
|
472
|
-
|
|
457
|
+
__wbg_getTime_7a770f8a2ec8d634: function(arg0) {
|
|
473
458
|
const ret = arg0.getTime();
|
|
474
459
|
return ret;
|
|
475
460
|
},
|
|
476
|
-
|
|
461
|
+
__wbg_getTimezoneOffset_d6fba5332f80c3da: function(arg0) {
|
|
477
462
|
const ret = arg0.getTimezoneOffset();
|
|
478
463
|
return ret;
|
|
479
464
|
},
|
|
480
|
-
|
|
481
|
-
const ret = Reflect.get(arg0, arg1);
|
|
482
|
-
return ret;
|
|
483
|
-
}, arguments); },
|
|
484
|
-
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
465
|
+
__wbg_get_197a3fe98f169e38: function(arg0, arg1) {
|
|
485
466
|
const ret = arg0[arg1 >>> 0];
|
|
486
467
|
return ret;
|
|
487
468
|
},
|
|
488
|
-
|
|
469
|
+
__wbg_get_9a29be2cb383ed9a: function() { return handleError(function (arg0, arg1) {
|
|
470
|
+
const ret = Reflect.get(arg0, arg1);
|
|
471
|
+
return ret;
|
|
472
|
+
}, arguments); },
|
|
473
|
+
__wbg_get_unchecked_54a4374c38e08460: function(arg0, arg1) {
|
|
489
474
|
const ret = arg0[arg1 >>> 0];
|
|
490
475
|
return ret;
|
|
491
476
|
},
|
|
492
|
-
|
|
477
|
+
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
493
478
|
let result;
|
|
494
479
|
try {
|
|
495
480
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -499,7 +484,7 @@ function __wbg_get_imports() {
|
|
|
499
484
|
const ret = result;
|
|
500
485
|
return ret;
|
|
501
486
|
},
|
|
502
|
-
|
|
487
|
+
__wbg_instanceof_Map_afa18d5840c04c15: function(arg0) {
|
|
503
488
|
let result;
|
|
504
489
|
try {
|
|
505
490
|
result = arg0 instanceof Map;
|
|
@@ -509,7 +494,7 @@ function __wbg_get_imports() {
|
|
|
509
494
|
const ret = result;
|
|
510
495
|
return ret;
|
|
511
496
|
},
|
|
512
|
-
|
|
497
|
+
__wbg_instanceof_Uint8Array_f080092dc70f5d58: function(arg0) {
|
|
513
498
|
let result;
|
|
514
499
|
try {
|
|
515
500
|
result = arg0 instanceof Uint8Array;
|
|
@@ -519,62 +504,62 @@ function __wbg_get_imports() {
|
|
|
519
504
|
const ret = result;
|
|
520
505
|
return ret;
|
|
521
506
|
},
|
|
522
|
-
|
|
507
|
+
__wbg_isArray_145a34fd0a38d37b: function(arg0) {
|
|
523
508
|
const ret = Array.isArray(arg0);
|
|
524
509
|
return ret;
|
|
525
510
|
},
|
|
526
|
-
|
|
511
|
+
__wbg_isSafeInteger_a3389a198582f5f6: function(arg0) {
|
|
527
512
|
const ret = Number.isSafeInteger(arg0);
|
|
528
513
|
return ret;
|
|
529
514
|
},
|
|
530
|
-
|
|
515
|
+
__wbg_iterator_cc47ba25a2be735a: function() {
|
|
531
516
|
const ret = Symbol.iterator;
|
|
532
517
|
return ret;
|
|
533
518
|
},
|
|
534
|
-
|
|
519
|
+
__wbg_length_589238bdcf171f0e: function(arg0) {
|
|
535
520
|
const ret = arg0.length;
|
|
536
521
|
return ret;
|
|
537
522
|
},
|
|
538
|
-
|
|
523
|
+
__wbg_length_c6054974c0a6cdb9: function(arg0) {
|
|
539
524
|
const ret = arg0.length;
|
|
540
525
|
return ret;
|
|
541
526
|
},
|
|
542
|
-
|
|
527
|
+
__wbg_new_0_1b32bedde98fef4b: function() {
|
|
543
528
|
const ret = new Date();
|
|
544
529
|
return ret;
|
|
545
530
|
},
|
|
546
|
-
|
|
547
|
-
const ret = new
|
|
531
|
+
__wbg_new_2e117a478906f062: function() {
|
|
532
|
+
const ret = new Object();
|
|
548
533
|
return ret;
|
|
549
534
|
},
|
|
550
|
-
|
|
551
|
-
const ret = new
|
|
535
|
+
__wbg_new_3444eb7412549f0b: function() {
|
|
536
|
+
const ret = new Map();
|
|
552
537
|
return ret;
|
|
553
538
|
},
|
|
554
|
-
|
|
539
|
+
__wbg_new_36e147a8ced3c6e0: function() {
|
|
555
540
|
const ret = new Array();
|
|
556
541
|
return ret;
|
|
557
542
|
},
|
|
558
|
-
|
|
559
|
-
const ret = new
|
|
543
|
+
__wbg_new_47ab770c8bd3b6bb: function(arg0) {
|
|
544
|
+
const ret = new Date(arg0);
|
|
560
545
|
return ret;
|
|
561
546
|
},
|
|
562
|
-
|
|
563
|
-
const ret = new
|
|
547
|
+
__wbg_new_81880fb5002cb255: function(arg0) {
|
|
548
|
+
const ret = new Uint8Array(arg0);
|
|
564
549
|
return ret;
|
|
565
550
|
},
|
|
566
|
-
|
|
551
|
+
__wbg_new_from_slice_543b875b27789a8f: function(arg0, arg1) {
|
|
567
552
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
568
553
|
return ret;
|
|
569
554
|
},
|
|
570
|
-
|
|
555
|
+
__wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
|
|
571
556
|
try {
|
|
572
557
|
var state0 = {a: arg0, b: arg1};
|
|
573
558
|
var cb0 = (arg0, arg1) => {
|
|
574
559
|
const a = state0.a;
|
|
575
560
|
state0.a = 0;
|
|
576
561
|
try {
|
|
577
|
-
return
|
|
562
|
+
return wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(a, state0.b, arg0, arg1);
|
|
578
563
|
} finally {
|
|
579
564
|
state0.a = a;
|
|
580
565
|
}
|
|
@@ -582,80 +567,80 @@ function __wbg_get_imports() {
|
|
|
582
567
|
const ret = new Promise(cb0);
|
|
583
568
|
return ret;
|
|
584
569
|
} finally {
|
|
585
|
-
state0.a =
|
|
570
|
+
state0.a = 0;
|
|
586
571
|
}
|
|
587
572
|
},
|
|
588
|
-
|
|
573
|
+
__wbg_next_0c4066e251d2eff9: function() { return handleError(function (arg0) {
|
|
589
574
|
const ret = arg0.next();
|
|
590
575
|
return ret;
|
|
591
576
|
}, arguments); },
|
|
592
|
-
|
|
577
|
+
__wbg_next_402fa10b59ab20c3: function(arg0) {
|
|
593
578
|
const ret = arg0.next;
|
|
594
579
|
return ret;
|
|
595
580
|
},
|
|
596
|
-
|
|
581
|
+
__wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
|
|
597
582
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
598
583
|
},
|
|
599
|
-
|
|
584
|
+
__wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
|
|
600
585
|
const ret = arg0.queueMicrotask;
|
|
601
586
|
return ret;
|
|
602
587
|
},
|
|
603
|
-
|
|
588
|
+
__wbg_queueMicrotask_311744e534a929a3: function(arg0) {
|
|
604
589
|
queueMicrotask(arg0);
|
|
605
590
|
},
|
|
606
|
-
|
|
591
|
+
__wbg_resolve_d82363d90af6928a: function(arg0) {
|
|
607
592
|
const ret = Promise.resolve(arg0);
|
|
608
593
|
return ret;
|
|
609
594
|
},
|
|
610
|
-
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
611
|
-
arg0[arg1 >>> 0] = arg2;
|
|
612
|
-
},
|
|
613
595
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
614
596
|
arg0[arg1] = arg2;
|
|
615
597
|
},
|
|
616
|
-
|
|
598
|
+
__wbg_set_9a1d61e17de7054c: function(arg0, arg1, arg2) {
|
|
617
599
|
const ret = arg0.set(arg1, arg2);
|
|
618
600
|
return ret;
|
|
619
601
|
},
|
|
620
|
-
|
|
602
|
+
__wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
|
|
603
|
+
arg0[arg1 >>> 0] = arg2;
|
|
604
|
+
},
|
|
605
|
+
__wbg_size_3a5e8d210d038789: function(arg0) {
|
|
621
606
|
const ret = arg0.size;
|
|
622
607
|
return ret;
|
|
623
608
|
},
|
|
624
|
-
|
|
609
|
+
__wbg_slice_faf194aa1e582f72: function() { return handleError(function (arg0, arg1, arg2) {
|
|
625
610
|
const ret = arg0.slice(arg1, arg2);
|
|
626
611
|
return ret;
|
|
627
612
|
}, arguments); },
|
|
628
|
-
|
|
629
|
-
const ret = typeof
|
|
613
|
+
__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
|
|
614
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
630
615
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
631
616
|
},
|
|
632
|
-
|
|
633
|
-
const ret = typeof
|
|
617
|
+
__wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
|
|
618
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
634
619
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
635
620
|
},
|
|
636
|
-
|
|
621
|
+
__wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
|
|
637
622
|
const ret = typeof self === 'undefined' ? null : self;
|
|
638
623
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
639
624
|
},
|
|
640
|
-
|
|
625
|
+
__wbg_static_accessor_WINDOW_168f178805d978fe: function() {
|
|
641
626
|
const ret = typeof window === 'undefined' ? null : window;
|
|
642
627
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
643
628
|
},
|
|
644
|
-
|
|
645
|
-
const ret = arg0.then(arg1);
|
|
629
|
+
__wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
|
|
630
|
+
const ret = arg0.then(arg1, arg2);
|
|
646
631
|
return ret;
|
|
647
632
|
},
|
|
648
|
-
|
|
649
|
-
const ret = arg0.then(arg1
|
|
633
|
+
__wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
|
|
634
|
+
const ret = arg0.then(arg1);
|
|
650
635
|
return ret;
|
|
651
636
|
},
|
|
652
|
-
|
|
637
|
+
__wbg_value_49f783bb59765962: function(arg0) {
|
|
653
638
|
const ret = arg0.value;
|
|
654
639
|
return ret;
|
|
655
640
|
},
|
|
656
641
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
657
|
-
// Cast intrinsic for `Closure(Closure {
|
|
658
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
642
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1256, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
643
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59);
|
|
659
644
|
return ret;
|
|
660
645
|
},
|
|
661
646
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -694,26 +679,26 @@ function __wbg_get_imports() {
|
|
|
694
679
|
};
|
|
695
680
|
}
|
|
696
681
|
|
|
697
|
-
function
|
|
698
|
-
const ret = wasm.
|
|
682
|
+
function wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59(arg0, arg1, arg2) {
|
|
683
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59(arg0, arg1, arg2);
|
|
699
684
|
if (ret[1]) {
|
|
700
685
|
throw takeFromExternrefTable0(ret[0]);
|
|
701
686
|
}
|
|
702
687
|
}
|
|
703
688
|
|
|
704
|
-
function
|
|
705
|
-
wasm.
|
|
689
|
+
function wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(arg0, arg1, arg2, arg3) {
|
|
690
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa(arg0, arg1, arg2, arg3);
|
|
706
691
|
}
|
|
707
692
|
|
|
708
693
|
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
709
694
|
? { register: () => {}, unregister: () => {} }
|
|
710
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr
|
|
695
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr, 1));
|
|
711
696
|
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
712
697
|
? { register: () => {}, unregister: () => {} }
|
|
713
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr
|
|
698
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr, 1));
|
|
714
699
|
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
715
700
|
? { register: () => {}, unregister: () => {} }
|
|
716
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr
|
|
701
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr, 1));
|
|
717
702
|
|
|
718
703
|
function addToExternrefTable0(obj) {
|
|
719
704
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -723,7 +708,7 @@ function addToExternrefTable0(obj) {
|
|
|
723
708
|
|
|
724
709
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
725
710
|
? { register: () => {}, unregister: () => {} }
|
|
726
|
-
: new FinalizationRegistry(state =>
|
|
711
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
727
712
|
|
|
728
713
|
function debugString(val) {
|
|
729
714
|
// primitive types
|
|
@@ -804,8 +789,7 @@ function getDataViewMemory0() {
|
|
|
804
789
|
}
|
|
805
790
|
|
|
806
791
|
function getStringFromWasm0(ptr, len) {
|
|
807
|
-
|
|
808
|
-
return decodeText(ptr, len);
|
|
792
|
+
return decodeText(ptr >>> 0, len);
|
|
809
793
|
}
|
|
810
794
|
|
|
811
795
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -829,8 +813,8 @@ function isLikeNone(x) {
|
|
|
829
813
|
return x === undefined || x === null;
|
|
830
814
|
}
|
|
831
815
|
|
|
832
|
-
function makeMutClosure(arg0, arg1,
|
|
833
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
816
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
817
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
834
818
|
const real = (...args) => {
|
|
835
819
|
|
|
836
820
|
// First up with a closure we increment the internal reference
|
|
@@ -848,7 +832,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
848
832
|
};
|
|
849
833
|
real._wbg_cb_unref = () => {
|
|
850
834
|
if (--state.cnt === 0) {
|
|
851
|
-
|
|
835
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
852
836
|
state.a = 0;
|
|
853
837
|
CLOSURE_DTORS.unregister(state);
|
|
854
838
|
}
|
|
@@ -946,8 +930,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
946
930
|
|
|
947
931
|
let WASM_VECTOR_LEN = 0;
|
|
948
932
|
|
|
949
|
-
let wasmModule, wasm;
|
|
933
|
+
let wasmModule, wasmInstance, wasm;
|
|
950
934
|
function __wbg_finalize_init(instance, module) {
|
|
935
|
+
wasmInstance = instance;
|
|
951
936
|
wasm = instance.exports;
|
|
952
937
|
wasmModule = module;
|
|
953
938
|
cachedDataViewMemory0 = null;
|
package/dcm/dcm_bg.wasm
CHANGED
|
Binary file
|
package/dcm/dcm_bg.wasm.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export const context_group_by_tags: (a: number, b: any) => [number, number, numb
|
|
|
11
11
|
export const context_group_series: (a: number, b: any) => [number, number, number];
|
|
12
12
|
export const context_include_tags: (a: number, b: any) => [number, number, number];
|
|
13
13
|
export const context_is_dcm_filename: (a: number, b: number) => number;
|
|
14
|
-
export const context_mappings: (a: number, b: any) => [number, number, number];
|
|
15
14
|
export const context_matches_file_filter: (a: number, b: number, c: number) => number;
|
|
16
15
|
export const context_max_size: (a: number, b: number) => number;
|
|
17
16
|
export const context_parse_header: (a: number, b: number, c: number) => [number, number, number];
|
|
@@ -20,24 +19,24 @@ export const context_rename_file: (a: number, b: number, c: number, d: number, e
|
|
|
20
19
|
export const context_split_localizer: (a: number, b: number) => number;
|
|
21
20
|
export const context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
22
21
|
export const context_new: () => number;
|
|
22
|
+
export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
23
|
+
export const get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
23
24
|
export const __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
24
|
-
export const group_series: (a: any, b: any, c: number) => any;
|
|
25
25
|
export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
26
|
+
export const group_series: (a: any, b: any, c: number) => any;
|
|
26
27
|
export const is_dicom_part10: (a: any) => any;
|
|
27
28
|
export const read_until_pixels: (a: any, b: any, c: number) => any;
|
|
28
29
|
export const __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
29
30
|
export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
30
31
|
export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const wasm_bindgen__closure__destroy__h137e736e2a3531af: (a: number, b: number) => void;
|
|
34
|
-
export const wasm_bindgen__convert__closures_____invoke__h87c2cee7fa035307: (a: number, b: number, c: any) => [number, number];
|
|
35
|
-
export const wasm_bindgen__convert__closures_____invoke__h0b186e11ef6abd41: (a: number, b: number, c: any, d: any) => void;
|
|
32
|
+
export const wasm_bindgen__convert__closures_____invoke__h023ec276d801cc59: (a: number, b: number, c: any) => [number, number];
|
|
33
|
+
export const wasm_bindgen__convert__closures_____invoke__h4d206e7acbddb6aa: (a: number, b: number, c: any, d: any) => void;
|
|
36
34
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
37
35
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
38
36
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
39
37
|
export const __externref_table_alloc: () => number;
|
|
40
38
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
39
|
+
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
41
40
|
export const __externref_table_dealloc: (a: number) => void;
|
|
42
41
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
43
42
|
export const __wbindgen_start: () => void;
|