@mecorelabs/free-pdf-sdk 0.2.3 → 0.2.4
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/NOTICE +1 -1
- package/dist/free-pdf-sdk.d.ts +4 -4
- package/dist/free-pdf-sdk.js +1 -1
- package/dist/free-pdf-sdk.js.map +1 -1
- package/package.json +1 -1
- package/third-party/README.md +2 -2
- package/third-party/crates.md +67 -48
- package/third-party/pdfcraft/ATTRIBUTION.md +43 -42
- package/third-party/pdfcraft/NOTICE +18 -0
- package/version.json +2 -2
- package/viewer/{fps-viewer-83b66ff5dc.js → fps-viewer-8f7cd42643.js} +137 -27
- package/viewer/fps-viewer-baaa8b25fa_bg.wasm +4 -0
- package/viewer/index.html +2 -2
- package/viewer/snippets/eframe-d31a8450ea12dfc1/inline0.js +3 -0
- package/viewer/fps-viewer-352ae9464c_bg.wasm +0 -4
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { egui_text_agent_activate } from './snippets/eframe-d31a8450ea12dfc1/inline0.js';
|
|
2
|
+
import * as import1 from "./snippets/eframe-d31a8450ea12dfc1/inline0.js"
|
|
3
|
+
import * as import2 from "./snippets/eframe-d31a8450ea12dfc1/inline0.js"
|
|
4
|
+
|
|
1
5
|
function __wbg_get_imports() {
|
|
2
6
|
const import0 = {
|
|
3
7
|
__proto__: null,
|
|
@@ -80,6 +84,25 @@ function __wbg_get_imports() {
|
|
|
80
84
|
__wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
|
|
81
85
|
arg0.activeTexture(arg1 >>> 0);
|
|
82
86
|
},
|
|
87
|
+
__wbg_actualBoundingBoxAscent_22b578b4a72234d9: function(arg0) {
|
|
88
|
+
const ret = arg0.actualBoundingBoxAscent;
|
|
89
|
+
return ret;
|
|
90
|
+
},
|
|
91
|
+
__wbg_actualBoundingBoxDescent_dfaf3fa19c2134c9: function(arg0) {
|
|
92
|
+
const ret = arg0.actualBoundingBoxDescent;
|
|
93
|
+
return ret;
|
|
94
|
+
},
|
|
95
|
+
__wbg_actualBoundingBoxLeft_ae854aa150ab3337: function(arg0) {
|
|
96
|
+
const ret = arg0.actualBoundingBoxLeft;
|
|
97
|
+
return ret;
|
|
98
|
+
},
|
|
99
|
+
__wbg_actualBoundingBoxRight_24f83b7f4b2e642b: function(arg0) {
|
|
100
|
+
const ret = arg0.actualBoundingBoxRight;
|
|
101
|
+
return ret;
|
|
102
|
+
},
|
|
103
|
+
__wbg_addEventListener_2fca777dff9cfa1d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
104
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
105
|
+
}, arguments); },
|
|
83
106
|
__wbg_addEventListener_4d0db17c671ea324: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
84
107
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
85
108
|
}, arguments); },
|
|
@@ -278,6 +301,9 @@ function __wbg_get_imports() {
|
|
|
278
301
|
__wbg_clearInterval_f1a050672da2658c: function(arg0, arg1) {
|
|
279
302
|
arg0.clearInterval(arg1);
|
|
280
303
|
},
|
|
304
|
+
__wbg_clearRect_a5e36505218c247a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
305
|
+
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
306
|
+
},
|
|
281
307
|
__wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
|
|
282
308
|
arg0.clearStencil(arg1);
|
|
283
309
|
},
|
|
@@ -529,6 +555,13 @@ function __wbg_get_imports() {
|
|
|
529
555
|
const ret = arg0.data;
|
|
530
556
|
return ret;
|
|
531
557
|
},
|
|
558
|
+
__wbg_data_9ce11d34b90054d4: function(arg0, arg1) {
|
|
559
|
+
const ret = arg1.data;
|
|
560
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
561
|
+
const len1 = WASM_VECTOR_LEN;
|
|
562
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
563
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
564
|
+
},
|
|
532
565
|
__wbg_decode_215270d4d12cb9fe: function(arg0) {
|
|
533
566
|
const ret = arg0.decode();
|
|
534
567
|
return ret;
|
|
@@ -704,6 +737,9 @@ function __wbg_get_imports() {
|
|
|
704
737
|
__wbg_draw_086a9578fc9898c2: function(arg0, arg1, arg2, arg3, arg4) {
|
|
705
738
|
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
706
739
|
},
|
|
740
|
+
__wbg_egui_text_agent_activate_a4f8074dcccc2f03: function(arg0, arg1) {
|
|
741
|
+
egui_text_agent_activate(arg0, arg1 !== 0);
|
|
742
|
+
},
|
|
707
743
|
__wbg_elementFromPoint_8f6f88cd3ac4b9e8: function(arg0, arg1, arg2) {
|
|
708
744
|
const ret = arg0.elementFromPoint(arg1, arg2);
|
|
709
745
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -730,7 +766,7 @@ function __wbg_get_imports() {
|
|
|
730
766
|
__wbg_end_b57473834b877409: function(arg0) {
|
|
731
767
|
arg0.end();
|
|
732
768
|
},
|
|
733
|
-
|
|
769
|
+
__wbg_error_8f639d3fdf91a023: function(arg0, arg1) {
|
|
734
770
|
let deferred0_0;
|
|
735
771
|
let deferred0_1;
|
|
736
772
|
try {
|
|
@@ -759,6 +795,9 @@ function __wbg_get_imports() {
|
|
|
759
795
|
const ret = arg0.files;
|
|
760
796
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
761
797
|
},
|
|
798
|
+
__wbg_fillText_1bcec8b81ad73bd0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
799
|
+
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
800
|
+
}, arguments); },
|
|
762
801
|
__wbg_finish_09ec094c10f41e7b: function(arg0) {
|
|
763
802
|
const ret = arg0.finish();
|
|
764
803
|
return ret;
|
|
@@ -886,6 +925,10 @@ function __wbg_get_imports() {
|
|
|
886
925
|
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
887
926
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
888
927
|
}, arguments); },
|
|
928
|
+
__wbg_getImageData_a8175cf7f34afc20: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
929
|
+
const ret = arg0.getImageData(arg1, arg2, arg3, arg4);
|
|
930
|
+
return ret;
|
|
931
|
+
}, arguments); },
|
|
889
932
|
__wbg_getIndexedParameter_0f49864473e337fa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
890
933
|
const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
|
|
891
934
|
return ret;
|
|
@@ -901,6 +944,10 @@ function __wbg_get_imports() {
|
|
|
901
944
|
const ret = arg0.getMappedRange(arg1, arg2);
|
|
902
945
|
return ret;
|
|
903
946
|
}, arguments); },
|
|
947
|
+
__wbg_getModifierState_506d6a27dcf99b93: function(arg0, arg1, arg2) {
|
|
948
|
+
const ret = arg0.getModifierState(getStringFromWasm0(arg1, arg2));
|
|
949
|
+
return ret;
|
|
950
|
+
},
|
|
904
951
|
__wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
|
|
905
952
|
const ret = arg0.getParameter(arg1 >>> 0);
|
|
906
953
|
return ret;
|
|
@@ -1065,6 +1112,10 @@ function __wbg_get_imports() {
|
|
|
1065
1112
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1066
1113
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1067
1114
|
}, arguments); },
|
|
1115
|
+
__wbg_host_c1e5897b2ece281c: function(arg0) {
|
|
1116
|
+
const ret = arg0.host;
|
|
1117
|
+
return ret;
|
|
1118
|
+
},
|
|
1068
1119
|
__wbg_hostname_b9a71dd3c2da0eef: function() { return handleError(function (arg0, arg1) {
|
|
1069
1120
|
const ret = arg1.hostname;
|
|
1070
1121
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1127,6 +1178,16 @@ function __wbg_get_imports() {
|
|
|
1127
1178
|
const ret = result;
|
|
1128
1179
|
return ret;
|
|
1129
1180
|
},
|
|
1181
|
+
__wbg_instanceof_CanvasRenderingContext2d_769208c72dcbf5e6: function(arg0) {
|
|
1182
|
+
let result;
|
|
1183
|
+
try {
|
|
1184
|
+
result = arg0 instanceof CanvasRenderingContext2D;
|
|
1185
|
+
} catch (_) {
|
|
1186
|
+
result = false;
|
|
1187
|
+
}
|
|
1188
|
+
const ret = result;
|
|
1189
|
+
return ret;
|
|
1190
|
+
},
|
|
1130
1191
|
__wbg_instanceof_Document_b2a06e9deaeb61d1: function(arg0) {
|
|
1131
1192
|
let result;
|
|
1132
1193
|
try {
|
|
@@ -1217,6 +1278,16 @@ function __wbg_get_imports() {
|
|
|
1217
1278
|
const ret = result;
|
|
1218
1279
|
return ret;
|
|
1219
1280
|
},
|
|
1281
|
+
__wbg_instanceof_Promise_e1dc6893aa1ece28: function(arg0) {
|
|
1282
|
+
let result;
|
|
1283
|
+
try {
|
|
1284
|
+
result = arg0 instanceof Promise;
|
|
1285
|
+
} catch (_) {
|
|
1286
|
+
result = false;
|
|
1287
|
+
}
|
|
1288
|
+
const ret = result;
|
|
1289
|
+
return ret;
|
|
1290
|
+
},
|
|
1220
1291
|
__wbg_instanceof_ResizeObserverEntry_159abe6614a8e952: function(arg0) {
|
|
1221
1292
|
let result;
|
|
1222
1293
|
try {
|
|
@@ -1533,6 +1604,10 @@ function __wbg_get_imports() {
|
|
|
1533
1604
|
const ret = arg0.maxVertexBuffers;
|
|
1534
1605
|
return ret;
|
|
1535
1606
|
},
|
|
1607
|
+
__wbg_measureText_1035b288be51876c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1608
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
1609
|
+
return ret;
|
|
1610
|
+
}, arguments); },
|
|
1536
1611
|
__wbg_metaKey_9c3be2ab835b0148: function(arg0) {
|
|
1537
1612
|
const ret = arg0.metaKey;
|
|
1538
1613
|
return ret;
|
|
@@ -1602,10 +1677,6 @@ function __wbg_get_imports() {
|
|
|
1602
1677
|
const ret = new Object();
|
|
1603
1678
|
return ret;
|
|
1604
1679
|
},
|
|
1605
|
-
__wbg_new_9090cad7737fef55: function() {
|
|
1606
|
-
const ret = new Error();
|
|
1607
|
-
return ret;
|
|
1608
|
-
},
|
|
1609
1680
|
__wbg_new_a217df4351db4b9b: function() { return handleError(function (arg0, arg1) {
|
|
1610
1681
|
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
1611
1682
|
return ret;
|
|
@@ -1614,6 +1685,10 @@ function __wbg_get_imports() {
|
|
|
1614
1685
|
const ret = new FileReader();
|
|
1615
1686
|
return ret;
|
|
1616
1687
|
}, arguments); },
|
|
1688
|
+
__wbg_new_b5f7d6e100c3090b: function() {
|
|
1689
|
+
const ret = new Error();
|
|
1690
|
+
return ret;
|
|
1691
|
+
},
|
|
1617
1692
|
__wbg_new_ee2291f50781bf1d: function() {
|
|
1618
1693
|
const ret = new Array();
|
|
1619
1694
|
return ret;
|
|
@@ -1793,10 +1868,16 @@ function __wbg_get_imports() {
|
|
|
1793
1868
|
__wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1794
1869
|
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1795
1870
|
}, arguments); },
|
|
1871
|
+
__wbg_removeAttribute_2f2700a6f933a6be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1872
|
+
arg0.removeAttribute(getStringFromWasm0(arg1, arg2));
|
|
1873
|
+
}, arguments); },
|
|
1796
1874
|
__wbg_removeChild_3745fc2545da50fa: function() { return handleError(function (arg0, arg1) {
|
|
1797
1875
|
const ret = arg0.removeChild(arg1);
|
|
1798
1876
|
return ret;
|
|
1799
1877
|
}, arguments); },
|
|
1878
|
+
__wbg_removeEventListener_261678bfcbd90907: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1879
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4 !== 0);
|
|
1880
|
+
}, arguments); },
|
|
1800
1881
|
__wbg_removeEventListener_6e68185345978771: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1801
1882
|
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1802
1883
|
}, arguments); },
|
|
@@ -2109,6 +2190,12 @@ function __wbg_get_imports() {
|
|
|
2109
2190
|
__wbg_set_fail_op_d59d0187e4111dfe: function(arg0, arg1) {
|
|
2110
2191
|
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
2111
2192
|
},
|
|
2193
|
+
__wbg_set_fillStyle_a2961b4d44e572af: function(arg0, arg1, arg2) {
|
|
2194
|
+
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
2195
|
+
},
|
|
2196
|
+
__wbg_set_font_1f60a05a2544a2ff: function(arg0, arg1, arg2) {
|
|
2197
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
2198
|
+
},
|
|
2112
2199
|
__wbg_set_format_23f7f32549751d43: function(arg0, arg1) {
|
|
2113
2200
|
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2114
2201
|
},
|
|
@@ -2406,6 +2493,9 @@ function __wbg_get_imports() {
|
|
|
2406
2493
|
__wbg_set_targets_674b33931e512fb1: function(arg0, arg1, arg2) {
|
|
2407
2494
|
arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
|
|
2408
2495
|
},
|
|
2496
|
+
__wbg_set_textBaseline_d5ba548751584f49: function(arg0, arg1, arg2) {
|
|
2497
|
+
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
2498
|
+
},
|
|
2409
2499
|
__wbg_set_texture_95f2bfdf7767e76f: function(arg0, arg1) {
|
|
2410
2500
|
arg0.texture = arg1;
|
|
2411
2501
|
},
|
|
@@ -2522,7 +2612,7 @@ function __wbg_get_imports() {
|
|
|
2522
2612
|
const ret = arg0.source;
|
|
2523
2613
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2524
2614
|
},
|
|
2525
|
-
|
|
2615
|
+
__wbg_stack_3a6edbcc371f3e13: function(arg0, arg1) {
|
|
2526
2616
|
const ret = arg1.stack;
|
|
2527
2617
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2528
2618
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -2591,6 +2681,13 @@ function __wbg_get_imports() {
|
|
|
2591
2681
|
__wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
|
|
2592
2682
|
arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
|
|
2593
2683
|
},
|
|
2684
|
+
__wbg_tagName_e83500df63beeee1: function(arg0, arg1) {
|
|
2685
|
+
const ret = arg1.tagName;
|
|
2686
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2687
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2688
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2689
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2690
|
+
},
|
|
2594
2691
|
__wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
2595
2692
|
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
2596
2693
|
}, arguments); },
|
|
@@ -2863,6 +2960,10 @@ function __wbg_get_imports() {
|
|
|
2863
2960
|
const ret = arg0.width;
|
|
2864
2961
|
return ret;
|
|
2865
2962
|
},
|
|
2963
|
+
__wbg_width_e95ad291d52fe17e: function(arg0) {
|
|
2964
|
+
const ret = arg0.width;
|
|
2965
|
+
return ret;
|
|
2966
|
+
},
|
|
2866
2967
|
__wbg_writeBuffer_f4bb3f54adfe1330: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2867
2968
|
arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
|
|
2868
2969
|
}, arguments); },
|
|
@@ -2878,47 +2979,47 @@ function __wbg_get_imports() {
|
|
|
2878
2979
|
return ret;
|
|
2879
2980
|
},
|
|
2880
2981
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
2881
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2982
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2870, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2882
2983
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true_);
|
|
2883
2984
|
return ret;
|
|
2884
2985
|
},
|
|
2885
2986
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
2886
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
2987
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 1797, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2887
2988
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___js_sys_daeade0e1fda6981___Array______true_);
|
|
2888
2989
|
return ret;
|
|
2889
2990
|
},
|
|
2890
2991
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
2891
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
2992
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1797, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2892
2993
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___js_sys_daeade0e1fda6981___Array______true__3);
|
|
2893
2994
|
return ret;
|
|
2894
2995
|
},
|
|
2895
2996
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
2896
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
2897
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2997
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 8764, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2998
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true_);
|
|
2898
2999
|
return ret;
|
|
2899
3000
|
},
|
|
2900
3001
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
2901
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2902
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3002
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2428, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3003
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___web_sys_55e12e3f9cae0830___features__gen_MessageEvent__MessageEvent______true_);
|
|
2903
3004
|
return ret;
|
|
2904
3005
|
},
|
|
2905
3006
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
2906
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
2907
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3007
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 8764, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3008
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__6);
|
|
2908
3009
|
return ret;
|
|
2909
3010
|
},
|
|
2910
3011
|
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
2911
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
2912
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3012
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 8764, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3013
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__7);
|
|
2913
3014
|
return ret;
|
|
2914
3015
|
},
|
|
2915
3016
|
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
2916
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3017
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1800, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2917
3018
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsValue___true_);
|
|
2918
3019
|
return ret;
|
|
2919
3020
|
},
|
|
2920
3021
|
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
2921
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3022
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5504, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2922
3023
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke_______true_);
|
|
2923
3024
|
return ret;
|
|
2924
3025
|
},
|
|
@@ -2980,6 +3081,8 @@ function __wbg_get_imports() {
|
|
|
2980
3081
|
return {
|
|
2981
3082
|
__proto__: null,
|
|
2982
3083
|
"./fps-viewer_bg.js": import0,
|
|
3084
|
+
"./snippets/eframe-d31a8450ea12dfc1/inline0.js": import1,
|
|
3085
|
+
"./snippets/eframe-d31a8450ea12dfc1/inline0.js": import2,
|
|
2983
3086
|
};
|
|
2984
3087
|
}
|
|
2985
3088
|
|
|
@@ -3002,8 +3105,8 @@ function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___js_sys_d
|
|
|
3002
3105
|
wasm.wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___js_sys_daeade0e1fda6981___Array______true__3(arg0, arg1, arg2);
|
|
3003
3106
|
}
|
|
3004
3107
|
|
|
3005
|
-
function
|
|
3006
|
-
wasm.
|
|
3108
|
+
function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___web_sys_55e12e3f9cae0830___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2) {
|
|
3109
|
+
wasm.wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___web_sys_55e12e3f9cae0830___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2);
|
|
3007
3110
|
}
|
|
3008
3111
|
|
|
3009
3112
|
function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -3013,22 +3116,22 @@ function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bin
|
|
|
3013
3116
|
}
|
|
3014
3117
|
}
|
|
3015
3118
|
|
|
3016
|
-
function
|
|
3017
|
-
const ret = wasm.
|
|
3119
|
+
function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true_(arg0, arg1, arg2) {
|
|
3120
|
+
const ret = wasm.wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true_(arg0, arg1, arg2);
|
|
3018
3121
|
if (ret[1]) {
|
|
3019
3122
|
throw takeFromExternrefTable0(ret[0]);
|
|
3020
3123
|
}
|
|
3021
3124
|
}
|
|
3022
3125
|
|
|
3023
|
-
function
|
|
3024
|
-
const ret = wasm.
|
|
3126
|
+
function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__6(arg0, arg1, arg2) {
|
|
3127
|
+
const ret = wasm.wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__6(arg0, arg1, arg2);
|
|
3025
3128
|
if (ret[1]) {
|
|
3026
3129
|
throw takeFromExternrefTable0(ret[0]);
|
|
3027
3130
|
}
|
|
3028
3131
|
}
|
|
3029
3132
|
|
|
3030
|
-
function
|
|
3031
|
-
const ret = wasm.
|
|
3133
|
+
function wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__7(arg0, arg1, arg2) {
|
|
3134
|
+
const ret = wasm.wasm_bindgen_e7a4a32c2194c314___convert__closures_____invoke___wasm_bindgen_e7a4a32c2194c314___sys__JsNullable_wgpu_debefaabcf97607f___backend__webgpu__webgpu_sys__gen_GpuAdapter__GpuAdapter___core_608f92abc48d28da___result__Result_____wasm_bindgen_e7a4a32c2194c314___JsError___true__7(arg0, arg1, arg2);
|
|
3032
3135
|
if (ret[1]) {
|
|
3033
3136
|
throw takeFromExternrefTable0(ret[0]);
|
|
3034
3137
|
}
|
|
@@ -3351,6 +3454,13 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
3351
3454
|
return real;
|
|
3352
3455
|
}
|
|
3353
3456
|
|
|
3457
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
3458
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
3459
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
3460
|
+
WASM_VECTOR_LEN = arg.length;
|
|
3461
|
+
return ptr;
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3354
3464
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
3355
3465
|
if (realloc === undefined) {
|
|
3356
3466
|
const buf = cachedTextEncoder.encode(arg);
|
package/viewer/index.html
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<canvas id="fps-canvas"></canvas>
|
|
17
17
|
<script type="module">
|
|
18
18
|
// Generated by scripts/build.ps1: the hashed wasm-bindgen glue and module.
|
|
19
|
-
import init from "./fps-viewer-
|
|
20
|
-
init({ module_or_path: new URL("./fps-viewer-
|
|
19
|
+
import init from "./fps-viewer-8f7cd42643.js";
|
|
20
|
+
init({ module_or_path: new URL("./fps-viewer-baaa8b25fa_bg.wasm", import.meta.url) }).catch((e) => console.error("Free PDF SDK: the viewer could not start", e));
|
|
21
21
|
</script>
|
|
22
22
|
</body>
|
|
23
23
|
</html>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function egui_text_agent_session() { return { active: false }; }
|
|
2
|
+
export function egui_text_agent_activate(session, active) { session.active = active; }
|
|
3
|
+
export function egui_text_agent_listener(session, callback) { return event => { if (session.active) callback(event); }; }
|