@kreuzberg/html-to-markdown-wasm 3.2.0 → 3.2.3
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/html_to_markdown_wasm.d.ts +116 -116
- package/dist/html_to_markdown_wasm_bg.js +777 -777
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/dist-node/html_to_markdown_wasm.d.ts +116 -116
- package/dist-node/html_to_markdown_wasm.js +814 -814
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/dist-web/html_to_markdown_wasm.d.ts +493 -493
- package/dist-web/html_to_markdown_wasm.js +777 -777
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}
|
|
9
9
|
*/
|
|
10
|
-
export const
|
|
10
|
+
export const WasmAnnotationKind = Object.freeze({
|
|
11
11
|
Bold: 0, "0": "Bold",
|
|
12
12
|
Italic: 1, "1": "Italic",
|
|
13
13
|
Underline: 2, "2": "Underline",
|
|
@@ -22,50 +22,50 @@ export const JsAnnotationKind = Object.freeze({
|
|
|
22
22
|
/**
|
|
23
23
|
* @enum {0 | 1 | 2}
|
|
24
24
|
*/
|
|
25
|
-
export const
|
|
25
|
+
export const WasmCodeBlockStyle = Object.freeze({
|
|
26
26
|
Indented: 0, "0": "Indented",
|
|
27
27
|
Backticks: 1, "1": "Backticks",
|
|
28
28
|
Tildes: 2, "2": "Tildes",
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export class
|
|
31
|
+
export class WasmConversionOptions {
|
|
32
32
|
static __wrap(ptr) {
|
|
33
33
|
ptr = ptr >>> 0;
|
|
34
|
-
const obj = Object.create(
|
|
34
|
+
const obj = Object.create(WasmConversionOptions.prototype);
|
|
35
35
|
obj.__wbg_ptr = ptr;
|
|
36
|
-
|
|
36
|
+
WasmConversionOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
37
37
|
return obj;
|
|
38
38
|
}
|
|
39
39
|
__destroy_into_raw() {
|
|
40
40
|
const ptr = this.__wbg_ptr;
|
|
41
41
|
this.__wbg_ptr = 0;
|
|
42
|
-
|
|
42
|
+
WasmConversionOptionsFinalization.unregister(this);
|
|
43
43
|
return ptr;
|
|
44
44
|
}
|
|
45
45
|
free() {
|
|
46
46
|
const ptr = this.__destroy_into_raw();
|
|
47
|
-
wasm.
|
|
47
|
+
wasm.__wbg_wasmconversionoptions_free(ptr, 0);
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* @returns {boolean}
|
|
51
51
|
*/
|
|
52
52
|
get autolinks() {
|
|
53
|
-
const ret = wasm.
|
|
53
|
+
const ret = wasm.wasmconversionoptions_autolinks(this.__wbg_ptr);
|
|
54
54
|
return ret !== 0;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* @returns {boolean}
|
|
58
58
|
*/
|
|
59
59
|
get brInTables() {
|
|
60
|
-
const ret = wasm.
|
|
60
|
+
const ret = wasm.wasmconversionoptions_brInTables(this.__wbg_ptr);
|
|
61
61
|
return ret !== 0;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* @returns {
|
|
64
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
65
65
|
*/
|
|
66
66
|
static builder() {
|
|
67
|
-
const ret = wasm.
|
|
68
|
-
return
|
|
67
|
+
const ret = wasm.wasmconversionoptions_builder();
|
|
68
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @returns {string}
|
|
@@ -75,7 +75,7 @@ export class JsConversionOptions {
|
|
|
75
75
|
let deferred1_1;
|
|
76
76
|
try {
|
|
77
77
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
78
|
-
wasm.
|
|
78
|
+
wasm.wasmconversionoptions_bullets(retptr, this.__wbg_ptr);
|
|
79
79
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
80
80
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
81
81
|
deferred1_0 = r0;
|
|
@@ -90,14 +90,14 @@ export class JsConversionOptions {
|
|
|
90
90
|
* @returns {boolean}
|
|
91
91
|
*/
|
|
92
92
|
get captureSvg() {
|
|
93
|
-
const ret = wasm.
|
|
93
|
+
const ret = wasm.wasmconversionoptions_captureSvg(this.__wbg_ptr);
|
|
94
94
|
return ret !== 0;
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* @returns {
|
|
97
|
+
* @returns {WasmCodeBlockStyle}
|
|
98
98
|
*/
|
|
99
99
|
get codeBlockStyle() {
|
|
100
|
-
const ret = wasm.
|
|
100
|
+
const ret = wasm.wasmconversionoptions_codeBlockStyle(this.__wbg_ptr);
|
|
101
101
|
return ret;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
@@ -108,7 +108,7 @@ export class JsConversionOptions {
|
|
|
108
108
|
let deferred1_1;
|
|
109
109
|
try {
|
|
110
110
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
111
|
-
wasm.
|
|
111
|
+
wasm.wasmconversionoptions_codeLanguage(retptr, this.__wbg_ptr);
|
|
112
112
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
113
113
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
114
114
|
deferred1_0 = r0;
|
|
@@ -123,28 +123,28 @@ export class JsConversionOptions {
|
|
|
123
123
|
* @returns {boolean}
|
|
124
124
|
*/
|
|
125
125
|
get convertAsInline() {
|
|
126
|
-
const ret = wasm.
|
|
126
|
+
const ret = wasm.wasmconversionoptions_convertAsInline(this.__wbg_ptr);
|
|
127
127
|
return ret !== 0;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
130
|
* @returns {boolean}
|
|
131
131
|
*/
|
|
132
132
|
get debug() {
|
|
133
|
-
const ret = wasm.
|
|
133
|
+
const ret = wasm.wasmconversionoptions_debug(this.__wbg_ptr);
|
|
134
134
|
return ret !== 0;
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
|
-
* @returns {
|
|
137
|
+
* @returns {WasmConversionOptions}
|
|
138
138
|
*/
|
|
139
139
|
static default() {
|
|
140
|
-
const ret = wasm.
|
|
141
|
-
return
|
|
140
|
+
const ret = wasm.wasmconversionoptions_default();
|
|
141
|
+
return WasmConversionOptions.__wrap(ret);
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* @returns {boolean}
|
|
145
145
|
*/
|
|
146
146
|
get defaultTitle() {
|
|
147
|
-
const ret = wasm.
|
|
147
|
+
const ret = wasm.wasmconversionoptions_defaultTitle(this.__wbg_ptr);
|
|
148
148
|
return ret !== 0;
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
@@ -155,7 +155,7 @@ export class JsConversionOptions {
|
|
|
155
155
|
let deferred1_1;
|
|
156
156
|
try {
|
|
157
157
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
158
|
-
wasm.
|
|
158
|
+
wasm.wasmconversionoptions_encoding(retptr, this.__wbg_ptr);
|
|
159
159
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
160
160
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
161
161
|
deferred1_0 = r0;
|
|
@@ -170,70 +170,70 @@ export class JsConversionOptions {
|
|
|
170
170
|
* @returns {boolean}
|
|
171
171
|
*/
|
|
172
172
|
get escapeAscii() {
|
|
173
|
-
const ret = wasm.
|
|
173
|
+
const ret = wasm.wasmconversionoptions_escapeAscii(this.__wbg_ptr);
|
|
174
174
|
return ret !== 0;
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
* @returns {boolean}
|
|
178
178
|
*/
|
|
179
179
|
get escapeAsterisks() {
|
|
180
|
-
const ret = wasm.
|
|
180
|
+
const ret = wasm.wasmconversionoptions_escapeAsterisks(this.__wbg_ptr);
|
|
181
181
|
return ret !== 0;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* @returns {boolean}
|
|
185
185
|
*/
|
|
186
186
|
get escapeMisc() {
|
|
187
|
-
const ret = wasm.
|
|
187
|
+
const ret = wasm.wasmconversionoptions_escapeMisc(this.__wbg_ptr);
|
|
188
188
|
return ret !== 0;
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* @returns {boolean}
|
|
192
192
|
*/
|
|
193
193
|
get escapeUnderscores() {
|
|
194
|
-
const ret = wasm.
|
|
194
|
+
const ret = wasm.wasmconversionoptions_escapeUnderscores(this.__wbg_ptr);
|
|
195
195
|
return ret !== 0;
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
* @returns {boolean}
|
|
199
199
|
*/
|
|
200
200
|
get extractImages() {
|
|
201
|
-
const ret = wasm.
|
|
201
|
+
const ret = wasm.wasmconversionoptions_extractImages(this.__wbg_ptr);
|
|
202
202
|
return ret !== 0;
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* @returns {boolean}
|
|
206
206
|
*/
|
|
207
207
|
get extractMetadata() {
|
|
208
|
-
const ret = wasm.
|
|
208
|
+
const ret = wasm.wasmconversionoptions_extractMetadata(this.__wbg_ptr);
|
|
209
209
|
return ret !== 0;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
* @returns {
|
|
212
|
+
* @returns {WasmHeadingStyle}
|
|
213
213
|
*/
|
|
214
214
|
get headingStyle() {
|
|
215
|
-
const ret = wasm.
|
|
215
|
+
const ret = wasm.wasmconversionoptions_headingStyle(this.__wbg_ptr);
|
|
216
216
|
return ret;
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
|
-
* @returns {
|
|
219
|
+
* @returns {WasmHighlightStyle}
|
|
220
220
|
*/
|
|
221
221
|
get highlightStyle() {
|
|
222
|
-
const ret = wasm.
|
|
222
|
+
const ret = wasm.wasmconversionoptions_highlightStyle(this.__wbg_ptr);
|
|
223
223
|
return ret;
|
|
224
224
|
}
|
|
225
225
|
/**
|
|
226
226
|
* @returns {boolean}
|
|
227
227
|
*/
|
|
228
228
|
get includeDocumentStructure() {
|
|
229
|
-
const ret = wasm.
|
|
229
|
+
const ret = wasm.wasmconversionoptions_includeDocumentStructure(this.__wbg_ptr);
|
|
230
230
|
return ret !== 0;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
233
|
* @returns {boolean}
|
|
234
234
|
*/
|
|
235
235
|
get inferDimensions() {
|
|
236
|
-
const ret = wasm.
|
|
236
|
+
const ret = wasm.wasmconversionoptions_inferDimensions(this.__wbg_ptr);
|
|
237
237
|
return ret !== 0;
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
@@ -242,7 +242,7 @@ export class JsConversionOptions {
|
|
|
242
242
|
get keepInlineImagesIn() {
|
|
243
243
|
try {
|
|
244
244
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
245
|
-
wasm.
|
|
245
|
+
wasm.wasmconversionoptions_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
246
246
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
247
247
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
248
248
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -253,36 +253,36 @@ export class JsConversionOptions {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
* @returns {
|
|
256
|
+
* @returns {WasmLinkStyle}
|
|
257
257
|
*/
|
|
258
258
|
get linkStyle() {
|
|
259
|
-
const ret = wasm.
|
|
259
|
+
const ret = wasm.wasmconversionoptions_linkStyle(this.__wbg_ptr);
|
|
260
260
|
return ret;
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
|
-
* @returns {
|
|
263
|
+
* @returns {WasmListIndentType}
|
|
264
264
|
*/
|
|
265
265
|
get listIndentType() {
|
|
266
|
-
const ret = wasm.
|
|
266
|
+
const ret = wasm.wasmconversionoptions_listIndentType(this.__wbg_ptr);
|
|
267
267
|
return ret;
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* @returns {number}
|
|
271
271
|
*/
|
|
272
272
|
get listIndentWidth() {
|
|
273
|
-
const ret = wasm.
|
|
273
|
+
const ret = wasm.wasmconversionoptions_listIndentWidth(this.__wbg_ptr);
|
|
274
274
|
return ret >>> 0;
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* @returns {bigint}
|
|
278
278
|
*/
|
|
279
279
|
get maxImageSize() {
|
|
280
|
-
const ret = wasm.
|
|
280
|
+
const ret = wasm.wasmconversionoptions_maxImageSize(this.__wbg_ptr);
|
|
281
281
|
return BigInt.asUintN(64, ret);
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
|
-
* @param {
|
|
285
|
-
* @param {
|
|
284
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
285
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
286
286
|
* @param {number | null} [list_indent_width]
|
|
287
287
|
* @param {string | null} [bullets]
|
|
288
288
|
* @param {string | null} [strong_em_symbol]
|
|
@@ -294,26 +294,26 @@ export class JsConversionOptions {
|
|
|
294
294
|
* @param {boolean | null} [autolinks]
|
|
295
295
|
* @param {boolean | null} [default_title]
|
|
296
296
|
* @param {boolean | null} [br_in_tables]
|
|
297
|
-
* @param {
|
|
297
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
298
298
|
* @param {boolean | null} [extract_metadata]
|
|
299
|
-
* @param {
|
|
299
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
300
300
|
* @param {boolean | null} [strip_newlines]
|
|
301
301
|
* @param {boolean | null} [wrap]
|
|
302
302
|
* @param {number | null} [wrap_width]
|
|
303
303
|
* @param {boolean | null} [convert_as_inline]
|
|
304
304
|
* @param {string | null} [sub_symbol]
|
|
305
305
|
* @param {string | null} [sup_symbol]
|
|
306
|
-
* @param {
|
|
307
|
-
* @param {
|
|
306
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
307
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
308
308
|
* @param {string[] | null} [keep_inline_images_in]
|
|
309
|
-
* @param {
|
|
309
|
+
* @param {WasmPreprocessingOptions | null} [preprocessing]
|
|
310
310
|
* @param {string | null} [encoding]
|
|
311
311
|
* @param {boolean | null} [debug]
|
|
312
312
|
* @param {string[] | null} [strip_tags]
|
|
313
313
|
* @param {string[] | null} [preserve_tags]
|
|
314
314
|
* @param {boolean | null} [skip_images]
|
|
315
|
-
* @param {
|
|
316
|
-
* @param {
|
|
315
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
316
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
317
317
|
* @param {boolean | null} [include_document_structure]
|
|
318
318
|
* @param {boolean | null} [extract_images]
|
|
319
319
|
* @param {bigint | null} [max_image_size]
|
|
@@ -335,7 +335,7 @@ export class JsConversionOptions {
|
|
|
335
335
|
var len5 = WASM_VECTOR_LEN;
|
|
336
336
|
let ptr6 = 0;
|
|
337
337
|
if (!isLikeNone(preprocessing)) {
|
|
338
|
-
_assertClass(preprocessing,
|
|
338
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
339
339
|
ptr6 = preprocessing.__destroy_into_raw();
|
|
340
340
|
}
|
|
341
341
|
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -344,31 +344,31 @@ export class JsConversionOptions {
|
|
|
344
344
|
var len8 = WASM_VECTOR_LEN;
|
|
345
345
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
346
346
|
var len9 = WASM_VECTOR_LEN;
|
|
347
|
-
const ret = wasm.
|
|
347
|
+
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? 0x100000001 : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0);
|
|
348
348
|
this.__wbg_ptr = ret >>> 0;
|
|
349
|
-
|
|
349
|
+
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
350
350
|
return this;
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
|
-
* @returns {
|
|
353
|
+
* @returns {WasmNewlineStyle}
|
|
354
354
|
*/
|
|
355
355
|
get newlineStyle() {
|
|
356
|
-
const ret = wasm.
|
|
356
|
+
const ret = wasm.wasmconversionoptions_newlineStyle(this.__wbg_ptr);
|
|
357
357
|
return ret;
|
|
358
358
|
}
|
|
359
359
|
/**
|
|
360
|
-
* @returns {
|
|
360
|
+
* @returns {WasmOutputFormat}
|
|
361
361
|
*/
|
|
362
362
|
get outputFormat() {
|
|
363
|
-
const ret = wasm.
|
|
363
|
+
const ret = wasm.wasmconversionoptions_outputFormat(this.__wbg_ptr);
|
|
364
364
|
return ret;
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
|
-
* @returns {
|
|
367
|
+
* @returns {WasmPreprocessingOptions}
|
|
368
368
|
*/
|
|
369
369
|
get preprocessing() {
|
|
370
|
-
const ret = wasm.
|
|
371
|
-
return
|
|
370
|
+
const ret = wasm.wasmconversionoptions_preprocessing(this.__wbg_ptr);
|
|
371
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* @returns {string[]}
|
|
@@ -376,7 +376,7 @@ export class JsConversionOptions {
|
|
|
376
376
|
get preserveTags() {
|
|
377
377
|
try {
|
|
378
378
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
379
|
-
wasm.
|
|
379
|
+
wasm.wasmconversionoptions_preserveTags(retptr, this.__wbg_ptr);
|
|
380
380
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
381
381
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
382
382
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -390,13 +390,13 @@ export class JsConversionOptions {
|
|
|
390
390
|
* @param {boolean} value
|
|
391
391
|
*/
|
|
392
392
|
set autolinks(value) {
|
|
393
|
-
wasm.
|
|
393
|
+
wasm.wasmconversionoptions_set_autolinks(this.__wbg_ptr, value);
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* @param {boolean} value
|
|
397
397
|
*/
|
|
398
398
|
set brInTables(value) {
|
|
399
|
-
wasm.
|
|
399
|
+
wasm.wasmconversionoptions_set_brInTables(this.__wbg_ptr, value);
|
|
400
400
|
}
|
|
401
401
|
/**
|
|
402
402
|
* @param {string} value
|
|
@@ -404,19 +404,19 @@ export class JsConversionOptions {
|
|
|
404
404
|
set bullets(value) {
|
|
405
405
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
406
406
|
const len0 = WASM_VECTOR_LEN;
|
|
407
|
-
wasm.
|
|
407
|
+
wasm.wasmconversionoptions_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
410
|
* @param {boolean} value
|
|
411
411
|
*/
|
|
412
412
|
set captureSvg(value) {
|
|
413
|
-
wasm.
|
|
413
|
+
wasm.wasmconversionoptions_set_captureSvg(this.__wbg_ptr, value);
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
|
-
* @param {
|
|
416
|
+
* @param {WasmCodeBlockStyle} value
|
|
417
417
|
*/
|
|
418
418
|
set codeBlockStyle(value) {
|
|
419
|
-
wasm.
|
|
419
|
+
wasm.wasmconversionoptions_set_codeBlockStyle(this.__wbg_ptr, value);
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* @param {string} value
|
|
@@ -424,25 +424,25 @@ export class JsConversionOptions {
|
|
|
424
424
|
set codeLanguage(value) {
|
|
425
425
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
426
426
|
const len0 = WASM_VECTOR_LEN;
|
|
427
|
-
wasm.
|
|
427
|
+
wasm.wasmconversionoptions_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* @param {boolean} value
|
|
431
431
|
*/
|
|
432
432
|
set convertAsInline(value) {
|
|
433
|
-
wasm.
|
|
433
|
+
wasm.wasmconversionoptions_set_convertAsInline(this.__wbg_ptr, value);
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @param {boolean} value
|
|
437
437
|
*/
|
|
438
438
|
set debug(value) {
|
|
439
|
-
wasm.
|
|
439
|
+
wasm.wasmconversionoptions_set_debug(this.__wbg_ptr, value);
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* @param {boolean} value
|
|
443
443
|
*/
|
|
444
444
|
set defaultTitle(value) {
|
|
445
|
-
wasm.
|
|
445
|
+
wasm.wasmconversionoptions_set_defaultTitle(this.__wbg_ptr, value);
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* @param {string} value
|
|
@@ -450,67 +450,67 @@ export class JsConversionOptions {
|
|
|
450
450
|
set encoding(value) {
|
|
451
451
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
452
452
|
const len0 = WASM_VECTOR_LEN;
|
|
453
|
-
wasm.
|
|
453
|
+
wasm.wasmconversionoptions_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @param {boolean} value
|
|
457
457
|
*/
|
|
458
458
|
set escapeAscii(value) {
|
|
459
|
-
wasm.
|
|
459
|
+
wasm.wasmconversionoptions_set_escapeAscii(this.__wbg_ptr, value);
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @param {boolean} value
|
|
463
463
|
*/
|
|
464
464
|
set escapeAsterisks(value) {
|
|
465
|
-
wasm.
|
|
465
|
+
wasm.wasmconversionoptions_set_escapeAsterisks(this.__wbg_ptr, value);
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* @param {boolean} value
|
|
469
469
|
*/
|
|
470
470
|
set escapeMisc(value) {
|
|
471
|
-
wasm.
|
|
471
|
+
wasm.wasmconversionoptions_set_escapeMisc(this.__wbg_ptr, value);
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
474
|
* @param {boolean} value
|
|
475
475
|
*/
|
|
476
476
|
set escapeUnderscores(value) {
|
|
477
|
-
wasm.
|
|
477
|
+
wasm.wasmconversionoptions_set_escapeUnderscores(this.__wbg_ptr, value);
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @param {boolean} value
|
|
481
481
|
*/
|
|
482
482
|
set extractImages(value) {
|
|
483
|
-
wasm.
|
|
483
|
+
wasm.wasmconversionoptions_set_extractImages(this.__wbg_ptr, value);
|
|
484
484
|
}
|
|
485
485
|
/**
|
|
486
486
|
* @param {boolean} value
|
|
487
487
|
*/
|
|
488
488
|
set extractMetadata(value) {
|
|
489
|
-
wasm.
|
|
489
|
+
wasm.wasmconversionoptions_set_extractMetadata(this.__wbg_ptr, value);
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* @param {
|
|
492
|
+
* @param {WasmHeadingStyle} value
|
|
493
493
|
*/
|
|
494
494
|
set headingStyle(value) {
|
|
495
|
-
wasm.
|
|
495
|
+
wasm.wasmconversionoptions_set_headingStyle(this.__wbg_ptr, value);
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
|
-
* @param {
|
|
498
|
+
* @param {WasmHighlightStyle} value
|
|
499
499
|
*/
|
|
500
500
|
set highlightStyle(value) {
|
|
501
|
-
wasm.
|
|
501
|
+
wasm.wasmconversionoptions_set_highlightStyle(this.__wbg_ptr, value);
|
|
502
502
|
}
|
|
503
503
|
/**
|
|
504
504
|
* @param {boolean} value
|
|
505
505
|
*/
|
|
506
506
|
set includeDocumentStructure(value) {
|
|
507
|
-
wasm.
|
|
507
|
+
wasm.wasmconversionoptions_set_includeDocumentStructure(this.__wbg_ptr, value);
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* @param {boolean} value
|
|
511
511
|
*/
|
|
512
512
|
set inferDimensions(value) {
|
|
513
|
-
wasm.
|
|
513
|
+
wasm.wasmconversionoptions_set_inferDimensions(this.__wbg_ptr, value);
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
516
|
* @param {string[]} value
|
|
@@ -518,51 +518,51 @@ export class JsConversionOptions {
|
|
|
518
518
|
set keepInlineImagesIn(value) {
|
|
519
519
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
520
520
|
const len0 = WASM_VECTOR_LEN;
|
|
521
|
-
wasm.
|
|
521
|
+
wasm.wasmconversionoptions_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
-
* @param {
|
|
524
|
+
* @param {WasmLinkStyle} value
|
|
525
525
|
*/
|
|
526
526
|
set linkStyle(value) {
|
|
527
|
-
wasm.
|
|
527
|
+
wasm.wasmconversionoptions_set_linkStyle(this.__wbg_ptr, value);
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
|
-
* @param {
|
|
530
|
+
* @param {WasmListIndentType} value
|
|
531
531
|
*/
|
|
532
532
|
set listIndentType(value) {
|
|
533
|
-
wasm.
|
|
533
|
+
wasm.wasmconversionoptions_set_listIndentType(this.__wbg_ptr, value);
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
536
536
|
* @param {number} value
|
|
537
537
|
*/
|
|
538
538
|
set listIndentWidth(value) {
|
|
539
|
-
wasm.
|
|
539
|
+
wasm.wasmconversionoptions_set_listIndentWidth(this.__wbg_ptr, value);
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
542
542
|
* @param {bigint} value
|
|
543
543
|
*/
|
|
544
544
|
set maxImageSize(value) {
|
|
545
|
-
wasm.
|
|
545
|
+
wasm.wasmconversionoptions_set_maxImageSize(this.__wbg_ptr, value);
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
|
-
* @param {
|
|
548
|
+
* @param {WasmNewlineStyle} value
|
|
549
549
|
*/
|
|
550
550
|
set newlineStyle(value) {
|
|
551
|
-
wasm.
|
|
551
|
+
wasm.wasmconversionoptions_set_newlineStyle(this.__wbg_ptr, value);
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
|
-
* @param {
|
|
554
|
+
* @param {WasmOutputFormat} value
|
|
555
555
|
*/
|
|
556
556
|
set outputFormat(value) {
|
|
557
|
-
wasm.
|
|
557
|
+
wasm.wasmconversionoptions_set_outputFormat(this.__wbg_ptr, value);
|
|
558
558
|
}
|
|
559
559
|
/**
|
|
560
|
-
* @param {
|
|
560
|
+
* @param {WasmPreprocessingOptions} value
|
|
561
561
|
*/
|
|
562
562
|
set preprocessing(value) {
|
|
563
|
-
_assertClass(value,
|
|
563
|
+
_assertClass(value, WasmPreprocessingOptions);
|
|
564
564
|
var ptr0 = value.__destroy_into_raw();
|
|
565
|
-
wasm.
|
|
565
|
+
wasm.wasmconversionoptions_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
566
566
|
}
|
|
567
567
|
/**
|
|
568
568
|
* @param {string[]} value
|
|
@@ -570,19 +570,19 @@ export class JsConversionOptions {
|
|
|
570
570
|
set preserveTags(value) {
|
|
571
571
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
572
572
|
const len0 = WASM_VECTOR_LEN;
|
|
573
|
-
wasm.
|
|
573
|
+
wasm.wasmconversionoptions_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
574
574
|
}
|
|
575
575
|
/**
|
|
576
576
|
* @param {boolean} value
|
|
577
577
|
*/
|
|
578
578
|
set skipImages(value) {
|
|
579
|
-
wasm.
|
|
579
|
+
wasm.wasmconversionoptions_set_skipImages(this.__wbg_ptr, value);
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* @param {boolean} value
|
|
583
583
|
*/
|
|
584
584
|
set stripNewlines(value) {
|
|
585
|
-
wasm.
|
|
585
|
+
wasm.wasmconversionoptions_set_stripNewlines(this.__wbg_ptr, value);
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
588
|
* @param {string[]} value
|
|
@@ -590,7 +590,7 @@ export class JsConversionOptions {
|
|
|
590
590
|
set stripTags(value) {
|
|
591
591
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
592
592
|
const len0 = WASM_VECTOR_LEN;
|
|
593
|
-
wasm.
|
|
593
|
+
wasm.wasmconversionoptions_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
594
594
|
}
|
|
595
595
|
/**
|
|
596
596
|
* @param {string} value
|
|
@@ -598,7 +598,7 @@ export class JsConversionOptions {
|
|
|
598
598
|
set strongEmSymbol(value) {
|
|
599
599
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
600
600
|
const len0 = WASM_VECTOR_LEN;
|
|
601
|
-
wasm.
|
|
601
|
+
wasm.wasmconversionoptions_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
602
602
|
}
|
|
603
603
|
/**
|
|
604
604
|
* @param {string} value
|
|
@@ -606,7 +606,7 @@ export class JsConversionOptions {
|
|
|
606
606
|
set subSymbol(value) {
|
|
607
607
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
608
608
|
const len0 = WASM_VECTOR_LEN;
|
|
609
|
-
wasm.
|
|
609
|
+
wasm.wasmconversionoptions_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
612
612
|
* @param {string} value
|
|
@@ -614,38 +614,38 @@ export class JsConversionOptions {
|
|
|
614
614
|
set supSymbol(value) {
|
|
615
615
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
616
616
|
const len0 = WASM_VECTOR_LEN;
|
|
617
|
-
wasm.
|
|
617
|
+
wasm.wasmconversionoptions_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
|
-
* @param {
|
|
620
|
+
* @param {WasmWhitespaceMode} value
|
|
621
621
|
*/
|
|
622
622
|
set whitespaceMode(value) {
|
|
623
|
-
wasm.
|
|
623
|
+
wasm.wasmconversionoptions_set_whitespaceMode(this.__wbg_ptr, value);
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @param {boolean} value
|
|
627
627
|
*/
|
|
628
628
|
set wrap(value) {
|
|
629
|
-
wasm.
|
|
629
|
+
wasm.wasmconversionoptions_set_wrap(this.__wbg_ptr, value);
|
|
630
630
|
}
|
|
631
631
|
/**
|
|
632
632
|
* @param {number} value
|
|
633
633
|
*/
|
|
634
634
|
set wrapWidth(value) {
|
|
635
|
-
wasm.
|
|
635
|
+
wasm.wasmconversionoptions_set_wrapWidth(this.__wbg_ptr, value);
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
638
638
|
* @returns {boolean}
|
|
639
639
|
*/
|
|
640
640
|
get skipImages() {
|
|
641
|
-
const ret = wasm.
|
|
641
|
+
const ret = wasm.wasmconversionoptions_skipImages(this.__wbg_ptr);
|
|
642
642
|
return ret !== 0;
|
|
643
643
|
}
|
|
644
644
|
/**
|
|
645
645
|
* @returns {boolean}
|
|
646
646
|
*/
|
|
647
647
|
get stripNewlines() {
|
|
648
|
-
const ret = wasm.
|
|
648
|
+
const ret = wasm.wasmconversionoptions_stripNewlines(this.__wbg_ptr);
|
|
649
649
|
return ret !== 0;
|
|
650
650
|
}
|
|
651
651
|
/**
|
|
@@ -654,7 +654,7 @@ export class JsConversionOptions {
|
|
|
654
654
|
get stripTags() {
|
|
655
655
|
try {
|
|
656
656
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
657
|
-
wasm.
|
|
657
|
+
wasm.wasmconversionoptions_stripTags(retptr, this.__wbg_ptr);
|
|
658
658
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
659
659
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
660
660
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -672,7 +672,7 @@ export class JsConversionOptions {
|
|
|
672
672
|
let deferred1_1;
|
|
673
673
|
try {
|
|
674
674
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
675
|
-
wasm.
|
|
675
|
+
wasm.wasmconversionoptions_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
676
676
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
677
677
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
678
678
|
deferred1_0 = r0;
|
|
@@ -691,7 +691,7 @@ export class JsConversionOptions {
|
|
|
691
691
|
let deferred1_1;
|
|
692
692
|
try {
|
|
693
693
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
694
|
-
wasm.
|
|
694
|
+
wasm.wasmconversionoptions_subSymbol(retptr, this.__wbg_ptr);
|
|
695
695
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
696
696
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
697
697
|
deferred1_0 = r0;
|
|
@@ -710,7 +710,7 @@ export class JsConversionOptions {
|
|
|
710
710
|
let deferred1_1;
|
|
711
711
|
try {
|
|
712
712
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
713
|
-
wasm.
|
|
713
|
+
wasm.wasmconversionoptions_supSymbol(retptr, this.__wbg_ptr);
|
|
714
714
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
715
715
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
716
716
|
deferred1_0 = r0;
|
|
@@ -722,120 +722,120 @@ export class JsConversionOptions {
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
/**
|
|
725
|
-
* @returns {
|
|
725
|
+
* @returns {WasmWhitespaceMode}
|
|
726
726
|
*/
|
|
727
727
|
get whitespaceMode() {
|
|
728
|
-
const ret = wasm.
|
|
728
|
+
const ret = wasm.wasmconversionoptions_whitespaceMode(this.__wbg_ptr);
|
|
729
729
|
return ret;
|
|
730
730
|
}
|
|
731
731
|
/**
|
|
732
732
|
* @returns {boolean}
|
|
733
733
|
*/
|
|
734
734
|
get wrap() {
|
|
735
|
-
const ret = wasm.
|
|
735
|
+
const ret = wasm.wasmconversionoptions_wrap(this.__wbg_ptr);
|
|
736
736
|
return ret !== 0;
|
|
737
737
|
}
|
|
738
738
|
/**
|
|
739
739
|
* @returns {number}
|
|
740
740
|
*/
|
|
741
741
|
get wrapWidth() {
|
|
742
|
-
const ret = wasm.
|
|
742
|
+
const ret = wasm.wasmconversionoptions_wrapWidth(this.__wbg_ptr);
|
|
743
743
|
return ret >>> 0;
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
if (Symbol.dispose)
|
|
746
|
+
if (Symbol.dispose) WasmConversionOptions.prototype[Symbol.dispose] = WasmConversionOptions.prototype.free;
|
|
747
747
|
|
|
748
|
-
export class
|
|
748
|
+
export class WasmConversionOptionsBuilder {
|
|
749
749
|
static __wrap(ptr) {
|
|
750
750
|
ptr = ptr >>> 0;
|
|
751
|
-
const obj = Object.create(
|
|
751
|
+
const obj = Object.create(WasmConversionOptionsBuilder.prototype);
|
|
752
752
|
obj.__wbg_ptr = ptr;
|
|
753
|
-
|
|
753
|
+
WasmConversionOptionsBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
754
754
|
return obj;
|
|
755
755
|
}
|
|
756
756
|
__destroy_into_raw() {
|
|
757
757
|
const ptr = this.__wbg_ptr;
|
|
758
758
|
this.__wbg_ptr = 0;
|
|
759
|
-
|
|
759
|
+
WasmConversionOptionsBuilderFinalization.unregister(this);
|
|
760
760
|
return ptr;
|
|
761
761
|
}
|
|
762
762
|
free() {
|
|
763
763
|
const ptr = this.__destroy_into_raw();
|
|
764
|
-
wasm.
|
|
764
|
+
wasm.__wbg_wasmconversionoptionsbuilder_free(ptr, 0);
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
767
|
-
* @returns {
|
|
767
|
+
* @returns {WasmConversionOptions}
|
|
768
768
|
*/
|
|
769
769
|
build() {
|
|
770
|
-
const ret = wasm.
|
|
771
|
-
return
|
|
770
|
+
const ret = wasm.wasmconversionoptionsbuilder_build(this.__wbg_ptr);
|
|
771
|
+
return WasmConversionOptions.__wrap(ret);
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* @param {string[]} tags
|
|
775
|
-
* @returns {
|
|
775
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
776
776
|
*/
|
|
777
777
|
keepInlineImagesIn(tags) {
|
|
778
778
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
779
779
|
const len0 = WASM_VECTOR_LEN;
|
|
780
|
-
const ret = wasm.
|
|
781
|
-
return
|
|
780
|
+
const ret = wasm.wasmconversionoptionsbuilder_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
781
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
782
782
|
}
|
|
783
783
|
/**
|
|
784
|
-
* @param {
|
|
785
|
-
* @returns {
|
|
784
|
+
* @param {WasmPreprocessingOptions} preprocessing
|
|
785
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
786
786
|
*/
|
|
787
787
|
preprocessing(preprocessing) {
|
|
788
|
-
_assertClass(preprocessing,
|
|
788
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
789
789
|
var ptr0 = preprocessing.__destroy_into_raw();
|
|
790
|
-
const ret = wasm.
|
|
791
|
-
return
|
|
790
|
+
const ret = wasm.wasmconversionoptionsbuilder_preprocessing(this.__wbg_ptr, ptr0);
|
|
791
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
792
792
|
}
|
|
793
793
|
/**
|
|
794
794
|
* @param {string[]} tags
|
|
795
|
-
* @returns {
|
|
795
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
796
796
|
*/
|
|
797
797
|
preserveTags(tags) {
|
|
798
798
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
799
799
|
const len0 = WASM_VECTOR_LEN;
|
|
800
|
-
const ret = wasm.
|
|
801
|
-
return
|
|
800
|
+
const ret = wasm.wasmconversionoptionsbuilder_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
801
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
802
802
|
}
|
|
803
803
|
/**
|
|
804
804
|
* @param {string[]} tags
|
|
805
|
-
* @returns {
|
|
805
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
806
806
|
*/
|
|
807
807
|
stripTags(tags) {
|
|
808
808
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
809
809
|
const len0 = WASM_VECTOR_LEN;
|
|
810
|
-
const ret = wasm.
|
|
811
|
-
return
|
|
810
|
+
const ret = wasm.wasmconversionoptionsbuilder_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
811
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
if (Symbol.dispose)
|
|
814
|
+
if (Symbol.dispose) WasmConversionOptionsBuilder.prototype[Symbol.dispose] = WasmConversionOptionsBuilder.prototype.free;
|
|
815
815
|
|
|
816
|
-
export class
|
|
816
|
+
export class WasmConversionOptionsUpdate {
|
|
817
817
|
__destroy_into_raw() {
|
|
818
818
|
const ptr = this.__wbg_ptr;
|
|
819
819
|
this.__wbg_ptr = 0;
|
|
820
|
-
|
|
820
|
+
WasmConversionOptionsUpdateFinalization.unregister(this);
|
|
821
821
|
return ptr;
|
|
822
822
|
}
|
|
823
823
|
free() {
|
|
824
824
|
const ptr = this.__destroy_into_raw();
|
|
825
|
-
wasm.
|
|
825
|
+
wasm.__wbg_wasmconversionoptionsupdate_free(ptr, 0);
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
828
828
|
* @returns {boolean | undefined}
|
|
829
829
|
*/
|
|
830
830
|
get autolinks() {
|
|
831
|
-
const ret = wasm.
|
|
831
|
+
const ret = wasm.wasmconversionoptionsupdate_autolinks(this.__wbg_ptr);
|
|
832
832
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
833
833
|
}
|
|
834
834
|
/**
|
|
835
835
|
* @returns {boolean | undefined}
|
|
836
836
|
*/
|
|
837
837
|
get brInTables() {
|
|
838
|
-
const ret = wasm.
|
|
838
|
+
const ret = wasm.wasmconversionoptionsupdate_brInTables(this.__wbg_ptr);
|
|
839
839
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
@@ -844,7 +844,7 @@ export class JsConversionOptionsUpdate {
|
|
|
844
844
|
get bullets() {
|
|
845
845
|
try {
|
|
846
846
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
847
|
-
wasm.
|
|
847
|
+
wasm.wasmconversionoptionsupdate_bullets(retptr, this.__wbg_ptr);
|
|
848
848
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
849
849
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
850
850
|
let v1;
|
|
@@ -861,14 +861,14 @@ export class JsConversionOptionsUpdate {
|
|
|
861
861
|
* @returns {boolean | undefined}
|
|
862
862
|
*/
|
|
863
863
|
get captureSvg() {
|
|
864
|
-
const ret = wasm.
|
|
864
|
+
const ret = wasm.wasmconversionoptionsupdate_captureSvg(this.__wbg_ptr);
|
|
865
865
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
866
866
|
}
|
|
867
867
|
/**
|
|
868
|
-
* @returns {
|
|
868
|
+
* @returns {WasmCodeBlockStyle | undefined}
|
|
869
869
|
*/
|
|
870
870
|
get codeBlockStyle() {
|
|
871
|
-
const ret = wasm.
|
|
871
|
+
const ret = wasm.wasmconversionoptionsupdate_codeBlockStyle(this.__wbg_ptr);
|
|
872
872
|
return ret === 3 ? undefined : ret;
|
|
873
873
|
}
|
|
874
874
|
/**
|
|
@@ -877,7 +877,7 @@ export class JsConversionOptionsUpdate {
|
|
|
877
877
|
get codeLanguage() {
|
|
878
878
|
try {
|
|
879
879
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
880
|
-
wasm.
|
|
880
|
+
wasm.wasmconversionoptionsupdate_codeLanguage(retptr, this.__wbg_ptr);
|
|
881
881
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
882
882
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
883
883
|
let v1;
|
|
@@ -894,21 +894,21 @@ export class JsConversionOptionsUpdate {
|
|
|
894
894
|
* @returns {boolean | undefined}
|
|
895
895
|
*/
|
|
896
896
|
get convertAsInline() {
|
|
897
|
-
const ret = wasm.
|
|
897
|
+
const ret = wasm.wasmconversionoptionsupdate_convertAsInline(this.__wbg_ptr);
|
|
898
898
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
899
899
|
}
|
|
900
900
|
/**
|
|
901
901
|
* @returns {boolean | undefined}
|
|
902
902
|
*/
|
|
903
903
|
get debug() {
|
|
904
|
-
const ret = wasm.
|
|
904
|
+
const ret = wasm.wasmconversionoptionsupdate_debug(this.__wbg_ptr);
|
|
905
905
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
906
906
|
}
|
|
907
907
|
/**
|
|
908
908
|
* @returns {boolean | undefined}
|
|
909
909
|
*/
|
|
910
910
|
get defaultTitle() {
|
|
911
|
-
const ret = wasm.
|
|
911
|
+
const ret = wasm.wasmconversionoptionsupdate_defaultTitle(this.__wbg_ptr);
|
|
912
912
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
913
913
|
}
|
|
914
914
|
/**
|
|
@@ -917,7 +917,7 @@ export class JsConversionOptionsUpdate {
|
|
|
917
917
|
get encoding() {
|
|
918
918
|
try {
|
|
919
919
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
920
|
-
wasm.
|
|
920
|
+
wasm.wasmconversionoptionsupdate_encoding(retptr, this.__wbg_ptr);
|
|
921
921
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
922
922
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
923
923
|
let v1;
|
|
@@ -934,70 +934,70 @@ export class JsConversionOptionsUpdate {
|
|
|
934
934
|
* @returns {boolean | undefined}
|
|
935
935
|
*/
|
|
936
936
|
get escapeAscii() {
|
|
937
|
-
const ret = wasm.
|
|
937
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAscii(this.__wbg_ptr);
|
|
938
938
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
939
939
|
}
|
|
940
940
|
/**
|
|
941
941
|
* @returns {boolean | undefined}
|
|
942
942
|
*/
|
|
943
943
|
get escapeAsterisks() {
|
|
944
|
-
const ret = wasm.
|
|
944
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAsterisks(this.__wbg_ptr);
|
|
945
945
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
946
946
|
}
|
|
947
947
|
/**
|
|
948
948
|
* @returns {boolean | undefined}
|
|
949
949
|
*/
|
|
950
950
|
get escapeMisc() {
|
|
951
|
-
const ret = wasm.
|
|
951
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeMisc(this.__wbg_ptr);
|
|
952
952
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
953
953
|
}
|
|
954
954
|
/**
|
|
955
955
|
* @returns {boolean | undefined}
|
|
956
956
|
*/
|
|
957
957
|
get escapeUnderscores() {
|
|
958
|
-
const ret = wasm.
|
|
958
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeUnderscores(this.__wbg_ptr);
|
|
959
959
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
962
|
* @returns {boolean | undefined}
|
|
963
963
|
*/
|
|
964
964
|
get extractImages() {
|
|
965
|
-
const ret = wasm.
|
|
965
|
+
const ret = wasm.wasmconversionoptionsupdate_extractImages(this.__wbg_ptr);
|
|
966
966
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
967
967
|
}
|
|
968
968
|
/**
|
|
969
969
|
* @returns {boolean | undefined}
|
|
970
970
|
*/
|
|
971
971
|
get extractMetadata() {
|
|
972
|
-
const ret = wasm.
|
|
972
|
+
const ret = wasm.wasmconversionoptionsupdate_extractMetadata(this.__wbg_ptr);
|
|
973
973
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
974
974
|
}
|
|
975
975
|
/**
|
|
976
|
-
* @returns {
|
|
976
|
+
* @returns {WasmHeadingStyle | undefined}
|
|
977
977
|
*/
|
|
978
978
|
get headingStyle() {
|
|
979
|
-
const ret = wasm.
|
|
979
|
+
const ret = wasm.wasmconversionoptionsupdate_headingStyle(this.__wbg_ptr);
|
|
980
980
|
return ret === 3 ? undefined : ret;
|
|
981
981
|
}
|
|
982
982
|
/**
|
|
983
|
-
* @returns {
|
|
983
|
+
* @returns {WasmHighlightStyle | undefined}
|
|
984
984
|
*/
|
|
985
985
|
get highlightStyle() {
|
|
986
|
-
const ret = wasm.
|
|
986
|
+
const ret = wasm.wasmconversionoptionsupdate_highlightStyle(this.__wbg_ptr);
|
|
987
987
|
return ret === 4 ? undefined : ret;
|
|
988
988
|
}
|
|
989
989
|
/**
|
|
990
990
|
* @returns {boolean | undefined}
|
|
991
991
|
*/
|
|
992
992
|
get includeDocumentStructure() {
|
|
993
|
-
const ret = wasm.
|
|
993
|
+
const ret = wasm.wasmconversionoptionsupdate_includeDocumentStructure(this.__wbg_ptr);
|
|
994
994
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
995
995
|
}
|
|
996
996
|
/**
|
|
997
997
|
* @returns {boolean | undefined}
|
|
998
998
|
*/
|
|
999
999
|
get inferDimensions() {
|
|
1000
|
-
const ret = wasm.
|
|
1000
|
+
const ret = wasm.wasmconversionoptionsupdate_inferDimensions(this.__wbg_ptr);
|
|
1001
1001
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1002
1002
|
}
|
|
1003
1003
|
/**
|
|
@@ -1006,7 +1006,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1006
1006
|
get keepInlineImagesIn() {
|
|
1007
1007
|
try {
|
|
1008
1008
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1009
|
-
wasm.
|
|
1009
|
+
wasm.wasmconversionoptionsupdate_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
1010
1010
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1011
1011
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1012
1012
|
let v1;
|
|
@@ -1020,24 +1020,24 @@ export class JsConversionOptionsUpdate {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
/**
|
|
1023
|
-
* @returns {
|
|
1023
|
+
* @returns {WasmLinkStyle | undefined}
|
|
1024
1024
|
*/
|
|
1025
1025
|
get linkStyle() {
|
|
1026
|
-
const ret = wasm.
|
|
1026
|
+
const ret = wasm.wasmconversionoptionsupdate_linkStyle(this.__wbg_ptr);
|
|
1027
1027
|
return ret === 2 ? undefined : ret;
|
|
1028
1028
|
}
|
|
1029
1029
|
/**
|
|
1030
|
-
* @returns {
|
|
1030
|
+
* @returns {WasmListIndentType | undefined}
|
|
1031
1031
|
*/
|
|
1032
1032
|
get listIndentType() {
|
|
1033
|
-
const ret = wasm.
|
|
1033
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentType(this.__wbg_ptr);
|
|
1034
1034
|
return ret === 2 ? undefined : ret;
|
|
1035
1035
|
}
|
|
1036
1036
|
/**
|
|
1037
1037
|
* @returns {number | undefined}
|
|
1038
1038
|
*/
|
|
1039
1039
|
get listIndentWidth() {
|
|
1040
|
-
const ret = wasm.
|
|
1040
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1041
1041
|
return ret === 0x100000001 ? undefined : ret;
|
|
1042
1042
|
}
|
|
1043
1043
|
/**
|
|
@@ -1046,7 +1046,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1046
1046
|
get maxImageSize() {
|
|
1047
1047
|
try {
|
|
1048
1048
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1049
|
-
wasm.
|
|
1049
|
+
wasm.wasmconversionoptionsupdate_maxImageSize(retptr, this.__wbg_ptr);
|
|
1050
1050
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1051
1051
|
var r2 = getDataViewMemory0().getBigInt64(retptr + 8 * 1, true);
|
|
1052
1052
|
return r0 === 0 ? undefined : BigInt.asUintN(64, r2);
|
|
@@ -1055,8 +1055,8 @@ export class JsConversionOptionsUpdate {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
/**
|
|
1058
|
-
* @param {
|
|
1059
|
-
* @param {
|
|
1058
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
1059
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
1060
1060
|
* @param {number | null} [list_indent_width]
|
|
1061
1061
|
* @param {string | null} [bullets]
|
|
1062
1062
|
* @param {string | null} [strong_em_symbol]
|
|
@@ -1068,26 +1068,26 @@ export class JsConversionOptionsUpdate {
|
|
|
1068
1068
|
* @param {boolean | null} [autolinks]
|
|
1069
1069
|
* @param {boolean | null} [default_title]
|
|
1070
1070
|
* @param {boolean | null} [br_in_tables]
|
|
1071
|
-
* @param {
|
|
1071
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
1072
1072
|
* @param {boolean | null} [extract_metadata]
|
|
1073
|
-
* @param {
|
|
1073
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
1074
1074
|
* @param {boolean | null} [strip_newlines]
|
|
1075
1075
|
* @param {boolean | null} [wrap]
|
|
1076
1076
|
* @param {number | null} [wrap_width]
|
|
1077
1077
|
* @param {boolean | null} [convert_as_inline]
|
|
1078
1078
|
* @param {string | null} [sub_symbol]
|
|
1079
1079
|
* @param {string | null} [sup_symbol]
|
|
1080
|
-
* @param {
|
|
1081
|
-
* @param {
|
|
1080
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
1081
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
1082
1082
|
* @param {string[] | null} [keep_inline_images_in]
|
|
1083
|
-
* @param {
|
|
1083
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [preprocessing]
|
|
1084
1084
|
* @param {string | null} [encoding]
|
|
1085
1085
|
* @param {boolean | null} [debug]
|
|
1086
1086
|
* @param {string[] | null} [strip_tags]
|
|
1087
1087
|
* @param {string[] | null} [preserve_tags]
|
|
1088
1088
|
* @param {boolean | null} [skip_images]
|
|
1089
|
-
* @param {
|
|
1090
|
-
* @param {
|
|
1089
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
1090
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
1091
1091
|
* @param {boolean | null} [include_document_structure]
|
|
1092
1092
|
* @param {boolean | null} [extract_images]
|
|
1093
1093
|
* @param {bigint | null} [max_image_size]
|
|
@@ -1109,7 +1109,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1109
1109
|
var len5 = WASM_VECTOR_LEN;
|
|
1110
1110
|
let ptr6 = 0;
|
|
1111
1111
|
if (!isLikeNone(preprocessing)) {
|
|
1112
|
-
_assertClass(preprocessing,
|
|
1112
|
+
_assertClass(preprocessing, WasmPreprocessingOptionsUpdate);
|
|
1113
1113
|
ptr6 = preprocessing.__destroy_into_raw();
|
|
1114
1114
|
}
|
|
1115
1115
|
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1118,31 +1118,31 @@ export class JsConversionOptionsUpdate {
|
|
|
1118
1118
|
var len8 = WASM_VECTOR_LEN;
|
|
1119
1119
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
1120
1120
|
var len9 = WASM_VECTOR_LEN;
|
|
1121
|
-
const ret = wasm.
|
|
1121
|
+
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? 0x100000001 : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0);
|
|
1122
1122
|
this.__wbg_ptr = ret >>> 0;
|
|
1123
|
-
|
|
1123
|
+
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1124
1124
|
return this;
|
|
1125
1125
|
}
|
|
1126
1126
|
/**
|
|
1127
|
-
* @returns {
|
|
1127
|
+
* @returns {WasmNewlineStyle | undefined}
|
|
1128
1128
|
*/
|
|
1129
1129
|
get newlineStyle() {
|
|
1130
|
-
const ret = wasm.
|
|
1130
|
+
const ret = wasm.wasmconversionoptionsupdate_newlineStyle(this.__wbg_ptr);
|
|
1131
1131
|
return ret === 2 ? undefined : ret;
|
|
1132
1132
|
}
|
|
1133
1133
|
/**
|
|
1134
|
-
* @returns {
|
|
1134
|
+
* @returns {WasmOutputFormat | undefined}
|
|
1135
1135
|
*/
|
|
1136
1136
|
get outputFormat() {
|
|
1137
|
-
const ret = wasm.
|
|
1137
|
+
const ret = wasm.wasmconversionoptionsupdate_outputFormat(this.__wbg_ptr);
|
|
1138
1138
|
return ret === 3 ? undefined : ret;
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
|
-
* @returns {
|
|
1141
|
+
* @returns {WasmPreprocessingOptionsUpdate | undefined}
|
|
1142
1142
|
*/
|
|
1143
1143
|
get preprocessing() {
|
|
1144
|
-
const ret = wasm.
|
|
1145
|
-
return ret === 0 ? undefined :
|
|
1144
|
+
const ret = wasm.wasmconversionoptionsupdate_preprocessing(this.__wbg_ptr);
|
|
1145
|
+
return ret === 0 ? undefined : WasmPreprocessingOptionsUpdate.__wrap(ret);
|
|
1146
1146
|
}
|
|
1147
1147
|
/**
|
|
1148
1148
|
* @returns {string[] | undefined}
|
|
@@ -1150,7 +1150,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1150
1150
|
get preserveTags() {
|
|
1151
1151
|
try {
|
|
1152
1152
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1153
|
-
wasm.
|
|
1153
|
+
wasm.wasmconversionoptionsupdate_preserveTags(retptr, this.__wbg_ptr);
|
|
1154
1154
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1155
1155
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1156
1156
|
let v1;
|
|
@@ -1167,13 +1167,13 @@ export class JsConversionOptionsUpdate {
|
|
|
1167
1167
|
* @param {boolean | null} [value]
|
|
1168
1168
|
*/
|
|
1169
1169
|
set autolinks(value) {
|
|
1170
|
-
wasm.
|
|
1170
|
+
wasm.wasmconversionoptionsupdate_set_autolinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1171
1171
|
}
|
|
1172
1172
|
/**
|
|
1173
1173
|
* @param {boolean | null} [value]
|
|
1174
1174
|
*/
|
|
1175
1175
|
set brInTables(value) {
|
|
1176
|
-
wasm.
|
|
1176
|
+
wasm.wasmconversionoptionsupdate_set_brInTables(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1177
1177
|
}
|
|
1178
1178
|
/**
|
|
1179
1179
|
* @param {string | null} [value]
|
|
@@ -1181,19 +1181,19 @@ export class JsConversionOptionsUpdate {
|
|
|
1181
1181
|
set bullets(value) {
|
|
1182
1182
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1183
1183
|
var len0 = WASM_VECTOR_LEN;
|
|
1184
|
-
wasm.
|
|
1184
|
+
wasm.wasmconversionoptionsupdate_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
1185
1185
|
}
|
|
1186
1186
|
/**
|
|
1187
1187
|
* @param {boolean | null} [value]
|
|
1188
1188
|
*/
|
|
1189
1189
|
set captureSvg(value) {
|
|
1190
|
-
wasm.
|
|
1190
|
+
wasm.wasmconversionoptionsupdate_set_captureSvg(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
|
-
* @param {
|
|
1193
|
+
* @param {WasmCodeBlockStyle | null} [value]
|
|
1194
1194
|
*/
|
|
1195
1195
|
set codeBlockStyle(value) {
|
|
1196
|
-
wasm.
|
|
1196
|
+
wasm.wasmconversionoptionsupdate_set_codeBlockStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1197
1197
|
}
|
|
1198
1198
|
/**
|
|
1199
1199
|
* @param {string | null} [value]
|
|
@@ -1201,25 +1201,25 @@ export class JsConversionOptionsUpdate {
|
|
|
1201
1201
|
set codeLanguage(value) {
|
|
1202
1202
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1203
1203
|
var len0 = WASM_VECTOR_LEN;
|
|
1204
|
-
wasm.
|
|
1204
|
+
wasm.wasmconversionoptionsupdate_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
1205
1205
|
}
|
|
1206
1206
|
/**
|
|
1207
1207
|
* @param {boolean | null} [value]
|
|
1208
1208
|
*/
|
|
1209
1209
|
set convertAsInline(value) {
|
|
1210
|
-
wasm.
|
|
1210
|
+
wasm.wasmconversionoptionsupdate_set_convertAsInline(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
1213
1213
|
* @param {boolean | null} [value]
|
|
1214
1214
|
*/
|
|
1215
1215
|
set debug(value) {
|
|
1216
|
-
wasm.
|
|
1216
|
+
wasm.wasmconversionoptionsupdate_set_debug(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1217
1217
|
}
|
|
1218
1218
|
/**
|
|
1219
1219
|
* @param {boolean | null} [value]
|
|
1220
1220
|
*/
|
|
1221
1221
|
set defaultTitle(value) {
|
|
1222
|
-
wasm.
|
|
1222
|
+
wasm.wasmconversionoptionsupdate_set_defaultTitle(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1223
1223
|
}
|
|
1224
1224
|
/**
|
|
1225
1225
|
* @param {string | null} [value]
|
|
@@ -1227,67 +1227,67 @@ export class JsConversionOptionsUpdate {
|
|
|
1227
1227
|
set encoding(value) {
|
|
1228
1228
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1229
1229
|
var len0 = WASM_VECTOR_LEN;
|
|
1230
|
-
wasm.
|
|
1230
|
+
wasm.wasmconversionoptionsupdate_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
1231
1231
|
}
|
|
1232
1232
|
/**
|
|
1233
1233
|
* @param {boolean | null} [value]
|
|
1234
1234
|
*/
|
|
1235
1235
|
set escapeAscii(value) {
|
|
1236
|
-
wasm.
|
|
1236
|
+
wasm.wasmconversionoptionsupdate_set_escapeAscii(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1237
1237
|
}
|
|
1238
1238
|
/**
|
|
1239
1239
|
* @param {boolean | null} [value]
|
|
1240
1240
|
*/
|
|
1241
1241
|
set escapeAsterisks(value) {
|
|
1242
|
-
wasm.
|
|
1242
|
+
wasm.wasmconversionoptionsupdate_set_escapeAsterisks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1243
1243
|
}
|
|
1244
1244
|
/**
|
|
1245
1245
|
* @param {boolean | null} [value]
|
|
1246
1246
|
*/
|
|
1247
1247
|
set escapeMisc(value) {
|
|
1248
|
-
wasm.
|
|
1248
|
+
wasm.wasmconversionoptionsupdate_set_escapeMisc(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1249
1249
|
}
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @param {boolean | null} [value]
|
|
1252
1252
|
*/
|
|
1253
1253
|
set escapeUnderscores(value) {
|
|
1254
|
-
wasm.
|
|
1254
|
+
wasm.wasmconversionoptionsupdate_set_escapeUnderscores(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1255
1255
|
}
|
|
1256
1256
|
/**
|
|
1257
1257
|
* @param {boolean | null} [value]
|
|
1258
1258
|
*/
|
|
1259
1259
|
set extractImages(value) {
|
|
1260
|
-
wasm.
|
|
1260
|
+
wasm.wasmconversionoptionsupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
1263
|
* @param {boolean | null} [value]
|
|
1264
1264
|
*/
|
|
1265
1265
|
set extractMetadata(value) {
|
|
1266
|
-
wasm.
|
|
1266
|
+
wasm.wasmconversionoptionsupdate_set_extractMetadata(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1267
1267
|
}
|
|
1268
1268
|
/**
|
|
1269
|
-
* @param {
|
|
1269
|
+
* @param {WasmHeadingStyle | null} [value]
|
|
1270
1270
|
*/
|
|
1271
1271
|
set headingStyle(value) {
|
|
1272
|
-
wasm.
|
|
1272
|
+
wasm.wasmconversionoptionsupdate_set_headingStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1273
1273
|
}
|
|
1274
1274
|
/**
|
|
1275
|
-
* @param {
|
|
1275
|
+
* @param {WasmHighlightStyle | null} [value]
|
|
1276
1276
|
*/
|
|
1277
1277
|
set highlightStyle(value) {
|
|
1278
|
-
wasm.
|
|
1278
|
+
wasm.wasmconversionoptionsupdate_set_highlightStyle(this.__wbg_ptr, isLikeNone(value) ? 4 : value);
|
|
1279
1279
|
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* @param {boolean | null} [value]
|
|
1282
1282
|
*/
|
|
1283
1283
|
set includeDocumentStructure(value) {
|
|
1284
|
-
wasm.
|
|
1284
|
+
wasm.wasmconversionoptionsupdate_set_includeDocumentStructure(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
1287
1287
|
* @param {boolean | null} [value]
|
|
1288
1288
|
*/
|
|
1289
1289
|
set inferDimensions(value) {
|
|
1290
|
-
wasm.
|
|
1290
|
+
wasm.wasmconversionoptionsupdate_set_inferDimensions(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1291
1291
|
}
|
|
1292
1292
|
/**
|
|
1293
1293
|
* @param {string[] | null} [value]
|
|
@@ -1295,54 +1295,54 @@ export class JsConversionOptionsUpdate {
|
|
|
1295
1295
|
set keepInlineImagesIn(value) {
|
|
1296
1296
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1297
1297
|
var len0 = WASM_VECTOR_LEN;
|
|
1298
|
-
wasm.
|
|
1298
|
+
wasm.wasmconversionoptionsupdate_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
1299
1299
|
}
|
|
1300
1300
|
/**
|
|
1301
|
-
* @param {
|
|
1301
|
+
* @param {WasmLinkStyle | null} [value]
|
|
1302
1302
|
*/
|
|
1303
1303
|
set linkStyle(value) {
|
|
1304
|
-
wasm.
|
|
1304
|
+
wasm.wasmconversionoptionsupdate_set_linkStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1305
1305
|
}
|
|
1306
1306
|
/**
|
|
1307
|
-
* @param {
|
|
1307
|
+
* @param {WasmListIndentType | null} [value]
|
|
1308
1308
|
*/
|
|
1309
1309
|
set listIndentType(value) {
|
|
1310
|
-
wasm.
|
|
1310
|
+
wasm.wasmconversionoptionsupdate_set_listIndentType(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1311
1311
|
}
|
|
1312
1312
|
/**
|
|
1313
1313
|
* @param {number | null} [value]
|
|
1314
1314
|
*/
|
|
1315
1315
|
set listIndentWidth(value) {
|
|
1316
|
-
wasm.
|
|
1316
|
+
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1317
1317
|
}
|
|
1318
1318
|
/**
|
|
1319
1319
|
* @param {bigint | null} [value]
|
|
1320
1320
|
*/
|
|
1321
1321
|
set maxImageSize(value) {
|
|
1322
|
-
wasm.
|
|
1322
|
+
wasm.wasmconversionoptionsupdate_set_maxImageSize(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
|
|
1323
1323
|
}
|
|
1324
1324
|
/**
|
|
1325
|
-
* @param {
|
|
1325
|
+
* @param {WasmNewlineStyle | null} [value]
|
|
1326
1326
|
*/
|
|
1327
1327
|
set newlineStyle(value) {
|
|
1328
|
-
wasm.
|
|
1328
|
+
wasm.wasmconversionoptionsupdate_set_newlineStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1329
1329
|
}
|
|
1330
1330
|
/**
|
|
1331
|
-
* @param {
|
|
1331
|
+
* @param {WasmOutputFormat | null} [value]
|
|
1332
1332
|
*/
|
|
1333
1333
|
set outputFormat(value) {
|
|
1334
|
-
wasm.
|
|
1334
|
+
wasm.wasmconversionoptionsupdate_set_outputFormat(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1335
1335
|
}
|
|
1336
1336
|
/**
|
|
1337
|
-
* @param {
|
|
1337
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [value]
|
|
1338
1338
|
*/
|
|
1339
1339
|
set preprocessing(value) {
|
|
1340
1340
|
let ptr0 = 0;
|
|
1341
1341
|
if (!isLikeNone(value)) {
|
|
1342
|
-
_assertClass(value,
|
|
1342
|
+
_assertClass(value, WasmPreprocessingOptionsUpdate);
|
|
1343
1343
|
ptr0 = value.__destroy_into_raw();
|
|
1344
1344
|
}
|
|
1345
|
-
wasm.
|
|
1345
|
+
wasm.wasmconversionoptionsupdate_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
1346
1346
|
}
|
|
1347
1347
|
/**
|
|
1348
1348
|
* @param {string[] | null} [value]
|
|
@@ -1350,19 +1350,19 @@ export class JsConversionOptionsUpdate {
|
|
|
1350
1350
|
set preserveTags(value) {
|
|
1351
1351
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1352
1352
|
var len0 = WASM_VECTOR_LEN;
|
|
1353
|
-
wasm.
|
|
1353
|
+
wasm.wasmconversionoptionsupdate_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
1354
1354
|
}
|
|
1355
1355
|
/**
|
|
1356
1356
|
* @param {boolean | null} [value]
|
|
1357
1357
|
*/
|
|
1358
1358
|
set skipImages(value) {
|
|
1359
|
-
wasm.
|
|
1359
|
+
wasm.wasmconversionoptionsupdate_set_skipImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1360
1360
|
}
|
|
1361
1361
|
/**
|
|
1362
1362
|
* @param {boolean | null} [value]
|
|
1363
1363
|
*/
|
|
1364
1364
|
set stripNewlines(value) {
|
|
1365
|
-
wasm.
|
|
1365
|
+
wasm.wasmconversionoptionsupdate_set_stripNewlines(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1366
1366
|
}
|
|
1367
1367
|
/**
|
|
1368
1368
|
* @param {string[] | null} [value]
|
|
@@ -1370,7 +1370,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1370
1370
|
set stripTags(value) {
|
|
1371
1371
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1372
1372
|
var len0 = WASM_VECTOR_LEN;
|
|
1373
|
-
wasm.
|
|
1373
|
+
wasm.wasmconversionoptionsupdate_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
1374
1374
|
}
|
|
1375
1375
|
/**
|
|
1376
1376
|
* @param {string | null} [value]
|
|
@@ -1378,7 +1378,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1378
1378
|
set strongEmSymbol(value) {
|
|
1379
1379
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1380
1380
|
var len0 = WASM_VECTOR_LEN;
|
|
1381
|
-
wasm.
|
|
1381
|
+
wasm.wasmconversionoptionsupdate_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1382
1382
|
}
|
|
1383
1383
|
/**
|
|
1384
1384
|
* @param {string | null} [value]
|
|
@@ -1386,7 +1386,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1386
1386
|
set subSymbol(value) {
|
|
1387
1387
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1388
1388
|
var len0 = WASM_VECTOR_LEN;
|
|
1389
|
-
wasm.
|
|
1389
|
+
wasm.wasmconversionoptionsupdate_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1390
1390
|
}
|
|
1391
1391
|
/**
|
|
1392
1392
|
* @param {string | null} [value]
|
|
@@ -1394,38 +1394,38 @@ export class JsConversionOptionsUpdate {
|
|
|
1394
1394
|
set supSymbol(value) {
|
|
1395
1395
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1396
1396
|
var len0 = WASM_VECTOR_LEN;
|
|
1397
|
-
wasm.
|
|
1397
|
+
wasm.wasmconversionoptionsupdate_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1398
1398
|
}
|
|
1399
1399
|
/**
|
|
1400
|
-
* @param {
|
|
1400
|
+
* @param {WasmWhitespaceMode | null} [value]
|
|
1401
1401
|
*/
|
|
1402
1402
|
set whitespaceMode(value) {
|
|
1403
|
-
wasm.
|
|
1403
|
+
wasm.wasmconversionoptionsupdate_set_whitespaceMode(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1404
1404
|
}
|
|
1405
1405
|
/**
|
|
1406
1406
|
* @param {boolean | null} [value]
|
|
1407
1407
|
*/
|
|
1408
1408
|
set wrap(value) {
|
|
1409
|
-
wasm.
|
|
1409
|
+
wasm.wasmconversionoptionsupdate_set_wrap(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1410
1410
|
}
|
|
1411
1411
|
/**
|
|
1412
1412
|
* @param {number | null} [value]
|
|
1413
1413
|
*/
|
|
1414
1414
|
set wrapWidth(value) {
|
|
1415
|
-
wasm.
|
|
1415
|
+
wasm.wasmconversionoptionsupdate_set_wrapWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1416
1416
|
}
|
|
1417
1417
|
/**
|
|
1418
1418
|
* @returns {boolean | undefined}
|
|
1419
1419
|
*/
|
|
1420
1420
|
get skipImages() {
|
|
1421
|
-
const ret = wasm.
|
|
1421
|
+
const ret = wasm.wasmconversionoptionsupdate_skipImages(this.__wbg_ptr);
|
|
1422
1422
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1423
1423
|
}
|
|
1424
1424
|
/**
|
|
1425
1425
|
* @returns {boolean | undefined}
|
|
1426
1426
|
*/
|
|
1427
1427
|
get stripNewlines() {
|
|
1428
|
-
const ret = wasm.
|
|
1428
|
+
const ret = wasm.wasmconversionoptionsupdate_stripNewlines(this.__wbg_ptr);
|
|
1429
1429
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1430
1430
|
}
|
|
1431
1431
|
/**
|
|
@@ -1434,7 +1434,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1434
1434
|
get stripTags() {
|
|
1435
1435
|
try {
|
|
1436
1436
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1437
|
-
wasm.
|
|
1437
|
+
wasm.wasmconversionoptionsupdate_stripTags(retptr, this.__wbg_ptr);
|
|
1438
1438
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1439
1439
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1440
1440
|
let v1;
|
|
@@ -1453,7 +1453,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1453
1453
|
get strongEmSymbol() {
|
|
1454
1454
|
try {
|
|
1455
1455
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1456
|
-
wasm.
|
|
1456
|
+
wasm.wasmconversionoptionsupdate_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
1457
1457
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1458
1458
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1459
1459
|
let v1;
|
|
@@ -1472,7 +1472,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1472
1472
|
get subSymbol() {
|
|
1473
1473
|
try {
|
|
1474
1474
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1475
|
-
wasm.
|
|
1475
|
+
wasm.wasmconversionoptionsupdate_subSymbol(retptr, this.__wbg_ptr);
|
|
1476
1476
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1477
1477
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1478
1478
|
let v1;
|
|
@@ -1491,7 +1491,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1491
1491
|
get supSymbol() {
|
|
1492
1492
|
try {
|
|
1493
1493
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1494
|
-
wasm.
|
|
1494
|
+
wasm.wasmconversionoptionsupdate_supSymbol(retptr, this.__wbg_ptr);
|
|
1495
1495
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1496
1496
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1497
1497
|
let v1;
|
|
@@ -1505,46 +1505,46 @@ export class JsConversionOptionsUpdate {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
1507
|
/**
|
|
1508
|
-
* @returns {
|
|
1508
|
+
* @returns {WasmWhitespaceMode | undefined}
|
|
1509
1509
|
*/
|
|
1510
1510
|
get whitespaceMode() {
|
|
1511
|
-
const ret = wasm.
|
|
1511
|
+
const ret = wasm.wasmconversionoptionsupdate_whitespaceMode(this.__wbg_ptr);
|
|
1512
1512
|
return ret === 2 ? undefined : ret;
|
|
1513
1513
|
}
|
|
1514
1514
|
/**
|
|
1515
1515
|
* @returns {boolean | undefined}
|
|
1516
1516
|
*/
|
|
1517
1517
|
get wrap() {
|
|
1518
|
-
const ret = wasm.
|
|
1518
|
+
const ret = wasm.wasmconversionoptionsupdate_wrap(this.__wbg_ptr);
|
|
1519
1519
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1520
1520
|
}
|
|
1521
1521
|
/**
|
|
1522
1522
|
* @returns {number | undefined}
|
|
1523
1523
|
*/
|
|
1524
1524
|
get wrapWidth() {
|
|
1525
|
-
const ret = wasm.
|
|
1525
|
+
const ret = wasm.wasmconversionoptionsupdate_wrapWidth(this.__wbg_ptr);
|
|
1526
1526
|
return ret === 0x100000001 ? undefined : ret;
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
if (Symbol.dispose)
|
|
1529
|
+
if (Symbol.dispose) WasmConversionOptionsUpdate.prototype[Symbol.dispose] = WasmConversionOptionsUpdate.prototype.free;
|
|
1530
1530
|
|
|
1531
|
-
export class
|
|
1531
|
+
export class WasmConversionResult {
|
|
1532
1532
|
static __wrap(ptr) {
|
|
1533
1533
|
ptr = ptr >>> 0;
|
|
1534
|
-
const obj = Object.create(
|
|
1534
|
+
const obj = Object.create(WasmConversionResult.prototype);
|
|
1535
1535
|
obj.__wbg_ptr = ptr;
|
|
1536
|
-
|
|
1536
|
+
WasmConversionResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1537
1537
|
return obj;
|
|
1538
1538
|
}
|
|
1539
1539
|
__destroy_into_raw() {
|
|
1540
1540
|
const ptr = this.__wbg_ptr;
|
|
1541
1541
|
this.__wbg_ptr = 0;
|
|
1542
|
-
|
|
1542
|
+
WasmConversionResultFinalization.unregister(this);
|
|
1543
1543
|
return ptr;
|
|
1544
1544
|
}
|
|
1545
1545
|
free() {
|
|
1546
1546
|
const ptr = this.__destroy_into_raw();
|
|
1547
|
-
wasm.
|
|
1547
|
+
wasm.__wbg_wasmconversionresult_free(ptr, 0);
|
|
1548
1548
|
}
|
|
1549
1549
|
/**
|
|
1550
1550
|
* @returns {string | undefined}
|
|
@@ -1552,7 +1552,7 @@ export class JsConversionResult {
|
|
|
1552
1552
|
get content() {
|
|
1553
1553
|
try {
|
|
1554
1554
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1555
|
-
wasm.
|
|
1555
|
+
wasm.wasmconversionresult_content(retptr, this.__wbg_ptr);
|
|
1556
1556
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1557
1557
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1558
1558
|
let v1;
|
|
@@ -1566,11 +1566,11 @@ export class JsConversionResult {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
/**
|
|
1569
|
-
* @returns {
|
|
1569
|
+
* @returns {WasmDocumentStructure | undefined}
|
|
1570
1570
|
*/
|
|
1571
1571
|
get document() {
|
|
1572
|
-
const ret = wasm.
|
|
1573
|
-
return ret === 0 ? undefined :
|
|
1572
|
+
const ret = wasm.wasmconversionresult_document(this.__wbg_ptr);
|
|
1573
|
+
return ret === 0 ? undefined : WasmDocumentStructure.__wrap(ret);
|
|
1574
1574
|
}
|
|
1575
1575
|
/**
|
|
1576
1576
|
* @returns {string[]}
|
|
@@ -1578,7 +1578,7 @@ export class JsConversionResult {
|
|
|
1578
1578
|
get images() {
|
|
1579
1579
|
try {
|
|
1580
1580
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1581
|
-
wasm.
|
|
1581
|
+
wasm.wasmconversionresult_images(retptr, this.__wbg_ptr);
|
|
1582
1582
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1583
1583
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1584
1584
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1589,24 +1589,24 @@ export class JsConversionResult {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
/**
|
|
1592
|
-
* @returns {
|
|
1592
|
+
* @returns {WasmHtmlMetadata}
|
|
1593
1593
|
*/
|
|
1594
1594
|
get metadata() {
|
|
1595
|
-
const ret = wasm.
|
|
1596
|
-
return
|
|
1595
|
+
const ret = wasm.wasmconversionresult_metadata(this.__wbg_ptr);
|
|
1596
|
+
return WasmHtmlMetadata.__wrap(ret);
|
|
1597
1597
|
}
|
|
1598
1598
|
/**
|
|
1599
|
-
* @param {
|
|
1600
|
-
* @param {
|
|
1599
|
+
* @param {WasmHtmlMetadata | null} [metadata]
|
|
1600
|
+
* @param {WasmTableData[] | null} [tables]
|
|
1601
1601
|
* @param {string[] | null} [images]
|
|
1602
|
-
* @param {
|
|
1602
|
+
* @param {WasmProcessingWarning[] | null} [warnings]
|
|
1603
1603
|
* @param {string | null} [content]
|
|
1604
|
-
* @param {
|
|
1604
|
+
* @param {WasmDocumentStructure | null} [document]
|
|
1605
1605
|
*/
|
|
1606
1606
|
constructor(metadata, tables, images, warnings, content, document) {
|
|
1607
1607
|
let ptr0 = 0;
|
|
1608
1608
|
if (!isLikeNone(metadata)) {
|
|
1609
|
-
_assertClass(metadata,
|
|
1609
|
+
_assertClass(metadata, WasmHtmlMetadata);
|
|
1610
1610
|
ptr0 = metadata.__destroy_into_raw();
|
|
1611
1611
|
}
|
|
1612
1612
|
var ptr1 = isLikeNone(tables) ? 0 : passArrayJsValueToWasm0(tables, wasm.__wbindgen_export);
|
|
@@ -1619,12 +1619,12 @@ export class JsConversionResult {
|
|
|
1619
1619
|
var len4 = WASM_VECTOR_LEN;
|
|
1620
1620
|
let ptr5 = 0;
|
|
1621
1621
|
if (!isLikeNone(document)) {
|
|
1622
|
-
_assertClass(document,
|
|
1622
|
+
_assertClass(document, WasmDocumentStructure);
|
|
1623
1623
|
ptr5 = document.__destroy_into_raw();
|
|
1624
1624
|
}
|
|
1625
|
-
const ret = wasm.
|
|
1625
|
+
const ret = wasm.wasmconversionresult_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5);
|
|
1626
1626
|
this.__wbg_ptr = ret >>> 0;
|
|
1627
|
-
|
|
1627
|
+
WasmConversionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
1628
1628
|
return this;
|
|
1629
1629
|
}
|
|
1630
1630
|
/**
|
|
@@ -1633,18 +1633,18 @@ export class JsConversionResult {
|
|
|
1633
1633
|
set content(value) {
|
|
1634
1634
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1635
1635
|
var len0 = WASM_VECTOR_LEN;
|
|
1636
|
-
wasm.
|
|
1636
|
+
wasm.wasmconversionresult_set_content(this.__wbg_ptr, ptr0, len0);
|
|
1637
1637
|
}
|
|
1638
1638
|
/**
|
|
1639
|
-
* @param {
|
|
1639
|
+
* @param {WasmDocumentStructure | null} [value]
|
|
1640
1640
|
*/
|
|
1641
1641
|
set document(value) {
|
|
1642
1642
|
let ptr0 = 0;
|
|
1643
1643
|
if (!isLikeNone(value)) {
|
|
1644
|
-
_assertClass(value,
|
|
1644
|
+
_assertClass(value, WasmDocumentStructure);
|
|
1645
1645
|
ptr0 = value.__destroy_into_raw();
|
|
1646
1646
|
}
|
|
1647
|
-
wasm.
|
|
1647
|
+
wasm.wasmconversionresult_set_document(this.__wbg_ptr, ptr0);
|
|
1648
1648
|
}
|
|
1649
1649
|
/**
|
|
1650
1650
|
* @param {string[]} value
|
|
@@ -1652,39 +1652,39 @@ export class JsConversionResult {
|
|
|
1652
1652
|
set images(value) {
|
|
1653
1653
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1654
1654
|
const len0 = WASM_VECTOR_LEN;
|
|
1655
|
-
wasm.
|
|
1655
|
+
wasm.wasmconversionresult_set_images(this.__wbg_ptr, ptr0, len0);
|
|
1656
1656
|
}
|
|
1657
1657
|
/**
|
|
1658
|
-
* @param {
|
|
1658
|
+
* @param {WasmHtmlMetadata} value
|
|
1659
1659
|
*/
|
|
1660
1660
|
set metadata(value) {
|
|
1661
|
-
_assertClass(value,
|
|
1661
|
+
_assertClass(value, WasmHtmlMetadata);
|
|
1662
1662
|
var ptr0 = value.__destroy_into_raw();
|
|
1663
|
-
wasm.
|
|
1663
|
+
wasm.wasmconversionresult_set_metadata(this.__wbg_ptr, ptr0);
|
|
1664
1664
|
}
|
|
1665
1665
|
/**
|
|
1666
|
-
* @param {
|
|
1666
|
+
* @param {WasmTableData[]} value
|
|
1667
1667
|
*/
|
|
1668
1668
|
set tables(value) {
|
|
1669
1669
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1670
1670
|
const len0 = WASM_VECTOR_LEN;
|
|
1671
|
-
wasm.
|
|
1671
|
+
wasm.wasmconversionresult_set_tables(this.__wbg_ptr, ptr0, len0);
|
|
1672
1672
|
}
|
|
1673
1673
|
/**
|
|
1674
|
-
* @param {
|
|
1674
|
+
* @param {WasmProcessingWarning[]} value
|
|
1675
1675
|
*/
|
|
1676
1676
|
set warnings(value) {
|
|
1677
1677
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1678
1678
|
const len0 = WASM_VECTOR_LEN;
|
|
1679
|
-
wasm.
|
|
1679
|
+
wasm.wasmconversionresult_set_warnings(this.__wbg_ptr, ptr0, len0);
|
|
1680
1680
|
}
|
|
1681
1681
|
/**
|
|
1682
|
-
* @returns {
|
|
1682
|
+
* @returns {WasmTableData[]}
|
|
1683
1683
|
*/
|
|
1684
1684
|
get tables() {
|
|
1685
1685
|
try {
|
|
1686
1686
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1687
|
-
wasm.
|
|
1687
|
+
wasm.wasmconversionresult_tables(retptr, this.__wbg_ptr);
|
|
1688
1688
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1689
1689
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1690
1690
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1695,12 +1695,12 @@ export class JsConversionResult {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
/**
|
|
1698
|
-
* @returns {
|
|
1698
|
+
* @returns {WasmProcessingWarning[]}
|
|
1699
1699
|
*/
|
|
1700
1700
|
get warnings() {
|
|
1701
1701
|
try {
|
|
1702
1702
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1703
|
-
wasm.
|
|
1703
|
+
wasm.wasmconversionresult_warnings(retptr, this.__wbg_ptr);
|
|
1704
1704
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1705
1705
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1706
1706
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1711,25 +1711,25 @@ export class JsConversionResult {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
if (Symbol.dispose)
|
|
1714
|
+
if (Symbol.dispose) WasmConversionResult.prototype[Symbol.dispose] = WasmConversionResult.prototype.free;
|
|
1715
1715
|
|
|
1716
|
-
export class
|
|
1716
|
+
export class WasmDocumentMetadata {
|
|
1717
1717
|
static __wrap(ptr) {
|
|
1718
1718
|
ptr = ptr >>> 0;
|
|
1719
|
-
const obj = Object.create(
|
|
1719
|
+
const obj = Object.create(WasmDocumentMetadata.prototype);
|
|
1720
1720
|
obj.__wbg_ptr = ptr;
|
|
1721
|
-
|
|
1721
|
+
WasmDocumentMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1722
1722
|
return obj;
|
|
1723
1723
|
}
|
|
1724
1724
|
__destroy_into_raw() {
|
|
1725
1725
|
const ptr = this.__wbg_ptr;
|
|
1726
1726
|
this.__wbg_ptr = 0;
|
|
1727
|
-
|
|
1727
|
+
WasmDocumentMetadataFinalization.unregister(this);
|
|
1728
1728
|
return ptr;
|
|
1729
1729
|
}
|
|
1730
1730
|
free() {
|
|
1731
1731
|
const ptr = this.__destroy_into_raw();
|
|
1732
|
-
wasm.
|
|
1732
|
+
wasm.__wbg_wasmdocumentmetadata_free(ptr, 0);
|
|
1733
1733
|
}
|
|
1734
1734
|
/**
|
|
1735
1735
|
* @returns {string | undefined}
|
|
@@ -1737,7 +1737,7 @@ export class JsDocumentMetadata {
|
|
|
1737
1737
|
get author() {
|
|
1738
1738
|
try {
|
|
1739
1739
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1740
|
-
wasm.
|
|
1740
|
+
wasm.wasmdocumentmetadata_author(retptr, this.__wbg_ptr);
|
|
1741
1741
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1742
1742
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1743
1743
|
let v1;
|
|
@@ -1756,7 +1756,7 @@ export class JsDocumentMetadata {
|
|
|
1756
1756
|
get baseHref() {
|
|
1757
1757
|
try {
|
|
1758
1758
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1759
|
-
wasm.
|
|
1759
|
+
wasm.wasmdocumentmetadata_baseHref(retptr, this.__wbg_ptr);
|
|
1760
1760
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1761
1761
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1762
1762
|
let v1;
|
|
@@ -1775,7 +1775,7 @@ export class JsDocumentMetadata {
|
|
|
1775
1775
|
get canonicalUrl() {
|
|
1776
1776
|
try {
|
|
1777
1777
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1778
|
-
wasm.
|
|
1778
|
+
wasm.wasmdocumentmetadata_canonicalUrl(retptr, this.__wbg_ptr);
|
|
1779
1779
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1780
1780
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1781
1781
|
let v1;
|
|
@@ -1794,7 +1794,7 @@ export class JsDocumentMetadata {
|
|
|
1794
1794
|
get description() {
|
|
1795
1795
|
try {
|
|
1796
1796
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1797
|
-
wasm.
|
|
1797
|
+
wasm.wasmdocumentmetadata_description(retptr, this.__wbg_ptr);
|
|
1798
1798
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1799
1799
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1800
1800
|
let v1;
|
|
@@ -1813,7 +1813,7 @@ export class JsDocumentMetadata {
|
|
|
1813
1813
|
get keywords() {
|
|
1814
1814
|
try {
|
|
1815
1815
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1816
|
-
wasm.
|
|
1816
|
+
wasm.wasmdocumentmetadata_keywords(retptr, this.__wbg_ptr);
|
|
1817
1817
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1818
1818
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1819
1819
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1829,7 +1829,7 @@ export class JsDocumentMetadata {
|
|
|
1829
1829
|
get language() {
|
|
1830
1830
|
try {
|
|
1831
1831
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1832
|
-
wasm.
|
|
1832
|
+
wasm.wasmdocumentmetadata_language(retptr, this.__wbg_ptr);
|
|
1833
1833
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1834
1834
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1835
1835
|
let v1;
|
|
@@ -1846,7 +1846,7 @@ export class JsDocumentMetadata {
|
|
|
1846
1846
|
* @returns {WasmConversionResult}
|
|
1847
1847
|
*/
|
|
1848
1848
|
get metaTags() {
|
|
1849
|
-
const ret = wasm.
|
|
1849
|
+
const ret = wasm.wasmdocumentmetadata_metaTags(this.__wbg_ptr);
|
|
1850
1850
|
return takeObject(ret);
|
|
1851
1851
|
}
|
|
1852
1852
|
/**
|
|
@@ -1860,7 +1860,7 @@ export class JsDocumentMetadata {
|
|
|
1860
1860
|
* @param {string | null} [canonical_url]
|
|
1861
1861
|
* @param {string | null} [base_href]
|
|
1862
1862
|
* @param {string | null} [language]
|
|
1863
|
-
* @param {
|
|
1863
|
+
* @param {WasmTextDirection | null} [text_direction]
|
|
1864
1864
|
*/
|
|
1865
1865
|
constructor(keywords, open_graph, twitter_card, meta_tags, title, description, author, canonical_url, base_href, language, text_direction) {
|
|
1866
1866
|
var ptr0 = isLikeNone(keywords) ? 0 : passArrayJsValueToWasm0(keywords, wasm.__wbindgen_export);
|
|
@@ -1877,16 +1877,16 @@ export class JsDocumentMetadata {
|
|
|
1877
1877
|
var len5 = WASM_VECTOR_LEN;
|
|
1878
1878
|
var ptr6 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1879
1879
|
var len6 = WASM_VECTOR_LEN;
|
|
1880
|
-
const ret = wasm.
|
|
1880
|
+
const ret = wasm.wasmdocumentmetadata_new(ptr0, len0, isLikeNone(open_graph) ? 0 : addHeapObject(open_graph), isLikeNone(twitter_card) ? 0 : addHeapObject(twitter_card), isLikeNone(meta_tags) ? 0 : addHeapObject(meta_tags), ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(text_direction) ? 3 : text_direction);
|
|
1881
1881
|
this.__wbg_ptr = ret >>> 0;
|
|
1882
|
-
|
|
1882
|
+
WasmDocumentMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
1883
1883
|
return this;
|
|
1884
1884
|
}
|
|
1885
1885
|
/**
|
|
1886
1886
|
* @returns {WasmConversionResult}
|
|
1887
1887
|
*/
|
|
1888
1888
|
get openGraph() {
|
|
1889
|
-
const ret = wasm.
|
|
1889
|
+
const ret = wasm.wasmdocumentmetadata_openGraph(this.__wbg_ptr);
|
|
1890
1890
|
return takeObject(ret);
|
|
1891
1891
|
}
|
|
1892
1892
|
/**
|
|
@@ -1895,7 +1895,7 @@ export class JsDocumentMetadata {
|
|
|
1895
1895
|
set author(value) {
|
|
1896
1896
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1897
1897
|
var len0 = WASM_VECTOR_LEN;
|
|
1898
|
-
wasm.
|
|
1898
|
+
wasm.wasmdocumentmetadata_set_author(this.__wbg_ptr, ptr0, len0);
|
|
1899
1899
|
}
|
|
1900
1900
|
/**
|
|
1901
1901
|
* @param {string | null} [value]
|
|
@@ -1903,7 +1903,7 @@ export class JsDocumentMetadata {
|
|
|
1903
1903
|
set baseHref(value) {
|
|
1904
1904
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1905
1905
|
var len0 = WASM_VECTOR_LEN;
|
|
1906
|
-
wasm.
|
|
1906
|
+
wasm.wasmdocumentmetadata_set_baseHref(this.__wbg_ptr, ptr0, len0);
|
|
1907
1907
|
}
|
|
1908
1908
|
/**
|
|
1909
1909
|
* @param {string | null} [value]
|
|
@@ -1911,7 +1911,7 @@ export class JsDocumentMetadata {
|
|
|
1911
1911
|
set canonicalUrl(value) {
|
|
1912
1912
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1913
1913
|
var len0 = WASM_VECTOR_LEN;
|
|
1914
|
-
wasm.
|
|
1914
|
+
wasm.wasmdocumentmetadata_set_canonicalUrl(this.__wbg_ptr, ptr0, len0);
|
|
1915
1915
|
}
|
|
1916
1916
|
/**
|
|
1917
1917
|
* @param {string | null} [value]
|
|
@@ -1919,7 +1919,7 @@ export class JsDocumentMetadata {
|
|
|
1919
1919
|
set description(value) {
|
|
1920
1920
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1921
1921
|
var len0 = WASM_VECTOR_LEN;
|
|
1922
|
-
wasm.
|
|
1922
|
+
wasm.wasmdocumentmetadata_set_description(this.__wbg_ptr, ptr0, len0);
|
|
1923
1923
|
}
|
|
1924
1924
|
/**
|
|
1925
1925
|
* @param {string[]} value
|
|
@@ -1927,7 +1927,7 @@ export class JsDocumentMetadata {
|
|
|
1927
1927
|
set keywords(value) {
|
|
1928
1928
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1929
1929
|
const len0 = WASM_VECTOR_LEN;
|
|
1930
|
-
wasm.
|
|
1930
|
+
wasm.wasmdocumentmetadata_set_keywords(this.__wbg_ptr, ptr0, len0);
|
|
1931
1931
|
}
|
|
1932
1932
|
/**
|
|
1933
1933
|
* @param {string | null} [value]
|
|
@@ -1935,25 +1935,25 @@ export class JsDocumentMetadata {
|
|
|
1935
1935
|
set language(value) {
|
|
1936
1936
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1937
1937
|
var len0 = WASM_VECTOR_LEN;
|
|
1938
|
-
wasm.
|
|
1938
|
+
wasm.wasmdocumentmetadata_set_language(this.__wbg_ptr, ptr0, len0);
|
|
1939
1939
|
}
|
|
1940
1940
|
/**
|
|
1941
1941
|
* @param {any} value
|
|
1942
1942
|
*/
|
|
1943
1943
|
set metaTags(value) {
|
|
1944
|
-
wasm.
|
|
1944
|
+
wasm.wasmdocumentmetadata_set_metaTags(this.__wbg_ptr, addHeapObject(value));
|
|
1945
1945
|
}
|
|
1946
1946
|
/**
|
|
1947
1947
|
* @param {any} value
|
|
1948
1948
|
*/
|
|
1949
1949
|
set openGraph(value) {
|
|
1950
|
-
wasm.
|
|
1950
|
+
wasm.wasmdocumentmetadata_set_openGraph(this.__wbg_ptr, addHeapObject(value));
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
|
-
* @param {
|
|
1953
|
+
* @param {WasmTextDirection | null} [value]
|
|
1954
1954
|
*/
|
|
1955
1955
|
set textDirection(value) {
|
|
1956
|
-
wasm.
|
|
1956
|
+
wasm.wasmdocumentmetadata_set_textDirection(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1957
1957
|
}
|
|
1958
1958
|
/**
|
|
1959
1959
|
* @param {string | null} [value]
|
|
@@ -1961,19 +1961,19 @@ export class JsDocumentMetadata {
|
|
|
1961
1961
|
set title(value) {
|
|
1962
1962
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1963
1963
|
var len0 = WASM_VECTOR_LEN;
|
|
1964
|
-
wasm.
|
|
1964
|
+
wasm.wasmdocumentmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
1965
1965
|
}
|
|
1966
1966
|
/**
|
|
1967
1967
|
* @param {any} value
|
|
1968
1968
|
*/
|
|
1969
1969
|
set twitterCard(value) {
|
|
1970
|
-
wasm.
|
|
1970
|
+
wasm.wasmdocumentmetadata_set_twitterCard(this.__wbg_ptr, addHeapObject(value));
|
|
1971
1971
|
}
|
|
1972
1972
|
/**
|
|
1973
|
-
* @returns {
|
|
1973
|
+
* @returns {WasmTextDirection | undefined}
|
|
1974
1974
|
*/
|
|
1975
1975
|
get textDirection() {
|
|
1976
|
-
const ret = wasm.
|
|
1976
|
+
const ret = wasm.wasmdocumentmetadata_textDirection(this.__wbg_ptr);
|
|
1977
1977
|
return ret === 3 ? undefined : ret;
|
|
1978
1978
|
}
|
|
1979
1979
|
/**
|
|
@@ -1982,7 +1982,7 @@ export class JsDocumentMetadata {
|
|
|
1982
1982
|
get title() {
|
|
1983
1983
|
try {
|
|
1984
1984
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1985
|
-
wasm.
|
|
1985
|
+
wasm.wasmdocumentmetadata_title(retptr, this.__wbg_ptr);
|
|
1986
1986
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1987
1987
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1988
1988
|
let v1;
|
|
@@ -1999,22 +1999,22 @@ export class JsDocumentMetadata {
|
|
|
1999
1999
|
* @returns {WasmConversionResult}
|
|
2000
2000
|
*/
|
|
2001
2001
|
get twitterCard() {
|
|
2002
|
-
const ret = wasm.
|
|
2002
|
+
const ret = wasm.wasmdocumentmetadata_twitterCard(this.__wbg_ptr);
|
|
2003
2003
|
return takeObject(ret);
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
if (Symbol.dispose)
|
|
2006
|
+
if (Symbol.dispose) WasmDocumentMetadata.prototype[Symbol.dispose] = WasmDocumentMetadata.prototype.free;
|
|
2007
2007
|
|
|
2008
|
-
export class
|
|
2008
|
+
export class WasmDocumentNode {
|
|
2009
2009
|
static __wrap(ptr) {
|
|
2010
2010
|
ptr = ptr >>> 0;
|
|
2011
|
-
const obj = Object.create(
|
|
2011
|
+
const obj = Object.create(WasmDocumentNode.prototype);
|
|
2012
2012
|
obj.__wbg_ptr = ptr;
|
|
2013
|
-
|
|
2013
|
+
WasmDocumentNodeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2014
2014
|
return obj;
|
|
2015
2015
|
}
|
|
2016
2016
|
static __unwrap(jsValue) {
|
|
2017
|
-
if (!(jsValue instanceof
|
|
2017
|
+
if (!(jsValue instanceof WasmDocumentNode)) {
|
|
2018
2018
|
return 0;
|
|
2019
2019
|
}
|
|
2020
2020
|
return jsValue.__destroy_into_raw();
|
|
@@ -2022,20 +2022,20 @@ export class JsDocumentNode {
|
|
|
2022
2022
|
__destroy_into_raw() {
|
|
2023
2023
|
const ptr = this.__wbg_ptr;
|
|
2024
2024
|
this.__wbg_ptr = 0;
|
|
2025
|
-
|
|
2025
|
+
WasmDocumentNodeFinalization.unregister(this);
|
|
2026
2026
|
return ptr;
|
|
2027
2027
|
}
|
|
2028
2028
|
free() {
|
|
2029
2029
|
const ptr = this.__destroy_into_raw();
|
|
2030
|
-
wasm.
|
|
2030
|
+
wasm.__wbg_wasmdocumentnode_free(ptr, 0);
|
|
2031
2031
|
}
|
|
2032
2032
|
/**
|
|
2033
|
-
* @returns {
|
|
2033
|
+
* @returns {WasmTextAnnotation[]}
|
|
2034
2034
|
*/
|
|
2035
2035
|
get annotations() {
|
|
2036
2036
|
try {
|
|
2037
2037
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2038
|
-
wasm.
|
|
2038
|
+
wasm.wasmdocumentnode_annotations(retptr, this.__wbg_ptr);
|
|
2039
2039
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2040
2040
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2041
2041
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2049,7 +2049,7 @@ export class JsDocumentNode {
|
|
|
2049
2049
|
* @returns {any | undefined}
|
|
2050
2050
|
*/
|
|
2051
2051
|
get attributes() {
|
|
2052
|
-
const ret = wasm.
|
|
2052
|
+
const ret = wasm.wasmdocumentnode_attributes(this.__wbg_ptr);
|
|
2053
2053
|
return takeObject(ret);
|
|
2054
2054
|
}
|
|
2055
2055
|
/**
|
|
@@ -2058,7 +2058,7 @@ export class JsDocumentNode {
|
|
|
2058
2058
|
get children() {
|
|
2059
2059
|
try {
|
|
2060
2060
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2061
|
-
wasm.
|
|
2061
|
+
wasm.wasmdocumentnode_children(retptr, this.__wbg_ptr);
|
|
2062
2062
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2063
2063
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2064
2064
|
var v1 = getArrayU32FromWasm0(r0, r1).slice();
|
|
@@ -2069,10 +2069,10 @@ export class JsDocumentNode {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
/**
|
|
2072
|
-
* @returns {
|
|
2072
|
+
* @returns {WasmNodeContent}
|
|
2073
2073
|
*/
|
|
2074
2074
|
get content() {
|
|
2075
|
-
const ret = wasm.
|
|
2075
|
+
const ret = wasm.wasmdocumentnode_content(this.__wbg_ptr);
|
|
2076
2076
|
return ret;
|
|
2077
2077
|
}
|
|
2078
2078
|
/**
|
|
@@ -2083,7 +2083,7 @@ export class JsDocumentNode {
|
|
|
2083
2083
|
let deferred1_1;
|
|
2084
2084
|
try {
|
|
2085
2085
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2086
|
-
wasm.
|
|
2086
|
+
wasm.wasmdocumentnode_id(retptr, this.__wbg_ptr);
|
|
2087
2087
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2088
2088
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2089
2089
|
deferred1_0 = r0;
|
|
@@ -2096,9 +2096,9 @@ export class JsDocumentNode {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
/**
|
|
2098
2098
|
* @param {string} id
|
|
2099
|
-
* @param {
|
|
2099
|
+
* @param {WasmNodeContent} content
|
|
2100
2100
|
* @param {Uint32Array} children
|
|
2101
|
-
* @param {
|
|
2101
|
+
* @param {WasmTextAnnotation[]} annotations
|
|
2102
2102
|
* @param {number | null} [parent]
|
|
2103
2103
|
* @param {any | null} [attributes]
|
|
2104
2104
|
*/
|
|
@@ -2109,31 +2109,31 @@ export class JsDocumentNode {
|
|
|
2109
2109
|
const len1 = WASM_VECTOR_LEN;
|
|
2110
2110
|
const ptr2 = passArrayJsValueToWasm0(annotations, wasm.__wbindgen_export);
|
|
2111
2111
|
const len2 = WASM_VECTOR_LEN;
|
|
2112
|
-
const ret = wasm.
|
|
2112
|
+
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, ptr2, len2, isLikeNone(parent) ? 0x100000001 : (parent) >>> 0, isLikeNone(attributes) ? 0 : addHeapObject(attributes));
|
|
2113
2113
|
this.__wbg_ptr = ret >>> 0;
|
|
2114
|
-
|
|
2114
|
+
WasmDocumentNodeFinalization.register(this, this.__wbg_ptr, this);
|
|
2115
2115
|
return this;
|
|
2116
2116
|
}
|
|
2117
2117
|
/**
|
|
2118
2118
|
* @returns {number | undefined}
|
|
2119
2119
|
*/
|
|
2120
2120
|
get parent() {
|
|
2121
|
-
const ret = wasm.
|
|
2121
|
+
const ret = wasm.wasmdocumentnode_parent(this.__wbg_ptr);
|
|
2122
2122
|
return ret === 0x100000001 ? undefined : ret;
|
|
2123
2123
|
}
|
|
2124
2124
|
/**
|
|
2125
|
-
* @param {
|
|
2125
|
+
* @param {WasmTextAnnotation[]} value
|
|
2126
2126
|
*/
|
|
2127
2127
|
set annotations(value) {
|
|
2128
2128
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2129
2129
|
const len0 = WASM_VECTOR_LEN;
|
|
2130
|
-
wasm.
|
|
2130
|
+
wasm.wasmdocumentnode_set_annotations(this.__wbg_ptr, ptr0, len0);
|
|
2131
2131
|
}
|
|
2132
2132
|
/**
|
|
2133
2133
|
* @param {any | null} [value]
|
|
2134
2134
|
*/
|
|
2135
2135
|
set attributes(value) {
|
|
2136
|
-
wasm.
|
|
2136
|
+
wasm.wasmdocumentnode_set_attributes(this.__wbg_ptr, isLikeNone(value) ? 0 : addHeapObject(value));
|
|
2137
2137
|
}
|
|
2138
2138
|
/**
|
|
2139
2139
|
* @param {Uint32Array} value
|
|
@@ -2141,13 +2141,13 @@ export class JsDocumentNode {
|
|
|
2141
2141
|
set children(value) {
|
|
2142
2142
|
const ptr0 = passArray32ToWasm0(value, wasm.__wbindgen_export);
|
|
2143
2143
|
const len0 = WASM_VECTOR_LEN;
|
|
2144
|
-
wasm.
|
|
2144
|
+
wasm.wasmdocumentnode_set_children(this.__wbg_ptr, ptr0, len0);
|
|
2145
2145
|
}
|
|
2146
2146
|
/**
|
|
2147
|
-
* @param {
|
|
2147
|
+
* @param {WasmNodeContent} value
|
|
2148
2148
|
*/
|
|
2149
2149
|
set content(value) {
|
|
2150
|
-
wasm.
|
|
2150
|
+
wasm.wasmdocumentnode_set_content(this.__wbg_ptr, value);
|
|
2151
2151
|
}
|
|
2152
2152
|
/**
|
|
2153
2153
|
* @param {string} value
|
|
@@ -2155,37 +2155,37 @@ export class JsDocumentNode {
|
|
|
2155
2155
|
set id(value) {
|
|
2156
2156
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2157
2157
|
const len0 = WASM_VECTOR_LEN;
|
|
2158
|
-
wasm.
|
|
2158
|
+
wasm.wasmdocumentnode_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2159
2159
|
}
|
|
2160
2160
|
/**
|
|
2161
2161
|
* @param {number | null} [value]
|
|
2162
2162
|
*/
|
|
2163
2163
|
set parent(value) {
|
|
2164
|
-
wasm.
|
|
2164
|
+
wasm.wasmdocumentnode_set_parent(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
|
-
if (Symbol.dispose)
|
|
2167
|
+
if (Symbol.dispose) WasmDocumentNode.prototype[Symbol.dispose] = WasmDocumentNode.prototype.free;
|
|
2168
2168
|
|
|
2169
|
-
export class
|
|
2169
|
+
export class WasmDocumentStructure {
|
|
2170
2170
|
static __wrap(ptr) {
|
|
2171
2171
|
ptr = ptr >>> 0;
|
|
2172
|
-
const obj = Object.create(
|
|
2172
|
+
const obj = Object.create(WasmDocumentStructure.prototype);
|
|
2173
2173
|
obj.__wbg_ptr = ptr;
|
|
2174
|
-
|
|
2174
|
+
WasmDocumentStructureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2175
2175
|
return obj;
|
|
2176
2176
|
}
|
|
2177
2177
|
__destroy_into_raw() {
|
|
2178
2178
|
const ptr = this.__wbg_ptr;
|
|
2179
2179
|
this.__wbg_ptr = 0;
|
|
2180
|
-
|
|
2180
|
+
WasmDocumentStructureFinalization.unregister(this);
|
|
2181
2181
|
return ptr;
|
|
2182
2182
|
}
|
|
2183
2183
|
free() {
|
|
2184
2184
|
const ptr = this.__destroy_into_raw();
|
|
2185
|
-
wasm.
|
|
2185
|
+
wasm.__wbg_wasmdocumentstructure_free(ptr, 0);
|
|
2186
2186
|
}
|
|
2187
2187
|
/**
|
|
2188
|
-
* @param {
|
|
2188
|
+
* @param {WasmDocumentNode[]} nodes
|
|
2189
2189
|
* @param {string | null} [source_format]
|
|
2190
2190
|
*/
|
|
2191
2191
|
constructor(nodes, source_format) {
|
|
@@ -2193,18 +2193,18 @@ export class JsDocumentStructure {
|
|
|
2193
2193
|
const len0 = WASM_VECTOR_LEN;
|
|
2194
2194
|
var ptr1 = isLikeNone(source_format) ? 0 : passStringToWasm0(source_format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2195
2195
|
var len1 = WASM_VECTOR_LEN;
|
|
2196
|
-
const ret = wasm.
|
|
2196
|
+
const ret = wasm.wasmdocumentstructure_new(ptr0, len0, ptr1, len1);
|
|
2197
2197
|
this.__wbg_ptr = ret >>> 0;
|
|
2198
|
-
|
|
2198
|
+
WasmDocumentStructureFinalization.register(this, this.__wbg_ptr, this);
|
|
2199
2199
|
return this;
|
|
2200
2200
|
}
|
|
2201
2201
|
/**
|
|
2202
|
-
* @returns {
|
|
2202
|
+
* @returns {WasmDocumentNode[]}
|
|
2203
2203
|
*/
|
|
2204
2204
|
get nodes() {
|
|
2205
2205
|
try {
|
|
2206
2206
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2207
|
-
wasm.
|
|
2207
|
+
wasm.wasmdocumentstructure_nodes(retptr, this.__wbg_ptr);
|
|
2208
2208
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2209
2209
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2210
2210
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2215,12 +2215,12 @@ export class JsDocumentStructure {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
/**
|
|
2218
|
-
* @param {
|
|
2218
|
+
* @param {WasmDocumentNode[]} value
|
|
2219
2219
|
*/
|
|
2220
2220
|
set nodes(value) {
|
|
2221
2221
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2222
2222
|
const len0 = WASM_VECTOR_LEN;
|
|
2223
|
-
wasm.
|
|
2223
|
+
wasm.wasmdocumentstructure_set_nodes(this.__wbg_ptr, ptr0, len0);
|
|
2224
2224
|
}
|
|
2225
2225
|
/**
|
|
2226
2226
|
* @param {string | null} [value]
|
|
@@ -2228,7 +2228,7 @@ export class JsDocumentStructure {
|
|
|
2228
2228
|
set sourceFormat(value) {
|
|
2229
2229
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2230
2230
|
var len0 = WASM_VECTOR_LEN;
|
|
2231
|
-
wasm.
|
|
2231
|
+
wasm.wasmdocumentstructure_set_sourceFormat(this.__wbg_ptr, ptr0, len0);
|
|
2232
2232
|
}
|
|
2233
2233
|
/**
|
|
2234
2234
|
* @returns {string | undefined}
|
|
@@ -2236,7 +2236,7 @@ export class JsDocumentStructure {
|
|
|
2236
2236
|
get sourceFormat() {
|
|
2237
2237
|
try {
|
|
2238
2238
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2239
|
-
wasm.
|
|
2239
|
+
wasm.wasmdocumentstructure_sourceFormat(retptr, this.__wbg_ptr);
|
|
2240
2240
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2241
2241
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2242
2242
|
let v1;
|
|
@@ -2250,18 +2250,18 @@ export class JsDocumentStructure {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
|
-
if (Symbol.dispose)
|
|
2253
|
+
if (Symbol.dispose) WasmDocumentStructure.prototype[Symbol.dispose] = WasmDocumentStructure.prototype.free;
|
|
2254
2254
|
|
|
2255
|
-
export class
|
|
2255
|
+
export class WasmGridCell {
|
|
2256
2256
|
static __wrap(ptr) {
|
|
2257
2257
|
ptr = ptr >>> 0;
|
|
2258
|
-
const obj = Object.create(
|
|
2258
|
+
const obj = Object.create(WasmGridCell.prototype);
|
|
2259
2259
|
obj.__wbg_ptr = ptr;
|
|
2260
|
-
|
|
2260
|
+
WasmGridCellFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2261
2261
|
return obj;
|
|
2262
2262
|
}
|
|
2263
2263
|
static __unwrap(jsValue) {
|
|
2264
|
-
if (!(jsValue instanceof
|
|
2264
|
+
if (!(jsValue instanceof WasmGridCell)) {
|
|
2265
2265
|
return 0;
|
|
2266
2266
|
}
|
|
2267
2267
|
return jsValue.__destroy_into_raw();
|
|
@@ -2269,25 +2269,25 @@ export class JsGridCell {
|
|
|
2269
2269
|
__destroy_into_raw() {
|
|
2270
2270
|
const ptr = this.__wbg_ptr;
|
|
2271
2271
|
this.__wbg_ptr = 0;
|
|
2272
|
-
|
|
2272
|
+
WasmGridCellFinalization.unregister(this);
|
|
2273
2273
|
return ptr;
|
|
2274
2274
|
}
|
|
2275
2275
|
free() {
|
|
2276
2276
|
const ptr = this.__destroy_into_raw();
|
|
2277
|
-
wasm.
|
|
2277
|
+
wasm.__wbg_wasmgridcell_free(ptr, 0);
|
|
2278
2278
|
}
|
|
2279
2279
|
/**
|
|
2280
2280
|
* @returns {number}
|
|
2281
2281
|
*/
|
|
2282
2282
|
get col() {
|
|
2283
|
-
const ret = wasm.
|
|
2283
|
+
const ret = wasm.wasmgridcell_col(this.__wbg_ptr);
|
|
2284
2284
|
return ret >>> 0;
|
|
2285
2285
|
}
|
|
2286
2286
|
/**
|
|
2287
2287
|
* @returns {number}
|
|
2288
2288
|
*/
|
|
2289
2289
|
get colSpan() {
|
|
2290
|
-
const ret = wasm.
|
|
2290
|
+
const ret = wasm.wasmgridcell_colSpan(this.__wbg_ptr);
|
|
2291
2291
|
return ret >>> 0;
|
|
2292
2292
|
}
|
|
2293
2293
|
/**
|
|
@@ -2298,7 +2298,7 @@ export class JsGridCell {
|
|
|
2298
2298
|
let deferred1_1;
|
|
2299
2299
|
try {
|
|
2300
2300
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2301
|
-
wasm.
|
|
2301
|
+
wasm.wasmgridcell_content(retptr, this.__wbg_ptr);
|
|
2302
2302
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2303
2303
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2304
2304
|
deferred1_0 = r0;
|
|
@@ -2313,7 +2313,7 @@ export class JsGridCell {
|
|
|
2313
2313
|
* @returns {boolean}
|
|
2314
2314
|
*/
|
|
2315
2315
|
get isHeader() {
|
|
2316
|
-
const ret = wasm.
|
|
2316
|
+
const ret = wasm.wasmgridcell_isHeader(this.__wbg_ptr);
|
|
2317
2317
|
return ret !== 0;
|
|
2318
2318
|
}
|
|
2319
2319
|
/**
|
|
@@ -2327,36 +2327,36 @@ export class JsGridCell {
|
|
|
2327
2327
|
constructor(content, row, col, row_span, col_span, is_header) {
|
|
2328
2328
|
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2329
2329
|
const len0 = WASM_VECTOR_LEN;
|
|
2330
|
-
const ret = wasm.
|
|
2330
|
+
const ret = wasm.wasmgridcell_new(ptr0, len0, row, col, row_span, col_span, is_header);
|
|
2331
2331
|
this.__wbg_ptr = ret >>> 0;
|
|
2332
|
-
|
|
2332
|
+
WasmGridCellFinalization.register(this, this.__wbg_ptr, this);
|
|
2333
2333
|
return this;
|
|
2334
2334
|
}
|
|
2335
2335
|
/**
|
|
2336
2336
|
* @returns {number}
|
|
2337
2337
|
*/
|
|
2338
2338
|
get row() {
|
|
2339
|
-
const ret = wasm.
|
|
2339
|
+
const ret = wasm.wasmgridcell_row(this.__wbg_ptr);
|
|
2340
2340
|
return ret >>> 0;
|
|
2341
2341
|
}
|
|
2342
2342
|
/**
|
|
2343
2343
|
* @returns {number}
|
|
2344
2344
|
*/
|
|
2345
2345
|
get rowSpan() {
|
|
2346
|
-
const ret = wasm.
|
|
2346
|
+
const ret = wasm.wasmgridcell_rowSpan(this.__wbg_ptr);
|
|
2347
2347
|
return ret >>> 0;
|
|
2348
2348
|
}
|
|
2349
2349
|
/**
|
|
2350
2350
|
* @param {number} value
|
|
2351
2351
|
*/
|
|
2352
2352
|
set col(value) {
|
|
2353
|
-
wasm.
|
|
2353
|
+
wasm.wasmgridcell_set_col(this.__wbg_ptr, value);
|
|
2354
2354
|
}
|
|
2355
2355
|
/**
|
|
2356
2356
|
* @param {number} value
|
|
2357
2357
|
*/
|
|
2358
2358
|
set colSpan(value) {
|
|
2359
|
-
wasm.
|
|
2359
|
+
wasm.wasmgridcell_set_colSpan(this.__wbg_ptr, value);
|
|
2360
2360
|
}
|
|
2361
2361
|
/**
|
|
2362
2362
|
* @param {string} value
|
|
@@ -2364,39 +2364,39 @@ export class JsGridCell {
|
|
|
2364
2364
|
set content(value) {
|
|
2365
2365
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2366
2366
|
const len0 = WASM_VECTOR_LEN;
|
|
2367
|
-
wasm.
|
|
2367
|
+
wasm.wasmgridcell_set_content(this.__wbg_ptr, ptr0, len0);
|
|
2368
2368
|
}
|
|
2369
2369
|
/**
|
|
2370
2370
|
* @param {boolean} value
|
|
2371
2371
|
*/
|
|
2372
2372
|
set isHeader(value) {
|
|
2373
|
-
wasm.
|
|
2373
|
+
wasm.wasmgridcell_set_isHeader(this.__wbg_ptr, value);
|
|
2374
2374
|
}
|
|
2375
2375
|
/**
|
|
2376
2376
|
* @param {number} value
|
|
2377
2377
|
*/
|
|
2378
2378
|
set row(value) {
|
|
2379
|
-
wasm.
|
|
2379
|
+
wasm.wasmgridcell_set_row(this.__wbg_ptr, value);
|
|
2380
2380
|
}
|
|
2381
2381
|
/**
|
|
2382
2382
|
* @param {number} value
|
|
2383
2383
|
*/
|
|
2384
2384
|
set rowSpan(value) {
|
|
2385
|
-
wasm.
|
|
2385
|
+
wasm.wasmgridcell_set_rowSpan(this.__wbg_ptr, value);
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
|
-
if (Symbol.dispose)
|
|
2388
|
+
if (Symbol.dispose) WasmGridCell.prototype[Symbol.dispose] = WasmGridCell.prototype.free;
|
|
2389
2389
|
|
|
2390
|
-
export class
|
|
2390
|
+
export class WasmHeaderMetadata {
|
|
2391
2391
|
static __wrap(ptr) {
|
|
2392
2392
|
ptr = ptr >>> 0;
|
|
2393
|
-
const obj = Object.create(
|
|
2393
|
+
const obj = Object.create(WasmHeaderMetadata.prototype);
|
|
2394
2394
|
obj.__wbg_ptr = ptr;
|
|
2395
|
-
|
|
2395
|
+
WasmHeaderMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2396
2396
|
return obj;
|
|
2397
2397
|
}
|
|
2398
2398
|
static __unwrap(jsValue) {
|
|
2399
|
-
if (!(jsValue instanceof
|
|
2399
|
+
if (!(jsValue instanceof WasmHeaderMetadata)) {
|
|
2400
2400
|
return 0;
|
|
2401
2401
|
}
|
|
2402
2402
|
return jsValue.__destroy_into_raw();
|
|
@@ -2404,25 +2404,25 @@ export class JsHeaderMetadata {
|
|
|
2404
2404
|
__destroy_into_raw() {
|
|
2405
2405
|
const ptr = this.__wbg_ptr;
|
|
2406
2406
|
this.__wbg_ptr = 0;
|
|
2407
|
-
|
|
2407
|
+
WasmHeaderMetadataFinalization.unregister(this);
|
|
2408
2408
|
return ptr;
|
|
2409
2409
|
}
|
|
2410
2410
|
free() {
|
|
2411
2411
|
const ptr = this.__destroy_into_raw();
|
|
2412
|
-
wasm.
|
|
2412
|
+
wasm.__wbg_wasmheadermetadata_free(ptr, 0);
|
|
2413
2413
|
}
|
|
2414
2414
|
/**
|
|
2415
2415
|
* @returns {number}
|
|
2416
2416
|
*/
|
|
2417
2417
|
get depth() {
|
|
2418
|
-
const ret = wasm.
|
|
2418
|
+
const ret = wasm.wasmheadermetadata_depth(this.__wbg_ptr);
|
|
2419
2419
|
return ret >>> 0;
|
|
2420
2420
|
}
|
|
2421
2421
|
/**
|
|
2422
2422
|
* @returns {number}
|
|
2423
2423
|
*/
|
|
2424
2424
|
get htmlOffset() {
|
|
2425
|
-
const ret = wasm.
|
|
2425
|
+
const ret = wasm.wasmheadermetadata_htmlOffset(this.__wbg_ptr);
|
|
2426
2426
|
return ret >>> 0;
|
|
2427
2427
|
}
|
|
2428
2428
|
/**
|
|
@@ -2431,7 +2431,7 @@ export class JsHeaderMetadata {
|
|
|
2431
2431
|
get id() {
|
|
2432
2432
|
try {
|
|
2433
2433
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2434
|
-
wasm.
|
|
2434
|
+
wasm.wasmheadermetadata_id(retptr, this.__wbg_ptr);
|
|
2435
2435
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2436
2436
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2437
2437
|
let v1;
|
|
@@ -2448,14 +2448,14 @@ export class JsHeaderMetadata {
|
|
|
2448
2448
|
* @returns {boolean}
|
|
2449
2449
|
*/
|
|
2450
2450
|
isValid() {
|
|
2451
|
-
const ret = wasm.
|
|
2451
|
+
const ret = wasm.wasmheadermetadata_isValid(this.__wbg_ptr);
|
|
2452
2452
|
return ret !== 0;
|
|
2453
2453
|
}
|
|
2454
2454
|
/**
|
|
2455
2455
|
* @returns {number}
|
|
2456
2456
|
*/
|
|
2457
2457
|
get level() {
|
|
2458
|
-
const ret = wasm.
|
|
2458
|
+
const ret = wasm.wasmheadermetadata_level(this.__wbg_ptr);
|
|
2459
2459
|
return ret;
|
|
2460
2460
|
}
|
|
2461
2461
|
/**
|
|
@@ -2470,22 +2470,22 @@ export class JsHeaderMetadata {
|
|
|
2470
2470
|
const len0 = WASM_VECTOR_LEN;
|
|
2471
2471
|
var ptr1 = isLikeNone(id) ? 0 : passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2472
2472
|
var len1 = WASM_VECTOR_LEN;
|
|
2473
|
-
const ret = wasm.
|
|
2473
|
+
const ret = wasm.wasmheadermetadata_new(level, ptr0, len0, depth, html_offset, ptr1, len1);
|
|
2474
2474
|
this.__wbg_ptr = ret >>> 0;
|
|
2475
|
-
|
|
2475
|
+
WasmHeaderMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2476
2476
|
return this;
|
|
2477
2477
|
}
|
|
2478
2478
|
/**
|
|
2479
2479
|
* @param {number} value
|
|
2480
2480
|
*/
|
|
2481
2481
|
set depth(value) {
|
|
2482
|
-
wasm.
|
|
2482
|
+
wasm.wasmheadermetadata_set_depth(this.__wbg_ptr, value);
|
|
2483
2483
|
}
|
|
2484
2484
|
/**
|
|
2485
2485
|
* @param {number} value
|
|
2486
2486
|
*/
|
|
2487
2487
|
set htmlOffset(value) {
|
|
2488
|
-
wasm.
|
|
2488
|
+
wasm.wasmheadermetadata_set_htmlOffset(this.__wbg_ptr, value);
|
|
2489
2489
|
}
|
|
2490
2490
|
/**
|
|
2491
2491
|
* @param {string | null} [value]
|
|
@@ -2493,13 +2493,13 @@ export class JsHeaderMetadata {
|
|
|
2493
2493
|
set id(value) {
|
|
2494
2494
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2495
2495
|
var len0 = WASM_VECTOR_LEN;
|
|
2496
|
-
wasm.
|
|
2496
|
+
wasm.wasmheadermetadata_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2497
2497
|
}
|
|
2498
2498
|
/**
|
|
2499
2499
|
* @param {number} value
|
|
2500
2500
|
*/
|
|
2501
2501
|
set level(value) {
|
|
2502
|
-
wasm.
|
|
2502
|
+
wasm.wasmheadermetadata_set_level(this.__wbg_ptr, value);
|
|
2503
2503
|
}
|
|
2504
2504
|
/**
|
|
2505
2505
|
* @param {string} value
|
|
@@ -2507,7 +2507,7 @@ export class JsHeaderMetadata {
|
|
|
2507
2507
|
set text(value) {
|
|
2508
2508
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2509
2509
|
const len0 = WASM_VECTOR_LEN;
|
|
2510
|
-
wasm.
|
|
2510
|
+
wasm.wasmheadermetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
2511
2511
|
}
|
|
2512
2512
|
/**
|
|
2513
2513
|
* @returns {string}
|
|
@@ -2517,7 +2517,7 @@ export class JsHeaderMetadata {
|
|
|
2517
2517
|
let deferred1_1;
|
|
2518
2518
|
try {
|
|
2519
2519
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2520
|
-
wasm.
|
|
2520
|
+
wasm.wasmheadermetadata_text(retptr, this.__wbg_ptr);
|
|
2521
2521
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2522
2522
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2523
2523
|
deferred1_0 = r0;
|
|
@@ -2529,12 +2529,12 @@ export class JsHeaderMetadata {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
|
-
if (Symbol.dispose)
|
|
2532
|
+
if (Symbol.dispose) WasmHeaderMetadata.prototype[Symbol.dispose] = WasmHeaderMetadata.prototype.free;
|
|
2533
2533
|
|
|
2534
2534
|
/**
|
|
2535
2535
|
* @enum {0 | 1 | 2}
|
|
2536
2536
|
*/
|
|
2537
|
-
export const
|
|
2537
|
+
export const WasmHeadingStyle = Object.freeze({
|
|
2538
2538
|
Underlined: 0, "0": "Underlined",
|
|
2539
2539
|
Atx: 1, "1": "Atx",
|
|
2540
2540
|
AtxClosed: 2, "2": "AtxClosed",
|
|
@@ -2543,45 +2543,45 @@ export const JsHeadingStyle = Object.freeze({
|
|
|
2543
2543
|
/**
|
|
2544
2544
|
* @enum {0 | 1 | 2 | 3}
|
|
2545
2545
|
*/
|
|
2546
|
-
export const
|
|
2546
|
+
export const WasmHighlightStyle = Object.freeze({
|
|
2547
2547
|
DoubleEqual: 0, "0": "DoubleEqual",
|
|
2548
2548
|
Html: 1, "1": "Html",
|
|
2549
2549
|
Bold: 2, "2": "Bold",
|
|
2550
2550
|
None: 3, "3": "None",
|
|
2551
2551
|
});
|
|
2552
2552
|
|
|
2553
|
-
export class
|
|
2553
|
+
export class WasmHtmlMetadata {
|
|
2554
2554
|
static __wrap(ptr) {
|
|
2555
2555
|
ptr = ptr >>> 0;
|
|
2556
|
-
const obj = Object.create(
|
|
2556
|
+
const obj = Object.create(WasmHtmlMetadata.prototype);
|
|
2557
2557
|
obj.__wbg_ptr = ptr;
|
|
2558
|
-
|
|
2558
|
+
WasmHtmlMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2559
2559
|
return obj;
|
|
2560
2560
|
}
|
|
2561
2561
|
__destroy_into_raw() {
|
|
2562
2562
|
const ptr = this.__wbg_ptr;
|
|
2563
2563
|
this.__wbg_ptr = 0;
|
|
2564
|
-
|
|
2564
|
+
WasmHtmlMetadataFinalization.unregister(this);
|
|
2565
2565
|
return ptr;
|
|
2566
2566
|
}
|
|
2567
2567
|
free() {
|
|
2568
2568
|
const ptr = this.__destroy_into_raw();
|
|
2569
|
-
wasm.
|
|
2569
|
+
wasm.__wbg_wasmhtmlmetadata_free(ptr, 0);
|
|
2570
2570
|
}
|
|
2571
2571
|
/**
|
|
2572
|
-
* @returns {
|
|
2572
|
+
* @returns {WasmDocumentMetadata}
|
|
2573
2573
|
*/
|
|
2574
2574
|
get document() {
|
|
2575
|
-
const ret = wasm.
|
|
2576
|
-
return
|
|
2575
|
+
const ret = wasm.wasmhtmlmetadata_document(this.__wbg_ptr);
|
|
2576
|
+
return WasmDocumentMetadata.__wrap(ret);
|
|
2577
2577
|
}
|
|
2578
2578
|
/**
|
|
2579
|
-
* @returns {
|
|
2579
|
+
* @returns {WasmHeaderMetadata[]}
|
|
2580
2580
|
*/
|
|
2581
2581
|
get headers() {
|
|
2582
2582
|
try {
|
|
2583
2583
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2584
|
-
wasm.
|
|
2584
|
+
wasm.wasmhtmlmetadata_headers(retptr, this.__wbg_ptr);
|
|
2585
2585
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2586
2586
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2587
2587
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2592,12 +2592,12 @@ export class JsHtmlMetadata {
|
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
/**
|
|
2595
|
-
* @returns {
|
|
2595
|
+
* @returns {WasmImageMetadata[]}
|
|
2596
2596
|
*/
|
|
2597
2597
|
get images() {
|
|
2598
2598
|
try {
|
|
2599
2599
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2600
|
-
wasm.
|
|
2600
|
+
wasm.wasmhtmlmetadata_images(retptr, this.__wbg_ptr);
|
|
2601
2601
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2602
2602
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2603
2603
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2608,12 +2608,12 @@ export class JsHtmlMetadata {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
/**
|
|
2611
|
-
* @returns {
|
|
2611
|
+
* @returns {WasmLinkMetadata[]}
|
|
2612
2612
|
*/
|
|
2613
2613
|
get links() {
|
|
2614
2614
|
try {
|
|
2615
2615
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2616
|
-
wasm.
|
|
2616
|
+
wasm.wasmhtmlmetadata_links(retptr, this.__wbg_ptr);
|
|
2617
2617
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2618
2618
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2619
2619
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2624,16 +2624,16 @@ export class JsHtmlMetadata {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
}
|
|
2626
2626
|
/**
|
|
2627
|
-
* @param {
|
|
2628
|
-
* @param {
|
|
2629
|
-
* @param {
|
|
2630
|
-
* @param {
|
|
2631
|
-
* @param {
|
|
2627
|
+
* @param {WasmDocumentMetadata | null} [document]
|
|
2628
|
+
* @param {WasmHeaderMetadata[] | null} [headers]
|
|
2629
|
+
* @param {WasmLinkMetadata[] | null} [links]
|
|
2630
|
+
* @param {WasmImageMetadata[] | null} [images]
|
|
2631
|
+
* @param {WasmStructuredData[] | null} [structured_data]
|
|
2632
2632
|
*/
|
|
2633
2633
|
constructor(document, headers, links, images, structured_data) {
|
|
2634
2634
|
let ptr0 = 0;
|
|
2635
2635
|
if (!isLikeNone(document)) {
|
|
2636
|
-
_assertClass(document,
|
|
2636
|
+
_assertClass(document, WasmDocumentMetadata);
|
|
2637
2637
|
ptr0 = document.__destroy_into_raw();
|
|
2638
2638
|
}
|
|
2639
2639
|
var ptr1 = isLikeNone(headers) ? 0 : passArrayJsValueToWasm0(headers, wasm.__wbindgen_export);
|
|
@@ -2644,58 +2644,58 @@ export class JsHtmlMetadata {
|
|
|
2644
2644
|
var len3 = WASM_VECTOR_LEN;
|
|
2645
2645
|
var ptr4 = isLikeNone(structured_data) ? 0 : passArrayJsValueToWasm0(structured_data, wasm.__wbindgen_export);
|
|
2646
2646
|
var len4 = WASM_VECTOR_LEN;
|
|
2647
|
-
const ret = wasm.
|
|
2647
|
+
const ret = wasm.wasmhtmlmetadata_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
2648
2648
|
this.__wbg_ptr = ret >>> 0;
|
|
2649
|
-
|
|
2649
|
+
WasmHtmlMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2650
2650
|
return this;
|
|
2651
2651
|
}
|
|
2652
2652
|
/**
|
|
2653
|
-
* @param {
|
|
2653
|
+
* @param {WasmDocumentMetadata} value
|
|
2654
2654
|
*/
|
|
2655
2655
|
set document(value) {
|
|
2656
|
-
_assertClass(value,
|
|
2656
|
+
_assertClass(value, WasmDocumentMetadata);
|
|
2657
2657
|
var ptr0 = value.__destroy_into_raw();
|
|
2658
|
-
wasm.
|
|
2658
|
+
wasm.wasmhtmlmetadata_set_document(this.__wbg_ptr, ptr0);
|
|
2659
2659
|
}
|
|
2660
2660
|
/**
|
|
2661
|
-
* @param {
|
|
2661
|
+
* @param {WasmHeaderMetadata[]} value
|
|
2662
2662
|
*/
|
|
2663
2663
|
set headers(value) {
|
|
2664
2664
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2665
2665
|
const len0 = WASM_VECTOR_LEN;
|
|
2666
|
-
wasm.
|
|
2666
|
+
wasm.wasmhtmlmetadata_set_headers(this.__wbg_ptr, ptr0, len0);
|
|
2667
2667
|
}
|
|
2668
2668
|
/**
|
|
2669
|
-
* @param {
|
|
2669
|
+
* @param {WasmImageMetadata[]} value
|
|
2670
2670
|
*/
|
|
2671
2671
|
set images(value) {
|
|
2672
2672
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2673
2673
|
const len0 = WASM_VECTOR_LEN;
|
|
2674
|
-
wasm.
|
|
2674
|
+
wasm.wasmhtmlmetadata_set_images(this.__wbg_ptr, ptr0, len0);
|
|
2675
2675
|
}
|
|
2676
2676
|
/**
|
|
2677
|
-
* @param {
|
|
2677
|
+
* @param {WasmLinkMetadata[]} value
|
|
2678
2678
|
*/
|
|
2679
2679
|
set links(value) {
|
|
2680
2680
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2681
2681
|
const len0 = WASM_VECTOR_LEN;
|
|
2682
|
-
wasm.
|
|
2682
|
+
wasm.wasmhtmlmetadata_set_links(this.__wbg_ptr, ptr0, len0);
|
|
2683
2683
|
}
|
|
2684
2684
|
/**
|
|
2685
|
-
* @param {
|
|
2685
|
+
* @param {WasmStructuredData[]} value
|
|
2686
2686
|
*/
|
|
2687
2687
|
set structuredData(value) {
|
|
2688
2688
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2689
2689
|
const len0 = WASM_VECTOR_LEN;
|
|
2690
|
-
wasm.
|
|
2690
|
+
wasm.wasmhtmlmetadata_set_structuredData(this.__wbg_ptr, ptr0, len0);
|
|
2691
2691
|
}
|
|
2692
2692
|
/**
|
|
2693
|
-
* @returns {
|
|
2693
|
+
* @returns {WasmStructuredData[]}
|
|
2694
2694
|
*/
|
|
2695
2695
|
get structuredData() {
|
|
2696
2696
|
try {
|
|
2697
2697
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2698
|
-
wasm.
|
|
2698
|
+
wasm.wasmhtmlmetadata_structuredData(retptr, this.__wbg_ptr);
|
|
2699
2699
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2700
2700
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2701
2701
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2706,18 +2706,18 @@ export class JsHtmlMetadata {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
|
-
if (Symbol.dispose)
|
|
2709
|
+
if (Symbol.dispose) WasmHtmlMetadata.prototype[Symbol.dispose] = WasmHtmlMetadata.prototype.free;
|
|
2710
2710
|
|
|
2711
|
-
export class
|
|
2711
|
+
export class WasmImageMetadata {
|
|
2712
2712
|
static __wrap(ptr) {
|
|
2713
2713
|
ptr = ptr >>> 0;
|
|
2714
|
-
const obj = Object.create(
|
|
2714
|
+
const obj = Object.create(WasmImageMetadata.prototype);
|
|
2715
2715
|
obj.__wbg_ptr = ptr;
|
|
2716
|
-
|
|
2716
|
+
WasmImageMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2717
2717
|
return obj;
|
|
2718
2718
|
}
|
|
2719
2719
|
static __unwrap(jsValue) {
|
|
2720
|
-
if (!(jsValue instanceof
|
|
2720
|
+
if (!(jsValue instanceof WasmImageMetadata)) {
|
|
2721
2721
|
return 0;
|
|
2722
2722
|
}
|
|
2723
2723
|
return jsValue.__destroy_into_raw();
|
|
@@ -2725,12 +2725,12 @@ export class JsImageMetadata {
|
|
|
2725
2725
|
__destroy_into_raw() {
|
|
2726
2726
|
const ptr = this.__wbg_ptr;
|
|
2727
2727
|
this.__wbg_ptr = 0;
|
|
2728
|
-
|
|
2728
|
+
WasmImageMetadataFinalization.unregister(this);
|
|
2729
2729
|
return ptr;
|
|
2730
2730
|
}
|
|
2731
2731
|
free() {
|
|
2732
2732
|
const ptr = this.__destroy_into_raw();
|
|
2733
|
-
wasm.
|
|
2733
|
+
wasm.__wbg_wasmimagemetadata_free(ptr, 0);
|
|
2734
2734
|
}
|
|
2735
2735
|
/**
|
|
2736
2736
|
* @returns {string | undefined}
|
|
@@ -2738,7 +2738,7 @@ export class JsImageMetadata {
|
|
|
2738
2738
|
get alt() {
|
|
2739
2739
|
try {
|
|
2740
2740
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2741
|
-
wasm.
|
|
2741
|
+
wasm.wasmimagemetadata_alt(retptr, this.__wbg_ptr);
|
|
2742
2742
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2743
2743
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2744
2744
|
let v1;
|
|
@@ -2755,7 +2755,7 @@ export class JsImageMetadata {
|
|
|
2755
2755
|
* @returns {WasmConversionResult}
|
|
2756
2756
|
*/
|
|
2757
2757
|
get attributes() {
|
|
2758
|
-
const ret = wasm.
|
|
2758
|
+
const ret = wasm.wasmimagemetadata_attributes(this.__wbg_ptr);
|
|
2759
2759
|
return takeObject(ret);
|
|
2760
2760
|
}
|
|
2761
2761
|
/**
|
|
@@ -2764,7 +2764,7 @@ export class JsImageMetadata {
|
|
|
2764
2764
|
get dimensions() {
|
|
2765
2765
|
try {
|
|
2766
2766
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2767
|
-
wasm.
|
|
2767
|
+
wasm.wasmimagemetadata_dimensions(retptr, this.__wbg_ptr);
|
|
2768
2768
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2769
2769
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2770
2770
|
let v1;
|
|
@@ -2778,15 +2778,15 @@ export class JsImageMetadata {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
2780
|
/**
|
|
2781
|
-
* @returns {
|
|
2781
|
+
* @returns {WasmImageType}
|
|
2782
2782
|
*/
|
|
2783
2783
|
get imageType() {
|
|
2784
|
-
const ret = wasm.
|
|
2784
|
+
const ret = wasm.wasmimagemetadata_imageType(this.__wbg_ptr);
|
|
2785
2785
|
return ret;
|
|
2786
2786
|
}
|
|
2787
2787
|
/**
|
|
2788
2788
|
* @param {string} src
|
|
2789
|
-
* @param {
|
|
2789
|
+
* @param {WasmImageType} image_type
|
|
2790
2790
|
* @param {any} attributes
|
|
2791
2791
|
* @param {string | null} [alt]
|
|
2792
2792
|
* @param {string | null} [title]
|
|
@@ -2801,9 +2801,9 @@ export class JsImageMetadata {
|
|
|
2801
2801
|
var len2 = WASM_VECTOR_LEN;
|
|
2802
2802
|
var ptr3 = isLikeNone(dimensions) ? 0 : passStringToWasm0(dimensions, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2803
2803
|
var len3 = WASM_VECTOR_LEN;
|
|
2804
|
-
const ret = wasm.
|
|
2804
|
+
const ret = wasm.wasmimagemetadata_new(ptr0, len0, image_type, addHeapObject(attributes), ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2805
2805
|
this.__wbg_ptr = ret >>> 0;
|
|
2806
|
-
|
|
2806
|
+
WasmImageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2807
2807
|
return this;
|
|
2808
2808
|
}
|
|
2809
2809
|
/**
|
|
@@ -2812,13 +2812,13 @@ export class JsImageMetadata {
|
|
|
2812
2812
|
set alt(value) {
|
|
2813
2813
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2814
2814
|
var len0 = WASM_VECTOR_LEN;
|
|
2815
|
-
wasm.
|
|
2815
|
+
wasm.wasmimagemetadata_set_alt(this.__wbg_ptr, ptr0, len0);
|
|
2816
2816
|
}
|
|
2817
2817
|
/**
|
|
2818
2818
|
* @param {any} value
|
|
2819
2819
|
*/
|
|
2820
2820
|
set attributes(value) {
|
|
2821
|
-
wasm.
|
|
2821
|
+
wasm.wasmimagemetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
2822
2822
|
}
|
|
2823
2823
|
/**
|
|
2824
2824
|
* @param {string | null} [value]
|
|
@@ -2826,13 +2826,13 @@ export class JsImageMetadata {
|
|
|
2826
2826
|
set dimensions(value) {
|
|
2827
2827
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2828
2828
|
var len0 = WASM_VECTOR_LEN;
|
|
2829
|
-
wasm.
|
|
2829
|
+
wasm.wasmimagemetadata_set_dimensions(this.__wbg_ptr, ptr0, len0);
|
|
2830
2830
|
}
|
|
2831
2831
|
/**
|
|
2832
|
-
* @param {
|
|
2832
|
+
* @param {WasmImageType} value
|
|
2833
2833
|
*/
|
|
2834
2834
|
set imageType(value) {
|
|
2835
|
-
wasm.
|
|
2835
|
+
wasm.wasmimagemetadata_set_imageType(this.__wbg_ptr, value);
|
|
2836
2836
|
}
|
|
2837
2837
|
/**
|
|
2838
2838
|
* @param {string} value
|
|
@@ -2840,7 +2840,7 @@ export class JsImageMetadata {
|
|
|
2840
2840
|
set src(value) {
|
|
2841
2841
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2842
2842
|
const len0 = WASM_VECTOR_LEN;
|
|
2843
|
-
wasm.
|
|
2843
|
+
wasm.wasmimagemetadata_set_src(this.__wbg_ptr, ptr0, len0);
|
|
2844
2844
|
}
|
|
2845
2845
|
/**
|
|
2846
2846
|
* @param {string | null} [value]
|
|
@@ -2848,7 +2848,7 @@ export class JsImageMetadata {
|
|
|
2848
2848
|
set title(value) {
|
|
2849
2849
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2850
2850
|
var len0 = WASM_VECTOR_LEN;
|
|
2851
|
-
wasm.
|
|
2851
|
+
wasm.wasmimagemetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
2852
2852
|
}
|
|
2853
2853
|
/**
|
|
2854
2854
|
* @returns {string}
|
|
@@ -2858,7 +2858,7 @@ export class JsImageMetadata {
|
|
|
2858
2858
|
let deferred1_1;
|
|
2859
2859
|
try {
|
|
2860
2860
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2861
|
-
wasm.
|
|
2861
|
+
wasm.wasmimagemetadata_src(retptr, this.__wbg_ptr);
|
|
2862
2862
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2863
2863
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2864
2864
|
deferred1_0 = r0;
|
|
@@ -2875,7 +2875,7 @@ export class JsImageMetadata {
|
|
|
2875
2875
|
get title() {
|
|
2876
2876
|
try {
|
|
2877
2877
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2878
|
-
wasm.
|
|
2878
|
+
wasm.wasmimagemetadata_title(retptr, this.__wbg_ptr);
|
|
2879
2879
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2880
2880
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2881
2881
|
let v1;
|
|
@@ -2889,28 +2889,28 @@ export class JsImageMetadata {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
|
-
if (Symbol.dispose)
|
|
2892
|
+
if (Symbol.dispose) WasmImageMetadata.prototype[Symbol.dispose] = WasmImageMetadata.prototype.free;
|
|
2893
2893
|
|
|
2894
2894
|
/**
|
|
2895
2895
|
* @enum {0 | 1 | 2 | 3}
|
|
2896
2896
|
*/
|
|
2897
|
-
export const
|
|
2897
|
+
export const WasmImageType = Object.freeze({
|
|
2898
2898
|
DataUri: 0, "0": "DataUri",
|
|
2899
2899
|
InlineSvg: 1, "1": "InlineSvg",
|
|
2900
2900
|
External: 2, "2": "External",
|
|
2901
2901
|
Relative: 3, "3": "Relative",
|
|
2902
2902
|
});
|
|
2903
2903
|
|
|
2904
|
-
export class
|
|
2904
|
+
export class WasmLinkMetadata {
|
|
2905
2905
|
static __wrap(ptr) {
|
|
2906
2906
|
ptr = ptr >>> 0;
|
|
2907
|
-
const obj = Object.create(
|
|
2907
|
+
const obj = Object.create(WasmLinkMetadata.prototype);
|
|
2908
2908
|
obj.__wbg_ptr = ptr;
|
|
2909
|
-
|
|
2909
|
+
WasmLinkMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2910
2910
|
return obj;
|
|
2911
2911
|
}
|
|
2912
2912
|
static __unwrap(jsValue) {
|
|
2913
|
-
if (!(jsValue instanceof
|
|
2913
|
+
if (!(jsValue instanceof WasmLinkMetadata)) {
|
|
2914
2914
|
return 0;
|
|
2915
2915
|
}
|
|
2916
2916
|
return jsValue.__destroy_into_raw();
|
|
@@ -2918,28 +2918,28 @@ export class JsLinkMetadata {
|
|
|
2918
2918
|
__destroy_into_raw() {
|
|
2919
2919
|
const ptr = this.__wbg_ptr;
|
|
2920
2920
|
this.__wbg_ptr = 0;
|
|
2921
|
-
|
|
2921
|
+
WasmLinkMetadataFinalization.unregister(this);
|
|
2922
2922
|
return ptr;
|
|
2923
2923
|
}
|
|
2924
2924
|
free() {
|
|
2925
2925
|
const ptr = this.__destroy_into_raw();
|
|
2926
|
-
wasm.
|
|
2926
|
+
wasm.__wbg_wasmlinkmetadata_free(ptr, 0);
|
|
2927
2927
|
}
|
|
2928
2928
|
/**
|
|
2929
2929
|
* @returns {WasmConversionResult}
|
|
2930
2930
|
*/
|
|
2931
2931
|
get attributes() {
|
|
2932
|
-
const ret = wasm.
|
|
2932
|
+
const ret = wasm.wasmlinkmetadata_attributes(this.__wbg_ptr);
|
|
2933
2933
|
return takeObject(ret);
|
|
2934
2934
|
}
|
|
2935
2935
|
/**
|
|
2936
2936
|
* @param {string} href
|
|
2937
|
-
* @returns {
|
|
2937
|
+
* @returns {WasmLinkType}
|
|
2938
2938
|
*/
|
|
2939
2939
|
static classifyLink(href) {
|
|
2940
2940
|
const ptr0 = passStringToWasm0(href, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2941
2941
|
const len0 = WASM_VECTOR_LEN;
|
|
2942
|
-
const ret = wasm.
|
|
2942
|
+
const ret = wasm.wasmlinkmetadata_classifyLink(ptr0, len0);
|
|
2943
2943
|
return ret;
|
|
2944
2944
|
}
|
|
2945
2945
|
/**
|
|
@@ -2950,7 +2950,7 @@ export class JsLinkMetadata {
|
|
|
2950
2950
|
let deferred1_1;
|
|
2951
2951
|
try {
|
|
2952
2952
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2953
|
-
wasm.
|
|
2953
|
+
wasm.wasmlinkmetadata_href(retptr, this.__wbg_ptr);
|
|
2954
2954
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2955
2955
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2956
2956
|
deferred1_0 = r0;
|
|
@@ -2962,16 +2962,16 @@ export class JsLinkMetadata {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
/**
|
|
2965
|
-
* @returns {
|
|
2965
|
+
* @returns {WasmLinkType}
|
|
2966
2966
|
*/
|
|
2967
2967
|
get linkType() {
|
|
2968
|
-
const ret = wasm.
|
|
2968
|
+
const ret = wasm.wasmlinkmetadata_linkType(this.__wbg_ptr);
|
|
2969
2969
|
return ret;
|
|
2970
2970
|
}
|
|
2971
2971
|
/**
|
|
2972
2972
|
* @param {string} href
|
|
2973
2973
|
* @param {string} text
|
|
2974
|
-
* @param {
|
|
2974
|
+
* @param {WasmLinkType} link_type
|
|
2975
2975
|
* @param {string[]} rel
|
|
2976
2976
|
* @param {any} attributes
|
|
2977
2977
|
* @param {string | null} [title]
|
|
@@ -2985,9 +2985,9 @@ export class JsLinkMetadata {
|
|
|
2985
2985
|
const len2 = WASM_VECTOR_LEN;
|
|
2986
2986
|
var ptr3 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2987
2987
|
var len3 = WASM_VECTOR_LEN;
|
|
2988
|
-
const ret = wasm.
|
|
2988
|
+
const ret = wasm.wasmlinkmetadata_new(ptr0, len0, ptr1, len1, link_type, ptr2, len2, addHeapObject(attributes), ptr3, len3);
|
|
2989
2989
|
this.__wbg_ptr = ret >>> 0;
|
|
2990
|
-
|
|
2990
|
+
WasmLinkMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2991
2991
|
return this;
|
|
2992
2992
|
}
|
|
2993
2993
|
/**
|
|
@@ -2996,7 +2996,7 @@ export class JsLinkMetadata {
|
|
|
2996
2996
|
get rel() {
|
|
2997
2997
|
try {
|
|
2998
2998
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2999
|
-
wasm.
|
|
2999
|
+
wasm.wasmlinkmetadata_rel(retptr, this.__wbg_ptr);
|
|
3000
3000
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3001
3001
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3002
3002
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -3010,7 +3010,7 @@ export class JsLinkMetadata {
|
|
|
3010
3010
|
* @param {any} value
|
|
3011
3011
|
*/
|
|
3012
3012
|
set attributes(value) {
|
|
3013
|
-
wasm.
|
|
3013
|
+
wasm.wasmlinkmetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
3014
3014
|
}
|
|
3015
3015
|
/**
|
|
3016
3016
|
* @param {string} value
|
|
@@ -3018,13 +3018,13 @@ export class JsLinkMetadata {
|
|
|
3018
3018
|
set href(value) {
|
|
3019
3019
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3020
3020
|
const len0 = WASM_VECTOR_LEN;
|
|
3021
|
-
wasm.
|
|
3021
|
+
wasm.wasmlinkmetadata_set_href(this.__wbg_ptr, ptr0, len0);
|
|
3022
3022
|
}
|
|
3023
3023
|
/**
|
|
3024
|
-
* @param {
|
|
3024
|
+
* @param {WasmLinkType} value
|
|
3025
3025
|
*/
|
|
3026
3026
|
set linkType(value) {
|
|
3027
|
-
wasm.
|
|
3027
|
+
wasm.wasmlinkmetadata_set_linkType(this.__wbg_ptr, value);
|
|
3028
3028
|
}
|
|
3029
3029
|
/**
|
|
3030
3030
|
* @param {string[]} value
|
|
@@ -3032,7 +3032,7 @@ export class JsLinkMetadata {
|
|
|
3032
3032
|
set rel(value) {
|
|
3033
3033
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3034
3034
|
const len0 = WASM_VECTOR_LEN;
|
|
3035
|
-
wasm.
|
|
3035
|
+
wasm.wasmlinkmetadata_set_rel(this.__wbg_ptr, ptr0, len0);
|
|
3036
3036
|
}
|
|
3037
3037
|
/**
|
|
3038
3038
|
* @param {string} value
|
|
@@ -3040,7 +3040,7 @@ export class JsLinkMetadata {
|
|
|
3040
3040
|
set text(value) {
|
|
3041
3041
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3042
3042
|
const len0 = WASM_VECTOR_LEN;
|
|
3043
|
-
wasm.
|
|
3043
|
+
wasm.wasmlinkmetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
3044
3044
|
}
|
|
3045
3045
|
/**
|
|
3046
3046
|
* @param {string | null} [value]
|
|
@@ -3048,7 +3048,7 @@ export class JsLinkMetadata {
|
|
|
3048
3048
|
set title(value) {
|
|
3049
3049
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3050
3050
|
var len0 = WASM_VECTOR_LEN;
|
|
3051
|
-
wasm.
|
|
3051
|
+
wasm.wasmlinkmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
3052
3052
|
}
|
|
3053
3053
|
/**
|
|
3054
3054
|
* @returns {string}
|
|
@@ -3058,7 +3058,7 @@ export class JsLinkMetadata {
|
|
|
3058
3058
|
let deferred1_1;
|
|
3059
3059
|
try {
|
|
3060
3060
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3061
|
-
wasm.
|
|
3061
|
+
wasm.wasmlinkmetadata_text(retptr, this.__wbg_ptr);
|
|
3062
3062
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3063
3063
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3064
3064
|
deferred1_0 = r0;
|
|
@@ -3075,7 +3075,7 @@ export class JsLinkMetadata {
|
|
|
3075
3075
|
get title() {
|
|
3076
3076
|
try {
|
|
3077
3077
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3078
|
-
wasm.
|
|
3078
|
+
wasm.wasmlinkmetadata_title(retptr, this.__wbg_ptr);
|
|
3079
3079
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3080
3080
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3081
3081
|
let v1;
|
|
@@ -3089,12 +3089,12 @@ export class JsLinkMetadata {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
|
-
if (Symbol.dispose)
|
|
3092
|
+
if (Symbol.dispose) WasmLinkMetadata.prototype[Symbol.dispose] = WasmLinkMetadata.prototype.free;
|
|
3093
3093
|
|
|
3094
3094
|
/**
|
|
3095
3095
|
* @enum {0 | 1}
|
|
3096
3096
|
*/
|
|
3097
|
-
export const
|
|
3097
|
+
export const WasmLinkStyle = Object.freeze({
|
|
3098
3098
|
Inline: 0, "0": "Inline",
|
|
3099
3099
|
Reference: 1, "1": "Reference",
|
|
3100
3100
|
});
|
|
@@ -3102,7 +3102,7 @@ export const JsLinkStyle = Object.freeze({
|
|
|
3102
3102
|
/**
|
|
3103
3103
|
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
3104
3104
|
*/
|
|
3105
|
-
export const
|
|
3105
|
+
export const WasmLinkType = Object.freeze({
|
|
3106
3106
|
Anchor: 0, "0": "Anchor",
|
|
3107
3107
|
Internal: 1, "1": "Internal",
|
|
3108
3108
|
External: 2, "2": "External",
|
|
@@ -3114,83 +3114,83 @@ export const JsLinkType = Object.freeze({
|
|
|
3114
3114
|
/**
|
|
3115
3115
|
* @enum {0 | 1}
|
|
3116
3116
|
*/
|
|
3117
|
-
export const
|
|
3117
|
+
export const WasmListIndentType = Object.freeze({
|
|
3118
3118
|
Spaces: 0, "0": "Spaces",
|
|
3119
3119
|
Tabs: 1, "1": "Tabs",
|
|
3120
3120
|
});
|
|
3121
3121
|
|
|
3122
|
-
export class
|
|
3122
|
+
export class WasmMetadataConfig {
|
|
3123
3123
|
static __wrap(ptr) {
|
|
3124
3124
|
ptr = ptr >>> 0;
|
|
3125
|
-
const obj = Object.create(
|
|
3125
|
+
const obj = Object.create(WasmMetadataConfig.prototype);
|
|
3126
3126
|
obj.__wbg_ptr = ptr;
|
|
3127
|
-
|
|
3127
|
+
WasmMetadataConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3128
3128
|
return obj;
|
|
3129
3129
|
}
|
|
3130
3130
|
__destroy_into_raw() {
|
|
3131
3131
|
const ptr = this.__wbg_ptr;
|
|
3132
3132
|
this.__wbg_ptr = 0;
|
|
3133
|
-
|
|
3133
|
+
WasmMetadataConfigFinalization.unregister(this);
|
|
3134
3134
|
return ptr;
|
|
3135
3135
|
}
|
|
3136
3136
|
free() {
|
|
3137
3137
|
const ptr = this.__destroy_into_raw();
|
|
3138
|
-
wasm.
|
|
3138
|
+
wasm.__wbg_wasmmetadataconfig_free(ptr, 0);
|
|
3139
3139
|
}
|
|
3140
3140
|
/**
|
|
3141
3141
|
* @returns {boolean}
|
|
3142
3142
|
*/
|
|
3143
3143
|
anyEnabled() {
|
|
3144
|
-
const ret = wasm.
|
|
3144
|
+
const ret = wasm.wasmmetadataconfig_anyEnabled(this.__wbg_ptr);
|
|
3145
3145
|
return ret !== 0;
|
|
3146
3146
|
}
|
|
3147
3147
|
/**
|
|
3148
|
-
* @returns {
|
|
3148
|
+
* @returns {WasmMetadataConfig}
|
|
3149
3149
|
*/
|
|
3150
3150
|
static default() {
|
|
3151
|
-
const ret = wasm.
|
|
3152
|
-
return
|
|
3151
|
+
const ret = wasm.wasmmetadataconfig_default();
|
|
3152
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3153
3153
|
}
|
|
3154
3154
|
/**
|
|
3155
3155
|
* @returns {boolean}
|
|
3156
3156
|
*/
|
|
3157
3157
|
get extractDocument() {
|
|
3158
|
-
const ret = wasm.
|
|
3158
|
+
const ret = wasm.wasmmetadataconfig_extractDocument(this.__wbg_ptr);
|
|
3159
3159
|
return ret !== 0;
|
|
3160
3160
|
}
|
|
3161
3161
|
/**
|
|
3162
3162
|
* @returns {boolean}
|
|
3163
3163
|
*/
|
|
3164
3164
|
get extractHeaders() {
|
|
3165
|
-
const ret = wasm.
|
|
3165
|
+
const ret = wasm.wasmmetadataconfig_extractHeaders(this.__wbg_ptr);
|
|
3166
3166
|
return ret !== 0;
|
|
3167
3167
|
}
|
|
3168
3168
|
/**
|
|
3169
3169
|
* @returns {boolean}
|
|
3170
3170
|
*/
|
|
3171
3171
|
get extractImages() {
|
|
3172
|
-
const ret = wasm.
|
|
3172
|
+
const ret = wasm.wasmmetadataconfig_extractImages(this.__wbg_ptr);
|
|
3173
3173
|
return ret !== 0;
|
|
3174
3174
|
}
|
|
3175
3175
|
/**
|
|
3176
3176
|
* @returns {boolean}
|
|
3177
3177
|
*/
|
|
3178
3178
|
get extractLinks() {
|
|
3179
|
-
const ret = wasm.
|
|
3179
|
+
const ret = wasm.wasmmetadataconfig_extractLinks(this.__wbg_ptr);
|
|
3180
3180
|
return ret !== 0;
|
|
3181
3181
|
}
|
|
3182
3182
|
/**
|
|
3183
3183
|
* @returns {boolean}
|
|
3184
3184
|
*/
|
|
3185
3185
|
get extractStructuredData() {
|
|
3186
|
-
const ret = wasm.
|
|
3186
|
+
const ret = wasm.wasmmetadataconfig_extractStructuredData(this.__wbg_ptr);
|
|
3187
3187
|
return ret !== 0;
|
|
3188
3188
|
}
|
|
3189
3189
|
/**
|
|
3190
3190
|
* @returns {number}
|
|
3191
3191
|
*/
|
|
3192
3192
|
get maxStructuredDataSize() {
|
|
3193
|
-
const ret = wasm.
|
|
3193
|
+
const ret = wasm.wasmmetadataconfig_maxStructuredDataSize(this.__wbg_ptr);
|
|
3194
3194
|
return ret >>> 0;
|
|
3195
3195
|
}
|
|
3196
3196
|
/**
|
|
@@ -3202,101 +3202,101 @@ export class JsMetadataConfig {
|
|
|
3202
3202
|
* @param {number | null} [max_structured_data_size]
|
|
3203
3203
|
*/
|
|
3204
3204
|
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3205
|
-
const ret = wasm.
|
|
3205
|
+
const ret = wasm.wasmmetadataconfig_new(isLikeNone(extract_document) ? 0xFFFFFF : extract_document ? 1 : 0, isLikeNone(extract_headers) ? 0xFFFFFF : extract_headers ? 1 : 0, isLikeNone(extract_links) ? 0xFFFFFF : extract_links ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, isLikeNone(extract_structured_data) ? 0xFFFFFF : extract_structured_data ? 1 : 0, isLikeNone(max_structured_data_size) ? 0x100000001 : (max_structured_data_size) >>> 0);
|
|
3206
3206
|
this.__wbg_ptr = ret >>> 0;
|
|
3207
|
-
|
|
3207
|
+
WasmMetadataConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
3208
3208
|
return this;
|
|
3209
3209
|
}
|
|
3210
3210
|
/**
|
|
3211
3211
|
* @param {boolean} value
|
|
3212
3212
|
*/
|
|
3213
3213
|
set extractDocument(value) {
|
|
3214
|
-
wasm.
|
|
3214
|
+
wasm.wasmmetadataconfig_set_extractDocument(this.__wbg_ptr, value);
|
|
3215
3215
|
}
|
|
3216
3216
|
/**
|
|
3217
3217
|
* @param {boolean} value
|
|
3218
3218
|
*/
|
|
3219
3219
|
set extractHeaders(value) {
|
|
3220
|
-
wasm.
|
|
3220
|
+
wasm.wasmmetadataconfig_set_extractHeaders(this.__wbg_ptr, value);
|
|
3221
3221
|
}
|
|
3222
3222
|
/**
|
|
3223
3223
|
* @param {boolean} value
|
|
3224
3224
|
*/
|
|
3225
3225
|
set extractImages(value) {
|
|
3226
|
-
wasm.
|
|
3226
|
+
wasm.wasmmetadataconfig_set_extractImages(this.__wbg_ptr, value);
|
|
3227
3227
|
}
|
|
3228
3228
|
/**
|
|
3229
3229
|
* @param {boolean} value
|
|
3230
3230
|
*/
|
|
3231
3231
|
set extractLinks(value) {
|
|
3232
|
-
wasm.
|
|
3232
|
+
wasm.wasmmetadataconfig_set_extractLinks(this.__wbg_ptr, value);
|
|
3233
3233
|
}
|
|
3234
3234
|
/**
|
|
3235
3235
|
* @param {boolean} value
|
|
3236
3236
|
*/
|
|
3237
3237
|
set extractStructuredData(value) {
|
|
3238
|
-
wasm.
|
|
3238
|
+
wasm.wasmmetadataconfig_set_extractStructuredData(this.__wbg_ptr, value);
|
|
3239
3239
|
}
|
|
3240
3240
|
/**
|
|
3241
3241
|
* @param {number} value
|
|
3242
3242
|
*/
|
|
3243
3243
|
set maxStructuredDataSize(value) {
|
|
3244
|
-
wasm.
|
|
3244
|
+
wasm.wasmmetadataconfig_set_maxStructuredDataSize(this.__wbg_ptr, value);
|
|
3245
3245
|
}
|
|
3246
3246
|
}
|
|
3247
|
-
if (Symbol.dispose)
|
|
3247
|
+
if (Symbol.dispose) WasmMetadataConfig.prototype[Symbol.dispose] = WasmMetadataConfig.prototype.free;
|
|
3248
3248
|
|
|
3249
|
-
export class
|
|
3249
|
+
export class WasmMetadataConfigUpdate {
|
|
3250
3250
|
__destroy_into_raw() {
|
|
3251
3251
|
const ptr = this.__wbg_ptr;
|
|
3252
3252
|
this.__wbg_ptr = 0;
|
|
3253
|
-
|
|
3253
|
+
WasmMetadataConfigUpdateFinalization.unregister(this);
|
|
3254
3254
|
return ptr;
|
|
3255
3255
|
}
|
|
3256
3256
|
free() {
|
|
3257
3257
|
const ptr = this.__destroy_into_raw();
|
|
3258
|
-
wasm.
|
|
3258
|
+
wasm.__wbg_wasmmetadataconfigupdate_free(ptr, 0);
|
|
3259
3259
|
}
|
|
3260
3260
|
/**
|
|
3261
3261
|
* @returns {boolean | undefined}
|
|
3262
3262
|
*/
|
|
3263
3263
|
get extractDocument() {
|
|
3264
|
-
const ret = wasm.
|
|
3264
|
+
const ret = wasm.wasmmetadataconfigupdate_extractDocument(this.__wbg_ptr);
|
|
3265
3265
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3266
3266
|
}
|
|
3267
3267
|
/**
|
|
3268
3268
|
* @returns {boolean | undefined}
|
|
3269
3269
|
*/
|
|
3270
3270
|
get extractHeaders() {
|
|
3271
|
-
const ret = wasm.
|
|
3271
|
+
const ret = wasm.wasmmetadataconfigupdate_extractHeaders(this.__wbg_ptr);
|
|
3272
3272
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3273
3273
|
}
|
|
3274
3274
|
/**
|
|
3275
3275
|
* @returns {boolean | undefined}
|
|
3276
3276
|
*/
|
|
3277
3277
|
get extractImages() {
|
|
3278
|
-
const ret = wasm.
|
|
3278
|
+
const ret = wasm.wasmmetadataconfigupdate_extractImages(this.__wbg_ptr);
|
|
3279
3279
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3280
3280
|
}
|
|
3281
3281
|
/**
|
|
3282
3282
|
* @returns {boolean | undefined}
|
|
3283
3283
|
*/
|
|
3284
3284
|
get extractLinks() {
|
|
3285
|
-
const ret = wasm.
|
|
3285
|
+
const ret = wasm.wasmmetadataconfigupdate_extractLinks(this.__wbg_ptr);
|
|
3286
3286
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3287
3287
|
}
|
|
3288
3288
|
/**
|
|
3289
3289
|
* @returns {boolean | undefined}
|
|
3290
3290
|
*/
|
|
3291
3291
|
get extractStructuredData() {
|
|
3292
|
-
const ret = wasm.
|
|
3292
|
+
const ret = wasm.wasmmetadataconfigupdate_extractStructuredData(this.__wbg_ptr);
|
|
3293
3293
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3294
3294
|
}
|
|
3295
3295
|
/**
|
|
3296
3296
|
* @returns {number | undefined}
|
|
3297
3297
|
*/
|
|
3298
3298
|
get maxStructuredDataSize() {
|
|
3299
|
-
const ret = wasm.
|
|
3299
|
+
const ret = wasm.wasmmetadataconfigupdate_maxStructuredDataSize(this.__wbg_ptr);
|
|
3300
3300
|
return ret === 0x100000001 ? undefined : ret;
|
|
3301
3301
|
}
|
|
3302
3302
|
/**
|
|
@@ -3308,54 +3308,54 @@ export class JsMetadataConfigUpdate {
|
|
|
3308
3308
|
* @param {number | null} [max_structured_data_size]
|
|
3309
3309
|
*/
|
|
3310
3310
|
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3311
|
-
const ret = wasm.
|
|
3311
|
+
const ret = wasm.wasmmetadataconfigupdate_new(isLikeNone(extract_document) ? 0xFFFFFF : extract_document ? 1 : 0, isLikeNone(extract_headers) ? 0xFFFFFF : extract_headers ? 1 : 0, isLikeNone(extract_links) ? 0xFFFFFF : extract_links ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, isLikeNone(extract_structured_data) ? 0xFFFFFF : extract_structured_data ? 1 : 0, isLikeNone(max_structured_data_size) ? 0x100000001 : (max_structured_data_size) >>> 0);
|
|
3312
3312
|
this.__wbg_ptr = ret >>> 0;
|
|
3313
|
-
|
|
3313
|
+
WasmMetadataConfigUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3314
3314
|
return this;
|
|
3315
3315
|
}
|
|
3316
3316
|
/**
|
|
3317
3317
|
* @param {boolean | null} [value]
|
|
3318
3318
|
*/
|
|
3319
3319
|
set extractDocument(value) {
|
|
3320
|
-
wasm.
|
|
3320
|
+
wasm.wasmmetadataconfigupdate_set_extractDocument(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3321
3321
|
}
|
|
3322
3322
|
/**
|
|
3323
3323
|
* @param {boolean | null} [value]
|
|
3324
3324
|
*/
|
|
3325
3325
|
set extractHeaders(value) {
|
|
3326
|
-
wasm.
|
|
3326
|
+
wasm.wasmmetadataconfigupdate_set_extractHeaders(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3327
3327
|
}
|
|
3328
3328
|
/**
|
|
3329
3329
|
* @param {boolean | null} [value]
|
|
3330
3330
|
*/
|
|
3331
3331
|
set extractImages(value) {
|
|
3332
|
-
wasm.
|
|
3332
|
+
wasm.wasmmetadataconfigupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3333
3333
|
}
|
|
3334
3334
|
/**
|
|
3335
3335
|
* @param {boolean | null} [value]
|
|
3336
3336
|
*/
|
|
3337
3337
|
set extractLinks(value) {
|
|
3338
|
-
wasm.
|
|
3338
|
+
wasm.wasmmetadataconfigupdate_set_extractLinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3339
3339
|
}
|
|
3340
3340
|
/**
|
|
3341
3341
|
* @param {boolean | null} [value]
|
|
3342
3342
|
*/
|
|
3343
3343
|
set extractStructuredData(value) {
|
|
3344
|
-
wasm.
|
|
3344
|
+
wasm.wasmmetadataconfigupdate_set_extractStructuredData(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3345
3345
|
}
|
|
3346
3346
|
/**
|
|
3347
3347
|
* @param {number | null} [value]
|
|
3348
3348
|
*/
|
|
3349
3349
|
set maxStructuredDataSize(value) {
|
|
3350
|
-
wasm.
|
|
3350
|
+
wasm.wasmmetadataconfigupdate_set_maxStructuredDataSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
|
-
if (Symbol.dispose)
|
|
3353
|
+
if (Symbol.dispose) WasmMetadataConfigUpdate.prototype[Symbol.dispose] = WasmMetadataConfigUpdate.prototype.free;
|
|
3354
3354
|
|
|
3355
3355
|
/**
|
|
3356
3356
|
* @enum {0 | 1}
|
|
3357
3357
|
*/
|
|
3358
|
-
export const
|
|
3358
|
+
export const WasmNewlineStyle = Object.freeze({
|
|
3359
3359
|
Spaces: 0, "0": "Spaces",
|
|
3360
3360
|
Backslash: 1, "1": "Backslash",
|
|
3361
3361
|
});
|
|
@@ -3363,7 +3363,7 @@ export const JsNewlineStyle = Object.freeze({
|
|
|
3363
3363
|
/**
|
|
3364
3364
|
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
|
|
3365
3365
|
*/
|
|
3366
|
-
export const
|
|
3366
|
+
export const WasmNodeContent = Object.freeze({
|
|
3367
3367
|
Heading: 0, "0": "Heading",
|
|
3368
3368
|
Paragraph: 1, "1": "Paragraph",
|
|
3369
3369
|
List: 2, "2": "List",
|
|
@@ -3382,208 +3382,208 @@ export const JsNodeContent = Object.freeze({
|
|
|
3382
3382
|
/**
|
|
3383
3383
|
* @enum {0 | 1 | 2}
|
|
3384
3384
|
*/
|
|
3385
|
-
export const
|
|
3385
|
+
export const WasmOutputFormat = Object.freeze({
|
|
3386
3386
|
Markdown: 0, "0": "Markdown",
|
|
3387
3387
|
Djot: 1, "1": "Djot",
|
|
3388
3388
|
Plain: 2, "2": "Plain",
|
|
3389
3389
|
});
|
|
3390
3390
|
|
|
3391
|
-
export class
|
|
3391
|
+
export class WasmPreprocessingOptions {
|
|
3392
3392
|
static __wrap(ptr) {
|
|
3393
3393
|
ptr = ptr >>> 0;
|
|
3394
|
-
const obj = Object.create(
|
|
3394
|
+
const obj = Object.create(WasmPreprocessingOptions.prototype);
|
|
3395
3395
|
obj.__wbg_ptr = ptr;
|
|
3396
|
-
|
|
3396
|
+
WasmPreprocessingOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3397
3397
|
return obj;
|
|
3398
3398
|
}
|
|
3399
3399
|
__destroy_into_raw() {
|
|
3400
3400
|
const ptr = this.__wbg_ptr;
|
|
3401
3401
|
this.__wbg_ptr = 0;
|
|
3402
|
-
|
|
3402
|
+
WasmPreprocessingOptionsFinalization.unregister(this);
|
|
3403
3403
|
return ptr;
|
|
3404
3404
|
}
|
|
3405
3405
|
free() {
|
|
3406
3406
|
const ptr = this.__destroy_into_raw();
|
|
3407
|
-
wasm.
|
|
3407
|
+
wasm.__wbg_wasmpreprocessingoptions_free(ptr, 0);
|
|
3408
3408
|
}
|
|
3409
3409
|
/**
|
|
3410
|
-
* @returns {
|
|
3410
|
+
* @returns {WasmPreprocessingOptions}
|
|
3411
3411
|
*/
|
|
3412
3412
|
static default() {
|
|
3413
|
-
const ret = wasm.
|
|
3414
|
-
return
|
|
3413
|
+
const ret = wasm.wasmpreprocessingoptions_default();
|
|
3414
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3415
3415
|
}
|
|
3416
3416
|
/**
|
|
3417
3417
|
* @returns {boolean}
|
|
3418
3418
|
*/
|
|
3419
3419
|
get enabled() {
|
|
3420
|
-
const ret = wasm.
|
|
3420
|
+
const ret = wasm.wasmpreprocessingoptions_enabled(this.__wbg_ptr);
|
|
3421
3421
|
return ret !== 0;
|
|
3422
3422
|
}
|
|
3423
3423
|
/**
|
|
3424
3424
|
* @param {boolean | null} [enabled]
|
|
3425
|
-
* @param {
|
|
3425
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3426
3426
|
* @param {boolean | null} [remove_navigation]
|
|
3427
3427
|
* @param {boolean | null} [remove_forms]
|
|
3428
3428
|
*/
|
|
3429
3429
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3430
|
-
const ret = wasm.
|
|
3430
|
+
const ret = wasm.wasmpreprocessingoptions_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3431
3431
|
this.__wbg_ptr = ret >>> 0;
|
|
3432
|
-
|
|
3432
|
+
WasmPreprocessingOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3433
3433
|
return this;
|
|
3434
3434
|
}
|
|
3435
3435
|
/**
|
|
3436
|
-
* @returns {
|
|
3436
|
+
* @returns {WasmPreprocessingPreset}
|
|
3437
3437
|
*/
|
|
3438
3438
|
get preset() {
|
|
3439
|
-
const ret = wasm.
|
|
3439
|
+
const ret = wasm.wasmpreprocessingoptions_preset(this.__wbg_ptr);
|
|
3440
3440
|
return ret;
|
|
3441
3441
|
}
|
|
3442
3442
|
/**
|
|
3443
3443
|
* @returns {boolean}
|
|
3444
3444
|
*/
|
|
3445
3445
|
get removeForms() {
|
|
3446
|
-
const ret = wasm.
|
|
3446
|
+
const ret = wasm.wasmpreprocessingoptions_removeForms(this.__wbg_ptr);
|
|
3447
3447
|
return ret !== 0;
|
|
3448
3448
|
}
|
|
3449
3449
|
/**
|
|
3450
3450
|
* @returns {boolean}
|
|
3451
3451
|
*/
|
|
3452
3452
|
get removeNavigation() {
|
|
3453
|
-
const ret = wasm.
|
|
3453
|
+
const ret = wasm.wasmpreprocessingoptions_removeNavigation(this.__wbg_ptr);
|
|
3454
3454
|
return ret !== 0;
|
|
3455
3455
|
}
|
|
3456
3456
|
/**
|
|
3457
3457
|
* @param {boolean} value
|
|
3458
3458
|
*/
|
|
3459
3459
|
set enabled(value) {
|
|
3460
|
-
wasm.
|
|
3460
|
+
wasm.wasmpreprocessingoptions_set_enabled(this.__wbg_ptr, value);
|
|
3461
3461
|
}
|
|
3462
3462
|
/**
|
|
3463
|
-
* @param {
|
|
3463
|
+
* @param {WasmPreprocessingPreset} value
|
|
3464
3464
|
*/
|
|
3465
3465
|
set preset(value) {
|
|
3466
|
-
wasm.
|
|
3466
|
+
wasm.wasmpreprocessingoptions_set_preset(this.__wbg_ptr, value);
|
|
3467
3467
|
}
|
|
3468
3468
|
/**
|
|
3469
3469
|
* @param {boolean} value
|
|
3470
3470
|
*/
|
|
3471
3471
|
set removeForms(value) {
|
|
3472
|
-
wasm.
|
|
3472
|
+
wasm.wasmpreprocessingoptions_set_removeForms(this.__wbg_ptr, value);
|
|
3473
3473
|
}
|
|
3474
3474
|
/**
|
|
3475
3475
|
* @param {boolean} value
|
|
3476
3476
|
*/
|
|
3477
3477
|
set removeNavigation(value) {
|
|
3478
|
-
wasm.
|
|
3478
|
+
wasm.wasmpreprocessingoptions_set_removeNavigation(this.__wbg_ptr, value);
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
3481
|
-
if (Symbol.dispose)
|
|
3481
|
+
if (Symbol.dispose) WasmPreprocessingOptions.prototype[Symbol.dispose] = WasmPreprocessingOptions.prototype.free;
|
|
3482
3482
|
|
|
3483
|
-
export class
|
|
3483
|
+
export class WasmPreprocessingOptionsUpdate {
|
|
3484
3484
|
static __wrap(ptr) {
|
|
3485
3485
|
ptr = ptr >>> 0;
|
|
3486
|
-
const obj = Object.create(
|
|
3486
|
+
const obj = Object.create(WasmPreprocessingOptionsUpdate.prototype);
|
|
3487
3487
|
obj.__wbg_ptr = ptr;
|
|
3488
|
-
|
|
3488
|
+
WasmPreprocessingOptionsUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3489
3489
|
return obj;
|
|
3490
3490
|
}
|
|
3491
3491
|
__destroy_into_raw() {
|
|
3492
3492
|
const ptr = this.__wbg_ptr;
|
|
3493
3493
|
this.__wbg_ptr = 0;
|
|
3494
|
-
|
|
3494
|
+
WasmPreprocessingOptionsUpdateFinalization.unregister(this);
|
|
3495
3495
|
return ptr;
|
|
3496
3496
|
}
|
|
3497
3497
|
free() {
|
|
3498
3498
|
const ptr = this.__destroy_into_raw();
|
|
3499
|
-
wasm.
|
|
3499
|
+
wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr, 0);
|
|
3500
3500
|
}
|
|
3501
3501
|
/**
|
|
3502
3502
|
* @returns {boolean | undefined}
|
|
3503
3503
|
*/
|
|
3504
3504
|
get enabled() {
|
|
3505
|
-
const ret = wasm.
|
|
3505
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_enabled(this.__wbg_ptr);
|
|
3506
3506
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3507
3507
|
}
|
|
3508
3508
|
/**
|
|
3509
3509
|
* @param {boolean | null} [enabled]
|
|
3510
|
-
* @param {
|
|
3510
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3511
3511
|
* @param {boolean | null} [remove_navigation]
|
|
3512
3512
|
* @param {boolean | null} [remove_forms]
|
|
3513
3513
|
*/
|
|
3514
3514
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3515
|
-
const ret = wasm.
|
|
3515
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3516
3516
|
this.__wbg_ptr = ret >>> 0;
|
|
3517
|
-
|
|
3517
|
+
WasmPreprocessingOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3518
3518
|
return this;
|
|
3519
3519
|
}
|
|
3520
3520
|
/**
|
|
3521
|
-
* @returns {
|
|
3521
|
+
* @returns {WasmPreprocessingPreset | undefined}
|
|
3522
3522
|
*/
|
|
3523
3523
|
get preset() {
|
|
3524
|
-
const ret = wasm.
|
|
3524
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_preset(this.__wbg_ptr);
|
|
3525
3525
|
return ret === 3 ? undefined : ret;
|
|
3526
3526
|
}
|
|
3527
3527
|
/**
|
|
3528
3528
|
* @returns {boolean | undefined}
|
|
3529
3529
|
*/
|
|
3530
3530
|
get removeForms() {
|
|
3531
|
-
const ret = wasm.
|
|
3531
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeForms(this.__wbg_ptr);
|
|
3532
3532
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3533
3533
|
}
|
|
3534
3534
|
/**
|
|
3535
3535
|
* @returns {boolean | undefined}
|
|
3536
3536
|
*/
|
|
3537
3537
|
get removeNavigation() {
|
|
3538
|
-
const ret = wasm.
|
|
3538
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeNavigation(this.__wbg_ptr);
|
|
3539
3539
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3540
3540
|
}
|
|
3541
3541
|
/**
|
|
3542
3542
|
* @param {boolean | null} [value]
|
|
3543
3543
|
*/
|
|
3544
3544
|
set enabled(value) {
|
|
3545
|
-
wasm.
|
|
3545
|
+
wasm.wasmpreprocessingoptionsupdate_set_enabled(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3546
3546
|
}
|
|
3547
3547
|
/**
|
|
3548
|
-
* @param {
|
|
3548
|
+
* @param {WasmPreprocessingPreset | null} [value]
|
|
3549
3549
|
*/
|
|
3550
3550
|
set preset(value) {
|
|
3551
|
-
wasm.
|
|
3551
|
+
wasm.wasmpreprocessingoptionsupdate_set_preset(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
3552
3552
|
}
|
|
3553
3553
|
/**
|
|
3554
3554
|
* @param {boolean | null} [value]
|
|
3555
3555
|
*/
|
|
3556
3556
|
set removeForms(value) {
|
|
3557
|
-
wasm.
|
|
3557
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeForms(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3558
3558
|
}
|
|
3559
3559
|
/**
|
|
3560
3560
|
* @param {boolean | null} [value]
|
|
3561
3561
|
*/
|
|
3562
3562
|
set removeNavigation(value) {
|
|
3563
|
-
wasm.
|
|
3563
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeNavigation(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
|
-
if (Symbol.dispose)
|
|
3566
|
+
if (Symbol.dispose) WasmPreprocessingOptionsUpdate.prototype[Symbol.dispose] = WasmPreprocessingOptionsUpdate.prototype.free;
|
|
3567
3567
|
|
|
3568
3568
|
/**
|
|
3569
3569
|
* @enum {0 | 1 | 2}
|
|
3570
3570
|
*/
|
|
3571
|
-
export const
|
|
3571
|
+
export const WasmPreprocessingPreset = Object.freeze({
|
|
3572
3572
|
Minimal: 0, "0": "Minimal",
|
|
3573
3573
|
Standard: 1, "1": "Standard",
|
|
3574
3574
|
Aggressive: 2, "2": "Aggressive",
|
|
3575
3575
|
});
|
|
3576
3576
|
|
|
3577
|
-
export class
|
|
3577
|
+
export class WasmProcessingWarning {
|
|
3578
3578
|
static __wrap(ptr) {
|
|
3579
3579
|
ptr = ptr >>> 0;
|
|
3580
|
-
const obj = Object.create(
|
|
3580
|
+
const obj = Object.create(WasmProcessingWarning.prototype);
|
|
3581
3581
|
obj.__wbg_ptr = ptr;
|
|
3582
|
-
|
|
3582
|
+
WasmProcessingWarningFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3583
3583
|
return obj;
|
|
3584
3584
|
}
|
|
3585
3585
|
static __unwrap(jsValue) {
|
|
3586
|
-
if (!(jsValue instanceof
|
|
3586
|
+
if (!(jsValue instanceof WasmProcessingWarning)) {
|
|
3587
3587
|
return 0;
|
|
3588
3588
|
}
|
|
3589
3589
|
return jsValue.__destroy_into_raw();
|
|
@@ -3591,18 +3591,18 @@ export class JsProcessingWarning {
|
|
|
3591
3591
|
__destroy_into_raw() {
|
|
3592
3592
|
const ptr = this.__wbg_ptr;
|
|
3593
3593
|
this.__wbg_ptr = 0;
|
|
3594
|
-
|
|
3594
|
+
WasmProcessingWarningFinalization.unregister(this);
|
|
3595
3595
|
return ptr;
|
|
3596
3596
|
}
|
|
3597
3597
|
free() {
|
|
3598
3598
|
const ptr = this.__destroy_into_raw();
|
|
3599
|
-
wasm.
|
|
3599
|
+
wasm.__wbg_wasmprocessingwarning_free(ptr, 0);
|
|
3600
3600
|
}
|
|
3601
3601
|
/**
|
|
3602
|
-
* @returns {
|
|
3602
|
+
* @returns {WasmWarningKind}
|
|
3603
3603
|
*/
|
|
3604
3604
|
get kind() {
|
|
3605
|
-
const ret = wasm.
|
|
3605
|
+
const ret = wasm.wasmprocessingwarning_kind(this.__wbg_ptr);
|
|
3606
3606
|
return ret;
|
|
3607
3607
|
}
|
|
3608
3608
|
/**
|
|
@@ -3613,7 +3613,7 @@ export class JsProcessingWarning {
|
|
|
3613
3613
|
let deferred1_1;
|
|
3614
3614
|
try {
|
|
3615
3615
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3616
|
-
wasm.
|
|
3616
|
+
wasm.wasmprocessingwarning_message(retptr, this.__wbg_ptr);
|
|
3617
3617
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3618
3618
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3619
3619
|
deferred1_0 = r0;
|
|
@@ -3626,21 +3626,21 @@ export class JsProcessingWarning {
|
|
|
3626
3626
|
}
|
|
3627
3627
|
/**
|
|
3628
3628
|
* @param {string} message
|
|
3629
|
-
* @param {
|
|
3629
|
+
* @param {WasmWarningKind} kind
|
|
3630
3630
|
*/
|
|
3631
3631
|
constructor(message, kind) {
|
|
3632
3632
|
const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3633
3633
|
const len0 = WASM_VECTOR_LEN;
|
|
3634
|
-
const ret = wasm.
|
|
3634
|
+
const ret = wasm.wasmprocessingwarning_new(ptr0, len0, kind);
|
|
3635
3635
|
this.__wbg_ptr = ret >>> 0;
|
|
3636
|
-
|
|
3636
|
+
WasmProcessingWarningFinalization.register(this, this.__wbg_ptr, this);
|
|
3637
3637
|
return this;
|
|
3638
3638
|
}
|
|
3639
3639
|
/**
|
|
3640
|
-
* @param {
|
|
3640
|
+
* @param {WasmWarningKind} value
|
|
3641
3641
|
*/
|
|
3642
3642
|
set kind(value) {
|
|
3643
|
-
wasm.
|
|
3643
|
+
wasm.wasmprocessingwarning_set_kind(this.__wbg_ptr, value);
|
|
3644
3644
|
}
|
|
3645
3645
|
/**
|
|
3646
3646
|
* @param {string} value
|
|
@@ -3648,21 +3648,21 @@ export class JsProcessingWarning {
|
|
|
3648
3648
|
set message(value) {
|
|
3649
3649
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3650
3650
|
const len0 = WASM_VECTOR_LEN;
|
|
3651
|
-
wasm.
|
|
3651
|
+
wasm.wasmprocessingwarning_set_message(this.__wbg_ptr, ptr0, len0);
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
|
-
if (Symbol.dispose)
|
|
3654
|
+
if (Symbol.dispose) WasmProcessingWarning.prototype[Symbol.dispose] = WasmProcessingWarning.prototype.free;
|
|
3655
3655
|
|
|
3656
|
-
export class
|
|
3656
|
+
export class WasmStructuredData {
|
|
3657
3657
|
static __wrap(ptr) {
|
|
3658
3658
|
ptr = ptr >>> 0;
|
|
3659
|
-
const obj = Object.create(
|
|
3659
|
+
const obj = Object.create(WasmStructuredData.prototype);
|
|
3660
3660
|
obj.__wbg_ptr = ptr;
|
|
3661
|
-
|
|
3661
|
+
WasmStructuredDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3662
3662
|
return obj;
|
|
3663
3663
|
}
|
|
3664
3664
|
static __unwrap(jsValue) {
|
|
3665
|
-
if (!(jsValue instanceof
|
|
3665
|
+
if (!(jsValue instanceof WasmStructuredData)) {
|
|
3666
3666
|
return 0;
|
|
3667
3667
|
}
|
|
3668
3668
|
return jsValue.__destroy_into_raw();
|
|
@@ -3670,22 +3670,22 @@ export class JsStructuredData {
|
|
|
3670
3670
|
__destroy_into_raw() {
|
|
3671
3671
|
const ptr = this.__wbg_ptr;
|
|
3672
3672
|
this.__wbg_ptr = 0;
|
|
3673
|
-
|
|
3673
|
+
WasmStructuredDataFinalization.unregister(this);
|
|
3674
3674
|
return ptr;
|
|
3675
3675
|
}
|
|
3676
3676
|
free() {
|
|
3677
3677
|
const ptr = this.__destroy_into_raw();
|
|
3678
|
-
wasm.
|
|
3678
|
+
wasm.__wbg_wasmstructureddata_free(ptr, 0);
|
|
3679
3679
|
}
|
|
3680
3680
|
/**
|
|
3681
|
-
* @returns {
|
|
3681
|
+
* @returns {WasmStructuredDataType}
|
|
3682
3682
|
*/
|
|
3683
3683
|
get dataType() {
|
|
3684
|
-
const ret = wasm.
|
|
3684
|
+
const ret = wasm.wasmstructureddata_dataType(this.__wbg_ptr);
|
|
3685
3685
|
return ret;
|
|
3686
3686
|
}
|
|
3687
3687
|
/**
|
|
3688
|
-
* @param {
|
|
3688
|
+
* @param {WasmStructuredDataType} data_type
|
|
3689
3689
|
* @param {string} raw_json
|
|
3690
3690
|
* @param {string | null} [schema_type]
|
|
3691
3691
|
*/
|
|
@@ -3694,9 +3694,9 @@ export class JsStructuredData {
|
|
|
3694
3694
|
const len0 = WASM_VECTOR_LEN;
|
|
3695
3695
|
var ptr1 = isLikeNone(schema_type) ? 0 : passStringToWasm0(schema_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3696
3696
|
var len1 = WASM_VECTOR_LEN;
|
|
3697
|
-
const ret = wasm.
|
|
3697
|
+
const ret = wasm.wasmstructureddata_new(data_type, ptr0, len0, ptr1, len1);
|
|
3698
3698
|
this.__wbg_ptr = ret >>> 0;
|
|
3699
|
-
|
|
3699
|
+
WasmStructuredDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3700
3700
|
return this;
|
|
3701
3701
|
}
|
|
3702
3702
|
/**
|
|
@@ -3707,7 +3707,7 @@ export class JsStructuredData {
|
|
|
3707
3707
|
let deferred1_1;
|
|
3708
3708
|
try {
|
|
3709
3709
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3710
|
-
wasm.
|
|
3710
|
+
wasm.wasmstructureddata_rawJson(retptr, this.__wbg_ptr);
|
|
3711
3711
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3712
3712
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3713
3713
|
deferred1_0 = r0;
|
|
@@ -3724,7 +3724,7 @@ export class JsStructuredData {
|
|
|
3724
3724
|
get schemaType() {
|
|
3725
3725
|
try {
|
|
3726
3726
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3727
|
-
wasm.
|
|
3727
|
+
wasm.wasmstructureddata_schemaType(retptr, this.__wbg_ptr);
|
|
3728
3728
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3729
3729
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3730
3730
|
let v1;
|
|
@@ -3738,10 +3738,10 @@ export class JsStructuredData {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
}
|
|
3740
3740
|
/**
|
|
3741
|
-
* @param {
|
|
3741
|
+
* @param {WasmStructuredDataType} value
|
|
3742
3742
|
*/
|
|
3743
3743
|
set dataType(value) {
|
|
3744
|
-
wasm.
|
|
3744
|
+
wasm.wasmstructureddata_set_dataType(this.__wbg_ptr, value);
|
|
3745
3745
|
}
|
|
3746
3746
|
/**
|
|
3747
3747
|
* @param {string} value
|
|
@@ -3749,7 +3749,7 @@ export class JsStructuredData {
|
|
|
3749
3749
|
set rawJson(value) {
|
|
3750
3750
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3751
3751
|
const len0 = WASM_VECTOR_LEN;
|
|
3752
|
-
wasm.
|
|
3752
|
+
wasm.wasmstructureddata_set_rawJson(this.__wbg_ptr, ptr0, len0);
|
|
3753
3753
|
}
|
|
3754
3754
|
/**
|
|
3755
3755
|
* @param {string | null} [value]
|
|
@@ -3757,30 +3757,30 @@ export class JsStructuredData {
|
|
|
3757
3757
|
set schemaType(value) {
|
|
3758
3758
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3759
3759
|
var len0 = WASM_VECTOR_LEN;
|
|
3760
|
-
wasm.
|
|
3760
|
+
wasm.wasmstructureddata_set_schemaType(this.__wbg_ptr, ptr0, len0);
|
|
3761
3761
|
}
|
|
3762
3762
|
}
|
|
3763
|
-
if (Symbol.dispose)
|
|
3763
|
+
if (Symbol.dispose) WasmStructuredData.prototype[Symbol.dispose] = WasmStructuredData.prototype.free;
|
|
3764
3764
|
|
|
3765
3765
|
/**
|
|
3766
3766
|
* @enum {0 | 1 | 2}
|
|
3767
3767
|
*/
|
|
3768
|
-
export const
|
|
3768
|
+
export const WasmStructuredDataType = Object.freeze({
|
|
3769
3769
|
JsonLd: 0, "0": "JsonLd",
|
|
3770
3770
|
Microdata: 1, "1": "Microdata",
|
|
3771
3771
|
RDFa: 2, "2": "RDFa",
|
|
3772
3772
|
});
|
|
3773
3773
|
|
|
3774
|
-
export class
|
|
3774
|
+
export class WasmTableData {
|
|
3775
3775
|
static __wrap(ptr) {
|
|
3776
3776
|
ptr = ptr >>> 0;
|
|
3777
|
-
const obj = Object.create(
|
|
3777
|
+
const obj = Object.create(WasmTableData.prototype);
|
|
3778
3778
|
obj.__wbg_ptr = ptr;
|
|
3779
|
-
|
|
3779
|
+
WasmTableDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3780
3780
|
return obj;
|
|
3781
3781
|
}
|
|
3782
3782
|
static __unwrap(jsValue) {
|
|
3783
|
-
if (!(jsValue instanceof
|
|
3783
|
+
if (!(jsValue instanceof WasmTableData)) {
|
|
3784
3784
|
return 0;
|
|
3785
3785
|
}
|
|
3786
3786
|
return jsValue.__destroy_into_raw();
|
|
@@ -3788,19 +3788,19 @@ export class JsTableData {
|
|
|
3788
3788
|
__destroy_into_raw() {
|
|
3789
3789
|
const ptr = this.__wbg_ptr;
|
|
3790
3790
|
this.__wbg_ptr = 0;
|
|
3791
|
-
|
|
3791
|
+
WasmTableDataFinalization.unregister(this);
|
|
3792
3792
|
return ptr;
|
|
3793
3793
|
}
|
|
3794
3794
|
free() {
|
|
3795
3795
|
const ptr = this.__destroy_into_raw();
|
|
3796
|
-
wasm.
|
|
3796
|
+
wasm.__wbg_wasmtabledata_free(ptr, 0);
|
|
3797
3797
|
}
|
|
3798
3798
|
/**
|
|
3799
|
-
* @returns {
|
|
3799
|
+
* @returns {WasmTableGrid}
|
|
3800
3800
|
*/
|
|
3801
3801
|
get grid() {
|
|
3802
|
-
const ret = wasm.
|
|
3803
|
-
return
|
|
3802
|
+
const ret = wasm.wasmtabledata_grid(this.__wbg_ptr);
|
|
3803
|
+
return WasmTableGrid.__wrap(ret);
|
|
3804
3804
|
}
|
|
3805
3805
|
/**
|
|
3806
3806
|
* @returns {string}
|
|
@@ -3810,7 +3810,7 @@ export class JsTableData {
|
|
|
3810
3810
|
let deferred1_1;
|
|
3811
3811
|
try {
|
|
3812
3812
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3813
|
-
wasm.
|
|
3813
|
+
wasm.wasmtabledata_markdown(retptr, this.__wbg_ptr);
|
|
3814
3814
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3815
3815
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3816
3816
|
deferred1_0 = r0;
|
|
@@ -3822,26 +3822,26 @@ export class JsTableData {
|
|
|
3822
3822
|
}
|
|
3823
3823
|
}
|
|
3824
3824
|
/**
|
|
3825
|
-
* @param {
|
|
3825
|
+
* @param {WasmTableGrid} grid
|
|
3826
3826
|
* @param {string} markdown
|
|
3827
3827
|
*/
|
|
3828
3828
|
constructor(grid, markdown) {
|
|
3829
|
-
_assertClass(grid,
|
|
3829
|
+
_assertClass(grid, WasmTableGrid);
|
|
3830
3830
|
var ptr0 = grid.__destroy_into_raw();
|
|
3831
3831
|
const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3832
3832
|
const len1 = WASM_VECTOR_LEN;
|
|
3833
|
-
const ret = wasm.
|
|
3833
|
+
const ret = wasm.wasmtabledata_new(ptr0, ptr1, len1);
|
|
3834
3834
|
this.__wbg_ptr = ret >>> 0;
|
|
3835
|
-
|
|
3835
|
+
WasmTableDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3836
3836
|
return this;
|
|
3837
3837
|
}
|
|
3838
3838
|
/**
|
|
3839
|
-
* @param {
|
|
3839
|
+
* @param {WasmTableGrid} value
|
|
3840
3840
|
*/
|
|
3841
3841
|
set grid(value) {
|
|
3842
|
-
_assertClass(value,
|
|
3842
|
+
_assertClass(value, WasmTableGrid);
|
|
3843
3843
|
var ptr0 = value.__destroy_into_raw();
|
|
3844
|
-
wasm.
|
|
3844
|
+
wasm.wasmtabledata_set_grid(this.__wbg_ptr, ptr0);
|
|
3845
3845
|
}
|
|
3846
3846
|
/**
|
|
3847
3847
|
* @param {string} value
|
|
@@ -3849,36 +3849,36 @@ export class JsTableData {
|
|
|
3849
3849
|
set markdown(value) {
|
|
3850
3850
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3851
3851
|
const len0 = WASM_VECTOR_LEN;
|
|
3852
|
-
wasm.
|
|
3852
|
+
wasm.wasmtabledata_set_markdown(this.__wbg_ptr, ptr0, len0);
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
if (Symbol.dispose)
|
|
3855
|
+
if (Symbol.dispose) WasmTableData.prototype[Symbol.dispose] = WasmTableData.prototype.free;
|
|
3856
3856
|
|
|
3857
|
-
export class
|
|
3857
|
+
export class WasmTableGrid {
|
|
3858
3858
|
static __wrap(ptr) {
|
|
3859
3859
|
ptr = ptr >>> 0;
|
|
3860
|
-
const obj = Object.create(
|
|
3860
|
+
const obj = Object.create(WasmTableGrid.prototype);
|
|
3861
3861
|
obj.__wbg_ptr = ptr;
|
|
3862
|
-
|
|
3862
|
+
WasmTableGridFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3863
3863
|
return obj;
|
|
3864
3864
|
}
|
|
3865
3865
|
__destroy_into_raw() {
|
|
3866
3866
|
const ptr = this.__wbg_ptr;
|
|
3867
3867
|
this.__wbg_ptr = 0;
|
|
3868
|
-
|
|
3868
|
+
WasmTableGridFinalization.unregister(this);
|
|
3869
3869
|
return ptr;
|
|
3870
3870
|
}
|
|
3871
3871
|
free() {
|
|
3872
3872
|
const ptr = this.__destroy_into_raw();
|
|
3873
|
-
wasm.
|
|
3873
|
+
wasm.__wbg_wasmtablegrid_free(ptr, 0);
|
|
3874
3874
|
}
|
|
3875
3875
|
/**
|
|
3876
|
-
* @returns {
|
|
3876
|
+
* @returns {WasmGridCell[]}
|
|
3877
3877
|
*/
|
|
3878
3878
|
get cells() {
|
|
3879
3879
|
try {
|
|
3880
3880
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3881
|
-
wasm.
|
|
3881
|
+
wasm.wasmtablegrid_cells(retptr, this.__wbg_ptr);
|
|
3882
3882
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3883
3883
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3884
3884
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -3892,62 +3892,62 @@ export class JsTableGrid {
|
|
|
3892
3892
|
* @returns {number}
|
|
3893
3893
|
*/
|
|
3894
3894
|
get cols() {
|
|
3895
|
-
const ret = wasm.
|
|
3895
|
+
const ret = wasm.wasmtablegrid_cols(this.__wbg_ptr);
|
|
3896
3896
|
return ret >>> 0;
|
|
3897
3897
|
}
|
|
3898
3898
|
/**
|
|
3899
3899
|
* @param {number | null} [rows]
|
|
3900
3900
|
* @param {number | null} [cols]
|
|
3901
|
-
* @param {
|
|
3901
|
+
* @param {WasmGridCell[] | null} [cells]
|
|
3902
3902
|
*/
|
|
3903
3903
|
constructor(rows, cols, cells) {
|
|
3904
3904
|
var ptr0 = isLikeNone(cells) ? 0 : passArrayJsValueToWasm0(cells, wasm.__wbindgen_export);
|
|
3905
3905
|
var len0 = WASM_VECTOR_LEN;
|
|
3906
|
-
const ret = wasm.
|
|
3906
|
+
const ret = wasm.wasmtablegrid_new(isLikeNone(rows) ? 0x100000001 : (rows) >>> 0, isLikeNone(cols) ? 0x100000001 : (cols) >>> 0, ptr0, len0);
|
|
3907
3907
|
this.__wbg_ptr = ret >>> 0;
|
|
3908
|
-
|
|
3908
|
+
WasmTableGridFinalization.register(this, this.__wbg_ptr, this);
|
|
3909
3909
|
return this;
|
|
3910
3910
|
}
|
|
3911
3911
|
/**
|
|
3912
3912
|
* @returns {number}
|
|
3913
3913
|
*/
|
|
3914
3914
|
get rows() {
|
|
3915
|
-
const ret = wasm.
|
|
3915
|
+
const ret = wasm.wasmtablegrid_rows(this.__wbg_ptr);
|
|
3916
3916
|
return ret >>> 0;
|
|
3917
3917
|
}
|
|
3918
3918
|
/**
|
|
3919
|
-
* @param {
|
|
3919
|
+
* @param {WasmGridCell[]} value
|
|
3920
3920
|
*/
|
|
3921
3921
|
set cells(value) {
|
|
3922
3922
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3923
3923
|
const len0 = WASM_VECTOR_LEN;
|
|
3924
|
-
wasm.
|
|
3924
|
+
wasm.wasmtablegrid_set_cells(this.__wbg_ptr, ptr0, len0);
|
|
3925
3925
|
}
|
|
3926
3926
|
/**
|
|
3927
3927
|
* @param {number} value
|
|
3928
3928
|
*/
|
|
3929
3929
|
set cols(value) {
|
|
3930
|
-
wasm.
|
|
3930
|
+
wasm.wasmtablegrid_set_cols(this.__wbg_ptr, value);
|
|
3931
3931
|
}
|
|
3932
3932
|
/**
|
|
3933
3933
|
* @param {number} value
|
|
3934
3934
|
*/
|
|
3935
3935
|
set rows(value) {
|
|
3936
|
-
wasm.
|
|
3936
|
+
wasm.wasmtablegrid_set_rows(this.__wbg_ptr, value);
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
|
-
if (Symbol.dispose)
|
|
3939
|
+
if (Symbol.dispose) WasmTableGrid.prototype[Symbol.dispose] = WasmTableGrid.prototype.free;
|
|
3940
3940
|
|
|
3941
|
-
export class
|
|
3941
|
+
export class WasmTextAnnotation {
|
|
3942
3942
|
static __wrap(ptr) {
|
|
3943
3943
|
ptr = ptr >>> 0;
|
|
3944
|
-
const obj = Object.create(
|
|
3944
|
+
const obj = Object.create(WasmTextAnnotation.prototype);
|
|
3945
3945
|
obj.__wbg_ptr = ptr;
|
|
3946
|
-
|
|
3946
|
+
WasmTextAnnotationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3947
3947
|
return obj;
|
|
3948
3948
|
}
|
|
3949
3949
|
static __unwrap(jsValue) {
|
|
3950
|
-
if (!(jsValue instanceof
|
|
3950
|
+
if (!(jsValue instanceof WasmTextAnnotation)) {
|
|
3951
3951
|
return 0;
|
|
3952
3952
|
}
|
|
3953
3953
|
return jsValue.__destroy_into_raw();
|
|
@@ -3955,70 +3955,70 @@ export class JsTextAnnotation {
|
|
|
3955
3955
|
__destroy_into_raw() {
|
|
3956
3956
|
const ptr = this.__wbg_ptr;
|
|
3957
3957
|
this.__wbg_ptr = 0;
|
|
3958
|
-
|
|
3958
|
+
WasmTextAnnotationFinalization.unregister(this);
|
|
3959
3959
|
return ptr;
|
|
3960
3960
|
}
|
|
3961
3961
|
free() {
|
|
3962
3962
|
const ptr = this.__destroy_into_raw();
|
|
3963
|
-
wasm.
|
|
3963
|
+
wasm.__wbg_wasmtextannotation_free(ptr, 0);
|
|
3964
3964
|
}
|
|
3965
3965
|
/**
|
|
3966
3966
|
* @returns {number}
|
|
3967
3967
|
*/
|
|
3968
3968
|
get end() {
|
|
3969
|
-
const ret = wasm.
|
|
3969
|
+
const ret = wasm.wasmtextannotation_end(this.__wbg_ptr);
|
|
3970
3970
|
return ret >>> 0;
|
|
3971
3971
|
}
|
|
3972
3972
|
/**
|
|
3973
|
-
* @returns {
|
|
3973
|
+
* @returns {WasmAnnotationKind}
|
|
3974
3974
|
*/
|
|
3975
3975
|
get kind() {
|
|
3976
|
-
const ret = wasm.
|
|
3976
|
+
const ret = wasm.wasmtextannotation_kind(this.__wbg_ptr);
|
|
3977
3977
|
return ret;
|
|
3978
3978
|
}
|
|
3979
3979
|
/**
|
|
3980
3980
|
* @param {number} start
|
|
3981
3981
|
* @param {number} end
|
|
3982
|
-
* @param {
|
|
3982
|
+
* @param {WasmAnnotationKind} kind
|
|
3983
3983
|
*/
|
|
3984
3984
|
constructor(start, end, kind) {
|
|
3985
|
-
const ret = wasm.
|
|
3985
|
+
const ret = wasm.wasmtextannotation_new(start, end, kind);
|
|
3986
3986
|
this.__wbg_ptr = ret >>> 0;
|
|
3987
|
-
|
|
3987
|
+
WasmTextAnnotationFinalization.register(this, this.__wbg_ptr, this);
|
|
3988
3988
|
return this;
|
|
3989
3989
|
}
|
|
3990
3990
|
/**
|
|
3991
3991
|
* @param {number} value
|
|
3992
3992
|
*/
|
|
3993
3993
|
set end(value) {
|
|
3994
|
-
wasm.
|
|
3994
|
+
wasm.wasmtextannotation_set_end(this.__wbg_ptr, value);
|
|
3995
3995
|
}
|
|
3996
3996
|
/**
|
|
3997
|
-
* @param {
|
|
3997
|
+
* @param {WasmAnnotationKind} value
|
|
3998
3998
|
*/
|
|
3999
3999
|
set kind(value) {
|
|
4000
|
-
wasm.
|
|
4000
|
+
wasm.wasmtextannotation_set_kind(this.__wbg_ptr, value);
|
|
4001
4001
|
}
|
|
4002
4002
|
/**
|
|
4003
4003
|
* @param {number} value
|
|
4004
4004
|
*/
|
|
4005
4005
|
set start(value) {
|
|
4006
|
-
wasm.
|
|
4006
|
+
wasm.wasmtextannotation_set_start(this.__wbg_ptr, value);
|
|
4007
4007
|
}
|
|
4008
4008
|
/**
|
|
4009
4009
|
* @returns {number}
|
|
4010
4010
|
*/
|
|
4011
4011
|
get start() {
|
|
4012
|
-
const ret = wasm.
|
|
4012
|
+
const ret = wasm.wasmtextannotation_start(this.__wbg_ptr);
|
|
4013
4013
|
return ret >>> 0;
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
|
-
if (Symbol.dispose)
|
|
4016
|
+
if (Symbol.dispose) WasmTextAnnotation.prototype[Symbol.dispose] = WasmTextAnnotation.prototype.free;
|
|
4017
4017
|
|
|
4018
4018
|
/**
|
|
4019
4019
|
* @enum {0 | 1 | 2}
|
|
4020
4020
|
*/
|
|
4021
|
-
export const
|
|
4021
|
+
export const WasmTextDirection = Object.freeze({
|
|
4022
4022
|
LeftToRight: 0, "0": "LeftToRight",
|
|
4023
4023
|
RightToLeft: 1, "1": "RightToLeft",
|
|
4024
4024
|
Auto: 2, "2": "Auto",
|
|
@@ -4027,7 +4027,7 @@ export const JsTextDirection = Object.freeze({
|
|
|
4027
4027
|
/**
|
|
4028
4028
|
* @enum {0 | 1 | 2 | 3 | 4}
|
|
4029
4029
|
*/
|
|
4030
|
-
export const
|
|
4030
|
+
export const WasmWarningKind = Object.freeze({
|
|
4031
4031
|
ImageExtractionFailed: 0, "0": "ImageExtractionFailed",
|
|
4032
4032
|
EncodingFallback: 1, "1": "EncodingFallback",
|
|
4033
4033
|
TruncatedInput: 2, "2": "TruncatedInput",
|
|
@@ -4038,15 +4038,15 @@ export const JsWarningKind = Object.freeze({
|
|
|
4038
4038
|
/**
|
|
4039
4039
|
* @enum {0 | 1}
|
|
4040
4040
|
*/
|
|
4041
|
-
export const
|
|
4041
|
+
export const WasmWhitespaceMode = Object.freeze({
|
|
4042
4042
|
Normalized: 0, "0": "Normalized",
|
|
4043
4043
|
Strict: 1, "1": "Strict",
|
|
4044
4044
|
});
|
|
4045
4045
|
|
|
4046
4046
|
/**
|
|
4047
4047
|
* @param {string} html
|
|
4048
|
-
* @param {
|
|
4049
|
-
* @returns {
|
|
4048
|
+
* @param {WasmConversionOptions | null} [options]
|
|
4049
|
+
* @returns {WasmConversionResult}
|
|
4050
4050
|
*/
|
|
4051
4051
|
export function convert(html, options) {
|
|
4052
4052
|
try {
|
|
@@ -4055,7 +4055,7 @@ export function convert(html, options) {
|
|
|
4055
4055
|
const len0 = WASM_VECTOR_LEN;
|
|
4056
4056
|
let ptr1 = 0;
|
|
4057
4057
|
if (!isLikeNone(options)) {
|
|
4058
|
-
_assertClass(options,
|
|
4058
|
+
_assertClass(options, WasmConversionOptions);
|
|
4059
4059
|
ptr1 = options.__destroy_into_raw();
|
|
4060
4060
|
}
|
|
4061
4061
|
wasm.convert(retptr, ptr0, len0, ptr1);
|
|
@@ -4065,7 +4065,7 @@ export function convert(html, options) {
|
|
|
4065
4065
|
if (r2) {
|
|
4066
4066
|
throw takeObject(r1);
|
|
4067
4067
|
}
|
|
4068
|
-
return
|
|
4068
|
+
return WasmConversionResult.__wrap(r0);
|
|
4069
4069
|
} finally {
|
|
4070
4070
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4071
4071
|
}
|
|
@@ -4096,93 +4096,93 @@ function __wbg_get_imports() {
|
|
|
4096
4096
|
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
4097
4097
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4098
4098
|
},
|
|
4099
|
-
|
|
4100
|
-
const ret =
|
|
4099
|
+
__wbg_new_34d45cc8e36aaead: function() {
|
|
4100
|
+
const ret = new Map();
|
|
4101
4101
|
return addHeapObject(ret);
|
|
4102
4102
|
},
|
|
4103
|
-
|
|
4104
|
-
const ret =
|
|
4105
|
-
return ret;
|
|
4106
|
-
},
|
|
4107
|
-
__wbg_jsgridcell_new: function(arg0) {
|
|
4108
|
-
const ret = JsGridCell.__wrap(arg0);
|
|
4103
|
+
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
4104
|
+
const ret = new Object();
|
|
4109
4105
|
return addHeapObject(ret);
|
|
4110
4106
|
},
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
return ret;
|
|
4107
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
4108
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4114
4109
|
},
|
|
4115
|
-
|
|
4116
|
-
const ret =
|
|
4110
|
+
__wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
|
|
4111
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4117
4112
|
return addHeapObject(ret);
|
|
4118
4113
|
},
|
|
4119
|
-
|
|
4120
|
-
const ret =
|
|
4121
|
-
return ret;
|
|
4122
|
-
},
|
|
4123
|
-
__wbg_jsimagemetadata_new: function(arg0) {
|
|
4124
|
-
const ret = JsImageMetadata.__wrap(arg0);
|
|
4114
|
+
__wbg_wasmdocumentnode_new: function(arg0) {
|
|
4115
|
+
const ret = WasmDocumentNode.__wrap(arg0);
|
|
4125
4116
|
return addHeapObject(ret);
|
|
4126
4117
|
},
|
|
4127
|
-
|
|
4128
|
-
const ret =
|
|
4118
|
+
__wbg_wasmdocumentnode_unwrap: function(arg0) {
|
|
4119
|
+
const ret = WasmDocumentNode.__unwrap(getObject(arg0));
|
|
4129
4120
|
return ret;
|
|
4130
4121
|
},
|
|
4131
|
-
|
|
4132
|
-
const ret =
|
|
4122
|
+
__wbg_wasmgridcell_new: function(arg0) {
|
|
4123
|
+
const ret = WasmGridCell.__wrap(arg0);
|
|
4133
4124
|
return addHeapObject(ret);
|
|
4134
4125
|
},
|
|
4135
|
-
|
|
4136
|
-
const ret =
|
|
4126
|
+
__wbg_wasmgridcell_unwrap: function(arg0) {
|
|
4127
|
+
const ret = WasmGridCell.__unwrap(getObject(arg0));
|
|
4137
4128
|
return ret;
|
|
4138
4129
|
},
|
|
4139
|
-
|
|
4140
|
-
const ret =
|
|
4130
|
+
__wbg_wasmheadermetadata_new: function(arg0) {
|
|
4131
|
+
const ret = WasmHeaderMetadata.__wrap(arg0);
|
|
4141
4132
|
return addHeapObject(ret);
|
|
4142
4133
|
},
|
|
4143
|
-
|
|
4144
|
-
const ret =
|
|
4134
|
+
__wbg_wasmheadermetadata_unwrap: function(arg0) {
|
|
4135
|
+
const ret = WasmHeaderMetadata.__unwrap(getObject(arg0));
|
|
4145
4136
|
return ret;
|
|
4146
4137
|
},
|
|
4147
|
-
|
|
4148
|
-
const ret =
|
|
4138
|
+
__wbg_wasmimagemetadata_new: function(arg0) {
|
|
4139
|
+
const ret = WasmImageMetadata.__wrap(arg0);
|
|
4149
4140
|
return addHeapObject(ret);
|
|
4150
4141
|
},
|
|
4151
|
-
|
|
4152
|
-
const ret =
|
|
4142
|
+
__wbg_wasmimagemetadata_unwrap: function(arg0) {
|
|
4143
|
+
const ret = WasmImageMetadata.__unwrap(getObject(arg0));
|
|
4153
4144
|
return ret;
|
|
4154
4145
|
},
|
|
4155
|
-
|
|
4156
|
-
const ret =
|
|
4146
|
+
__wbg_wasmlinkmetadata_new: function(arg0) {
|
|
4147
|
+
const ret = WasmLinkMetadata.__wrap(arg0);
|
|
4157
4148
|
return addHeapObject(ret);
|
|
4158
4149
|
},
|
|
4159
|
-
|
|
4160
|
-
const ret =
|
|
4150
|
+
__wbg_wasmlinkmetadata_unwrap: function(arg0) {
|
|
4151
|
+
const ret = WasmLinkMetadata.__unwrap(getObject(arg0));
|
|
4161
4152
|
return ret;
|
|
4162
4153
|
},
|
|
4163
|
-
|
|
4164
|
-
const ret =
|
|
4154
|
+
__wbg_wasmprocessingwarning_new: function(arg0) {
|
|
4155
|
+
const ret = WasmProcessingWarning.__wrap(arg0);
|
|
4165
4156
|
return addHeapObject(ret);
|
|
4166
4157
|
},
|
|
4167
|
-
|
|
4168
|
-
const ret =
|
|
4158
|
+
__wbg_wasmprocessingwarning_unwrap: function(arg0) {
|
|
4159
|
+
const ret = WasmProcessingWarning.__unwrap(getObject(arg0));
|
|
4169
4160
|
return ret;
|
|
4170
4161
|
},
|
|
4171
|
-
|
|
4172
|
-
const ret =
|
|
4162
|
+
__wbg_wasmstructureddata_new: function(arg0) {
|
|
4163
|
+
const ret = WasmStructuredData.__wrap(arg0);
|
|
4173
4164
|
return addHeapObject(ret);
|
|
4174
4165
|
},
|
|
4175
|
-
|
|
4176
|
-
const ret =
|
|
4166
|
+
__wbg_wasmstructureddata_unwrap: function(arg0) {
|
|
4167
|
+
const ret = WasmStructuredData.__unwrap(getObject(arg0));
|
|
4168
|
+
return ret;
|
|
4169
|
+
},
|
|
4170
|
+
__wbg_wasmtabledata_new: function(arg0) {
|
|
4171
|
+
const ret = WasmTableData.__wrap(arg0);
|
|
4177
4172
|
return addHeapObject(ret);
|
|
4178
4173
|
},
|
|
4179
|
-
|
|
4180
|
-
getObject(arg0)
|
|
4174
|
+
__wbg_wasmtabledata_unwrap: function(arg0) {
|
|
4175
|
+
const ret = WasmTableData.__unwrap(getObject(arg0));
|
|
4176
|
+
return ret;
|
|
4181
4177
|
},
|
|
4182
|
-
|
|
4183
|
-
const ret =
|
|
4178
|
+
__wbg_wasmtextannotation_new: function(arg0) {
|
|
4179
|
+
const ret = WasmTextAnnotation.__wrap(arg0);
|
|
4184
4180
|
return addHeapObject(ret);
|
|
4185
4181
|
},
|
|
4182
|
+
__wbg_wasmtextannotation_unwrap: function(arg0) {
|
|
4183
|
+
const ret = WasmTextAnnotation.__unwrap(getObject(arg0));
|
|
4184
|
+
return ret;
|
|
4185
|
+
},
|
|
4186
4186
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
4187
4187
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
4188
4188
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -4202,69 +4202,69 @@ function __wbg_get_imports() {
|
|
|
4202
4202
|
};
|
|
4203
4203
|
}
|
|
4204
4204
|
|
|
4205
|
-
const
|
|
4205
|
+
const WasmConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4206
4206
|
? { register: () => {}, unregister: () => {} }
|
|
4207
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4208
|
-
const
|
|
4207
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptions_free(ptr >>> 0, 1));
|
|
4208
|
+
const WasmConversionOptionsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4209
4209
|
? { register: () => {}, unregister: () => {} }
|
|
4210
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4211
|
-
const
|
|
4210
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsbuilder_free(ptr >>> 0, 1));
|
|
4211
|
+
const WasmConversionOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4212
4212
|
? { register: () => {}, unregister: () => {} }
|
|
4213
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4214
|
-
const
|
|
4213
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsupdate_free(ptr >>> 0, 1));
|
|
4214
|
+
const WasmConversionResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4215
4215
|
? { register: () => {}, unregister: () => {} }
|
|
4216
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4217
|
-
const
|
|
4216
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionresult_free(ptr >>> 0, 1));
|
|
4217
|
+
const WasmDocumentMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4218
4218
|
? { register: () => {}, unregister: () => {} }
|
|
4219
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4220
|
-
const
|
|
4219
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentmetadata_free(ptr >>> 0, 1));
|
|
4220
|
+
const WasmDocumentNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4221
4221
|
? { register: () => {}, unregister: () => {} }
|
|
4222
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4223
|
-
const
|
|
4222
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentnode_free(ptr >>> 0, 1));
|
|
4223
|
+
const WasmDocumentStructureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4224
4224
|
? { register: () => {}, unregister: () => {} }
|
|
4225
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4226
|
-
const
|
|
4225
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentstructure_free(ptr >>> 0, 1));
|
|
4226
|
+
const WasmGridCellFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4227
4227
|
? { register: () => {}, unregister: () => {} }
|
|
4228
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4229
|
-
const
|
|
4228
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgridcell_free(ptr >>> 0, 1));
|
|
4229
|
+
const WasmHeaderMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4230
4230
|
? { register: () => {}, unregister: () => {} }
|
|
4231
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4232
|
-
const
|
|
4231
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheadermetadata_free(ptr >>> 0, 1));
|
|
4232
|
+
const WasmHtmlMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4233
4233
|
? { register: () => {}, unregister: () => {} }
|
|
4234
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4235
|
-
const
|
|
4234
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr >>> 0, 1));
|
|
4235
|
+
const WasmImageMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4236
4236
|
? { register: () => {}, unregister: () => {} }
|
|
4237
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4238
|
-
const
|
|
4237
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr >>> 0, 1));
|
|
4238
|
+
const WasmLinkMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4239
4239
|
? { register: () => {}, unregister: () => {} }
|
|
4240
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4241
|
-
const
|
|
4240
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr >>> 0, 1));
|
|
4241
|
+
const WasmMetadataConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4242
4242
|
? { register: () => {}, unregister: () => {} }
|
|
4243
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4244
|
-
const
|
|
4243
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfig_free(ptr >>> 0, 1));
|
|
4244
|
+
const WasmMetadataConfigUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4245
4245
|
? { register: () => {}, unregister: () => {} }
|
|
4246
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4247
|
-
const
|
|
4246
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfigupdate_free(ptr >>> 0, 1));
|
|
4247
|
+
const WasmPreprocessingOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4248
4248
|
? { register: () => {}, unregister: () => {} }
|
|
4249
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4250
|
-
const
|
|
4249
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptions_free(ptr >>> 0, 1));
|
|
4250
|
+
const WasmPreprocessingOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4251
4251
|
? { register: () => {}, unregister: () => {} }
|
|
4252
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4253
|
-
const
|
|
4252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr >>> 0, 1));
|
|
4253
|
+
const WasmProcessingWarningFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4254
4254
|
? { register: () => {}, unregister: () => {} }
|
|
4255
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4256
|
-
const
|
|
4255
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmprocessingwarning_free(ptr >>> 0, 1));
|
|
4256
|
+
const WasmStructuredDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4257
4257
|
? { register: () => {}, unregister: () => {} }
|
|
4258
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4259
|
-
const
|
|
4258
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstructureddata_free(ptr >>> 0, 1));
|
|
4259
|
+
const WasmTableDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4260
4260
|
? { register: () => {}, unregister: () => {} }
|
|
4261
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4262
|
-
const
|
|
4261
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtabledata_free(ptr >>> 0, 1));
|
|
4262
|
+
const WasmTableGridFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4263
4263
|
? { register: () => {}, unregister: () => {} }
|
|
4264
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4265
|
-
const
|
|
4264
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtablegrid_free(ptr >>> 0, 1));
|
|
4265
|
+
const WasmTextAnnotationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4266
4266
|
? { register: () => {}, unregister: () => {} }
|
|
4267
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4267
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextannotation_free(ptr >>> 0, 1));
|
|
4268
4268
|
|
|
4269
4269
|
function addHeapObject(obj) {
|
|
4270
4270
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|