@docmentis/udoc-wasm 0.8.0 → 0.8.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/README.md +4 -4
- package/dist/wasm/udoc.d.ts +12 -2
- package/dist/wasm/udoc.js +38 -11
- package/dist/wasm/udoc_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`@docmentis/udoc-wasm` is a WebAssembly runtime that provides core document processing and rendering capabilities for applications built with docMentis. It is designed for use in document viewers, editors, and automated document workflows.
|
|
6
6
|
|
|
7
|
-
The runtime is **proprietary software**, distributed under the [docMentis WASM Runtime License](
|
|
7
|
+
The runtime is **proprietary software**, distributed under the [docMentis WASM Runtime License](https://cdn.jsdelivr.net/npm/@docmentis/udoc-wasm/LICENSE). It is not an open-source package.
|
|
8
8
|
|
|
9
9
|
## Capabilities
|
|
10
10
|
|
|
@@ -33,7 +33,7 @@ The runtime can be used **free of charge, including in commercial applications**
|
|
|
33
33
|
|
|
34
34
|
Permit requests authorize runtime use; they are **not document uploads or document-conversion requests**. See the [docMentis website](https://www.docmentis.com/) for information about privacy and telemetry.
|
|
35
35
|
|
|
36
|
-
Free use is subject to the [Runtime License](
|
|
36
|
+
Free use is subject to the [Runtime License](https://cdn.jsdelivr.net/npm/@docmentis/udoc-wasm/LICENSE).
|
|
37
37
|
|
|
38
38
|
## Commercial licensing
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ Commercial entitlements and their scope are defined by the applicable agreement.
|
|
|
43
43
|
|
|
44
44
|
## Redistribution and third-party materials
|
|
45
45
|
|
|
46
|
-
The runtime may be included in applications and redistributed in unmodified form, subject to the [Runtime License](
|
|
46
|
+
The runtime may be included in applications and redistributed in unmodified form, subject to the [Runtime License](https://cdn.jsdelivr.net/npm/@docmentis/udoc-wasm/LICENSE).
|
|
47
47
|
|
|
48
48
|
The package contains third-party materials, including open-source dependencies, fonts, and a CC0-licensed ICC color profile. These materials remain subject to their respective licenses. Applicable notices and license information accompany the package and must be preserved as required when redistributing it.
|
|
49
49
|
|
|
@@ -51,4 +51,4 @@ The package contains third-party materials, including open-source dependencies,
|
|
|
51
51
|
|
|
52
52
|
Copyright © 2026 docMentis LLC. All rights reserved.
|
|
53
53
|
|
|
54
|
-
`@docmentis/udoc-wasm` is licensed under the [docMentis WASM Runtime License](
|
|
54
|
+
`@docmentis/udoc-wasm` is licensed under the [docMentis WASM Runtime License](https://cdn.jsdelivr.net/npm/@docmentis/udoc-wasm/LICENSE).
|
package/dist/wasm/udoc.d.ts
CHANGED
|
@@ -19086,6 +19086,15 @@ export class WasmSession {
|
|
|
19086
19086
|
* or the package can't be read.
|
|
19087
19087
|
*/
|
|
19088
19088
|
openRemote(url: string, fetch: (url: string) => Uint8Array): void;
|
|
19089
|
+
/**
|
|
19090
|
+
* The file the open document came from, byte for byte, whatever has been
|
|
19091
|
+
* edited since.
|
|
19092
|
+
*
|
|
19093
|
+
* # Errors
|
|
19094
|
+
* Returns a JS error if no document is open, the session holds no
|
|
19095
|
+
* original (as one opened with `openRemote` doesn't), or reading it fails.
|
|
19096
|
+
*/
|
|
19097
|
+
originalBytes(): Uint8Array;
|
|
19089
19098
|
/**
|
|
19090
19099
|
* The size (document points) of page `page_index` on `plane` —
|
|
19091
19100
|
* doc-type-agnostic, so the host's thumbnail strip can shape and scale a
|
|
@@ -20147,6 +20156,7 @@ export interface InitOutput {
|
|
|
20147
20156
|
readonly wasmsession_opaquePartsSince: (a: number, b: number, c: number, d: number) => void;
|
|
20148
20157
|
readonly wasmsession_open: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
20149
20158
|
readonly wasmsession_openRemote: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
20159
|
+
readonly wasmsession_originalBytes: (a: number, b: number) => void;
|
|
20150
20160
|
readonly wasmsession_pageSize: (a: number, b: number, c: number, d: number) => void;
|
|
20151
20161
|
readonly wasmsession_pageToContent: (a: number, b: number, c: number) => void;
|
|
20152
20162
|
readonly wasmsession_pageViewRects: (a: number, b: number) => void;
|
|
@@ -20227,8 +20237,8 @@ export interface InitOutput {
|
|
|
20227
20237
|
readonly fontpreviewimage_width: (a: number) => number;
|
|
20228
20238
|
readonly fontpreviewimage_bleed: (a: number) => number;
|
|
20229
20239
|
readonly fontpreviewimage_height: (a: number) => number;
|
|
20230
|
-
readonly
|
|
20231
|
-
readonly
|
|
20240
|
+
readonly __wasm_bindgen_func_elem_68517: (a: number, b: number, c: number, d: number) => void;
|
|
20241
|
+
readonly __wasm_bindgen_func_elem_68519: (a: number, b: number, c: number, d: number) => void;
|
|
20232
20242
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
20233
20243
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
20234
20244
|
readonly __wbindgen_export3: (a: number) => void;
|
package/dist/wasm/udoc.js
CHANGED
|
@@ -1840,6 +1840,33 @@ export class WasmSession {
|
|
|
1840
1840
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
+
/**
|
|
1844
|
+
* The file the open document came from, byte for byte, whatever has been
|
|
1845
|
+
* edited since.
|
|
1846
|
+
*
|
|
1847
|
+
* # Errors
|
|
1848
|
+
* Returns a JS error if no document is open, the session holds no
|
|
1849
|
+
* original (as one opened with `openRemote` doesn't), or reading it fails.
|
|
1850
|
+
* @returns {Uint8Array}
|
|
1851
|
+
*/
|
|
1852
|
+
originalBytes() {
|
|
1853
|
+
try {
|
|
1854
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1855
|
+
wasm.wasmsession_originalBytes(retptr, this.__wbg_ptr);
|
|
1856
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1857
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1858
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1859
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1860
|
+
if (r3) {
|
|
1861
|
+
throw takeObject(r2);
|
|
1862
|
+
}
|
|
1863
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1864
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
1865
|
+
return v1;
|
|
1866
|
+
} finally {
|
|
1867
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1843
1870
|
/**
|
|
1844
1871
|
* The size (document points) of page `page_index` on `plane` —
|
|
1845
1872
|
* doc-type-agnostic, so the host's thumbnail strip can shape and scale a
|
|
@@ -3887,7 +3914,7 @@ function __wbg_get_imports() {
|
|
|
3887
3914
|
__wbg_clip_5f059eebddcbe6ae: function(arg0) {
|
|
3888
3915
|
getObject(arg0).clip();
|
|
3889
3916
|
},
|
|
3890
|
-
|
|
3917
|
+
__wbg_covers_70a032ceb753624b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3891
3918
|
const ret = getObject(arg0).covers(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3892
3919
|
return ret;
|
|
3893
3920
|
}, arguments); },
|
|
@@ -3912,7 +3939,7 @@ function __wbg_get_imports() {
|
|
|
3912
3939
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
3913
3940
|
}
|
|
3914
3941
|
},
|
|
3915
|
-
|
|
3942
|
+
__wbg_fetch_905ef070afbf9d64: function() { return handleError(function (arg0) {
|
|
3916
3943
|
const ret = fetch(getObject(arg0));
|
|
3917
3944
|
return addHeapObject(ret);
|
|
3918
3945
|
}, arguments); },
|
|
@@ -3994,11 +4021,11 @@ function __wbg_get_imports() {
|
|
|
3994
4021
|
const ret = getObject(arg0).length;
|
|
3995
4022
|
return ret;
|
|
3996
4023
|
},
|
|
3997
|
-
|
|
4024
|
+
__wbg_measure_52806bd0c0248e79: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3998
4025
|
const ret = getObject(arg0).measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3999
4026
|
return ret;
|
|
4000
4027
|
}, arguments); },
|
|
4001
|
-
|
|
4028
|
+
__wbg_metrics_61e641fe3ecc3aa9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4002
4029
|
const ret = getObject(arg0).metrics(getStringFromWasm0(arg1, arg2));
|
|
4003
4030
|
return addHeapObject(ret);
|
|
4004
4031
|
}, arguments); },
|
|
@@ -4045,7 +4072,7 @@ function __wbg_get_imports() {
|
|
|
4045
4072
|
const a = state0.a;
|
|
4046
4073
|
state0.a = 0;
|
|
4047
4074
|
try {
|
|
4048
|
-
return
|
|
4075
|
+
return __wasm_bindgen_func_elem_68519(a, state0.b, arg0, arg1);
|
|
4049
4076
|
} finally {
|
|
4050
4077
|
state0.a = a;
|
|
4051
4078
|
}
|
|
@@ -4116,7 +4143,7 @@ function __wbg_get_imports() {
|
|
|
4116
4143
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
4117
4144
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
4118
4145
|
}, arguments); },
|
|
4119
|
-
|
|
4146
|
+
__wbg_rasterize_802d05dbeea6e8ac: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
4120
4147
|
const ret = getObject(arg0).rasterize(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getArrayF64FromWasm0(arg5, arg6), arg7 === 0 ? undefined : arg8);
|
|
4121
4148
|
return addHeapObject(ret);
|
|
4122
4149
|
}, arguments); },
|
|
@@ -4220,7 +4247,7 @@ function __wbg_get_imports() {
|
|
|
4220
4247
|
},
|
|
4221
4248
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
4222
4249
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 15189, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
4223
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4250
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_68517);
|
|
4224
4251
|
return addHeapObject(ret);
|
|
4225
4252
|
},
|
|
4226
4253
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -4252,10 +4279,10 @@ function __wbg_get_imports() {
|
|
|
4252
4279
|
};
|
|
4253
4280
|
}
|
|
4254
4281
|
|
|
4255
|
-
function
|
|
4282
|
+
function __wasm_bindgen_func_elem_68517(arg0, arg1, arg2) {
|
|
4256
4283
|
try {
|
|
4257
4284
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4258
|
-
wasm.
|
|
4285
|
+
wasm.__wasm_bindgen_func_elem_68517(retptr, arg0, arg1, addHeapObject(arg2));
|
|
4259
4286
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4260
4287
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4261
4288
|
if (r1) {
|
|
@@ -4266,8 +4293,8 @@ function __wasm_bindgen_func_elem_68497(arg0, arg1, arg2) {
|
|
|
4266
4293
|
}
|
|
4267
4294
|
}
|
|
4268
4295
|
|
|
4269
|
-
function
|
|
4270
|
-
wasm.
|
|
4296
|
+
function __wasm_bindgen_func_elem_68519(arg0, arg1, arg2, arg3) {
|
|
4297
|
+
wasm.__wasm_bindgen_func_elem_68519(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
4271
4298
|
}
|
|
4272
4299
|
|
|
4273
4300
|
const FontPreviewImageFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/dist/wasm/udoc_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docmentis/udoc-wasm",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Generated udoc engine artifacts: the WASM binary + wasm-bindgen glue and its TypeScript ABI, which declares the command/model types.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|