@flywheel-io/fw-file-rs 0.7.0 → 0.7.2
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 +10 -10
- package/dcm/dcm.js +88 -84
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +10 -10
- package/package.json +1 -1
package/dcm/dcm.d.ts
CHANGED
|
@@ -53,6 +53,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
53
53
|
|
|
54
54
|
export interface InitOutput {
|
|
55
55
|
readonly memory: WebAssembly.Memory;
|
|
56
|
+
readonly __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
57
|
+
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
58
|
+
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
59
|
+
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
60
|
+
readonly get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
61
|
+
readonly is_dicom_part10: (a: any) => any;
|
|
62
|
+
readonly read_until_pixels: (a: any, b: any, c: number) => any;
|
|
56
63
|
readonly __wbg_context_free: (a: number, b: number) => void;
|
|
57
64
|
readonly context_default: () => number;
|
|
58
65
|
readonly context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
|
|
@@ -71,18 +78,11 @@ export interface InitOutput {
|
|
|
71
78
|
readonly context_split_localizer: (a: number, b: number) => number;
|
|
72
79
|
readonly context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
73
80
|
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
81
|
readonly __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
77
|
-
readonly create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
78
82
|
readonly group_series: (a: any, b: any, c: number) => any;
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
83
|
-
readonly deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
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;
|
|
83
|
+
readonly parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
84
|
+
readonly wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
85
|
+
readonly wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
86
86
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
87
87
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
88
88
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/dcm/dcm.js
CHANGED
|
@@ -341,11 +341,11 @@ export function read_until_pixels(file, stop_tags, max_size) {
|
|
|
341
341
|
function __wbg_get_imports() {
|
|
342
342
|
const import0 = {
|
|
343
343
|
__proto__: null,
|
|
344
|
-
|
|
344
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
345
345
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
346
346
|
return ret;
|
|
347
347
|
},
|
|
348
|
-
|
|
348
|
+
__wbg_Number_3890faa6d3ff057d: function(arg0) {
|
|
349
349
|
const ret = Number(arg0);
|
|
350
350
|
return ret;
|
|
351
351
|
},
|
|
@@ -356,68 +356,68 @@ function __wbg_get_imports() {
|
|
|
356
356
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
357
357
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
358
358
|
},
|
|
359
|
-
|
|
359
|
+
__wbg___wbindgen_bigint_get_as_i64_c4ecf48528083721: function(arg0, arg1) {
|
|
360
360
|
const v = arg1;
|
|
361
361
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
362
362
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
363
363
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
364
364
|
},
|
|
365
|
-
|
|
365
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
366
366
|
const v = arg0;
|
|
367
367
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
368
368
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
369
369
|
},
|
|
370
|
-
|
|
370
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
371
371
|
const ret = debugString(arg1);
|
|
372
372
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
373
373
|
const len1 = WASM_VECTOR_LEN;
|
|
374
374
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
375
375
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
376
376
|
},
|
|
377
|
-
|
|
377
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
378
378
|
const ret = arg0 in arg1;
|
|
379
379
|
return ret;
|
|
380
380
|
},
|
|
381
|
-
|
|
381
|
+
__wbg___wbindgen_is_bigint_8ffbbef442139384: function(arg0) {
|
|
382
382
|
const ret = typeof(arg0) === 'bigint';
|
|
383
383
|
return ret;
|
|
384
384
|
},
|
|
385
|
-
|
|
385
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
386
386
|
const ret = typeof(arg0) === 'function';
|
|
387
387
|
return ret;
|
|
388
388
|
},
|
|
389
|
-
|
|
389
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
390
390
|
const ret = arg0 === null;
|
|
391
391
|
return ret;
|
|
392
392
|
},
|
|
393
|
-
|
|
393
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
394
394
|
const val = arg0;
|
|
395
395
|
const ret = typeof(val) === 'object' && val !== null;
|
|
396
396
|
return ret;
|
|
397
397
|
},
|
|
398
|
-
|
|
398
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
399
399
|
const ret = typeof(arg0) === 'string';
|
|
400
400
|
return ret;
|
|
401
401
|
},
|
|
402
|
-
|
|
402
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
403
403
|
const ret = arg0 === undefined;
|
|
404
404
|
return ret;
|
|
405
405
|
},
|
|
406
|
-
|
|
406
|
+
__wbg___wbindgen_jsval_eq_0a18949a61670320: function(arg0, arg1) {
|
|
407
407
|
const ret = arg0 === arg1;
|
|
408
408
|
return ret;
|
|
409
409
|
},
|
|
410
|
-
|
|
410
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
411
411
|
const ret = arg0 == arg1;
|
|
412
412
|
return ret;
|
|
413
413
|
},
|
|
414
|
-
|
|
414
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
415
415
|
const obj = arg1;
|
|
416
416
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
417
417
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
418
418
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
419
419
|
},
|
|
420
|
-
|
|
420
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
421
421
|
const obj = arg1;
|
|
422
422
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
423
423
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -425,56 +425,56 @@ function __wbg_get_imports() {
|
|
|
425
425
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
426
426
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
427
427
|
},
|
|
428
|
-
|
|
428
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
429
429
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
430
430
|
},
|
|
431
|
-
|
|
431
|
+
__wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
|
|
432
432
|
arg0._wbg_cb_unref();
|
|
433
433
|
},
|
|
434
|
-
|
|
434
|
+
__wbg_arrayBuffer_393639d72165e90f: function(arg0) {
|
|
435
435
|
const ret = arg0.arrayBuffer();
|
|
436
436
|
return ret;
|
|
437
437
|
},
|
|
438
|
-
|
|
439
|
-
const ret = arg0.call(arg1
|
|
438
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
439
|
+
const ret = arg0.call(arg1);
|
|
440
440
|
return ret;
|
|
441
441
|
}, arguments); },
|
|
442
|
-
|
|
443
|
-
const ret = arg0.call(arg1);
|
|
442
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
443
|
+
const ret = arg0.call(arg1, arg2);
|
|
444
444
|
return ret;
|
|
445
445
|
}, arguments); },
|
|
446
|
-
|
|
446
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
447
447
|
const ret = arg0.done;
|
|
448
448
|
return ret;
|
|
449
449
|
},
|
|
450
|
-
|
|
450
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
451
451
|
const ret = Object.entries(arg0);
|
|
452
452
|
return ret;
|
|
453
453
|
},
|
|
454
|
-
|
|
454
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
455
455
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
456
456
|
}, arguments); },
|
|
457
|
-
|
|
457
|
+
__wbg_getTime_63fb0332e6c4ec17: function(arg0) {
|
|
458
458
|
const ret = arg0.getTime();
|
|
459
459
|
return ret;
|
|
460
460
|
},
|
|
461
|
-
|
|
461
|
+
__wbg_getTimezoneOffset_4baa793e0d3962a8: function(arg0) {
|
|
462
462
|
const ret = arg0.getTimezoneOffset();
|
|
463
463
|
return ret;
|
|
464
464
|
},
|
|
465
|
-
|
|
465
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
466
466
|
const ret = arg0[arg1 >>> 0];
|
|
467
467
|
return ret;
|
|
468
468
|
},
|
|
469
|
-
|
|
469
|
+
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
470
470
|
const ret = Reflect.get(arg0, arg1);
|
|
471
471
|
return ret;
|
|
472
472
|
}, arguments); },
|
|
473
|
-
|
|
473
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
474
474
|
const ret = arg0[arg1 >>> 0];
|
|
475
475
|
return ret;
|
|
476
476
|
},
|
|
477
|
-
|
|
477
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
478
478
|
let result;
|
|
479
479
|
try {
|
|
480
480
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -484,7 +484,7 @@ function __wbg_get_imports() {
|
|
|
484
484
|
const ret = result;
|
|
485
485
|
return ret;
|
|
486
486
|
},
|
|
487
|
-
|
|
487
|
+
__wbg_instanceof_Map_9a4d6ead180ae3a9: function(arg0) {
|
|
488
488
|
let result;
|
|
489
489
|
try {
|
|
490
490
|
result = arg0 instanceof Map;
|
|
@@ -494,7 +494,7 @@ function __wbg_get_imports() {
|
|
|
494
494
|
const ret = result;
|
|
495
495
|
return ret;
|
|
496
496
|
},
|
|
497
|
-
|
|
497
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
498
498
|
let result;
|
|
499
499
|
try {
|
|
500
500
|
result = arg0 instanceof Uint8Array;
|
|
@@ -504,62 +504,62 @@ function __wbg_get_imports() {
|
|
|
504
504
|
const ret = result;
|
|
505
505
|
return ret;
|
|
506
506
|
},
|
|
507
|
-
|
|
507
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
508
508
|
const ret = Array.isArray(arg0);
|
|
509
509
|
return ret;
|
|
510
510
|
},
|
|
511
|
-
|
|
511
|
+
__wbg_isSafeInteger_f3d6cd19ccfe4512: function(arg0) {
|
|
512
512
|
const ret = Number.isSafeInteger(arg0);
|
|
513
513
|
return ret;
|
|
514
514
|
},
|
|
515
|
-
|
|
515
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
516
516
|
const ret = Symbol.iterator;
|
|
517
517
|
return ret;
|
|
518
518
|
},
|
|
519
|
-
|
|
519
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
520
520
|
const ret = arg0.length;
|
|
521
521
|
return ret;
|
|
522
522
|
},
|
|
523
|
-
|
|
523
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
524
524
|
const ret = arg0.length;
|
|
525
525
|
return ret;
|
|
526
526
|
},
|
|
527
|
-
|
|
527
|
+
__wbg_new_0_f117d868b403dc07: function() {
|
|
528
528
|
const ret = new Date();
|
|
529
529
|
return ret;
|
|
530
530
|
},
|
|
531
|
-
|
|
532
|
-
const ret = new
|
|
531
|
+
__wbg_new_116be93542d39019: function() {
|
|
532
|
+
const ret = new Array();
|
|
533
533
|
return ret;
|
|
534
534
|
},
|
|
535
|
-
|
|
536
|
-
const ret = new
|
|
535
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
536
|
+
const ret = new Uint8Array(arg0);
|
|
537
537
|
return ret;
|
|
538
538
|
},
|
|
539
|
-
|
|
540
|
-
const ret = new
|
|
539
|
+
__wbg_new_cdf041679ded4c5f: function() {
|
|
540
|
+
const ret = new Map();
|
|
541
541
|
return ret;
|
|
542
542
|
},
|
|
543
|
-
|
|
544
|
-
const ret = new
|
|
543
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
544
|
+
const ret = new Object();
|
|
545
545
|
return ret;
|
|
546
546
|
},
|
|
547
|
-
|
|
548
|
-
const ret = new
|
|
547
|
+
__wbg_new_f9d6489212f3b2b3: function(arg0) {
|
|
548
|
+
const ret = new Date(arg0);
|
|
549
549
|
return ret;
|
|
550
550
|
},
|
|
551
|
-
|
|
551
|
+
__wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
|
|
552
552
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
553
553
|
return ret;
|
|
554
554
|
},
|
|
555
|
-
|
|
555
|
+
__wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
|
|
556
556
|
try {
|
|
557
557
|
var state0 = {a: arg0, b: arg1};
|
|
558
558
|
var cb0 = (arg0, arg1) => {
|
|
559
559
|
const a = state0.a;
|
|
560
560
|
state0.a = 0;
|
|
561
561
|
try {
|
|
562
|
-
return
|
|
562
|
+
return wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
563
563
|
} finally {
|
|
564
564
|
state0.a = a;
|
|
565
565
|
}
|
|
@@ -570,77 +570,77 @@ function __wbg_get_imports() {
|
|
|
570
570
|
state0.a = 0;
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
|
-
|
|
573
|
+
__wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
|
|
574
574
|
const ret = arg0.next();
|
|
575
575
|
return ret;
|
|
576
576
|
}, arguments); },
|
|
577
|
-
|
|
577
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
578
578
|
const ret = arg0.next;
|
|
579
579
|
return ret;
|
|
580
580
|
},
|
|
581
|
-
|
|
581
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
582
582
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
583
583
|
},
|
|
584
|
-
|
|
584
|
+
__wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
|
|
585
|
+
queueMicrotask(arg0);
|
|
586
|
+
},
|
|
587
|
+
__wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
|
|
585
588
|
const ret = arg0.queueMicrotask;
|
|
586
589
|
return ret;
|
|
587
590
|
},
|
|
588
|
-
|
|
589
|
-
queueMicrotask(arg0);
|
|
590
|
-
},
|
|
591
|
-
__wbg_resolve_d82363d90af6928a: function(arg0) {
|
|
591
|
+
__wbg_resolve_020f95d838c6ef25: function(arg0) {
|
|
592
592
|
const ret = Promise.resolve(arg0);
|
|
593
593
|
return ret;
|
|
594
594
|
},
|
|
595
|
-
|
|
596
|
-
arg0[arg1] = arg2;
|
|
597
|
-
},
|
|
598
|
-
__wbg_set_9a1d61e17de7054c: function(arg0, arg1, arg2) {
|
|
595
|
+
__wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
|
|
599
596
|
const ret = arg0.set(arg1, arg2);
|
|
600
597
|
return ret;
|
|
601
598
|
},
|
|
602
|
-
|
|
599
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
600
|
+
arg0[arg1] = arg2;
|
|
601
|
+
},
|
|
602
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
603
603
|
arg0[arg1 >>> 0] = arg2;
|
|
604
604
|
},
|
|
605
|
-
|
|
605
|
+
__wbg_size_86ca1114f3d8af74: function(arg0) {
|
|
606
606
|
const ret = arg0.size;
|
|
607
607
|
return ret;
|
|
608
608
|
},
|
|
609
|
-
|
|
609
|
+
__wbg_slice_8b3c1aff3f9a6cc3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
610
610
|
const ret = arg0.slice(arg1, arg2);
|
|
611
611
|
return ret;
|
|
612
612
|
}, arguments); },
|
|
613
|
-
|
|
613
|
+
__wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
|
|
614
614
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
615
615
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
616
616
|
},
|
|
617
|
-
|
|
617
|
+
__wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
|
|
618
618
|
const ret = typeof global === 'undefined' ? null : global;
|
|
619
619
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
620
620
|
},
|
|
621
|
-
|
|
621
|
+
__wbg_static_accessor_SELF_42d4fae05e59267a: function() {
|
|
622
622
|
const ret = typeof self === 'undefined' ? null : self;
|
|
623
623
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
624
624
|
},
|
|
625
|
-
|
|
625
|
+
__wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
|
|
626
626
|
const ret = typeof window === 'undefined' ? null : window;
|
|
627
627
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
628
628
|
},
|
|
629
|
-
|
|
630
|
-
const ret = arg0.then(arg1
|
|
629
|
+
__wbg_then_7026b513a94278a8: function(arg0, arg1) {
|
|
630
|
+
const ret = arg0.then(arg1);
|
|
631
631
|
return ret;
|
|
632
632
|
},
|
|
633
|
-
|
|
634
|
-
const ret = arg0.then(arg1);
|
|
633
|
+
__wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = arg0.then(arg1, arg2);
|
|
635
635
|
return ret;
|
|
636
636
|
},
|
|
637
|
-
|
|
637
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
638
638
|
const ret = arg0.value;
|
|
639
639
|
return ret;
|
|
640
640
|
},
|
|
641
641
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
642
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
643
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
642
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1295, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
643
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_);
|
|
644
644
|
return ret;
|
|
645
645
|
},
|
|
646
646
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -679,15 +679,15 @@ function __wbg_get_imports() {
|
|
|
679
679
|
};
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
function
|
|
683
|
-
const ret = wasm.
|
|
682
|
+
function wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_(arg0, arg1, arg2) {
|
|
683
|
+
const ret = wasm.wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_(arg0, arg1, arg2);
|
|
684
684
|
if (ret[1]) {
|
|
685
685
|
throw takeFromExternrefTable0(ret[0]);
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
-
function
|
|
690
|
-
wasm.
|
|
689
|
+
function wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
690
|
+
wasm.wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
691
691
|
}
|
|
692
692
|
|
|
693
693
|
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -943,11 +943,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
943
943
|
|
|
944
944
|
async function __wbg_load(module, imports) {
|
|
945
945
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
946
|
+
if (!module.ok) {
|
|
947
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
948
|
+
}
|
|
949
|
+
|
|
946
950
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
947
951
|
try {
|
|
948
952
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
949
953
|
} catch (e) {
|
|
950
|
-
const validResponse =
|
|
954
|
+
const validResponse = expectedResponseType(module.type);
|
|
951
955
|
|
|
952
956
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
953
957
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/dcm/dcm_bg.wasm
CHANGED
|
Binary file
|
package/dcm/dcm_bg.wasm.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_deidprofile_free: (a: number, b: number) => void;
|
|
5
|
+
export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
6
|
+
export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
7
|
+
export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
8
|
+
export const get_fw_meta: (a: any, b: any) => [number, number, number];
|
|
9
|
+
export const is_dicom_part10: (a: any) => any;
|
|
10
|
+
export const read_until_pixels: (a: any, b: any, c: number) => any;
|
|
4
11
|
export const __wbg_context_free: (a: number, b: number) => void;
|
|
5
12
|
export const context_default: () => number;
|
|
6
13
|
export const context_deid_header: (a: number, b: number, c: number) => [number, number, number, number];
|
|
@@ -19,18 +26,11 @@ export const context_rename_file: (a: number, b: number, c: number, d: number, e
|
|
|
19
26
|
export const context_split_localizer: (a: number, b: number) => number;
|
|
20
27
|
export const context_stop_at_tags: (a: number, b: any) => [number, number, number];
|
|
21
28
|
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];
|
|
24
29
|
export const __wbg_wasmdcmgroup_free: (a: number, b: number) => void;
|
|
25
|
-
export const create_dcm_as_bytes: (a: any) => [number, number, number, number];
|
|
26
30
|
export const group_series: (a: any, b: any, c: number) => any;
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const deidprofile_deid_dcm: (a: number, b: number, c: number) => [number, number, number, number];
|
|
31
|
-
export const deidprofile_from_yaml: (a: number, b: number) => [number, number, number];
|
|
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;
|
|
31
|
+
export const parse_header: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
32
|
+
export const wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___wasm_bindgen_2a450bc771b58efd___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_2a450bc771b58efd___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
33
|
+
export const wasm_bindgen_2a450bc771b58efd___convert__closures_____invoke___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined___js_sys_3e9a0dee23731d16___Function_fn_wasm_bindgen_2a450bc771b58efd___JsValue_____wasm_bindgen_2a450bc771b58efd___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
34
34
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
35
35
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
36
36
|
export const __wbindgen_exn_store: (a: number) => void;
|