docling.rs-wasm 1.19.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundler/docling_wasm.d.ts +5 -4
- package/bundler/docling_wasm_bg.js +16 -15
- package/bundler/docling_wasm_bg.wasm +0 -0
- package/bundler/docling_wasm_bg.wasm.d.ts +7 -7
- package/package.json +1 -1
- package/web/docling_wasm.d.ts +12 -11
- package/web/docling_wasm.js +16 -15
- package/web/docling_wasm_bg.wasm +0 -0
- package/web/docling_wasm_bg.wasm.d.ts +7 -7
|
@@ -24,7 +24,7 @@ export class DigitalConverter {
|
|
|
24
24
|
add_page(index: number, rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec?: any | null): Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Assemble the converted pages into a document and render it as `"md"`
|
|
27
|
-
* (default), `"json"` or `"
|
|
27
|
+
* (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
|
|
28
28
|
* render in Markdown. Resets the converter.
|
|
29
29
|
*/
|
|
30
30
|
finish(name: string, to?: string | null, images?: string | null): string;
|
|
@@ -70,7 +70,7 @@ export class ScannedConverter {
|
|
|
70
70
|
add_page(rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec: any): Promise<void>;
|
|
71
71
|
/**
|
|
72
72
|
* Assemble the accumulated pages into the final document and render it
|
|
73
|
-
* as `"md"` (default), `"json"` or `"
|
|
73
|
+
* as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
|
|
74
74
|
* declarative [`crate::convert`] entry point offers. `images` picks how
|
|
75
75
|
* cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
|
|
76
76
|
* like [`crate::convert`]. Resets the converter.
|
|
@@ -90,8 +90,9 @@ export class ScannedConverter {
|
|
|
90
90
|
/**
|
|
91
91
|
* Convert a document (as bytes + filename, the extension drives format
|
|
92
92
|
* detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
|
|
93
|
-
* `DoclingDocument` wire format, schema 1.10.0)
|
|
94
|
-
* DocLang XML serialization).
|
|
93
|
+
* `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
|
|
94
|
+
* DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
|
|
95
|
+
* #317).
|
|
95
96
|
*
|
|
96
97
|
* `images` controls how pictures render in Markdown — `"placeholder"`
|
|
97
98
|
* (default) or `"embedded"` (base64 data URIs), the same option
|
|
@@ -56,7 +56,7 @@ export class DigitalConverter {
|
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Assemble the converted pages into a document and render it as `"md"`
|
|
59
|
-
* (default), `"json"` or `"
|
|
59
|
+
* (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
|
|
60
60
|
* render in Markdown. Resets the converter.
|
|
61
61
|
* @param {string} name
|
|
62
62
|
* @param {string | null} [to]
|
|
@@ -186,7 +186,7 @@ export class ScannedConverter {
|
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* Assemble the accumulated pages into the final document and render it
|
|
189
|
-
* as `"md"` (default), `"json"` or `"
|
|
189
|
+
* as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
|
|
190
190
|
* declarative [`crate::convert`] entry point offers. `images` picks how
|
|
191
191
|
* cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
|
|
192
192
|
* like [`crate::convert`]. Resets the converter.
|
|
@@ -246,8 +246,9 @@ if (Symbol.dispose) ScannedConverter.prototype[Symbol.dispose] = ScannedConverte
|
|
|
246
246
|
/**
|
|
247
247
|
* Convert a document (as bytes + filename, the extension drives format
|
|
248
248
|
* detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
|
|
249
|
-
* `DoclingDocument` wire format, schema 1.10.0)
|
|
250
|
-
* DocLang XML serialization).
|
|
249
|
+
* `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
|
|
250
|
+
* DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
|
|
251
|
+
* #317).
|
|
251
252
|
*
|
|
252
253
|
* `images` controls how pictures render in Markdown — `"placeholder"`
|
|
253
254
|
* (default) or `"embedded"` (base64 data URIs), the same option
|
|
@@ -409,7 +410,7 @@ export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
|
|
|
409
410
|
export function __wbg__wbg_cb_unref_be22cc64ae6946a0(arg0) {
|
|
410
411
|
arg0._wbg_cb_unref();
|
|
411
412
|
}
|
|
412
|
-
export function
|
|
413
|
+
export function __wbg_bbox_b5a1f387fbeac229() { return handleError(function (arg0, arg1, arg2) {
|
|
413
414
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
414
415
|
return ret;
|
|
415
416
|
}, arguments); }
|
|
@@ -417,7 +418,7 @@ export function __wbg_call_35dba3c747ad7521() { return handleError(function (arg
|
|
|
417
418
|
const ret = arg0.call(arg1, arg2);
|
|
418
419
|
return ret;
|
|
419
420
|
}, arguments); }
|
|
420
|
-
export function
|
|
421
|
+
export function __wbg_encode_a7caca7145f4dcb4() { return handleError(function (arg0, arg1) {
|
|
421
422
|
const ret = arg0.encode(arg1);
|
|
422
423
|
return ret;
|
|
423
424
|
}, arguments); }
|
|
@@ -480,7 +481,7 @@ export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
|
|
|
480
481
|
const a = state0.a;
|
|
481
482
|
state0.a = 0;
|
|
482
483
|
try {
|
|
483
|
-
return
|
|
484
|
+
return wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
484
485
|
} finally {
|
|
485
486
|
state0.a = a;
|
|
486
487
|
}
|
|
@@ -505,11 +506,11 @@ export function __wbg_resolve_020f95d838c6ef25(arg0) {
|
|
|
505
506
|
const ret = Promise.resolve(arg0);
|
|
506
507
|
return ret;
|
|
507
508
|
}
|
|
508
|
-
export function
|
|
509
|
+
export function __wbg_run_48441979d4b2827e() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
509
510
|
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
510
511
|
return ret;
|
|
511
512
|
}, arguments); }
|
|
512
|
-
export function
|
|
513
|
+
export function __wbg_run_7e23d5da7a8aa9c0() { return handleError(function (arg0, arg1) {
|
|
513
514
|
const ret = arg0.run(arg1);
|
|
514
515
|
return ret;
|
|
515
516
|
}, arguments); }
|
|
@@ -536,7 +537,7 @@ export function __wbg_static_accessor_WINDOW_e0db14a0eba6a812() {
|
|
|
536
537
|
const ret = typeof window === 'undefined' ? null : window;
|
|
537
538
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
538
539
|
}
|
|
539
|
-
export function
|
|
540
|
+
export function __wbg_step_447cda5378d8963c() { return handleError(function (arg0, arg1) {
|
|
540
541
|
const ret = arg0.step(arg1);
|
|
541
542
|
return ret;
|
|
542
543
|
}, arguments); }
|
|
@@ -550,7 +551,7 @@ export function __wbg_then_72819b8d4e081fb5(arg0, arg1, arg2) {
|
|
|
550
551
|
}
|
|
551
552
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
552
553
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
553
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
554
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_);
|
|
554
555
|
return ret;
|
|
555
556
|
}
|
|
556
557
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
@@ -567,15 +568,15 @@ export function __wbindgen_init_externref_table() {
|
|
|
567
568
|
table.set(offset + 2, true);
|
|
568
569
|
table.set(offset + 3, false);
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
-
const ret = wasm.
|
|
571
|
+
function wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_(arg0, arg1, arg2) {
|
|
572
|
+
const ret = wasm.wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_(arg0, arg1, arg2);
|
|
572
573
|
if (ret[1]) {
|
|
573
574
|
throw takeFromExternrefTable0(ret[0]);
|
|
574
575
|
}
|
|
575
576
|
}
|
|
576
577
|
|
|
577
|
-
function
|
|
578
|
-
wasm.
|
|
578
|
+
function wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
579
|
+
wasm.wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
579
580
|
}
|
|
580
581
|
|
|
581
582
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
5
|
+
export const start: () => void;
|
|
6
|
+
export const supported_extensions: () => [number, number];
|
|
7
|
+
export const version: () => [number, number];
|
|
8
|
+
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
4
9
|
export const __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
5
10
|
export const __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
6
11
|
export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
@@ -15,13 +20,8 @@ export const scannedconverter_add_page: (a: number, b: number, c: number, d: num
|
|
|
15
20
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
16
21
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
17
22
|
export const scannedconverter_page_count: (a: number) => number;
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const supported_extensions: () => [number, number];
|
|
21
|
-
export const version: () => [number, number];
|
|
22
|
-
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
23
|
-
export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
-
export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
23
|
+
export const wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
+
export const wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docling.rs-wasm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "In-browser document conversion: DOCX, HTML, XLSX, PPTX, EPUB, Markdown, … and the text layer of PDFs → Markdown / docling JSON / DocLang, fully client-side (docling.rs compiled to WebAssembly)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/web/docling_wasm.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class DigitalConverter {
|
|
|
24
24
|
add_page(index: number, rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec?: any | null): Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Assemble the converted pages into a document and render it as `"md"`
|
|
27
|
-
* (default), `"json"` or `"
|
|
27
|
+
* (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
|
|
28
28
|
* render in Markdown. Resets the converter.
|
|
29
29
|
*/
|
|
30
30
|
finish(name: string, to?: string | null, images?: string | null): string;
|
|
@@ -70,7 +70,7 @@ export class ScannedConverter {
|
|
|
70
70
|
add_page(rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec: any): Promise<void>;
|
|
71
71
|
/**
|
|
72
72
|
* Assemble the accumulated pages into the final document and render it
|
|
73
|
-
* as `"md"` (default), `"json"` or `"
|
|
73
|
+
* as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
|
|
74
74
|
* declarative [`crate::convert`] entry point offers. `images` picks how
|
|
75
75
|
* cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
|
|
76
76
|
* like [`crate::convert`]. Resets the converter.
|
|
@@ -90,8 +90,9 @@ export class ScannedConverter {
|
|
|
90
90
|
/**
|
|
91
91
|
* Convert a document (as bytes + filename, the extension drives format
|
|
92
92
|
* detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
|
|
93
|
-
* `DoclingDocument` wire format, schema 1.10.0)
|
|
94
|
-
* DocLang XML serialization).
|
|
93
|
+
* `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
|
|
94
|
+
* DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
|
|
95
|
+
* #317).
|
|
95
96
|
*
|
|
96
97
|
* `images` controls how pictures render in Markdown — `"placeholder"`
|
|
97
98
|
* (default) or `"embedded"` (base64 data URIs), the same option
|
|
@@ -135,6 +136,11 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
135
136
|
|
|
136
137
|
export interface InitOutput {
|
|
137
138
|
readonly memory: WebAssembly.Memory;
|
|
139
|
+
readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
140
|
+
readonly start: () => void;
|
|
141
|
+
readonly supported_extensions: () => [number, number];
|
|
142
|
+
readonly version: () => [number, number];
|
|
143
|
+
readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
138
144
|
readonly __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
139
145
|
readonly __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
140
146
|
readonly convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
@@ -149,13 +155,8 @@ export interface InitOutput {
|
|
|
149
155
|
readonly scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
150
156
|
readonly scannedconverter_new: (a: number, b: number) => number;
|
|
151
157
|
readonly scannedconverter_page_count: (a: number) => number;
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly supported_extensions: () => [number, number];
|
|
155
|
-
readonly version: () => [number, number];
|
|
156
|
-
readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
157
|
-
readonly wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
158
|
-
readonly wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
158
|
+
readonly wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
159
|
+
readonly wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
159
160
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
160
161
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
161
162
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/web/docling_wasm.js
CHANGED
|
@@ -58,7 +58,7 @@ export class DigitalConverter {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Assemble the converted pages into a document and render it as `"md"`
|
|
61
|
-
* (default), `"json"` or `"
|
|
61
|
+
* (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
|
|
62
62
|
* render in Markdown. Resets the converter.
|
|
63
63
|
* @param {string} name
|
|
64
64
|
* @param {string | null} [to]
|
|
@@ -188,7 +188,7 @@ export class ScannedConverter {
|
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* Assemble the accumulated pages into the final document and render it
|
|
191
|
-
* as `"md"` (default), `"json"` or `"
|
|
191
|
+
* as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
|
|
192
192
|
* declarative [`crate::convert`] entry point offers. `images` picks how
|
|
193
193
|
* cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
|
|
194
194
|
* like [`crate::convert`]. Resets the converter.
|
|
@@ -248,8 +248,9 @@ if (Symbol.dispose) ScannedConverter.prototype[Symbol.dispose] = ScannedConverte
|
|
|
248
248
|
/**
|
|
249
249
|
* Convert a document (as bytes + filename, the extension drives format
|
|
250
250
|
* detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
|
|
251
|
-
* `DoclingDocument` wire format, schema 1.10.0)
|
|
252
|
-
* DocLang XML serialization).
|
|
251
|
+
* `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
|
|
252
|
+
* DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
|
|
253
|
+
* #317).
|
|
253
254
|
*
|
|
254
255
|
* `images` controls how pictures render in Markdown — `"placeholder"`
|
|
255
256
|
* (default) or `"embedded"` (base64 data URIs), the same option
|
|
@@ -414,7 +415,7 @@ function __wbg_get_imports() {
|
|
|
414
415
|
__wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
|
|
415
416
|
arg0._wbg_cb_unref();
|
|
416
417
|
},
|
|
417
|
-
|
|
418
|
+
__wbg_bbox_b5a1f387fbeac229: function() { return handleError(function (arg0, arg1, arg2) {
|
|
418
419
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
419
420
|
return ret;
|
|
420
421
|
}, arguments); },
|
|
@@ -422,7 +423,7 @@ function __wbg_get_imports() {
|
|
|
422
423
|
const ret = arg0.call(arg1, arg2);
|
|
423
424
|
return ret;
|
|
424
425
|
}, arguments); },
|
|
425
|
-
|
|
426
|
+
__wbg_encode_a7caca7145f4dcb4: function() { return handleError(function (arg0, arg1) {
|
|
426
427
|
const ret = arg0.encode(arg1);
|
|
427
428
|
return ret;
|
|
428
429
|
}, arguments); },
|
|
@@ -485,7 +486,7 @@ function __wbg_get_imports() {
|
|
|
485
486
|
const a = state0.a;
|
|
486
487
|
state0.a = 0;
|
|
487
488
|
try {
|
|
488
|
-
return
|
|
489
|
+
return wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
489
490
|
} finally {
|
|
490
491
|
state0.a = a;
|
|
491
492
|
}
|
|
@@ -510,11 +511,11 @@ function __wbg_get_imports() {
|
|
|
510
511
|
const ret = Promise.resolve(arg0);
|
|
511
512
|
return ret;
|
|
512
513
|
},
|
|
513
|
-
|
|
514
|
+
__wbg_run_48441979d4b2827e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
514
515
|
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
515
516
|
return ret;
|
|
516
517
|
}, arguments); },
|
|
517
|
-
|
|
518
|
+
__wbg_run_7e23d5da7a8aa9c0: function() { return handleError(function (arg0, arg1) {
|
|
518
519
|
const ret = arg0.run(arg1);
|
|
519
520
|
return ret;
|
|
520
521
|
}, arguments); },
|
|
@@ -541,7 +542,7 @@ function __wbg_get_imports() {
|
|
|
541
542
|
const ret = typeof window === 'undefined' ? null : window;
|
|
542
543
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
543
544
|
},
|
|
544
|
-
|
|
545
|
+
__wbg_step_447cda5378d8963c: function() { return handleError(function (arg0, arg1) {
|
|
545
546
|
const ret = arg0.step(arg1);
|
|
546
547
|
return ret;
|
|
547
548
|
}, arguments); },
|
|
@@ -555,7 +556,7 @@ function __wbg_get_imports() {
|
|
|
555
556
|
},
|
|
556
557
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
557
558
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
558
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
559
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_);
|
|
559
560
|
return ret;
|
|
560
561
|
},
|
|
561
562
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
@@ -579,15 +580,15 @@ function __wbg_get_imports() {
|
|
|
579
580
|
};
|
|
580
581
|
}
|
|
581
582
|
|
|
582
|
-
function
|
|
583
|
-
const ret = wasm.
|
|
583
|
+
function wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_(arg0, arg1, arg2) {
|
|
584
|
+
const ret = wasm.wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_(arg0, arg1, arg2);
|
|
584
585
|
if (ret[1]) {
|
|
585
586
|
throw takeFromExternrefTable0(ret[0]);
|
|
586
587
|
}
|
|
587
588
|
}
|
|
588
589
|
|
|
589
|
-
function
|
|
590
|
-
wasm.
|
|
590
|
+
function wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
591
|
+
wasm.wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
591
592
|
}
|
|
592
593
|
|
|
593
594
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/web/docling_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
5
|
+
export const start: () => void;
|
|
6
|
+
export const supported_extensions: () => [number, number];
|
|
7
|
+
export const version: () => [number, number];
|
|
8
|
+
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
4
9
|
export const __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
5
10
|
export const __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
6
11
|
export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
@@ -15,13 +20,8 @@ export const scannedconverter_add_page: (a: number, b: number, c: number, d: num
|
|
|
15
20
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
16
21
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
17
22
|
export const scannedconverter_page_count: (a: number) => number;
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const supported_extensions: () => [number, number];
|
|
21
|
-
export const version: () => [number, number];
|
|
22
|
-
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
23
|
-
export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
-
export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
23
|
+
export const wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___wasm_bindgen_e87ed3346704923c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_e87ed3346704923c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
24
|
+
export const wasm_bindgen_e87ed3346704923c___convert__closures_____invoke___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined___js_sys_f6996d6a15cb3bee___Function_fn_wasm_bindgen_e87ed3346704923c___JsValue_____wasm_bindgen_e87ed3346704923c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|