@docmentis/udoc-viewer 0.6.5 → 0.6.7
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/dist/package.json +1 -1
- package/dist/src/UDocClient.d.ts +6 -0
- package/dist/src/UDocClient.d.ts.map +1 -1
- package/dist/src/UDocClient.js +2 -2
- package/dist/src/UDocClient.js.map +1 -1
- package/dist/src/UDocViewer.d.ts.map +1 -1
- package/dist/src/UDocViewer.js +10 -7
- package/dist/src/UDocViewer.js.map +1 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.d.ts +1 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.d.ts.map +1 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.js +13 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.js.map +1 -1
- package/dist/src/ui/viewer/components/Spread.d.ts +1 -1
- package/dist/src/ui/viewer/components/Spread.d.ts.map +1 -1
- package/dist/src/ui/viewer/components/Spread.js +102 -27
- package/dist/src/ui/viewer/components/Spread.js.map +1 -1
- package/dist/src/ui/viewer/components/Viewport.js +2 -2
- package/dist/src/ui/viewer/components/Viewport.js.map +1 -1
- package/dist/src/ui/viewer/shell.js +1 -1
- package/dist/src/ui/viewer/shell.js.map +1 -1
- package/dist/src/ui/viewer/styles-inline.d.ts +1 -1
- package/dist/src/ui/viewer/styles-inline.d.ts.map +1 -1
- package/dist/src/ui/viewer/styles-inline.js +59 -0
- package/dist/src/ui/viewer/styles-inline.js.map +1 -1
- package/dist/src/wasm/LICENSE +9 -1
- package/dist/src/wasm/udoc.d.ts +42 -0
- package/dist/src/wasm/udoc.js +634 -0
- package/dist/src/wasm/udoc_bg.wasm +0 -0
- package/dist/src/wasm/udoc_bg.wasm.d.ts +7 -0
- package/dist/src/worker/WorkerClient.d.ts +9 -2
- package/dist/src/worker/WorkerClient.d.ts.map +1 -1
- package/dist/src/worker/WorkerClient.js +63 -11
- package/dist/src/worker/WorkerClient.js.map +1 -1
- package/dist/src/worker/worker-inline.js +1 -1
- package/dist/src/worker/worker.d.ts +1 -0
- package/dist/src/worker/worker.d.ts.map +1 -1
- package/dist/src/worker/worker.js +679 -3
- package/dist/src/worker/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
heap[idx] = obj;
|
|
10
10
|
return idx;
|
|
11
11
|
}
|
|
12
|
+
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
13
|
+
}, unregister: () => {
|
|
14
|
+
} } : new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
12
15
|
function debugString(val) {
|
|
13
16
|
const type = typeof val;
|
|
14
17
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -79,6 +82,10 @@ ${val.stack}`;
|
|
|
79
82
|
}
|
|
80
83
|
return result;
|
|
81
84
|
}
|
|
85
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
86
|
+
ptr = ptr >>> 0;
|
|
87
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
88
|
+
}
|
|
82
89
|
function getArrayU8FromWasm0(ptr, len) {
|
|
83
90
|
ptr = ptr >>> 0;
|
|
84
91
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -94,6 +101,13 @@ ${val.stack}`;
|
|
|
94
101
|
ptr = ptr >>> 0;
|
|
95
102
|
return decodeText(ptr, len);
|
|
96
103
|
}
|
|
104
|
+
var cachedUint32ArrayMemory0 = null;
|
|
105
|
+
function getUint32ArrayMemory0() {
|
|
106
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
107
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
108
|
+
}
|
|
109
|
+
return cachedUint32ArrayMemory0;
|
|
110
|
+
}
|
|
97
111
|
var cachedUint8ArrayMemory0 = null;
|
|
98
112
|
function getUint8ArrayMemory0() {
|
|
99
113
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -117,6 +131,29 @@ ${val.stack}`;
|
|
|
117
131
|
function isLikeNone(x) {
|
|
118
132
|
return x === void 0 || x === null;
|
|
119
133
|
}
|
|
134
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
135
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
136
|
+
const real = (...args) => {
|
|
137
|
+
state.cnt++;
|
|
138
|
+
const a = state.a;
|
|
139
|
+
state.a = 0;
|
|
140
|
+
try {
|
|
141
|
+
return f(a, state.b, ...args);
|
|
142
|
+
} finally {
|
|
143
|
+
state.a = a;
|
|
144
|
+
real._wbg_cb_unref();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
real._wbg_cb_unref = () => {
|
|
148
|
+
if (--state.cnt === 0) {
|
|
149
|
+
state.dtor(state.a, state.b);
|
|
150
|
+
state.a = 0;
|
|
151
|
+
CLOSURE_DTORS.unregister(state);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
155
|
+
return real;
|
|
156
|
+
}
|
|
120
157
|
function passArray8ToWasm0(arg, malloc) {
|
|
121
158
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
122
159
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -183,6 +220,21 @@ ${val.stack}`;
|
|
|
183
220
|
};
|
|
184
221
|
}
|
|
185
222
|
var WASM_VECTOR_LEN = 0;
|
|
223
|
+
function __wasm_bindgen_func_elem_2525(arg0, arg1, arg2) {
|
|
224
|
+
wasm.__wasm_bindgen_func_elem_2525(arg0, arg1, addHeapObject(arg2));
|
|
225
|
+
}
|
|
226
|
+
function __wasm_bindgen_func_elem_16253(arg0, arg1, arg2, arg3) {
|
|
227
|
+
wasm.__wasm_bindgen_func_elem_16253(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
228
|
+
}
|
|
229
|
+
var __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
230
|
+
var __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
231
|
+
var __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
232
|
+
var __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
233
|
+
var __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
234
|
+
var __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
235
|
+
var __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
|
|
236
|
+
var __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
237
|
+
var __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
186
238
|
var __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
|
|
187
239
|
var UDocFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
188
240
|
}, unregister: () => {
|
|
@@ -736,6 +788,28 @@ ${val.stack}`;
|
|
|
736
788
|
const ret = wasm.udoc_remove_document(this.__wbg_ptr, ptr0, len0);
|
|
737
789
|
return ret !== 0;
|
|
738
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Render a page using the GPU backend (Vello + WebGPU).
|
|
793
|
+
*
|
|
794
|
+
* Returns raw RGBA pixel data in premultiplied alpha format,
|
|
795
|
+
* identical to `render_page_to_rgba` but GPU-accelerated.
|
|
796
|
+
*
|
|
797
|
+
* # Errors
|
|
798
|
+
* Returns an error if the GPU backend is not initialized
|
|
799
|
+
* (call `init_gpu()` first), if the document is not found,
|
|
800
|
+
* or if rendering fails.
|
|
801
|
+
* @param {string} id
|
|
802
|
+
* @param {number} page_index
|
|
803
|
+
* @param {number} width
|
|
804
|
+
* @param {number} height
|
|
805
|
+
* @returns {Promise<Uint8Array>}
|
|
806
|
+
*/
|
|
807
|
+
render_page_gpu(id, page_index, width, height) {
|
|
808
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
809
|
+
const len0 = WASM_VECTOR_LEN;
|
|
810
|
+
const ret = wasm.udoc_render_page_gpu(this.__wbg_ptr, ptr0, len0, page_index, width, height);
|
|
811
|
+
return takeObject(ret);
|
|
812
|
+
}
|
|
739
813
|
/**
|
|
740
814
|
* Extract all embedded fonts from a PDF document.
|
|
741
815
|
*
|
|
@@ -1256,6 +1330,27 @@ ${val.stack}`;
|
|
|
1256
1330
|
const len2 = WASM_VECTOR_LEN;
|
|
1257
1331
|
wasm.udoc_setup(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1258
1332
|
}
|
|
1333
|
+
/**
|
|
1334
|
+
* Check whether the GPU render backend is available.
|
|
1335
|
+
* @returns {boolean}
|
|
1336
|
+
*/
|
|
1337
|
+
has_gpu() {
|
|
1338
|
+
const ret = wasm.udoc_has_gpu(this.__wbg_ptr);
|
|
1339
|
+
return ret !== 0;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Initialize the GPU render backend (Vello + WebGPU).
|
|
1343
|
+
*
|
|
1344
|
+
* This is async because wgpu device initialization requires yielding
|
|
1345
|
+
* to the browser event loop. Call this once after construction.
|
|
1346
|
+
* Returns `true` if GPU initialization succeeded, `false` if no
|
|
1347
|
+
* WebGPU adapter is available (the CPU backend remains usable).
|
|
1348
|
+
* @returns {Promise<boolean>}
|
|
1349
|
+
*/
|
|
1350
|
+
init_gpu() {
|
|
1351
|
+
const ret = wasm.udoc_init_gpu(this.__wbg_ptr);
|
|
1352
|
+
return takeObject(ret);
|
|
1353
|
+
}
|
|
1259
1354
|
/**
|
|
1260
1355
|
* Load a PDF document and return its ID.
|
|
1261
1356
|
*
|
|
@@ -1412,6 +1507,44 @@ ${val.stack}`;
|
|
|
1412
1507
|
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1413
1508
|
}
|
|
1414
1509
|
}
|
|
1510
|
+
/**
|
|
1511
|
+
* Load an XLSX document and return its ID.
|
|
1512
|
+
*
|
|
1513
|
+
* # Arguments
|
|
1514
|
+
* * `bytes` - Raw XLSX file data
|
|
1515
|
+
*
|
|
1516
|
+
* # Returns
|
|
1517
|
+
* A unique document ID that can be used to reference this document.
|
|
1518
|
+
* @param {Uint8Array} bytes
|
|
1519
|
+
* @returns {string}
|
|
1520
|
+
*/
|
|
1521
|
+
load_xlsx(bytes) {
|
|
1522
|
+
let deferred3_0;
|
|
1523
|
+
let deferred3_1;
|
|
1524
|
+
try {
|
|
1525
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1526
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
1527
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1528
|
+
wasm.udoc_load_xlsx(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1529
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1530
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1531
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1532
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1533
|
+
var ptr2 = r0;
|
|
1534
|
+
var len2 = r1;
|
|
1535
|
+
if (r3) {
|
|
1536
|
+
ptr2 = 0;
|
|
1537
|
+
len2 = 0;
|
|
1538
|
+
throw takeObject(r2);
|
|
1539
|
+
}
|
|
1540
|
+
deferred3_0 = ptr2;
|
|
1541
|
+
deferred3_1 = len2;
|
|
1542
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1543
|
+
} finally {
|
|
1544
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1545
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1415
1548
|
/**
|
|
1416
1549
|
* Get info for a specific page.
|
|
1417
1550
|
* @param {string} id
|
|
@@ -1481,6 +1614,14 @@ ${val.stack}`;
|
|
|
1481
1614
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1482
1615
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1483
1616
|
};
|
|
1617
|
+
imports.wbg.__wbg_Window_a4c5a48392f234ba = function(arg0) {
|
|
1618
|
+
const ret = getObject(arg0).Window;
|
|
1619
|
+
return addHeapObject(ret);
|
|
1620
|
+
};
|
|
1621
|
+
imports.wbg.__wbg_WorkerGlobalScope_2b2b89e1ac952b50 = function(arg0) {
|
|
1622
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
1623
|
+
return addHeapObject(ret);
|
|
1624
|
+
};
|
|
1484
1625
|
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
1485
1626
|
const v = getObject(arg1);
|
|
1486
1627
|
const ret = typeof v === "bigint" ? v : void 0;
|
|
@@ -1511,6 +1652,10 @@ ${val.stack}`;
|
|
|
1511
1652
|
const ret = typeof getObject(arg0) === "function";
|
|
1512
1653
|
return ret;
|
|
1513
1654
|
};
|
|
1655
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
1656
|
+
const ret = getObject(arg0) === null;
|
|
1657
|
+
return ret;
|
|
1658
|
+
};
|
|
1514
1659
|
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
1515
1660
|
const val = getObject(arg0);
|
|
1516
1661
|
const ret = typeof val === "object" && val !== null;
|
|
@@ -1549,6 +1694,17 @@ ${val.stack}`;
|
|
|
1549
1694
|
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
1550
1695
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1551
1696
|
};
|
|
1697
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1698
|
+
getObject(arg0)._wbg_cb_unref();
|
|
1699
|
+
};
|
|
1700
|
+
imports.wbg.__wbg_beginComputePass_304dccb30a4db2cc = function(arg0, arg1) {
|
|
1701
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
1702
|
+
return addHeapObject(ret);
|
|
1703
|
+
};
|
|
1704
|
+
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
|
|
1705
|
+
const ret = getObject(arg0).buffer;
|
|
1706
|
+
return addHeapObject(ret);
|
|
1707
|
+
};
|
|
1552
1708
|
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() {
|
|
1553
1709
|
return handleError(function(arg0, arg1, arg2) {
|
|
1554
1710
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
@@ -1561,6 +1717,82 @@ ${val.stack}`;
|
|
|
1561
1717
|
return addHeapObject(ret);
|
|
1562
1718
|
}, arguments);
|
|
1563
1719
|
};
|
|
1720
|
+
imports.wbg.__wbg_call_c8baa5c5e72d274e = function() {
|
|
1721
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
1722
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1723
|
+
return addHeapObject(ret);
|
|
1724
|
+
}, arguments);
|
|
1725
|
+
};
|
|
1726
|
+
imports.wbg.__wbg_clearBuffer_b7d0381b50c8f5bb = function(arg0, arg1, arg2, arg3) {
|
|
1727
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2, arg3);
|
|
1728
|
+
};
|
|
1729
|
+
imports.wbg.__wbg_clearBuffer_e3fa352fcc8ecc67 = function(arg0, arg1, arg2) {
|
|
1730
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2);
|
|
1731
|
+
};
|
|
1732
|
+
imports.wbg.__wbg_copyBufferToBuffer_38cb6919320bd451 = function() {
|
|
1733
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1734
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1735
|
+
}, arguments);
|
|
1736
|
+
};
|
|
1737
|
+
imports.wbg.__wbg_copyBufferToBuffer_8db6b1d1ef2bcea4 = function() {
|
|
1738
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
|
1739
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4);
|
|
1740
|
+
}, arguments);
|
|
1741
|
+
};
|
|
1742
|
+
imports.wbg.__wbg_copyTextureToBuffer_21b9dc9b4d87baf0 = function() {
|
|
1743
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
1744
|
+
getObject(arg0).copyTextureToBuffer(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1745
|
+
}, arguments);
|
|
1746
|
+
};
|
|
1747
|
+
imports.wbg.__wbg_copyTextureToTexture_0eb51a215ab2cc31 = function() {
|
|
1748
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
1749
|
+
getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1750
|
+
}, arguments);
|
|
1751
|
+
};
|
|
1752
|
+
imports.wbg.__wbg_createBindGroupLayout_3fb59c14aed4b64e = function() {
|
|
1753
|
+
return handleError(function(arg0, arg1) {
|
|
1754
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
1755
|
+
return addHeapObject(ret);
|
|
1756
|
+
}, arguments);
|
|
1757
|
+
};
|
|
1758
|
+
imports.wbg.__wbg_createBindGroup_03f26b8770895116 = function(arg0, arg1) {
|
|
1759
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
1760
|
+
return addHeapObject(ret);
|
|
1761
|
+
};
|
|
1762
|
+
imports.wbg.__wbg_createBuffer_76f7598789ecc3d7 = function() {
|
|
1763
|
+
return handleError(function(arg0, arg1) {
|
|
1764
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
1765
|
+
return addHeapObject(ret);
|
|
1766
|
+
}, arguments);
|
|
1767
|
+
};
|
|
1768
|
+
imports.wbg.__wbg_createCommandEncoder_f8056019328bd192 = function(arg0, arg1) {
|
|
1769
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
1770
|
+
return addHeapObject(ret);
|
|
1771
|
+
};
|
|
1772
|
+
imports.wbg.__wbg_createComputePipeline_e6192c920efba35b = function(arg0, arg1) {
|
|
1773
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
1774
|
+
return addHeapObject(ret);
|
|
1775
|
+
};
|
|
1776
|
+
imports.wbg.__wbg_createPipelineLayout_5039b0679b6b7f36 = function(arg0, arg1) {
|
|
1777
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
1778
|
+
return addHeapObject(ret);
|
|
1779
|
+
};
|
|
1780
|
+
imports.wbg.__wbg_createShaderModule_3facfe98356b79a9 = function(arg0, arg1) {
|
|
1781
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
1782
|
+
return addHeapObject(ret);
|
|
1783
|
+
};
|
|
1784
|
+
imports.wbg.__wbg_createTexture_49002c91188f6137 = function() {
|
|
1785
|
+
return handleError(function(arg0, arg1) {
|
|
1786
|
+
const ret = getObject(arg0).createTexture(getObject(arg1));
|
|
1787
|
+
return addHeapObject(ret);
|
|
1788
|
+
}, arguments);
|
|
1789
|
+
};
|
|
1790
|
+
imports.wbg.__wbg_createView_0ce5c82d78f482df = function() {
|
|
1791
|
+
return handleError(function(arg0, arg1) {
|
|
1792
|
+
const ret = getObject(arg0).createView(getObject(arg1));
|
|
1793
|
+
return addHeapObject(ret);
|
|
1794
|
+
}, arguments);
|
|
1795
|
+
};
|
|
1564
1796
|
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1565
1797
|
const ret = getObject(arg0).crypto;
|
|
1566
1798
|
return addHeapObject(ret);
|
|
@@ -1568,10 +1800,19 @@ ${val.stack}`;
|
|
|
1568
1800
|
imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function(arg0) {
|
|
1569
1801
|
console.debug(getObject(arg0));
|
|
1570
1802
|
};
|
|
1803
|
+
imports.wbg.__wbg_dispatchWorkgroupsIndirect_6594fbc416b287d6 = function(arg0, arg1, arg2) {
|
|
1804
|
+
getObject(arg0).dispatchWorkgroupsIndirect(getObject(arg1), arg2);
|
|
1805
|
+
};
|
|
1806
|
+
imports.wbg.__wbg_dispatchWorkgroups_4e59e078119b5bab = function(arg0, arg1, arg2, arg3) {
|
|
1807
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1808
|
+
};
|
|
1571
1809
|
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1572
1810
|
const ret = getObject(arg0).done;
|
|
1573
1811
|
return ret;
|
|
1574
1812
|
};
|
|
1813
|
+
imports.wbg.__wbg_end_ece2bf3a25678f12 = function(arg0) {
|
|
1814
|
+
getObject(arg0).end();
|
|
1815
|
+
};
|
|
1575
1816
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
1576
1817
|
let deferred0_0;
|
|
1577
1818
|
let deferred0_1;
|
|
@@ -1590,6 +1831,20 @@ ${val.stack}`;
|
|
|
1590
1831
|
const ret = fetch(getObject(arg0));
|
|
1591
1832
|
return addHeapObject(ret);
|
|
1592
1833
|
};
|
|
1834
|
+
imports.wbg.__wbg_finish_17a0b297901010d5 = function(arg0) {
|
|
1835
|
+
const ret = getObject(arg0).finish();
|
|
1836
|
+
return addHeapObject(ret);
|
|
1837
|
+
};
|
|
1838
|
+
imports.wbg.__wbg_finish_ab9e01a922269f3a = function(arg0, arg1) {
|
|
1839
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
1840
|
+
return addHeapObject(ret);
|
|
1841
|
+
};
|
|
1842
|
+
imports.wbg.__wbg_getMappedRange_1229810ff58e27ce = function() {
|
|
1843
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
1844
|
+
const ret = getObject(arg0).getMappedRange(arg1, arg2);
|
|
1845
|
+
return addHeapObject(ret);
|
|
1846
|
+
}, arguments);
|
|
1847
|
+
};
|
|
1593
1848
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() {
|
|
1594
1849
|
return handleError(function(arg0, arg1) {
|
|
1595
1850
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
@@ -1609,6 +1864,10 @@ ${val.stack}`;
|
|
|
1609
1864
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
1610
1865
|
return addHeapObject(ret);
|
|
1611
1866
|
};
|
|
1867
|
+
imports.wbg.__wbg_gpu_a6bce2913fb8f574 = function(arg0) {
|
|
1868
|
+
const ret = getObject(arg0).gpu;
|
|
1869
|
+
return addHeapObject(ret);
|
|
1870
|
+
};
|
|
1612
1871
|
imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function(arg0) {
|
|
1613
1872
|
console.info(getObject(arg0));
|
|
1614
1873
|
};
|
|
@@ -1622,6 +1881,16 @@ ${val.stack}`;
|
|
|
1622
1881
|
const ret = result;
|
|
1623
1882
|
return ret;
|
|
1624
1883
|
};
|
|
1884
|
+
imports.wbg.__wbg_instanceof_GpuAdapter_fb230cdccb184887 = function(arg0) {
|
|
1885
|
+
let result;
|
|
1886
|
+
try {
|
|
1887
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
1888
|
+
} catch (_) {
|
|
1889
|
+
result = false;
|
|
1890
|
+
}
|
|
1891
|
+
const ret = result;
|
|
1892
|
+
return ret;
|
|
1893
|
+
};
|
|
1625
1894
|
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1626
1895
|
let result;
|
|
1627
1896
|
try {
|
|
@@ -1644,6 +1913,13 @@ ${val.stack}`;
|
|
|
1644
1913
|
const ret = Symbol.iterator;
|
|
1645
1914
|
return addHeapObject(ret);
|
|
1646
1915
|
};
|
|
1916
|
+
imports.wbg.__wbg_label_cda985b32d44cee0 = function(arg0, arg1) {
|
|
1917
|
+
const ret = getObject(arg1).label;
|
|
1918
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1919
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1920
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1921
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1922
|
+
};
|
|
1647
1923
|
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1648
1924
|
const ret = getObject(arg0).length;
|
|
1649
1925
|
return ret;
|
|
@@ -1655,10 +1931,22 @@ ${val.stack}`;
|
|
|
1655
1931
|
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
1656
1932
|
console.log(getObject(arg0));
|
|
1657
1933
|
};
|
|
1934
|
+
imports.wbg.__wbg_mapAsync_4a34082bad283ccf = function(arg0, arg1, arg2, arg3) {
|
|
1935
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1936
|
+
return addHeapObject(ret);
|
|
1937
|
+
};
|
|
1658
1938
|
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1659
1939
|
const ret = getObject(arg0).msCrypto;
|
|
1660
1940
|
return addHeapObject(ret);
|
|
1661
1941
|
};
|
|
1942
|
+
imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
|
|
1943
|
+
const ret = getObject(arg0).navigator;
|
|
1944
|
+
return addHeapObject(ret);
|
|
1945
|
+
};
|
|
1946
|
+
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
1947
|
+
const ret = getObject(arg0).navigator;
|
|
1948
|
+
return addHeapObject(ret);
|
|
1949
|
+
};
|
|
1662
1950
|
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1663
1951
|
const ret = /* @__PURE__ */ new Date();
|
|
1664
1952
|
return addHeapObject(ret);
|
|
@@ -1695,10 +1983,36 @@ ${val.stack}`;
|
|
|
1695
1983
|
const ret = /* @__PURE__ */ new Map();
|
|
1696
1984
|
return addHeapObject(ret);
|
|
1697
1985
|
};
|
|
1986
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1987
|
+
try {
|
|
1988
|
+
var state0 = { a: arg0, b: arg1 };
|
|
1989
|
+
var cb0 = (arg02, arg12) => {
|
|
1990
|
+
const a = state0.a;
|
|
1991
|
+
state0.a = 0;
|
|
1992
|
+
try {
|
|
1993
|
+
return __wasm_bindgen_func_elem_16253(a, state0.b, arg02, arg12);
|
|
1994
|
+
} finally {
|
|
1995
|
+
state0.a = a;
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1998
|
+
const ret = new Promise(cb0);
|
|
1999
|
+
return addHeapObject(ret);
|
|
2000
|
+
} finally {
|
|
2001
|
+
state0.a = state0.b = 0;
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
2005
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2006
|
+
return addHeapObject(ret);
|
|
2007
|
+
};
|
|
1698
2008
|
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1699
2009
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1700
2010
|
return addHeapObject(ret);
|
|
1701
2011
|
};
|
|
2012
|
+
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
|
|
2013
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2014
|
+
return addHeapObject(ret);
|
|
2015
|
+
};
|
|
1702
2016
|
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1703
2017
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1704
2018
|
return addHeapObject(ret);
|
|
@@ -1739,17 +2053,44 @@ ${val.stack}`;
|
|
|
1739
2053
|
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1740
2054
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1741
2055
|
};
|
|
2056
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
2057
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
2058
|
+
return ret;
|
|
2059
|
+
};
|
|
2060
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
2061
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2062
|
+
return addHeapObject(ret);
|
|
2063
|
+
};
|
|
2064
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
2065
|
+
queueMicrotask(getObject(arg0));
|
|
2066
|
+
};
|
|
2067
|
+
imports.wbg.__wbg_queue_39d4f3bda761adef = function(arg0) {
|
|
2068
|
+
const ret = getObject(arg0).queue;
|
|
2069
|
+
return addHeapObject(ret);
|
|
2070
|
+
};
|
|
1742
2071
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() {
|
|
1743
2072
|
return handleError(function(arg0, arg1) {
|
|
1744
2073
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
1745
2074
|
}, arguments);
|
|
1746
2075
|
};
|
|
2076
|
+
imports.wbg.__wbg_requestAdapter_55d15e6d14e8392c = function(arg0, arg1) {
|
|
2077
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
2078
|
+
return addHeapObject(ret);
|
|
2079
|
+
};
|
|
2080
|
+
imports.wbg.__wbg_requestDevice_66e864eaf1ffbb38 = function(arg0, arg1) {
|
|
2081
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
2082
|
+
return addHeapObject(ret);
|
|
2083
|
+
};
|
|
1747
2084
|
imports.wbg.__wbg_require_60cc747a6bc5215a = function() {
|
|
1748
2085
|
return handleError(function() {
|
|
1749
2086
|
const ret = module.require;
|
|
1750
2087
|
return addHeapObject(ret);
|
|
1751
2088
|
}, arguments);
|
|
1752
2089
|
};
|
|
2090
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
2091
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
2092
|
+
return addHeapObject(ret);
|
|
2093
|
+
};
|
|
1753
2094
|
imports.wbg.__wbg_responseText_7a33f62863958740 = function() {
|
|
1754
2095
|
return handleError(function(arg0, arg1) {
|
|
1755
2096
|
const ret = getObject(arg1).responseText;
|
|
@@ -1770,6 +2111,17 @@ ${val.stack}`;
|
|
|
1770
2111
|
getObject(arg0).send();
|
|
1771
2112
|
}, arguments);
|
|
1772
2113
|
};
|
|
2114
|
+
imports.wbg.__wbg_setBindGroup_250647fe6341e1db = function() {
|
|
2115
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2116
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
2117
|
+
}, arguments);
|
|
2118
|
+
};
|
|
2119
|
+
imports.wbg.__wbg_setBindGroup_92f5fbfaea0311a0 = function(arg0, arg1, arg2) {
|
|
2120
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
2121
|
+
};
|
|
2122
|
+
imports.wbg.__wbg_setPipeline_95448e1c3bb1e875 = function(arg0, arg1) {
|
|
2123
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
2124
|
+
};
|
|
1773
2125
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1774
2126
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1775
2127
|
};
|
|
@@ -1778,25 +2130,283 @@ ${val.stack}`;
|
|
|
1778
2130
|
getObject(arg0).set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1779
2131
|
}, arguments);
|
|
1780
2132
|
};
|
|
2133
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() {
|
|
2134
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
2135
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2136
|
+
return ret;
|
|
2137
|
+
}, arguments);
|
|
2138
|
+
};
|
|
1781
2139
|
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1782
2140
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1783
2141
|
};
|
|
2142
|
+
imports.wbg.__wbg_set_access_c87a9bdb5c449e6b = function(arg0, arg1) {
|
|
2143
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
2144
|
+
};
|
|
2145
|
+
imports.wbg.__wbg_set_array_layer_count_3a8ad1adab3aded1 = function(arg0, arg1) {
|
|
2146
|
+
getObject(arg0).arrayLayerCount = arg1 >>> 0;
|
|
2147
|
+
};
|
|
2148
|
+
imports.wbg.__wbg_set_aspect_4066a62e6528c589 = function(arg0, arg1) {
|
|
2149
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
2150
|
+
};
|
|
2151
|
+
imports.wbg.__wbg_set_base_array_layer_85c4780859e3e025 = function(arg0, arg1) {
|
|
2152
|
+
getObject(arg0).baseArrayLayer = arg1 >>> 0;
|
|
2153
|
+
};
|
|
2154
|
+
imports.wbg.__wbg_set_base_mip_level_f90525112a282a1d = function(arg0, arg1) {
|
|
2155
|
+
getObject(arg0).baseMipLevel = arg1 >>> 0;
|
|
2156
|
+
};
|
|
2157
|
+
imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
|
|
2158
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2159
|
+
};
|
|
2160
|
+
imports.wbg.__wbg_set_beginning_of_pass_write_index_1175eec9e005d722 = function(arg0, arg1) {
|
|
2161
|
+
getObject(arg0).beginningOfPassWriteIndex = arg1 >>> 0;
|
|
2162
|
+
};
|
|
2163
|
+
imports.wbg.__wbg_set_bind_group_layouts_54f980eb55071c87 = function(arg0, arg1) {
|
|
2164
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
2165
|
+
};
|
|
2166
|
+
imports.wbg.__wbg_set_binding_1ddbf5eebabdc48c = function(arg0, arg1) {
|
|
2167
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2168
|
+
};
|
|
2169
|
+
imports.wbg.__wbg_set_binding_5ea4d52c77434dfa = function(arg0, arg1) {
|
|
2170
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2171
|
+
};
|
|
1784
2172
|
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1785
2173
|
getObject(arg0).body = getObject(arg1);
|
|
1786
2174
|
};
|
|
2175
|
+
imports.wbg.__wbg_set_buffer_2dac3e64a7099038 = function(arg0, arg1) {
|
|
2176
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2177
|
+
};
|
|
2178
|
+
imports.wbg.__wbg_set_buffer_489d923366e1f63a = function(arg0, arg1) {
|
|
2179
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2180
|
+
};
|
|
2181
|
+
imports.wbg.__wbg_set_buffer_a3a7f00fa797e1d1 = function(arg0, arg1) {
|
|
2182
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2183
|
+
};
|
|
2184
|
+
imports.wbg.__wbg_set_bytes_per_row_61fdc31fb1e978f4 = function(arg0, arg1) {
|
|
2185
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
2186
|
+
};
|
|
2187
|
+
imports.wbg.__wbg_set_bytes_per_row_7eb4ea50ad336975 = function(arg0, arg1) {
|
|
2188
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
2189
|
+
};
|
|
2190
|
+
imports.wbg.__wbg_set_code_e66de35c80aa100f = function(arg0, arg1, arg2) {
|
|
2191
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
2192
|
+
};
|
|
2193
|
+
imports.wbg.__wbg_set_compute_7e84d836a17ec8dc = function(arg0, arg1) {
|
|
2194
|
+
getObject(arg0).compute = getObject(arg1);
|
|
2195
|
+
};
|
|
2196
|
+
imports.wbg.__wbg_set_depth_or_array_layers_57e35a31ded46b97 = function(arg0, arg1) {
|
|
2197
|
+
getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
|
|
2198
|
+
};
|
|
2199
|
+
imports.wbg.__wbg_set_dimension_1e40af745768ac00 = function(arg0, arg1) {
|
|
2200
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
2201
|
+
};
|
|
2202
|
+
imports.wbg.__wbg_set_dimension_8523a7df804e7839 = function(arg0, arg1) {
|
|
2203
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2204
|
+
};
|
|
1787
2205
|
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1788
2206
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1789
2207
|
return addHeapObject(ret);
|
|
1790
2208
|
};
|
|
2209
|
+
imports.wbg.__wbg_set_end_of_pass_write_index_c9e77fba223f5e64 = function(arg0, arg1) {
|
|
2210
|
+
getObject(arg0).endOfPassWriteIndex = arg1 >>> 0;
|
|
2211
|
+
};
|
|
2212
|
+
imports.wbg.__wbg_set_entries_5ebe60dce5e74a0b = function(arg0, arg1) {
|
|
2213
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2214
|
+
};
|
|
2215
|
+
imports.wbg.__wbg_set_entries_9e330e1730f04662 = function(arg0, arg1) {
|
|
2216
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2217
|
+
};
|
|
2218
|
+
imports.wbg.__wbg_set_entry_point_0dd252068a92e7b1 = function(arg0, arg1, arg2) {
|
|
2219
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
2220
|
+
};
|
|
2221
|
+
imports.wbg.__wbg_set_external_texture_c45a65eda8f1c7e7 = function(arg0, arg1) {
|
|
2222
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
2223
|
+
};
|
|
2224
|
+
imports.wbg.__wbg_set_format_071b082598e71ae2 = function(arg0, arg1) {
|
|
2225
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2226
|
+
};
|
|
2227
|
+
imports.wbg.__wbg_set_format_45c59d08eefdcb12 = function(arg0, arg1) {
|
|
2228
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2229
|
+
};
|
|
2230
|
+
imports.wbg.__wbg_set_format_726ed8f81a287fdc = function(arg0, arg1) {
|
|
2231
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2232
|
+
};
|
|
2233
|
+
imports.wbg.__wbg_set_has_dynamic_offset_dcbae080558be467 = function(arg0, arg1) {
|
|
2234
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
2235
|
+
};
|
|
1791
2236
|
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1792
2237
|
getObject(arg0).headers = getObject(arg1);
|
|
1793
2238
|
};
|
|
2239
|
+
imports.wbg.__wbg_set_height_28e79506f626af82 = function(arg0, arg1) {
|
|
2240
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
2241
|
+
};
|
|
2242
|
+
imports.wbg.__wbg_set_label_03ef288b104476b5 = function(arg0, arg1, arg2) {
|
|
2243
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2244
|
+
};
|
|
2245
|
+
imports.wbg.__wbg_set_label_1183ccaccddf4c32 = function(arg0, arg1, arg2) {
|
|
2246
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2247
|
+
};
|
|
2248
|
+
imports.wbg.__wbg_set_label_3d8a20f328073061 = function(arg0, arg1, arg2) {
|
|
2249
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2250
|
+
};
|
|
2251
|
+
imports.wbg.__wbg_set_label_491466139034563c = function(arg0, arg1, arg2) {
|
|
2252
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2253
|
+
};
|
|
2254
|
+
imports.wbg.__wbg_set_label_53b47ffdebccf638 = function(arg0, arg1, arg2) {
|
|
2255
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2256
|
+
};
|
|
2257
|
+
imports.wbg.__wbg_set_label_7ffda3ed69c72b85 = function(arg0, arg1, arg2) {
|
|
2258
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2259
|
+
};
|
|
2260
|
+
imports.wbg.__wbg_set_label_828e6fe16c83ad61 = function(arg0, arg1, arg2) {
|
|
2261
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2262
|
+
};
|
|
2263
|
+
imports.wbg.__wbg_set_label_95bae3d54f33d3c6 = function(arg0, arg1, arg2) {
|
|
2264
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2265
|
+
};
|
|
2266
|
+
imports.wbg.__wbg_set_label_a1c8caea9f6c17d7 = function(arg0, arg1, arg2) {
|
|
2267
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2268
|
+
};
|
|
2269
|
+
imports.wbg.__wbg_set_label_a3e682ef8c10c947 = function(arg0, arg1, arg2) {
|
|
2270
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2271
|
+
};
|
|
2272
|
+
imports.wbg.__wbg_set_label_c880c612e67bf9d9 = function(arg0, arg1, arg2) {
|
|
2273
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2274
|
+
};
|
|
2275
|
+
imports.wbg.__wbg_set_label_eb73d9dd282c005a = function(arg0, arg1, arg2) {
|
|
2276
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2277
|
+
};
|
|
2278
|
+
imports.wbg.__wbg_set_layout_934f9127172b906e = function(arg0, arg1) {
|
|
2279
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2280
|
+
};
|
|
2281
|
+
imports.wbg.__wbg_set_layout_a9aebce493b15bfb = function(arg0, arg1) {
|
|
2282
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2283
|
+
};
|
|
2284
|
+
imports.wbg.__wbg_set_mapped_at_creation_37dd8bbd1a910924 = function(arg0, arg1) {
|
|
2285
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
2286
|
+
};
|
|
1794
2287
|
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1795
2288
|
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1796
2289
|
};
|
|
2290
|
+
imports.wbg.__wbg_set_min_binding_size_f7d3351b78c71fbc = function(arg0, arg1) {
|
|
2291
|
+
getObject(arg0).minBindingSize = arg1;
|
|
2292
|
+
};
|
|
2293
|
+
imports.wbg.__wbg_set_mip_level_4adfe9f0872d052d = function(arg0, arg1) {
|
|
2294
|
+
getObject(arg0).mipLevel = arg1 >>> 0;
|
|
2295
|
+
};
|
|
2296
|
+
imports.wbg.__wbg_set_mip_level_count_3368440f1c3c34b9 = function(arg0, arg1) {
|
|
2297
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
2298
|
+
};
|
|
2299
|
+
imports.wbg.__wbg_set_mip_level_count_9de96fe0db85420d = function(arg0, arg1) {
|
|
2300
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
2301
|
+
};
|
|
2302
|
+
imports.wbg.__wbg_set_module_0700e7e0b7b4f128 = function(arg0, arg1) {
|
|
2303
|
+
getObject(arg0).module = getObject(arg1);
|
|
2304
|
+
};
|
|
2305
|
+
imports.wbg.__wbg_set_multisampled_dc1cdd807d0170e1 = function(arg0, arg1) {
|
|
2306
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
2307
|
+
};
|
|
2308
|
+
imports.wbg.__wbg_set_offset_49dfc93674b6347b = function(arg0, arg1) {
|
|
2309
|
+
getObject(arg0).offset = arg1;
|
|
2310
|
+
};
|
|
2311
|
+
imports.wbg.__wbg_set_offset_51eb43b37f1e9525 = function(arg0, arg1) {
|
|
2312
|
+
getObject(arg0).offset = arg1;
|
|
2313
|
+
};
|
|
2314
|
+
imports.wbg.__wbg_set_offset_a90a41961b1df9b4 = function(arg0, arg1) {
|
|
2315
|
+
getObject(arg0).offset = arg1;
|
|
2316
|
+
};
|
|
2317
|
+
imports.wbg.__wbg_set_origin_154a83d3703121d7 = function(arg0, arg1) {
|
|
2318
|
+
getObject(arg0).origin = getObject(arg1);
|
|
2319
|
+
};
|
|
2320
|
+
imports.wbg.__wbg_set_power_preference_229fffedb859fda8 = function(arg0, arg1) {
|
|
2321
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
2322
|
+
};
|
|
2323
|
+
imports.wbg.__wbg_set_query_set_5d767886356c7b79 = function(arg0, arg1) {
|
|
2324
|
+
getObject(arg0).querySet = getObject(arg1);
|
|
2325
|
+
};
|
|
2326
|
+
imports.wbg.__wbg_set_required_features_8135f6ab89e06b58 = function(arg0, arg1) {
|
|
2327
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
2328
|
+
};
|
|
2329
|
+
imports.wbg.__wbg_set_resource_97233a9ead07e4bc = function(arg0, arg1) {
|
|
2330
|
+
getObject(arg0).resource = getObject(arg1);
|
|
2331
|
+
};
|
|
1797
2332
|
imports.wbg.__wbg_set_responseType_df7a5fa93f0dd4be = function(arg0, arg1) {
|
|
1798
2333
|
getObject(arg0).responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
1799
2334
|
};
|
|
2335
|
+
imports.wbg.__wbg_set_rows_per_image_b2e56467282d270a = function(arg0, arg1) {
|
|
2336
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
2337
|
+
};
|
|
2338
|
+
imports.wbg.__wbg_set_rows_per_image_ca194ae8c040a0d0 = function(arg0, arg1) {
|
|
2339
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
2340
|
+
};
|
|
2341
|
+
imports.wbg.__wbg_set_sample_count_df26d31cf04a57d8 = function(arg0, arg1) {
|
|
2342
|
+
getObject(arg0).sampleCount = arg1 >>> 0;
|
|
2343
|
+
};
|
|
2344
|
+
imports.wbg.__wbg_set_sample_type_5671a405c6474494 = function(arg0, arg1) {
|
|
2345
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
2346
|
+
};
|
|
2347
|
+
imports.wbg.__wbg_set_sampler_43a3dd77c3b0a5ba = function(arg0, arg1) {
|
|
2348
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
2349
|
+
};
|
|
2350
|
+
imports.wbg.__wbg_set_size_1a3d1e3a2e547ec1 = function(arg0, arg1) {
|
|
2351
|
+
getObject(arg0).size = getObject(arg1);
|
|
2352
|
+
};
|
|
2353
|
+
imports.wbg.__wbg_set_size_a45dd219534f95ed = function(arg0, arg1) {
|
|
2354
|
+
getObject(arg0).size = arg1;
|
|
2355
|
+
};
|
|
2356
|
+
imports.wbg.__wbg_set_size_e0576eacd9f11fed = function(arg0, arg1) {
|
|
2357
|
+
getObject(arg0).size = arg1;
|
|
2358
|
+
};
|
|
2359
|
+
imports.wbg.__wbg_set_storage_texture_4853479f6eb61a57 = function(arg0, arg1) {
|
|
2360
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
2361
|
+
};
|
|
2362
|
+
imports.wbg.__wbg_set_texture_5f219a723eb7db43 = function(arg0, arg1) {
|
|
2363
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2364
|
+
};
|
|
2365
|
+
imports.wbg.__wbg_set_texture_84c4ac5434a9ddb5 = function(arg0, arg1) {
|
|
2366
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2367
|
+
};
|
|
2368
|
+
imports.wbg.__wbg_set_timestamp_writes_db44391e390948e2 = function(arg0, arg1) {
|
|
2369
|
+
getObject(arg0).timestampWrites = getObject(arg1);
|
|
2370
|
+
};
|
|
2371
|
+
imports.wbg.__wbg_set_type_0a9fcee42b714ba8 = function(arg0, arg1) {
|
|
2372
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2373
|
+
};
|
|
2374
|
+
imports.wbg.__wbg_set_type_ba111b7f1813a222 = function(arg0, arg1) {
|
|
2375
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2376
|
+
};
|
|
2377
|
+
imports.wbg.__wbg_set_usage_0f3970011718ab12 = function(arg0, arg1) {
|
|
2378
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2379
|
+
};
|
|
2380
|
+
imports.wbg.__wbg_set_usage_49bed7c9b47e7849 = function(arg0, arg1) {
|
|
2381
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2382
|
+
};
|
|
2383
|
+
imports.wbg.__wbg_set_usage_8a5ac4564d826d9d = function(arg0, arg1) {
|
|
2384
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2385
|
+
};
|
|
2386
|
+
imports.wbg.__wbg_set_view_dimension_2e3a58d96671f97a = function(arg0, arg1) {
|
|
2387
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2388
|
+
};
|
|
2389
|
+
imports.wbg.__wbg_set_view_dimension_88c1a47ce71f7839 = function(arg0, arg1) {
|
|
2390
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2391
|
+
};
|
|
2392
|
+
imports.wbg.__wbg_set_view_formats_dbd4d0d50ed403ff = function(arg0, arg1) {
|
|
2393
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
2394
|
+
};
|
|
2395
|
+
imports.wbg.__wbg_set_visibility_f4f66940005e5c39 = function(arg0, arg1) {
|
|
2396
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
2397
|
+
};
|
|
2398
|
+
imports.wbg.__wbg_set_width_64c5783b064042bc = function(arg0, arg1) {
|
|
2399
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
2400
|
+
};
|
|
2401
|
+
imports.wbg.__wbg_set_x_d5236bf9391eb053 = function(arg0, arg1) {
|
|
2402
|
+
getObject(arg0).x = arg1 >>> 0;
|
|
2403
|
+
};
|
|
2404
|
+
imports.wbg.__wbg_set_y_413262ade3cc0d56 = function(arg0, arg1) {
|
|
2405
|
+
getObject(arg0).y = arg1 >>> 0;
|
|
2406
|
+
};
|
|
2407
|
+
imports.wbg.__wbg_set_z_a136ba9bd16085f0 = function(arg0, arg1) {
|
|
2408
|
+
getObject(arg0).z = arg1 >>> 0;
|
|
2409
|
+
};
|
|
1800
2410
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1801
2411
|
const ret = getObject(arg1).stack;
|
|
1802
2412
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1830,6 +2440,17 @@ ${val.stack}`;
|
|
|
1830
2440
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1831
2441
|
return addHeapObject(ret);
|
|
1832
2442
|
};
|
|
2443
|
+
imports.wbg.__wbg_submit_068b03683463d934 = function(arg0, arg1) {
|
|
2444
|
+
getObject(arg0).submit(getObject(arg1));
|
|
2445
|
+
};
|
|
2446
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
2447
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2448
|
+
return addHeapObject(ret);
|
|
2449
|
+
};
|
|
2450
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
2451
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2452
|
+
return addHeapObject(ret);
|
|
2453
|
+
};
|
|
1833
2454
|
imports.wbg.__wbg_toISOString_eca15cbe422eeea5 = function(arg0) {
|
|
1834
2455
|
const ret = getObject(arg0).toISOString();
|
|
1835
2456
|
return addHeapObject(ret);
|
|
@@ -1845,14 +2466,34 @@ ${val.stack}`;
|
|
|
1845
2466
|
imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
|
|
1846
2467
|
console.warn(getObject(arg0));
|
|
1847
2468
|
};
|
|
2469
|
+
imports.wbg.__wbg_writeBuffer_b479dd5b90cd43eb = function() {
|
|
2470
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2471
|
+
getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
2472
|
+
}, arguments);
|
|
2473
|
+
};
|
|
2474
|
+
imports.wbg.__wbg_writeTexture_c70826cc2ae8e127 = function() {
|
|
2475
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
|
2476
|
+
getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
2477
|
+
}, arguments);
|
|
2478
|
+
};
|
|
1848
2479
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1849
2480
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1850
2481
|
return addHeapObject(ret);
|
|
1851
2482
|
};
|
|
2483
|
+
imports.wbg.__wbindgen_cast_3a49331188f32bb6 = function(arg0, arg1) {
|
|
2484
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2509, __wasm_bindgen_func_elem_2525);
|
|
2485
|
+
return addHeapObject(ret);
|
|
2486
|
+
};
|
|
1852
2487
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1853
2488
|
const ret = BigInt.asUintN(64, arg0);
|
|
1854
2489
|
return addHeapObject(ret);
|
|
1855
2490
|
};
|
|
2491
|
+
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
|
2492
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2493
|
+
wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
|
|
2494
|
+
const ret = v0;
|
|
2495
|
+
return addHeapObject(ret);
|
|
2496
|
+
};
|
|
1856
2497
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1857
2498
|
const ret = arg0;
|
|
1858
2499
|
return addHeapObject(ret);
|
|
@@ -1878,6 +2519,7 @@ ${val.stack}`;
|
|
|
1878
2519
|
wasm = instance.exports;
|
|
1879
2520
|
__wbg_init.__wbindgen_wasm_module = module2;
|
|
1880
2521
|
cachedDataViewMemory0 = null;
|
|
2522
|
+
cachedUint32ArrayMemory0 = null;
|
|
1881
2523
|
cachedUint8ArrayMemory0 = null;
|
|
1882
2524
|
return wasm;
|
|
1883
2525
|
}
|
|
@@ -1904,8 +2546,25 @@ ${val.stack}`;
|
|
|
1904
2546
|
|
|
1905
2547
|
// dist/src/worker/worker.js
|
|
1906
2548
|
var udoc = null;
|
|
2549
|
+
var gpuAvailable = false;
|
|
1907
2550
|
var currentRequestId;
|
|
1908
|
-
|
|
2551
|
+
var processing = false;
|
|
2552
|
+
var messageQueue = [];
|
|
2553
|
+
self.onmessage = (event) => {
|
|
2554
|
+
messageQueue.push(event);
|
|
2555
|
+
if (!processing) {
|
|
2556
|
+
processQueue();
|
|
2557
|
+
}
|
|
2558
|
+
};
|
|
2559
|
+
async function processQueue() {
|
|
2560
|
+
processing = true;
|
|
2561
|
+
while (messageQueue.length > 0) {
|
|
2562
|
+
const event = messageQueue.shift();
|
|
2563
|
+
await handleMessage(event);
|
|
2564
|
+
}
|
|
2565
|
+
processing = false;
|
|
2566
|
+
}
|
|
2567
|
+
async function handleMessage(event) {
|
|
1909
2568
|
const { _id, ...request } = event.data;
|
|
1910
2569
|
currentRequestId = _id;
|
|
1911
2570
|
try {
|
|
@@ -1913,6 +2572,13 @@ ${val.stack}`;
|
|
|
1913
2572
|
case "init": {
|
|
1914
2573
|
await udoc_default(request.wasmUrl ? { module_or_path: request.wasmUrl } : void 0);
|
|
1915
2574
|
udoc = new UDoc();
|
|
2575
|
+
if (request.gpu) {
|
|
2576
|
+
try {
|
|
2577
|
+
gpuAvailable = await udoc.init_gpu();
|
|
2578
|
+
} catch {
|
|
2579
|
+
gpuAvailable = false;
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
1916
2582
|
respond({ type: "init", success: true });
|
|
1917
2583
|
break;
|
|
1918
2584
|
}
|
|
@@ -2020,7 +2686,17 @@ ${val.stack}`;
|
|
|
2020
2686
|
}
|
|
2021
2687
|
case "renderPage": {
|
|
2022
2688
|
ensureInitialized();
|
|
2023
|
-
|
|
2689
|
+
if (!udoc.has_document(request.documentId)) {
|
|
2690
|
+
respond({ type: "renderPage", success: false, error: `Document not found: ${request.documentId}` });
|
|
2691
|
+
break;
|
|
2692
|
+
}
|
|
2693
|
+
let rgba;
|
|
2694
|
+
if (gpuAvailable) {
|
|
2695
|
+
const gpuResult = await udoc.render_page_gpu(request.documentId, request.pageIndex, request.width, request.height);
|
|
2696
|
+
rgba = new Uint8Array(gpuResult);
|
|
2697
|
+
} else {
|
|
2698
|
+
rgba = udoc.render_page_to_rgba(request.documentId, request.pageIndex, request.width, request.height);
|
|
2699
|
+
}
|
|
2024
2700
|
respond({ type: "renderPage", success: true, rgba, width: request.width, height: request.height }, [
|
|
2025
2701
|
rgba.buffer
|
|
2026
2702
|
]);
|
|
@@ -2153,7 +2829,7 @@ ${val.stack}`;
|
|
|
2153
2829
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
2154
2830
|
respond({ type: request.type, success: false, error: errorMessage });
|
|
2155
2831
|
}
|
|
2156
|
-
}
|
|
2832
|
+
}
|
|
2157
2833
|
function ensureInitialized() {
|
|
2158
2834
|
if (!udoc) {
|
|
2159
2835
|
throw new Error("Worker not initialized. Call init first.");
|