@kreuzberg/html-to-markdown-wasm 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}
|
|
3
3
|
*/
|
|
4
|
-
export const
|
|
4
|
+
export const WasmAnnotationKind = Object.freeze({
|
|
5
5
|
Bold: 0, "0": "Bold",
|
|
6
6
|
Italic: 1, "1": "Italic",
|
|
7
7
|
Underline: 2, "2": "Underline",
|
|
@@ -16,50 +16,50 @@ export const JsAnnotationKind = Object.freeze({
|
|
|
16
16
|
/**
|
|
17
17
|
* @enum {0 | 1 | 2}
|
|
18
18
|
*/
|
|
19
|
-
export const
|
|
19
|
+
export const WasmCodeBlockStyle = Object.freeze({
|
|
20
20
|
Indented: 0, "0": "Indented",
|
|
21
21
|
Backticks: 1, "1": "Backticks",
|
|
22
22
|
Tildes: 2, "2": "Tildes",
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
export class
|
|
25
|
+
export class WasmConversionOptions {
|
|
26
26
|
static __wrap(ptr) {
|
|
27
27
|
ptr = ptr >>> 0;
|
|
28
|
-
const obj = Object.create(
|
|
28
|
+
const obj = Object.create(WasmConversionOptions.prototype);
|
|
29
29
|
obj.__wbg_ptr = ptr;
|
|
30
|
-
|
|
30
|
+
WasmConversionOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
31
31
|
return obj;
|
|
32
32
|
}
|
|
33
33
|
__destroy_into_raw() {
|
|
34
34
|
const ptr = this.__wbg_ptr;
|
|
35
35
|
this.__wbg_ptr = 0;
|
|
36
|
-
|
|
36
|
+
WasmConversionOptionsFinalization.unregister(this);
|
|
37
37
|
return ptr;
|
|
38
38
|
}
|
|
39
39
|
free() {
|
|
40
40
|
const ptr = this.__destroy_into_raw();
|
|
41
|
-
wasm.
|
|
41
|
+
wasm.__wbg_wasmconversionoptions_free(ptr, 0);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @returns {boolean}
|
|
45
45
|
*/
|
|
46
46
|
get autolinks() {
|
|
47
|
-
const ret = wasm.
|
|
47
|
+
const ret = wasm.wasmconversionoptions_autolinks(this.__wbg_ptr);
|
|
48
48
|
return ret !== 0;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* @returns {boolean}
|
|
52
52
|
*/
|
|
53
53
|
get brInTables() {
|
|
54
|
-
const ret = wasm.
|
|
54
|
+
const ret = wasm.wasmconversionoptions_brInTables(this.__wbg_ptr);
|
|
55
55
|
return ret !== 0;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* @returns {
|
|
58
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
59
59
|
*/
|
|
60
60
|
static builder() {
|
|
61
|
-
const ret = wasm.
|
|
62
|
-
return
|
|
61
|
+
const ret = wasm.wasmconversionoptions_builder();
|
|
62
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* @returns {string}
|
|
@@ -69,7 +69,7 @@ export class JsConversionOptions {
|
|
|
69
69
|
let deferred1_1;
|
|
70
70
|
try {
|
|
71
71
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
72
|
-
wasm.
|
|
72
|
+
wasm.wasmconversionoptions_bullets(retptr, this.__wbg_ptr);
|
|
73
73
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
74
74
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
75
75
|
deferred1_0 = r0;
|
|
@@ -84,14 +84,14 @@ export class JsConversionOptions {
|
|
|
84
84
|
* @returns {boolean}
|
|
85
85
|
*/
|
|
86
86
|
get captureSvg() {
|
|
87
|
-
const ret = wasm.
|
|
87
|
+
const ret = wasm.wasmconversionoptions_captureSvg(this.__wbg_ptr);
|
|
88
88
|
return ret !== 0;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* @returns {
|
|
91
|
+
* @returns {WasmCodeBlockStyle}
|
|
92
92
|
*/
|
|
93
93
|
get codeBlockStyle() {
|
|
94
|
-
const ret = wasm.
|
|
94
|
+
const ret = wasm.wasmconversionoptions_codeBlockStyle(this.__wbg_ptr);
|
|
95
95
|
return ret;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
@@ -102,7 +102,7 @@ export class JsConversionOptions {
|
|
|
102
102
|
let deferred1_1;
|
|
103
103
|
try {
|
|
104
104
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
105
|
-
wasm.
|
|
105
|
+
wasm.wasmconversionoptions_codeLanguage(retptr, this.__wbg_ptr);
|
|
106
106
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
107
107
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
108
108
|
deferred1_0 = r0;
|
|
@@ -117,28 +117,28 @@ export class JsConversionOptions {
|
|
|
117
117
|
* @returns {boolean}
|
|
118
118
|
*/
|
|
119
119
|
get convertAsInline() {
|
|
120
|
-
const ret = wasm.
|
|
120
|
+
const ret = wasm.wasmconversionoptions_convertAsInline(this.__wbg_ptr);
|
|
121
121
|
return ret !== 0;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* @returns {boolean}
|
|
125
125
|
*/
|
|
126
126
|
get debug() {
|
|
127
|
-
const ret = wasm.
|
|
127
|
+
const ret = wasm.wasmconversionoptions_debug(this.__wbg_ptr);
|
|
128
128
|
return ret !== 0;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
* @returns {
|
|
131
|
+
* @returns {WasmConversionOptions}
|
|
132
132
|
*/
|
|
133
133
|
static default() {
|
|
134
|
-
const ret = wasm.
|
|
135
|
-
return
|
|
134
|
+
const ret = wasm.wasmconversionoptions_default();
|
|
135
|
+
return WasmConversionOptions.__wrap(ret);
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* @returns {boolean}
|
|
139
139
|
*/
|
|
140
140
|
get defaultTitle() {
|
|
141
|
-
const ret = wasm.
|
|
141
|
+
const ret = wasm.wasmconversionoptions_defaultTitle(this.__wbg_ptr);
|
|
142
142
|
return ret !== 0;
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
@@ -149,7 +149,7 @@ export class JsConversionOptions {
|
|
|
149
149
|
let deferred1_1;
|
|
150
150
|
try {
|
|
151
151
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
152
|
-
wasm.
|
|
152
|
+
wasm.wasmconversionoptions_encoding(retptr, this.__wbg_ptr);
|
|
153
153
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
154
154
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
155
155
|
deferred1_0 = r0;
|
|
@@ -164,70 +164,70 @@ export class JsConversionOptions {
|
|
|
164
164
|
* @returns {boolean}
|
|
165
165
|
*/
|
|
166
166
|
get escapeAscii() {
|
|
167
|
-
const ret = wasm.
|
|
167
|
+
const ret = wasm.wasmconversionoptions_escapeAscii(this.__wbg_ptr);
|
|
168
168
|
return ret !== 0;
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
* @returns {boolean}
|
|
172
172
|
*/
|
|
173
173
|
get escapeAsterisks() {
|
|
174
|
-
const ret = wasm.
|
|
174
|
+
const ret = wasm.wasmconversionoptions_escapeAsterisks(this.__wbg_ptr);
|
|
175
175
|
return ret !== 0;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* @returns {boolean}
|
|
179
179
|
*/
|
|
180
180
|
get escapeMisc() {
|
|
181
|
-
const ret = wasm.
|
|
181
|
+
const ret = wasm.wasmconversionoptions_escapeMisc(this.__wbg_ptr);
|
|
182
182
|
return ret !== 0;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* @returns {boolean}
|
|
186
186
|
*/
|
|
187
187
|
get escapeUnderscores() {
|
|
188
|
-
const ret = wasm.
|
|
188
|
+
const ret = wasm.wasmconversionoptions_escapeUnderscores(this.__wbg_ptr);
|
|
189
189
|
return ret !== 0;
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* @returns {boolean}
|
|
193
193
|
*/
|
|
194
194
|
get extractImages() {
|
|
195
|
-
const ret = wasm.
|
|
195
|
+
const ret = wasm.wasmconversionoptions_extractImages(this.__wbg_ptr);
|
|
196
196
|
return ret !== 0;
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
199
|
* @returns {boolean}
|
|
200
200
|
*/
|
|
201
201
|
get extractMetadata() {
|
|
202
|
-
const ret = wasm.
|
|
202
|
+
const ret = wasm.wasmconversionoptions_extractMetadata(this.__wbg_ptr);
|
|
203
203
|
return ret !== 0;
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
|
-
* @returns {
|
|
206
|
+
* @returns {WasmHeadingStyle}
|
|
207
207
|
*/
|
|
208
208
|
get headingStyle() {
|
|
209
|
-
const ret = wasm.
|
|
209
|
+
const ret = wasm.wasmconversionoptions_headingStyle(this.__wbg_ptr);
|
|
210
210
|
return ret;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
|
-
* @returns {
|
|
213
|
+
* @returns {WasmHighlightStyle}
|
|
214
214
|
*/
|
|
215
215
|
get highlightStyle() {
|
|
216
|
-
const ret = wasm.
|
|
216
|
+
const ret = wasm.wasmconversionoptions_highlightStyle(this.__wbg_ptr);
|
|
217
217
|
return ret;
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
220
|
* @returns {boolean}
|
|
221
221
|
*/
|
|
222
222
|
get includeDocumentStructure() {
|
|
223
|
-
const ret = wasm.
|
|
223
|
+
const ret = wasm.wasmconversionoptions_includeDocumentStructure(this.__wbg_ptr);
|
|
224
224
|
return ret !== 0;
|
|
225
225
|
}
|
|
226
226
|
/**
|
|
227
227
|
* @returns {boolean}
|
|
228
228
|
*/
|
|
229
229
|
get inferDimensions() {
|
|
230
|
-
const ret = wasm.
|
|
230
|
+
const ret = wasm.wasmconversionoptions_inferDimensions(this.__wbg_ptr);
|
|
231
231
|
return ret !== 0;
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
@@ -236,7 +236,7 @@ export class JsConversionOptions {
|
|
|
236
236
|
get keepInlineImagesIn() {
|
|
237
237
|
try {
|
|
238
238
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
-
wasm.
|
|
239
|
+
wasm.wasmconversionoptions_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
240
240
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
241
241
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
242
242
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -247,36 +247,36 @@ export class JsConversionOptions {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* @returns {
|
|
250
|
+
* @returns {WasmLinkStyle}
|
|
251
251
|
*/
|
|
252
252
|
get linkStyle() {
|
|
253
|
-
const ret = wasm.
|
|
253
|
+
const ret = wasm.wasmconversionoptions_linkStyle(this.__wbg_ptr);
|
|
254
254
|
return ret;
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
257
|
-
* @returns {
|
|
257
|
+
* @returns {WasmListIndentType}
|
|
258
258
|
*/
|
|
259
259
|
get listIndentType() {
|
|
260
|
-
const ret = wasm.
|
|
260
|
+
const ret = wasm.wasmconversionoptions_listIndentType(this.__wbg_ptr);
|
|
261
261
|
return ret;
|
|
262
262
|
}
|
|
263
263
|
/**
|
|
264
264
|
* @returns {number}
|
|
265
265
|
*/
|
|
266
266
|
get listIndentWidth() {
|
|
267
|
-
const ret = wasm.
|
|
267
|
+
const ret = wasm.wasmconversionoptions_listIndentWidth(this.__wbg_ptr);
|
|
268
268
|
return ret >>> 0;
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
271
|
* @returns {bigint}
|
|
272
272
|
*/
|
|
273
273
|
get maxImageSize() {
|
|
274
|
-
const ret = wasm.
|
|
274
|
+
const ret = wasm.wasmconversionoptions_maxImageSize(this.__wbg_ptr);
|
|
275
275
|
return BigInt.asUintN(64, ret);
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
* @param {
|
|
279
|
-
* @param {
|
|
278
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
279
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
280
280
|
* @param {number | null} [list_indent_width]
|
|
281
281
|
* @param {string | null} [bullets]
|
|
282
282
|
* @param {string | null} [strong_em_symbol]
|
|
@@ -288,26 +288,26 @@ export class JsConversionOptions {
|
|
|
288
288
|
* @param {boolean | null} [autolinks]
|
|
289
289
|
* @param {boolean | null} [default_title]
|
|
290
290
|
* @param {boolean | null} [br_in_tables]
|
|
291
|
-
* @param {
|
|
291
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
292
292
|
* @param {boolean | null} [extract_metadata]
|
|
293
|
-
* @param {
|
|
293
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
294
294
|
* @param {boolean | null} [strip_newlines]
|
|
295
295
|
* @param {boolean | null} [wrap]
|
|
296
296
|
* @param {number | null} [wrap_width]
|
|
297
297
|
* @param {boolean | null} [convert_as_inline]
|
|
298
298
|
* @param {string | null} [sub_symbol]
|
|
299
299
|
* @param {string | null} [sup_symbol]
|
|
300
|
-
* @param {
|
|
301
|
-
* @param {
|
|
300
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
301
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
302
302
|
* @param {string[] | null} [keep_inline_images_in]
|
|
303
|
-
* @param {
|
|
303
|
+
* @param {WasmPreprocessingOptions | null} [preprocessing]
|
|
304
304
|
* @param {string | null} [encoding]
|
|
305
305
|
* @param {boolean | null} [debug]
|
|
306
306
|
* @param {string[] | null} [strip_tags]
|
|
307
307
|
* @param {string[] | null} [preserve_tags]
|
|
308
308
|
* @param {boolean | null} [skip_images]
|
|
309
|
-
* @param {
|
|
310
|
-
* @param {
|
|
309
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
310
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
311
311
|
* @param {boolean | null} [include_document_structure]
|
|
312
312
|
* @param {boolean | null} [extract_images]
|
|
313
313
|
* @param {bigint | null} [max_image_size]
|
|
@@ -329,7 +329,7 @@ export class JsConversionOptions {
|
|
|
329
329
|
var len5 = WASM_VECTOR_LEN;
|
|
330
330
|
let ptr6 = 0;
|
|
331
331
|
if (!isLikeNone(preprocessing)) {
|
|
332
|
-
_assertClass(preprocessing,
|
|
332
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
333
333
|
ptr6 = preprocessing.__destroy_into_raw();
|
|
334
334
|
}
|
|
335
335
|
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -338,31 +338,31 @@ export class JsConversionOptions {
|
|
|
338
338
|
var len8 = WASM_VECTOR_LEN;
|
|
339
339
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
340
340
|
var len9 = WASM_VECTOR_LEN;
|
|
341
|
-
const ret = wasm.
|
|
341
|
+
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);
|
|
342
342
|
this.__wbg_ptr = ret >>> 0;
|
|
343
|
-
|
|
343
|
+
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
344
344
|
return this;
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
|
-
* @returns {
|
|
347
|
+
* @returns {WasmNewlineStyle}
|
|
348
348
|
*/
|
|
349
349
|
get newlineStyle() {
|
|
350
|
-
const ret = wasm.
|
|
350
|
+
const ret = wasm.wasmconversionoptions_newlineStyle(this.__wbg_ptr);
|
|
351
351
|
return ret;
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
354
|
-
* @returns {
|
|
354
|
+
* @returns {WasmOutputFormat}
|
|
355
355
|
*/
|
|
356
356
|
get outputFormat() {
|
|
357
|
-
const ret = wasm.
|
|
357
|
+
const ret = wasm.wasmconversionoptions_outputFormat(this.__wbg_ptr);
|
|
358
358
|
return ret;
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
|
-
* @returns {
|
|
361
|
+
* @returns {WasmPreprocessingOptions}
|
|
362
362
|
*/
|
|
363
363
|
get preprocessing() {
|
|
364
|
-
const ret = wasm.
|
|
365
|
-
return
|
|
364
|
+
const ret = wasm.wasmconversionoptions_preprocessing(this.__wbg_ptr);
|
|
365
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
368
368
|
* @returns {string[]}
|
|
@@ -370,7 +370,7 @@ export class JsConversionOptions {
|
|
|
370
370
|
get preserveTags() {
|
|
371
371
|
try {
|
|
372
372
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
373
|
-
wasm.
|
|
373
|
+
wasm.wasmconversionoptions_preserveTags(retptr, this.__wbg_ptr);
|
|
374
374
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
375
375
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
376
376
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -384,13 +384,13 @@ export class JsConversionOptions {
|
|
|
384
384
|
* @param {boolean} value
|
|
385
385
|
*/
|
|
386
386
|
set autolinks(value) {
|
|
387
|
-
wasm.
|
|
387
|
+
wasm.wasmconversionoptions_set_autolinks(this.__wbg_ptr, value);
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
390
|
* @param {boolean} value
|
|
391
391
|
*/
|
|
392
392
|
set brInTables(value) {
|
|
393
|
-
wasm.
|
|
393
|
+
wasm.wasmconversionoptions_set_brInTables(this.__wbg_ptr, value);
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* @param {string} value
|
|
@@ -398,19 +398,19 @@ export class JsConversionOptions {
|
|
|
398
398
|
set bullets(value) {
|
|
399
399
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
400
400
|
const len0 = WASM_VECTOR_LEN;
|
|
401
|
-
wasm.
|
|
401
|
+
wasm.wasmconversionoptions_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
402
402
|
}
|
|
403
403
|
/**
|
|
404
404
|
* @param {boolean} value
|
|
405
405
|
*/
|
|
406
406
|
set captureSvg(value) {
|
|
407
|
-
wasm.
|
|
407
|
+
wasm.wasmconversionoptions_set_captureSvg(this.__wbg_ptr, value);
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
|
-
* @param {
|
|
410
|
+
* @param {WasmCodeBlockStyle} value
|
|
411
411
|
*/
|
|
412
412
|
set codeBlockStyle(value) {
|
|
413
|
-
wasm.
|
|
413
|
+
wasm.wasmconversionoptions_set_codeBlockStyle(this.__wbg_ptr, value);
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* @param {string} value
|
|
@@ -418,25 +418,25 @@ export class JsConversionOptions {
|
|
|
418
418
|
set codeLanguage(value) {
|
|
419
419
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
420
420
|
const len0 = WASM_VECTOR_LEN;
|
|
421
|
-
wasm.
|
|
421
|
+
wasm.wasmconversionoptions_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* @param {boolean} value
|
|
425
425
|
*/
|
|
426
426
|
set convertAsInline(value) {
|
|
427
|
-
wasm.
|
|
427
|
+
wasm.wasmconversionoptions_set_convertAsInline(this.__wbg_ptr, value);
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* @param {boolean} value
|
|
431
431
|
*/
|
|
432
432
|
set debug(value) {
|
|
433
|
-
wasm.
|
|
433
|
+
wasm.wasmconversionoptions_set_debug(this.__wbg_ptr, value);
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @param {boolean} value
|
|
437
437
|
*/
|
|
438
438
|
set defaultTitle(value) {
|
|
439
|
-
wasm.
|
|
439
|
+
wasm.wasmconversionoptions_set_defaultTitle(this.__wbg_ptr, value);
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* @param {string} value
|
|
@@ -444,67 +444,67 @@ export class JsConversionOptions {
|
|
|
444
444
|
set encoding(value) {
|
|
445
445
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
446
446
|
const len0 = WASM_VECTOR_LEN;
|
|
447
|
-
wasm.
|
|
447
|
+
wasm.wasmconversionoptions_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
450
450
|
* @param {boolean} value
|
|
451
451
|
*/
|
|
452
452
|
set escapeAscii(value) {
|
|
453
|
-
wasm.
|
|
453
|
+
wasm.wasmconversionoptions_set_escapeAscii(this.__wbg_ptr, value);
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @param {boolean} value
|
|
457
457
|
*/
|
|
458
458
|
set escapeAsterisks(value) {
|
|
459
|
-
wasm.
|
|
459
|
+
wasm.wasmconversionoptions_set_escapeAsterisks(this.__wbg_ptr, value);
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @param {boolean} value
|
|
463
463
|
*/
|
|
464
464
|
set escapeMisc(value) {
|
|
465
|
-
wasm.
|
|
465
|
+
wasm.wasmconversionoptions_set_escapeMisc(this.__wbg_ptr, value);
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* @param {boolean} value
|
|
469
469
|
*/
|
|
470
470
|
set escapeUnderscores(value) {
|
|
471
|
-
wasm.
|
|
471
|
+
wasm.wasmconversionoptions_set_escapeUnderscores(this.__wbg_ptr, value);
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
474
|
* @param {boolean} value
|
|
475
475
|
*/
|
|
476
476
|
set extractImages(value) {
|
|
477
|
-
wasm.
|
|
477
|
+
wasm.wasmconversionoptions_set_extractImages(this.__wbg_ptr, value);
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
480
480
|
* @param {boolean} value
|
|
481
481
|
*/
|
|
482
482
|
set extractMetadata(value) {
|
|
483
|
-
wasm.
|
|
483
|
+
wasm.wasmconversionoptions_set_extractMetadata(this.__wbg_ptr, value);
|
|
484
484
|
}
|
|
485
485
|
/**
|
|
486
|
-
* @param {
|
|
486
|
+
* @param {WasmHeadingStyle} value
|
|
487
487
|
*/
|
|
488
488
|
set headingStyle(value) {
|
|
489
|
-
wasm.
|
|
489
|
+
wasm.wasmconversionoptions_set_headingStyle(this.__wbg_ptr, value);
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* @param {
|
|
492
|
+
* @param {WasmHighlightStyle} value
|
|
493
493
|
*/
|
|
494
494
|
set highlightStyle(value) {
|
|
495
|
-
wasm.
|
|
495
|
+
wasm.wasmconversionoptions_set_highlightStyle(this.__wbg_ptr, value);
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* @param {boolean} value
|
|
499
499
|
*/
|
|
500
500
|
set includeDocumentStructure(value) {
|
|
501
|
-
wasm.
|
|
501
|
+
wasm.wasmconversionoptions_set_includeDocumentStructure(this.__wbg_ptr, value);
|
|
502
502
|
}
|
|
503
503
|
/**
|
|
504
504
|
* @param {boolean} value
|
|
505
505
|
*/
|
|
506
506
|
set inferDimensions(value) {
|
|
507
|
-
wasm.
|
|
507
|
+
wasm.wasmconversionoptions_set_inferDimensions(this.__wbg_ptr, value);
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* @param {string[]} value
|
|
@@ -512,51 +512,51 @@ export class JsConversionOptions {
|
|
|
512
512
|
set keepInlineImagesIn(value) {
|
|
513
513
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
514
514
|
const len0 = WASM_VECTOR_LEN;
|
|
515
|
-
wasm.
|
|
515
|
+
wasm.wasmconversionoptions_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
518
|
-
* @param {
|
|
518
|
+
* @param {WasmLinkStyle} value
|
|
519
519
|
*/
|
|
520
520
|
set linkStyle(value) {
|
|
521
|
-
wasm.
|
|
521
|
+
wasm.wasmconversionoptions_set_linkStyle(this.__wbg_ptr, value);
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
-
* @param {
|
|
524
|
+
* @param {WasmListIndentType} value
|
|
525
525
|
*/
|
|
526
526
|
set listIndentType(value) {
|
|
527
|
-
wasm.
|
|
527
|
+
wasm.wasmconversionoptions_set_listIndentType(this.__wbg_ptr, value);
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* @param {number} value
|
|
531
531
|
*/
|
|
532
532
|
set listIndentWidth(value) {
|
|
533
|
-
wasm.
|
|
533
|
+
wasm.wasmconversionoptions_set_listIndentWidth(this.__wbg_ptr, value);
|
|
534
534
|
}
|
|
535
535
|
/**
|
|
536
536
|
* @param {bigint} value
|
|
537
537
|
*/
|
|
538
538
|
set maxImageSize(value) {
|
|
539
|
-
wasm.
|
|
539
|
+
wasm.wasmconversionoptions_set_maxImageSize(this.__wbg_ptr, value);
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
542
|
-
* @param {
|
|
542
|
+
* @param {WasmNewlineStyle} value
|
|
543
543
|
*/
|
|
544
544
|
set newlineStyle(value) {
|
|
545
|
-
wasm.
|
|
545
|
+
wasm.wasmconversionoptions_set_newlineStyle(this.__wbg_ptr, value);
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
|
-
* @param {
|
|
548
|
+
* @param {WasmOutputFormat} value
|
|
549
549
|
*/
|
|
550
550
|
set outputFormat(value) {
|
|
551
|
-
wasm.
|
|
551
|
+
wasm.wasmconversionoptions_set_outputFormat(this.__wbg_ptr, value);
|
|
552
552
|
}
|
|
553
553
|
/**
|
|
554
|
-
* @param {
|
|
554
|
+
* @param {WasmPreprocessingOptions} value
|
|
555
555
|
*/
|
|
556
556
|
set preprocessing(value) {
|
|
557
|
-
_assertClass(value,
|
|
557
|
+
_assertClass(value, WasmPreprocessingOptions);
|
|
558
558
|
var ptr0 = value.__destroy_into_raw();
|
|
559
|
-
wasm.
|
|
559
|
+
wasm.wasmconversionoptions_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
560
560
|
}
|
|
561
561
|
/**
|
|
562
562
|
* @param {string[]} value
|
|
@@ -564,19 +564,19 @@ export class JsConversionOptions {
|
|
|
564
564
|
set preserveTags(value) {
|
|
565
565
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
566
566
|
const len0 = WASM_VECTOR_LEN;
|
|
567
|
-
wasm.
|
|
567
|
+
wasm.wasmconversionoptions_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
570
570
|
* @param {boolean} value
|
|
571
571
|
*/
|
|
572
572
|
set skipImages(value) {
|
|
573
|
-
wasm.
|
|
573
|
+
wasm.wasmconversionoptions_set_skipImages(this.__wbg_ptr, value);
|
|
574
574
|
}
|
|
575
575
|
/**
|
|
576
576
|
* @param {boolean} value
|
|
577
577
|
*/
|
|
578
578
|
set stripNewlines(value) {
|
|
579
|
-
wasm.
|
|
579
|
+
wasm.wasmconversionoptions_set_stripNewlines(this.__wbg_ptr, value);
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* @param {string[]} value
|
|
@@ -584,7 +584,7 @@ export class JsConversionOptions {
|
|
|
584
584
|
set stripTags(value) {
|
|
585
585
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
586
586
|
const len0 = WASM_VECTOR_LEN;
|
|
587
|
-
wasm.
|
|
587
|
+
wasm.wasmconversionoptions_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* @param {string} value
|
|
@@ -592,7 +592,7 @@ export class JsConversionOptions {
|
|
|
592
592
|
set strongEmSymbol(value) {
|
|
593
593
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
594
594
|
const len0 = WASM_VECTOR_LEN;
|
|
595
|
-
wasm.
|
|
595
|
+
wasm.wasmconversionoptions_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
598
598
|
* @param {string} value
|
|
@@ -600,7 +600,7 @@ export class JsConversionOptions {
|
|
|
600
600
|
set subSymbol(value) {
|
|
601
601
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
602
602
|
const len0 = WASM_VECTOR_LEN;
|
|
603
|
-
wasm.
|
|
603
|
+
wasm.wasmconversionoptions_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* @param {string} value
|
|
@@ -608,38 +608,38 @@ export class JsConversionOptions {
|
|
|
608
608
|
set supSymbol(value) {
|
|
609
609
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
610
610
|
const len0 = WASM_VECTOR_LEN;
|
|
611
|
-
wasm.
|
|
611
|
+
wasm.wasmconversionoptions_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
|
-
* @param {
|
|
614
|
+
* @param {WasmWhitespaceMode} value
|
|
615
615
|
*/
|
|
616
616
|
set whitespaceMode(value) {
|
|
617
|
-
wasm.
|
|
617
|
+
wasm.wasmconversionoptions_set_whitespaceMode(this.__wbg_ptr, value);
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
620
|
* @param {boolean} value
|
|
621
621
|
*/
|
|
622
622
|
set wrap(value) {
|
|
623
|
-
wasm.
|
|
623
|
+
wasm.wasmconversionoptions_set_wrap(this.__wbg_ptr, value);
|
|
624
624
|
}
|
|
625
625
|
/**
|
|
626
626
|
* @param {number} value
|
|
627
627
|
*/
|
|
628
628
|
set wrapWidth(value) {
|
|
629
|
-
wasm.
|
|
629
|
+
wasm.wasmconversionoptions_set_wrapWidth(this.__wbg_ptr, value);
|
|
630
630
|
}
|
|
631
631
|
/**
|
|
632
632
|
* @returns {boolean}
|
|
633
633
|
*/
|
|
634
634
|
get skipImages() {
|
|
635
|
-
const ret = wasm.
|
|
635
|
+
const ret = wasm.wasmconversionoptions_skipImages(this.__wbg_ptr);
|
|
636
636
|
return ret !== 0;
|
|
637
637
|
}
|
|
638
638
|
/**
|
|
639
639
|
* @returns {boolean}
|
|
640
640
|
*/
|
|
641
641
|
get stripNewlines() {
|
|
642
|
-
const ret = wasm.
|
|
642
|
+
const ret = wasm.wasmconversionoptions_stripNewlines(this.__wbg_ptr);
|
|
643
643
|
return ret !== 0;
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
@@ -648,7 +648,7 @@ export class JsConversionOptions {
|
|
|
648
648
|
get stripTags() {
|
|
649
649
|
try {
|
|
650
650
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
651
|
-
wasm.
|
|
651
|
+
wasm.wasmconversionoptions_stripTags(retptr, this.__wbg_ptr);
|
|
652
652
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
653
653
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
654
654
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -666,7 +666,7 @@ export class JsConversionOptions {
|
|
|
666
666
|
let deferred1_1;
|
|
667
667
|
try {
|
|
668
668
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
669
|
-
wasm.
|
|
669
|
+
wasm.wasmconversionoptions_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
670
670
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
671
671
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
672
672
|
deferred1_0 = r0;
|
|
@@ -685,7 +685,7 @@ export class JsConversionOptions {
|
|
|
685
685
|
let deferred1_1;
|
|
686
686
|
try {
|
|
687
687
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
688
|
-
wasm.
|
|
688
|
+
wasm.wasmconversionoptions_subSymbol(retptr, this.__wbg_ptr);
|
|
689
689
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
690
690
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
691
691
|
deferred1_0 = r0;
|
|
@@ -704,7 +704,7 @@ export class JsConversionOptions {
|
|
|
704
704
|
let deferred1_1;
|
|
705
705
|
try {
|
|
706
706
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
707
|
-
wasm.
|
|
707
|
+
wasm.wasmconversionoptions_supSymbol(retptr, this.__wbg_ptr);
|
|
708
708
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
709
709
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
710
710
|
deferred1_0 = r0;
|
|
@@ -716,120 +716,120 @@ export class JsConversionOptions {
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
/**
|
|
719
|
-
* @returns {
|
|
719
|
+
* @returns {WasmWhitespaceMode}
|
|
720
720
|
*/
|
|
721
721
|
get whitespaceMode() {
|
|
722
|
-
const ret = wasm.
|
|
722
|
+
const ret = wasm.wasmconversionoptions_whitespaceMode(this.__wbg_ptr);
|
|
723
723
|
return ret;
|
|
724
724
|
}
|
|
725
725
|
/**
|
|
726
726
|
* @returns {boolean}
|
|
727
727
|
*/
|
|
728
728
|
get wrap() {
|
|
729
|
-
const ret = wasm.
|
|
729
|
+
const ret = wasm.wasmconversionoptions_wrap(this.__wbg_ptr);
|
|
730
730
|
return ret !== 0;
|
|
731
731
|
}
|
|
732
732
|
/**
|
|
733
733
|
* @returns {number}
|
|
734
734
|
*/
|
|
735
735
|
get wrapWidth() {
|
|
736
|
-
const ret = wasm.
|
|
736
|
+
const ret = wasm.wasmconversionoptions_wrapWidth(this.__wbg_ptr);
|
|
737
737
|
return ret >>> 0;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
if (Symbol.dispose)
|
|
740
|
+
if (Symbol.dispose) WasmConversionOptions.prototype[Symbol.dispose] = WasmConversionOptions.prototype.free;
|
|
741
741
|
|
|
742
|
-
export class
|
|
742
|
+
export class WasmConversionOptionsBuilder {
|
|
743
743
|
static __wrap(ptr) {
|
|
744
744
|
ptr = ptr >>> 0;
|
|
745
|
-
const obj = Object.create(
|
|
745
|
+
const obj = Object.create(WasmConversionOptionsBuilder.prototype);
|
|
746
746
|
obj.__wbg_ptr = ptr;
|
|
747
|
-
|
|
747
|
+
WasmConversionOptionsBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
748
748
|
return obj;
|
|
749
749
|
}
|
|
750
750
|
__destroy_into_raw() {
|
|
751
751
|
const ptr = this.__wbg_ptr;
|
|
752
752
|
this.__wbg_ptr = 0;
|
|
753
|
-
|
|
753
|
+
WasmConversionOptionsBuilderFinalization.unregister(this);
|
|
754
754
|
return ptr;
|
|
755
755
|
}
|
|
756
756
|
free() {
|
|
757
757
|
const ptr = this.__destroy_into_raw();
|
|
758
|
-
wasm.
|
|
758
|
+
wasm.__wbg_wasmconversionoptionsbuilder_free(ptr, 0);
|
|
759
759
|
}
|
|
760
760
|
/**
|
|
761
|
-
* @returns {
|
|
761
|
+
* @returns {WasmConversionOptions}
|
|
762
762
|
*/
|
|
763
763
|
build() {
|
|
764
|
-
const ret = wasm.
|
|
765
|
-
return
|
|
764
|
+
const ret = wasm.wasmconversionoptionsbuilder_build(this.__wbg_ptr);
|
|
765
|
+
return WasmConversionOptions.__wrap(ret);
|
|
766
766
|
}
|
|
767
767
|
/**
|
|
768
768
|
* @param {string[]} tags
|
|
769
|
-
* @returns {
|
|
769
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
770
770
|
*/
|
|
771
771
|
keepInlineImagesIn(tags) {
|
|
772
772
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
773
773
|
const len0 = WASM_VECTOR_LEN;
|
|
774
|
-
const ret = wasm.
|
|
775
|
-
return
|
|
774
|
+
const ret = wasm.wasmconversionoptionsbuilder_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
775
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
776
776
|
}
|
|
777
777
|
/**
|
|
778
|
-
* @param {
|
|
779
|
-
* @returns {
|
|
778
|
+
* @param {WasmPreprocessingOptions} preprocessing
|
|
779
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
780
780
|
*/
|
|
781
781
|
preprocessing(preprocessing) {
|
|
782
|
-
_assertClass(preprocessing,
|
|
782
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
783
783
|
var ptr0 = preprocessing.__destroy_into_raw();
|
|
784
|
-
const ret = wasm.
|
|
785
|
-
return
|
|
784
|
+
const ret = wasm.wasmconversionoptionsbuilder_preprocessing(this.__wbg_ptr, ptr0);
|
|
785
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
788
|
* @param {string[]} tags
|
|
789
|
-
* @returns {
|
|
789
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
790
790
|
*/
|
|
791
791
|
preserveTags(tags) {
|
|
792
792
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
793
793
|
const len0 = WASM_VECTOR_LEN;
|
|
794
|
-
const ret = wasm.
|
|
795
|
-
return
|
|
794
|
+
const ret = wasm.wasmconversionoptionsbuilder_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
795
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
798
|
* @param {string[]} tags
|
|
799
|
-
* @returns {
|
|
799
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
800
800
|
*/
|
|
801
801
|
stripTags(tags) {
|
|
802
802
|
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
803
803
|
const len0 = WASM_VECTOR_LEN;
|
|
804
|
-
const ret = wasm.
|
|
805
|
-
return
|
|
804
|
+
const ret = wasm.wasmconversionoptionsbuilder_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
805
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
if (Symbol.dispose)
|
|
808
|
+
if (Symbol.dispose) WasmConversionOptionsBuilder.prototype[Symbol.dispose] = WasmConversionOptionsBuilder.prototype.free;
|
|
809
809
|
|
|
810
|
-
export class
|
|
810
|
+
export class WasmConversionOptionsUpdate {
|
|
811
811
|
__destroy_into_raw() {
|
|
812
812
|
const ptr = this.__wbg_ptr;
|
|
813
813
|
this.__wbg_ptr = 0;
|
|
814
|
-
|
|
814
|
+
WasmConversionOptionsUpdateFinalization.unregister(this);
|
|
815
815
|
return ptr;
|
|
816
816
|
}
|
|
817
817
|
free() {
|
|
818
818
|
const ptr = this.__destroy_into_raw();
|
|
819
|
-
wasm.
|
|
819
|
+
wasm.__wbg_wasmconversionoptionsupdate_free(ptr, 0);
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
822
|
* @returns {boolean | undefined}
|
|
823
823
|
*/
|
|
824
824
|
get autolinks() {
|
|
825
|
-
const ret = wasm.
|
|
825
|
+
const ret = wasm.wasmconversionoptionsupdate_autolinks(this.__wbg_ptr);
|
|
826
826
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
829
829
|
* @returns {boolean | undefined}
|
|
830
830
|
*/
|
|
831
831
|
get brInTables() {
|
|
832
|
-
const ret = wasm.
|
|
832
|
+
const ret = wasm.wasmconversionoptionsupdate_brInTables(this.__wbg_ptr);
|
|
833
833
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
834
834
|
}
|
|
835
835
|
/**
|
|
@@ -838,7 +838,7 @@ export class JsConversionOptionsUpdate {
|
|
|
838
838
|
get bullets() {
|
|
839
839
|
try {
|
|
840
840
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
841
|
-
wasm.
|
|
841
|
+
wasm.wasmconversionoptionsupdate_bullets(retptr, this.__wbg_ptr);
|
|
842
842
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
843
843
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
844
844
|
let v1;
|
|
@@ -855,14 +855,14 @@ export class JsConversionOptionsUpdate {
|
|
|
855
855
|
* @returns {boolean | undefined}
|
|
856
856
|
*/
|
|
857
857
|
get captureSvg() {
|
|
858
|
-
const ret = wasm.
|
|
858
|
+
const ret = wasm.wasmconversionoptionsupdate_captureSvg(this.__wbg_ptr);
|
|
859
859
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
862
|
-
* @returns {
|
|
862
|
+
* @returns {WasmCodeBlockStyle | undefined}
|
|
863
863
|
*/
|
|
864
864
|
get codeBlockStyle() {
|
|
865
|
-
const ret = wasm.
|
|
865
|
+
const ret = wasm.wasmconversionoptionsupdate_codeBlockStyle(this.__wbg_ptr);
|
|
866
866
|
return ret === 3 ? undefined : ret;
|
|
867
867
|
}
|
|
868
868
|
/**
|
|
@@ -871,7 +871,7 @@ export class JsConversionOptionsUpdate {
|
|
|
871
871
|
get codeLanguage() {
|
|
872
872
|
try {
|
|
873
873
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
874
|
-
wasm.
|
|
874
|
+
wasm.wasmconversionoptionsupdate_codeLanguage(retptr, this.__wbg_ptr);
|
|
875
875
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
876
876
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
877
877
|
let v1;
|
|
@@ -888,21 +888,21 @@ export class JsConversionOptionsUpdate {
|
|
|
888
888
|
* @returns {boolean | undefined}
|
|
889
889
|
*/
|
|
890
890
|
get convertAsInline() {
|
|
891
|
-
const ret = wasm.
|
|
891
|
+
const ret = wasm.wasmconversionoptionsupdate_convertAsInline(this.__wbg_ptr);
|
|
892
892
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
893
893
|
}
|
|
894
894
|
/**
|
|
895
895
|
* @returns {boolean | undefined}
|
|
896
896
|
*/
|
|
897
897
|
get debug() {
|
|
898
|
-
const ret = wasm.
|
|
898
|
+
const ret = wasm.wasmconversionoptionsupdate_debug(this.__wbg_ptr);
|
|
899
899
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
900
900
|
}
|
|
901
901
|
/**
|
|
902
902
|
* @returns {boolean | undefined}
|
|
903
903
|
*/
|
|
904
904
|
get defaultTitle() {
|
|
905
|
-
const ret = wasm.
|
|
905
|
+
const ret = wasm.wasmconversionoptionsupdate_defaultTitle(this.__wbg_ptr);
|
|
906
906
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
907
907
|
}
|
|
908
908
|
/**
|
|
@@ -911,7 +911,7 @@ export class JsConversionOptionsUpdate {
|
|
|
911
911
|
get encoding() {
|
|
912
912
|
try {
|
|
913
913
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
914
|
-
wasm.
|
|
914
|
+
wasm.wasmconversionoptionsupdate_encoding(retptr, this.__wbg_ptr);
|
|
915
915
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
916
916
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
917
917
|
let v1;
|
|
@@ -928,70 +928,70 @@ export class JsConversionOptionsUpdate {
|
|
|
928
928
|
* @returns {boolean | undefined}
|
|
929
929
|
*/
|
|
930
930
|
get escapeAscii() {
|
|
931
|
-
const ret = wasm.
|
|
931
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAscii(this.__wbg_ptr);
|
|
932
932
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
935
935
|
* @returns {boolean | undefined}
|
|
936
936
|
*/
|
|
937
937
|
get escapeAsterisks() {
|
|
938
|
-
const ret = wasm.
|
|
938
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAsterisks(this.__wbg_ptr);
|
|
939
939
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
940
940
|
}
|
|
941
941
|
/**
|
|
942
942
|
* @returns {boolean | undefined}
|
|
943
943
|
*/
|
|
944
944
|
get escapeMisc() {
|
|
945
|
-
const ret = wasm.
|
|
945
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeMisc(this.__wbg_ptr);
|
|
946
946
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
947
947
|
}
|
|
948
948
|
/**
|
|
949
949
|
* @returns {boolean | undefined}
|
|
950
950
|
*/
|
|
951
951
|
get escapeUnderscores() {
|
|
952
|
-
const ret = wasm.
|
|
952
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeUnderscores(this.__wbg_ptr);
|
|
953
953
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
954
954
|
}
|
|
955
955
|
/**
|
|
956
956
|
* @returns {boolean | undefined}
|
|
957
957
|
*/
|
|
958
958
|
get extractImages() {
|
|
959
|
-
const ret = wasm.
|
|
959
|
+
const ret = wasm.wasmconversionoptionsupdate_extractImages(this.__wbg_ptr);
|
|
960
960
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
961
961
|
}
|
|
962
962
|
/**
|
|
963
963
|
* @returns {boolean | undefined}
|
|
964
964
|
*/
|
|
965
965
|
get extractMetadata() {
|
|
966
|
-
const ret = wasm.
|
|
966
|
+
const ret = wasm.wasmconversionoptionsupdate_extractMetadata(this.__wbg_ptr);
|
|
967
967
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
970
|
-
* @returns {
|
|
970
|
+
* @returns {WasmHeadingStyle | undefined}
|
|
971
971
|
*/
|
|
972
972
|
get headingStyle() {
|
|
973
|
-
const ret = wasm.
|
|
973
|
+
const ret = wasm.wasmconversionoptionsupdate_headingStyle(this.__wbg_ptr);
|
|
974
974
|
return ret === 3 ? undefined : ret;
|
|
975
975
|
}
|
|
976
976
|
/**
|
|
977
|
-
* @returns {
|
|
977
|
+
* @returns {WasmHighlightStyle | undefined}
|
|
978
978
|
*/
|
|
979
979
|
get highlightStyle() {
|
|
980
|
-
const ret = wasm.
|
|
980
|
+
const ret = wasm.wasmconversionoptionsupdate_highlightStyle(this.__wbg_ptr);
|
|
981
981
|
return ret === 4 ? undefined : ret;
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
984
984
|
* @returns {boolean | undefined}
|
|
985
985
|
*/
|
|
986
986
|
get includeDocumentStructure() {
|
|
987
|
-
const ret = wasm.
|
|
987
|
+
const ret = wasm.wasmconversionoptionsupdate_includeDocumentStructure(this.__wbg_ptr);
|
|
988
988
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
989
989
|
}
|
|
990
990
|
/**
|
|
991
991
|
* @returns {boolean | undefined}
|
|
992
992
|
*/
|
|
993
993
|
get inferDimensions() {
|
|
994
|
-
const ret = wasm.
|
|
994
|
+
const ret = wasm.wasmconversionoptionsupdate_inferDimensions(this.__wbg_ptr);
|
|
995
995
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
996
996
|
}
|
|
997
997
|
/**
|
|
@@ -1000,7 +1000,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1000
1000
|
get keepInlineImagesIn() {
|
|
1001
1001
|
try {
|
|
1002
1002
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1003
|
-
wasm.
|
|
1003
|
+
wasm.wasmconversionoptionsupdate_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
1004
1004
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1005
1005
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1006
1006
|
let v1;
|
|
@@ -1014,24 +1014,24 @@ export class JsConversionOptionsUpdate {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
|
-
* @returns {
|
|
1017
|
+
* @returns {WasmLinkStyle | undefined}
|
|
1018
1018
|
*/
|
|
1019
1019
|
get linkStyle() {
|
|
1020
|
-
const ret = wasm.
|
|
1020
|
+
const ret = wasm.wasmconversionoptionsupdate_linkStyle(this.__wbg_ptr);
|
|
1021
1021
|
return ret === 2 ? undefined : ret;
|
|
1022
1022
|
}
|
|
1023
1023
|
/**
|
|
1024
|
-
* @returns {
|
|
1024
|
+
* @returns {WasmListIndentType | undefined}
|
|
1025
1025
|
*/
|
|
1026
1026
|
get listIndentType() {
|
|
1027
|
-
const ret = wasm.
|
|
1027
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentType(this.__wbg_ptr);
|
|
1028
1028
|
return ret === 2 ? undefined : ret;
|
|
1029
1029
|
}
|
|
1030
1030
|
/**
|
|
1031
1031
|
* @returns {number | undefined}
|
|
1032
1032
|
*/
|
|
1033
1033
|
get listIndentWidth() {
|
|
1034
|
-
const ret = wasm.
|
|
1034
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1035
1035
|
return ret === 0x100000001 ? undefined : ret;
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
@@ -1040,7 +1040,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1040
1040
|
get maxImageSize() {
|
|
1041
1041
|
try {
|
|
1042
1042
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1043
|
-
wasm.
|
|
1043
|
+
wasm.wasmconversionoptionsupdate_maxImageSize(retptr, this.__wbg_ptr);
|
|
1044
1044
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1045
1045
|
var r2 = getDataViewMemory0().getBigInt64(retptr + 8 * 1, true);
|
|
1046
1046
|
return r0 === 0 ? undefined : BigInt.asUintN(64, r2);
|
|
@@ -1049,8 +1049,8 @@ export class JsConversionOptionsUpdate {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
1051
|
/**
|
|
1052
|
-
* @param {
|
|
1053
|
-
* @param {
|
|
1052
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
1053
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
1054
1054
|
* @param {number | null} [list_indent_width]
|
|
1055
1055
|
* @param {string | null} [bullets]
|
|
1056
1056
|
* @param {string | null} [strong_em_symbol]
|
|
@@ -1062,26 +1062,26 @@ export class JsConversionOptionsUpdate {
|
|
|
1062
1062
|
* @param {boolean | null} [autolinks]
|
|
1063
1063
|
* @param {boolean | null} [default_title]
|
|
1064
1064
|
* @param {boolean | null} [br_in_tables]
|
|
1065
|
-
* @param {
|
|
1065
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
1066
1066
|
* @param {boolean | null} [extract_metadata]
|
|
1067
|
-
* @param {
|
|
1067
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
1068
1068
|
* @param {boolean | null} [strip_newlines]
|
|
1069
1069
|
* @param {boolean | null} [wrap]
|
|
1070
1070
|
* @param {number | null} [wrap_width]
|
|
1071
1071
|
* @param {boolean | null} [convert_as_inline]
|
|
1072
1072
|
* @param {string | null} [sub_symbol]
|
|
1073
1073
|
* @param {string | null} [sup_symbol]
|
|
1074
|
-
* @param {
|
|
1075
|
-
* @param {
|
|
1074
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
1075
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
1076
1076
|
* @param {string[] | null} [keep_inline_images_in]
|
|
1077
|
-
* @param {
|
|
1077
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [preprocessing]
|
|
1078
1078
|
* @param {string | null} [encoding]
|
|
1079
1079
|
* @param {boolean | null} [debug]
|
|
1080
1080
|
* @param {string[] | null} [strip_tags]
|
|
1081
1081
|
* @param {string[] | null} [preserve_tags]
|
|
1082
1082
|
* @param {boolean | null} [skip_images]
|
|
1083
|
-
* @param {
|
|
1084
|
-
* @param {
|
|
1083
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
1084
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
1085
1085
|
* @param {boolean | null} [include_document_structure]
|
|
1086
1086
|
* @param {boolean | null} [extract_images]
|
|
1087
1087
|
* @param {bigint | null} [max_image_size]
|
|
@@ -1103,7 +1103,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1103
1103
|
var len5 = WASM_VECTOR_LEN;
|
|
1104
1104
|
let ptr6 = 0;
|
|
1105
1105
|
if (!isLikeNone(preprocessing)) {
|
|
1106
|
-
_assertClass(preprocessing,
|
|
1106
|
+
_assertClass(preprocessing, WasmPreprocessingOptionsUpdate);
|
|
1107
1107
|
ptr6 = preprocessing.__destroy_into_raw();
|
|
1108
1108
|
}
|
|
1109
1109
|
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1112,31 +1112,31 @@ export class JsConversionOptionsUpdate {
|
|
|
1112
1112
|
var len8 = WASM_VECTOR_LEN;
|
|
1113
1113
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
1114
1114
|
var len9 = WASM_VECTOR_LEN;
|
|
1115
|
-
const ret = wasm.
|
|
1115
|
+
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);
|
|
1116
1116
|
this.__wbg_ptr = ret >>> 0;
|
|
1117
|
-
|
|
1117
|
+
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1118
1118
|
return this;
|
|
1119
1119
|
}
|
|
1120
1120
|
/**
|
|
1121
|
-
* @returns {
|
|
1121
|
+
* @returns {WasmNewlineStyle | undefined}
|
|
1122
1122
|
*/
|
|
1123
1123
|
get newlineStyle() {
|
|
1124
|
-
const ret = wasm.
|
|
1124
|
+
const ret = wasm.wasmconversionoptionsupdate_newlineStyle(this.__wbg_ptr);
|
|
1125
1125
|
return ret === 2 ? undefined : ret;
|
|
1126
1126
|
}
|
|
1127
1127
|
/**
|
|
1128
|
-
* @returns {
|
|
1128
|
+
* @returns {WasmOutputFormat | undefined}
|
|
1129
1129
|
*/
|
|
1130
1130
|
get outputFormat() {
|
|
1131
|
-
const ret = wasm.
|
|
1131
|
+
const ret = wasm.wasmconversionoptionsupdate_outputFormat(this.__wbg_ptr);
|
|
1132
1132
|
return ret === 3 ? undefined : ret;
|
|
1133
1133
|
}
|
|
1134
1134
|
/**
|
|
1135
|
-
* @returns {
|
|
1135
|
+
* @returns {WasmPreprocessingOptionsUpdate | undefined}
|
|
1136
1136
|
*/
|
|
1137
1137
|
get preprocessing() {
|
|
1138
|
-
const ret = wasm.
|
|
1139
|
-
return ret === 0 ? undefined :
|
|
1138
|
+
const ret = wasm.wasmconversionoptionsupdate_preprocessing(this.__wbg_ptr);
|
|
1139
|
+
return ret === 0 ? undefined : WasmPreprocessingOptionsUpdate.__wrap(ret);
|
|
1140
1140
|
}
|
|
1141
1141
|
/**
|
|
1142
1142
|
* @returns {string[] | undefined}
|
|
@@ -1144,7 +1144,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1144
1144
|
get preserveTags() {
|
|
1145
1145
|
try {
|
|
1146
1146
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1147
|
-
wasm.
|
|
1147
|
+
wasm.wasmconversionoptionsupdate_preserveTags(retptr, this.__wbg_ptr);
|
|
1148
1148
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1149
1149
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1150
1150
|
let v1;
|
|
@@ -1161,13 +1161,13 @@ export class JsConversionOptionsUpdate {
|
|
|
1161
1161
|
* @param {boolean | null} [value]
|
|
1162
1162
|
*/
|
|
1163
1163
|
set autolinks(value) {
|
|
1164
|
-
wasm.
|
|
1164
|
+
wasm.wasmconversionoptionsupdate_set_autolinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1165
1165
|
}
|
|
1166
1166
|
/**
|
|
1167
1167
|
* @param {boolean | null} [value]
|
|
1168
1168
|
*/
|
|
1169
1169
|
set brInTables(value) {
|
|
1170
|
-
wasm.
|
|
1170
|
+
wasm.wasmconversionoptionsupdate_set_brInTables(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1171
1171
|
}
|
|
1172
1172
|
/**
|
|
1173
1173
|
* @param {string | null} [value]
|
|
@@ -1175,19 +1175,19 @@ export class JsConversionOptionsUpdate {
|
|
|
1175
1175
|
set bullets(value) {
|
|
1176
1176
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1177
1177
|
var len0 = WASM_VECTOR_LEN;
|
|
1178
|
-
wasm.
|
|
1178
|
+
wasm.wasmconversionoptionsupdate_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
1179
1179
|
}
|
|
1180
1180
|
/**
|
|
1181
1181
|
* @param {boolean | null} [value]
|
|
1182
1182
|
*/
|
|
1183
1183
|
set captureSvg(value) {
|
|
1184
|
-
wasm.
|
|
1184
|
+
wasm.wasmconversionoptionsupdate_set_captureSvg(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1185
1185
|
}
|
|
1186
1186
|
/**
|
|
1187
|
-
* @param {
|
|
1187
|
+
* @param {WasmCodeBlockStyle | null} [value]
|
|
1188
1188
|
*/
|
|
1189
1189
|
set codeBlockStyle(value) {
|
|
1190
|
-
wasm.
|
|
1190
|
+
wasm.wasmconversionoptionsupdate_set_codeBlockStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
1193
|
* @param {string | null} [value]
|
|
@@ -1195,25 +1195,25 @@ export class JsConversionOptionsUpdate {
|
|
|
1195
1195
|
set codeLanguage(value) {
|
|
1196
1196
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1197
1197
|
var len0 = WASM_VECTOR_LEN;
|
|
1198
|
-
wasm.
|
|
1198
|
+
wasm.wasmconversionoptionsupdate_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
1199
1199
|
}
|
|
1200
1200
|
/**
|
|
1201
1201
|
* @param {boolean | null} [value]
|
|
1202
1202
|
*/
|
|
1203
1203
|
set convertAsInline(value) {
|
|
1204
|
-
wasm.
|
|
1204
|
+
wasm.wasmconversionoptionsupdate_set_convertAsInline(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1205
1205
|
}
|
|
1206
1206
|
/**
|
|
1207
1207
|
* @param {boolean | null} [value]
|
|
1208
1208
|
*/
|
|
1209
1209
|
set debug(value) {
|
|
1210
|
-
wasm.
|
|
1210
|
+
wasm.wasmconversionoptionsupdate_set_debug(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
1213
1213
|
* @param {boolean | null} [value]
|
|
1214
1214
|
*/
|
|
1215
1215
|
set defaultTitle(value) {
|
|
1216
|
-
wasm.
|
|
1216
|
+
wasm.wasmconversionoptionsupdate_set_defaultTitle(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1217
1217
|
}
|
|
1218
1218
|
/**
|
|
1219
1219
|
* @param {string | null} [value]
|
|
@@ -1221,67 +1221,67 @@ export class JsConversionOptionsUpdate {
|
|
|
1221
1221
|
set encoding(value) {
|
|
1222
1222
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1223
1223
|
var len0 = WASM_VECTOR_LEN;
|
|
1224
|
-
wasm.
|
|
1224
|
+
wasm.wasmconversionoptionsupdate_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
1225
1225
|
}
|
|
1226
1226
|
/**
|
|
1227
1227
|
* @param {boolean | null} [value]
|
|
1228
1228
|
*/
|
|
1229
1229
|
set escapeAscii(value) {
|
|
1230
|
-
wasm.
|
|
1230
|
+
wasm.wasmconversionoptionsupdate_set_escapeAscii(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1231
1231
|
}
|
|
1232
1232
|
/**
|
|
1233
1233
|
* @param {boolean | null} [value]
|
|
1234
1234
|
*/
|
|
1235
1235
|
set escapeAsterisks(value) {
|
|
1236
|
-
wasm.
|
|
1236
|
+
wasm.wasmconversionoptionsupdate_set_escapeAsterisks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1237
1237
|
}
|
|
1238
1238
|
/**
|
|
1239
1239
|
* @param {boolean | null} [value]
|
|
1240
1240
|
*/
|
|
1241
1241
|
set escapeMisc(value) {
|
|
1242
|
-
wasm.
|
|
1242
|
+
wasm.wasmconversionoptionsupdate_set_escapeMisc(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1243
1243
|
}
|
|
1244
1244
|
/**
|
|
1245
1245
|
* @param {boolean | null} [value]
|
|
1246
1246
|
*/
|
|
1247
1247
|
set escapeUnderscores(value) {
|
|
1248
|
-
wasm.
|
|
1248
|
+
wasm.wasmconversionoptionsupdate_set_escapeUnderscores(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1249
1249
|
}
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @param {boolean | null} [value]
|
|
1252
1252
|
*/
|
|
1253
1253
|
set extractImages(value) {
|
|
1254
|
-
wasm.
|
|
1254
|
+
wasm.wasmconversionoptionsupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1255
1255
|
}
|
|
1256
1256
|
/**
|
|
1257
1257
|
* @param {boolean | null} [value]
|
|
1258
1258
|
*/
|
|
1259
1259
|
set extractMetadata(value) {
|
|
1260
|
-
wasm.
|
|
1260
|
+
wasm.wasmconversionoptionsupdate_set_extractMetadata(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1261
1261
|
}
|
|
1262
1262
|
/**
|
|
1263
|
-
* @param {
|
|
1263
|
+
* @param {WasmHeadingStyle | null} [value]
|
|
1264
1264
|
*/
|
|
1265
1265
|
set headingStyle(value) {
|
|
1266
|
-
wasm.
|
|
1266
|
+
wasm.wasmconversionoptionsupdate_set_headingStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1267
1267
|
}
|
|
1268
1268
|
/**
|
|
1269
|
-
* @param {
|
|
1269
|
+
* @param {WasmHighlightStyle | null} [value]
|
|
1270
1270
|
*/
|
|
1271
1271
|
set highlightStyle(value) {
|
|
1272
|
-
wasm.
|
|
1272
|
+
wasm.wasmconversionoptionsupdate_set_highlightStyle(this.__wbg_ptr, isLikeNone(value) ? 4 : value);
|
|
1273
1273
|
}
|
|
1274
1274
|
/**
|
|
1275
1275
|
* @param {boolean | null} [value]
|
|
1276
1276
|
*/
|
|
1277
1277
|
set includeDocumentStructure(value) {
|
|
1278
|
-
wasm.
|
|
1278
|
+
wasm.wasmconversionoptionsupdate_set_includeDocumentStructure(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1279
1279
|
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* @param {boolean | null} [value]
|
|
1282
1282
|
*/
|
|
1283
1283
|
set inferDimensions(value) {
|
|
1284
|
-
wasm.
|
|
1284
|
+
wasm.wasmconversionoptionsupdate_set_inferDimensions(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
1287
1287
|
* @param {string[] | null} [value]
|
|
@@ -1289,54 +1289,54 @@ export class JsConversionOptionsUpdate {
|
|
|
1289
1289
|
set keepInlineImagesIn(value) {
|
|
1290
1290
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1291
1291
|
var len0 = WASM_VECTOR_LEN;
|
|
1292
|
-
wasm.
|
|
1292
|
+
wasm.wasmconversionoptionsupdate_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
1293
1293
|
}
|
|
1294
1294
|
/**
|
|
1295
|
-
* @param {
|
|
1295
|
+
* @param {WasmLinkStyle | null} [value]
|
|
1296
1296
|
*/
|
|
1297
1297
|
set linkStyle(value) {
|
|
1298
|
-
wasm.
|
|
1298
|
+
wasm.wasmconversionoptionsupdate_set_linkStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1299
1299
|
}
|
|
1300
1300
|
/**
|
|
1301
|
-
* @param {
|
|
1301
|
+
* @param {WasmListIndentType | null} [value]
|
|
1302
1302
|
*/
|
|
1303
1303
|
set listIndentType(value) {
|
|
1304
|
-
wasm.
|
|
1304
|
+
wasm.wasmconversionoptionsupdate_set_listIndentType(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1305
1305
|
}
|
|
1306
1306
|
/**
|
|
1307
1307
|
* @param {number | null} [value]
|
|
1308
1308
|
*/
|
|
1309
1309
|
set listIndentWidth(value) {
|
|
1310
|
-
wasm.
|
|
1310
|
+
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1311
1311
|
}
|
|
1312
1312
|
/**
|
|
1313
1313
|
* @param {bigint | null} [value]
|
|
1314
1314
|
*/
|
|
1315
1315
|
set maxImageSize(value) {
|
|
1316
|
-
wasm.
|
|
1316
|
+
wasm.wasmconversionoptionsupdate_set_maxImageSize(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
|
|
1317
1317
|
}
|
|
1318
1318
|
/**
|
|
1319
|
-
* @param {
|
|
1319
|
+
* @param {WasmNewlineStyle | null} [value]
|
|
1320
1320
|
*/
|
|
1321
1321
|
set newlineStyle(value) {
|
|
1322
|
-
wasm.
|
|
1322
|
+
wasm.wasmconversionoptionsupdate_set_newlineStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1323
1323
|
}
|
|
1324
1324
|
/**
|
|
1325
|
-
* @param {
|
|
1325
|
+
* @param {WasmOutputFormat | null} [value]
|
|
1326
1326
|
*/
|
|
1327
1327
|
set outputFormat(value) {
|
|
1328
|
-
wasm.
|
|
1328
|
+
wasm.wasmconversionoptionsupdate_set_outputFormat(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1329
1329
|
}
|
|
1330
1330
|
/**
|
|
1331
|
-
* @param {
|
|
1331
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [value]
|
|
1332
1332
|
*/
|
|
1333
1333
|
set preprocessing(value) {
|
|
1334
1334
|
let ptr0 = 0;
|
|
1335
1335
|
if (!isLikeNone(value)) {
|
|
1336
|
-
_assertClass(value,
|
|
1336
|
+
_assertClass(value, WasmPreprocessingOptionsUpdate);
|
|
1337
1337
|
ptr0 = value.__destroy_into_raw();
|
|
1338
1338
|
}
|
|
1339
|
-
wasm.
|
|
1339
|
+
wasm.wasmconversionoptionsupdate_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
1340
1340
|
}
|
|
1341
1341
|
/**
|
|
1342
1342
|
* @param {string[] | null} [value]
|
|
@@ -1344,19 +1344,19 @@ export class JsConversionOptionsUpdate {
|
|
|
1344
1344
|
set preserveTags(value) {
|
|
1345
1345
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1346
1346
|
var len0 = WASM_VECTOR_LEN;
|
|
1347
|
-
wasm.
|
|
1347
|
+
wasm.wasmconversionoptionsupdate_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
1348
1348
|
}
|
|
1349
1349
|
/**
|
|
1350
1350
|
* @param {boolean | null} [value]
|
|
1351
1351
|
*/
|
|
1352
1352
|
set skipImages(value) {
|
|
1353
|
-
wasm.
|
|
1353
|
+
wasm.wasmconversionoptionsupdate_set_skipImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1354
1354
|
}
|
|
1355
1355
|
/**
|
|
1356
1356
|
* @param {boolean | null} [value]
|
|
1357
1357
|
*/
|
|
1358
1358
|
set stripNewlines(value) {
|
|
1359
|
-
wasm.
|
|
1359
|
+
wasm.wasmconversionoptionsupdate_set_stripNewlines(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1360
1360
|
}
|
|
1361
1361
|
/**
|
|
1362
1362
|
* @param {string[] | null} [value]
|
|
@@ -1364,7 +1364,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1364
1364
|
set stripTags(value) {
|
|
1365
1365
|
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1366
1366
|
var len0 = WASM_VECTOR_LEN;
|
|
1367
|
-
wasm.
|
|
1367
|
+
wasm.wasmconversionoptionsupdate_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
1368
1368
|
}
|
|
1369
1369
|
/**
|
|
1370
1370
|
* @param {string | null} [value]
|
|
@@ -1372,7 +1372,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1372
1372
|
set strongEmSymbol(value) {
|
|
1373
1373
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1374
1374
|
var len0 = WASM_VECTOR_LEN;
|
|
1375
|
-
wasm.
|
|
1375
|
+
wasm.wasmconversionoptionsupdate_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1376
1376
|
}
|
|
1377
1377
|
/**
|
|
1378
1378
|
* @param {string | null} [value]
|
|
@@ -1380,7 +1380,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1380
1380
|
set subSymbol(value) {
|
|
1381
1381
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1382
1382
|
var len0 = WASM_VECTOR_LEN;
|
|
1383
|
-
wasm.
|
|
1383
|
+
wasm.wasmconversionoptionsupdate_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1384
1384
|
}
|
|
1385
1385
|
/**
|
|
1386
1386
|
* @param {string | null} [value]
|
|
@@ -1388,38 +1388,38 @@ export class JsConversionOptionsUpdate {
|
|
|
1388
1388
|
set supSymbol(value) {
|
|
1389
1389
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1390
1390
|
var len0 = WASM_VECTOR_LEN;
|
|
1391
|
-
wasm.
|
|
1391
|
+
wasm.wasmconversionoptionsupdate_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1392
1392
|
}
|
|
1393
1393
|
/**
|
|
1394
|
-
* @param {
|
|
1394
|
+
* @param {WasmWhitespaceMode | null} [value]
|
|
1395
1395
|
*/
|
|
1396
1396
|
set whitespaceMode(value) {
|
|
1397
|
-
wasm.
|
|
1397
|
+
wasm.wasmconversionoptionsupdate_set_whitespaceMode(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1398
1398
|
}
|
|
1399
1399
|
/**
|
|
1400
1400
|
* @param {boolean | null} [value]
|
|
1401
1401
|
*/
|
|
1402
1402
|
set wrap(value) {
|
|
1403
|
-
wasm.
|
|
1403
|
+
wasm.wasmconversionoptionsupdate_set_wrap(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1404
1404
|
}
|
|
1405
1405
|
/**
|
|
1406
1406
|
* @param {number | null} [value]
|
|
1407
1407
|
*/
|
|
1408
1408
|
set wrapWidth(value) {
|
|
1409
|
-
wasm.
|
|
1409
|
+
wasm.wasmconversionoptionsupdate_set_wrapWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1410
1410
|
}
|
|
1411
1411
|
/**
|
|
1412
1412
|
* @returns {boolean | undefined}
|
|
1413
1413
|
*/
|
|
1414
1414
|
get skipImages() {
|
|
1415
|
-
const ret = wasm.
|
|
1415
|
+
const ret = wasm.wasmconversionoptionsupdate_skipImages(this.__wbg_ptr);
|
|
1416
1416
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1417
1417
|
}
|
|
1418
1418
|
/**
|
|
1419
1419
|
* @returns {boolean | undefined}
|
|
1420
1420
|
*/
|
|
1421
1421
|
get stripNewlines() {
|
|
1422
|
-
const ret = wasm.
|
|
1422
|
+
const ret = wasm.wasmconversionoptionsupdate_stripNewlines(this.__wbg_ptr);
|
|
1423
1423
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1424
1424
|
}
|
|
1425
1425
|
/**
|
|
@@ -1428,7 +1428,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1428
1428
|
get stripTags() {
|
|
1429
1429
|
try {
|
|
1430
1430
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1431
|
-
wasm.
|
|
1431
|
+
wasm.wasmconversionoptionsupdate_stripTags(retptr, this.__wbg_ptr);
|
|
1432
1432
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1433
1433
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1434
1434
|
let v1;
|
|
@@ -1447,7 +1447,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1447
1447
|
get strongEmSymbol() {
|
|
1448
1448
|
try {
|
|
1449
1449
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1450
|
-
wasm.
|
|
1450
|
+
wasm.wasmconversionoptionsupdate_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
1451
1451
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1452
1452
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1453
1453
|
let v1;
|
|
@@ -1466,7 +1466,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1466
1466
|
get subSymbol() {
|
|
1467
1467
|
try {
|
|
1468
1468
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1469
|
-
wasm.
|
|
1469
|
+
wasm.wasmconversionoptionsupdate_subSymbol(retptr, this.__wbg_ptr);
|
|
1470
1470
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1471
1471
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1472
1472
|
let v1;
|
|
@@ -1485,7 +1485,7 @@ export class JsConversionOptionsUpdate {
|
|
|
1485
1485
|
get supSymbol() {
|
|
1486
1486
|
try {
|
|
1487
1487
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1488
|
-
wasm.
|
|
1488
|
+
wasm.wasmconversionoptionsupdate_supSymbol(retptr, this.__wbg_ptr);
|
|
1489
1489
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1490
1490
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1491
1491
|
let v1;
|
|
@@ -1499,46 +1499,46 @@ export class JsConversionOptionsUpdate {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
1501
|
/**
|
|
1502
|
-
* @returns {
|
|
1502
|
+
* @returns {WasmWhitespaceMode | undefined}
|
|
1503
1503
|
*/
|
|
1504
1504
|
get whitespaceMode() {
|
|
1505
|
-
const ret = wasm.
|
|
1505
|
+
const ret = wasm.wasmconversionoptionsupdate_whitespaceMode(this.__wbg_ptr);
|
|
1506
1506
|
return ret === 2 ? undefined : ret;
|
|
1507
1507
|
}
|
|
1508
1508
|
/**
|
|
1509
1509
|
* @returns {boolean | undefined}
|
|
1510
1510
|
*/
|
|
1511
1511
|
get wrap() {
|
|
1512
|
-
const ret = wasm.
|
|
1512
|
+
const ret = wasm.wasmconversionoptionsupdate_wrap(this.__wbg_ptr);
|
|
1513
1513
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1514
1514
|
}
|
|
1515
1515
|
/**
|
|
1516
1516
|
* @returns {number | undefined}
|
|
1517
1517
|
*/
|
|
1518
1518
|
get wrapWidth() {
|
|
1519
|
-
const ret = wasm.
|
|
1519
|
+
const ret = wasm.wasmconversionoptionsupdate_wrapWidth(this.__wbg_ptr);
|
|
1520
1520
|
return ret === 0x100000001 ? undefined : ret;
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
if (Symbol.dispose)
|
|
1523
|
+
if (Symbol.dispose) WasmConversionOptionsUpdate.prototype[Symbol.dispose] = WasmConversionOptionsUpdate.prototype.free;
|
|
1524
1524
|
|
|
1525
|
-
export class
|
|
1525
|
+
export class WasmConversionResult {
|
|
1526
1526
|
static __wrap(ptr) {
|
|
1527
1527
|
ptr = ptr >>> 0;
|
|
1528
|
-
const obj = Object.create(
|
|
1528
|
+
const obj = Object.create(WasmConversionResult.prototype);
|
|
1529
1529
|
obj.__wbg_ptr = ptr;
|
|
1530
|
-
|
|
1530
|
+
WasmConversionResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1531
1531
|
return obj;
|
|
1532
1532
|
}
|
|
1533
1533
|
__destroy_into_raw() {
|
|
1534
1534
|
const ptr = this.__wbg_ptr;
|
|
1535
1535
|
this.__wbg_ptr = 0;
|
|
1536
|
-
|
|
1536
|
+
WasmConversionResultFinalization.unregister(this);
|
|
1537
1537
|
return ptr;
|
|
1538
1538
|
}
|
|
1539
1539
|
free() {
|
|
1540
1540
|
const ptr = this.__destroy_into_raw();
|
|
1541
|
-
wasm.
|
|
1541
|
+
wasm.__wbg_wasmconversionresult_free(ptr, 0);
|
|
1542
1542
|
}
|
|
1543
1543
|
/**
|
|
1544
1544
|
* @returns {string | undefined}
|
|
@@ -1546,7 +1546,7 @@ export class JsConversionResult {
|
|
|
1546
1546
|
get content() {
|
|
1547
1547
|
try {
|
|
1548
1548
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1549
|
-
wasm.
|
|
1549
|
+
wasm.wasmconversionresult_content(retptr, this.__wbg_ptr);
|
|
1550
1550
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1551
1551
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1552
1552
|
let v1;
|
|
@@ -1560,11 +1560,11 @@ export class JsConversionResult {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
1562
|
/**
|
|
1563
|
-
* @returns {
|
|
1563
|
+
* @returns {WasmDocumentStructure | undefined}
|
|
1564
1564
|
*/
|
|
1565
1565
|
get document() {
|
|
1566
|
-
const ret = wasm.
|
|
1567
|
-
return ret === 0 ? undefined :
|
|
1566
|
+
const ret = wasm.wasmconversionresult_document(this.__wbg_ptr);
|
|
1567
|
+
return ret === 0 ? undefined : WasmDocumentStructure.__wrap(ret);
|
|
1568
1568
|
}
|
|
1569
1569
|
/**
|
|
1570
1570
|
* @returns {string[]}
|
|
@@ -1572,7 +1572,7 @@ export class JsConversionResult {
|
|
|
1572
1572
|
get images() {
|
|
1573
1573
|
try {
|
|
1574
1574
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1575
|
-
wasm.
|
|
1575
|
+
wasm.wasmconversionresult_images(retptr, this.__wbg_ptr);
|
|
1576
1576
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1577
1577
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1578
1578
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1583,24 +1583,24 @@ export class JsConversionResult {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
1585
|
/**
|
|
1586
|
-
* @returns {
|
|
1586
|
+
* @returns {WasmHtmlMetadata}
|
|
1587
1587
|
*/
|
|
1588
1588
|
get metadata() {
|
|
1589
|
-
const ret = wasm.
|
|
1590
|
-
return
|
|
1589
|
+
const ret = wasm.wasmconversionresult_metadata(this.__wbg_ptr);
|
|
1590
|
+
return WasmHtmlMetadata.__wrap(ret);
|
|
1591
1591
|
}
|
|
1592
1592
|
/**
|
|
1593
|
-
* @param {
|
|
1594
|
-
* @param {
|
|
1593
|
+
* @param {WasmHtmlMetadata | null} [metadata]
|
|
1594
|
+
* @param {WasmTableData[] | null} [tables]
|
|
1595
1595
|
* @param {string[] | null} [images]
|
|
1596
|
-
* @param {
|
|
1596
|
+
* @param {WasmProcessingWarning[] | null} [warnings]
|
|
1597
1597
|
* @param {string | null} [content]
|
|
1598
|
-
* @param {
|
|
1598
|
+
* @param {WasmDocumentStructure | null} [document]
|
|
1599
1599
|
*/
|
|
1600
1600
|
constructor(metadata, tables, images, warnings, content, document) {
|
|
1601
1601
|
let ptr0 = 0;
|
|
1602
1602
|
if (!isLikeNone(metadata)) {
|
|
1603
|
-
_assertClass(metadata,
|
|
1603
|
+
_assertClass(metadata, WasmHtmlMetadata);
|
|
1604
1604
|
ptr0 = metadata.__destroy_into_raw();
|
|
1605
1605
|
}
|
|
1606
1606
|
var ptr1 = isLikeNone(tables) ? 0 : passArrayJsValueToWasm0(tables, wasm.__wbindgen_export);
|
|
@@ -1613,12 +1613,12 @@ export class JsConversionResult {
|
|
|
1613
1613
|
var len4 = WASM_VECTOR_LEN;
|
|
1614
1614
|
let ptr5 = 0;
|
|
1615
1615
|
if (!isLikeNone(document)) {
|
|
1616
|
-
_assertClass(document,
|
|
1616
|
+
_assertClass(document, WasmDocumentStructure);
|
|
1617
1617
|
ptr5 = document.__destroy_into_raw();
|
|
1618
1618
|
}
|
|
1619
|
-
const ret = wasm.
|
|
1619
|
+
const ret = wasm.wasmconversionresult_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5);
|
|
1620
1620
|
this.__wbg_ptr = ret >>> 0;
|
|
1621
|
-
|
|
1621
|
+
WasmConversionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
1622
1622
|
return this;
|
|
1623
1623
|
}
|
|
1624
1624
|
/**
|
|
@@ -1627,18 +1627,18 @@ export class JsConversionResult {
|
|
|
1627
1627
|
set content(value) {
|
|
1628
1628
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1629
1629
|
var len0 = WASM_VECTOR_LEN;
|
|
1630
|
-
wasm.
|
|
1630
|
+
wasm.wasmconversionresult_set_content(this.__wbg_ptr, ptr0, len0);
|
|
1631
1631
|
}
|
|
1632
1632
|
/**
|
|
1633
|
-
* @param {
|
|
1633
|
+
* @param {WasmDocumentStructure | null} [value]
|
|
1634
1634
|
*/
|
|
1635
1635
|
set document(value) {
|
|
1636
1636
|
let ptr0 = 0;
|
|
1637
1637
|
if (!isLikeNone(value)) {
|
|
1638
|
-
_assertClass(value,
|
|
1638
|
+
_assertClass(value, WasmDocumentStructure);
|
|
1639
1639
|
ptr0 = value.__destroy_into_raw();
|
|
1640
1640
|
}
|
|
1641
|
-
wasm.
|
|
1641
|
+
wasm.wasmconversionresult_set_document(this.__wbg_ptr, ptr0);
|
|
1642
1642
|
}
|
|
1643
1643
|
/**
|
|
1644
1644
|
* @param {string[]} value
|
|
@@ -1646,39 +1646,39 @@ export class JsConversionResult {
|
|
|
1646
1646
|
set images(value) {
|
|
1647
1647
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1648
1648
|
const len0 = WASM_VECTOR_LEN;
|
|
1649
|
-
wasm.
|
|
1649
|
+
wasm.wasmconversionresult_set_images(this.__wbg_ptr, ptr0, len0);
|
|
1650
1650
|
}
|
|
1651
1651
|
/**
|
|
1652
|
-
* @param {
|
|
1652
|
+
* @param {WasmHtmlMetadata} value
|
|
1653
1653
|
*/
|
|
1654
1654
|
set metadata(value) {
|
|
1655
|
-
_assertClass(value,
|
|
1655
|
+
_assertClass(value, WasmHtmlMetadata);
|
|
1656
1656
|
var ptr0 = value.__destroy_into_raw();
|
|
1657
|
-
wasm.
|
|
1657
|
+
wasm.wasmconversionresult_set_metadata(this.__wbg_ptr, ptr0);
|
|
1658
1658
|
}
|
|
1659
1659
|
/**
|
|
1660
|
-
* @param {
|
|
1660
|
+
* @param {WasmTableData[]} value
|
|
1661
1661
|
*/
|
|
1662
1662
|
set tables(value) {
|
|
1663
1663
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1664
1664
|
const len0 = WASM_VECTOR_LEN;
|
|
1665
|
-
wasm.
|
|
1665
|
+
wasm.wasmconversionresult_set_tables(this.__wbg_ptr, ptr0, len0);
|
|
1666
1666
|
}
|
|
1667
1667
|
/**
|
|
1668
|
-
* @param {
|
|
1668
|
+
* @param {WasmProcessingWarning[]} value
|
|
1669
1669
|
*/
|
|
1670
1670
|
set warnings(value) {
|
|
1671
1671
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1672
1672
|
const len0 = WASM_VECTOR_LEN;
|
|
1673
|
-
wasm.
|
|
1673
|
+
wasm.wasmconversionresult_set_warnings(this.__wbg_ptr, ptr0, len0);
|
|
1674
1674
|
}
|
|
1675
1675
|
/**
|
|
1676
|
-
* @returns {
|
|
1676
|
+
* @returns {WasmTableData[]}
|
|
1677
1677
|
*/
|
|
1678
1678
|
get tables() {
|
|
1679
1679
|
try {
|
|
1680
1680
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1681
|
-
wasm.
|
|
1681
|
+
wasm.wasmconversionresult_tables(retptr, this.__wbg_ptr);
|
|
1682
1682
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1683
1683
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1684
1684
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1689,12 +1689,12 @@ export class JsConversionResult {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
/**
|
|
1692
|
-
* @returns {
|
|
1692
|
+
* @returns {WasmProcessingWarning[]}
|
|
1693
1693
|
*/
|
|
1694
1694
|
get warnings() {
|
|
1695
1695
|
try {
|
|
1696
1696
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1697
|
-
wasm.
|
|
1697
|
+
wasm.wasmconversionresult_warnings(retptr, this.__wbg_ptr);
|
|
1698
1698
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1699
1699
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1700
1700
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1705,25 +1705,25 @@ export class JsConversionResult {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
if (Symbol.dispose)
|
|
1708
|
+
if (Symbol.dispose) WasmConversionResult.prototype[Symbol.dispose] = WasmConversionResult.prototype.free;
|
|
1709
1709
|
|
|
1710
|
-
export class
|
|
1710
|
+
export class WasmDocumentMetadata {
|
|
1711
1711
|
static __wrap(ptr) {
|
|
1712
1712
|
ptr = ptr >>> 0;
|
|
1713
|
-
const obj = Object.create(
|
|
1713
|
+
const obj = Object.create(WasmDocumentMetadata.prototype);
|
|
1714
1714
|
obj.__wbg_ptr = ptr;
|
|
1715
|
-
|
|
1715
|
+
WasmDocumentMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1716
1716
|
return obj;
|
|
1717
1717
|
}
|
|
1718
1718
|
__destroy_into_raw() {
|
|
1719
1719
|
const ptr = this.__wbg_ptr;
|
|
1720
1720
|
this.__wbg_ptr = 0;
|
|
1721
|
-
|
|
1721
|
+
WasmDocumentMetadataFinalization.unregister(this);
|
|
1722
1722
|
return ptr;
|
|
1723
1723
|
}
|
|
1724
1724
|
free() {
|
|
1725
1725
|
const ptr = this.__destroy_into_raw();
|
|
1726
|
-
wasm.
|
|
1726
|
+
wasm.__wbg_wasmdocumentmetadata_free(ptr, 0);
|
|
1727
1727
|
}
|
|
1728
1728
|
/**
|
|
1729
1729
|
* @returns {string | undefined}
|
|
@@ -1731,7 +1731,7 @@ export class JsDocumentMetadata {
|
|
|
1731
1731
|
get author() {
|
|
1732
1732
|
try {
|
|
1733
1733
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1734
|
-
wasm.
|
|
1734
|
+
wasm.wasmdocumentmetadata_author(retptr, this.__wbg_ptr);
|
|
1735
1735
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1736
1736
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1737
1737
|
let v1;
|
|
@@ -1750,7 +1750,7 @@ export class JsDocumentMetadata {
|
|
|
1750
1750
|
get baseHref() {
|
|
1751
1751
|
try {
|
|
1752
1752
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1753
|
-
wasm.
|
|
1753
|
+
wasm.wasmdocumentmetadata_baseHref(retptr, this.__wbg_ptr);
|
|
1754
1754
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1755
1755
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1756
1756
|
let v1;
|
|
@@ -1769,7 +1769,7 @@ export class JsDocumentMetadata {
|
|
|
1769
1769
|
get canonicalUrl() {
|
|
1770
1770
|
try {
|
|
1771
1771
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1772
|
-
wasm.
|
|
1772
|
+
wasm.wasmdocumentmetadata_canonicalUrl(retptr, this.__wbg_ptr);
|
|
1773
1773
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1774
1774
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1775
1775
|
let v1;
|
|
@@ -1788,7 +1788,7 @@ export class JsDocumentMetadata {
|
|
|
1788
1788
|
get description() {
|
|
1789
1789
|
try {
|
|
1790
1790
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1791
|
-
wasm.
|
|
1791
|
+
wasm.wasmdocumentmetadata_description(retptr, this.__wbg_ptr);
|
|
1792
1792
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1793
1793
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1794
1794
|
let v1;
|
|
@@ -1807,7 +1807,7 @@ export class JsDocumentMetadata {
|
|
|
1807
1807
|
get keywords() {
|
|
1808
1808
|
try {
|
|
1809
1809
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1810
|
-
wasm.
|
|
1810
|
+
wasm.wasmdocumentmetadata_keywords(retptr, this.__wbg_ptr);
|
|
1811
1811
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1812
1812
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1813
1813
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -1823,7 +1823,7 @@ export class JsDocumentMetadata {
|
|
|
1823
1823
|
get language() {
|
|
1824
1824
|
try {
|
|
1825
1825
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1826
|
-
wasm.
|
|
1826
|
+
wasm.wasmdocumentmetadata_language(retptr, this.__wbg_ptr);
|
|
1827
1827
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1828
1828
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1829
1829
|
let v1;
|
|
@@ -1840,7 +1840,7 @@ export class JsDocumentMetadata {
|
|
|
1840
1840
|
* @returns {WasmConversionResult}
|
|
1841
1841
|
*/
|
|
1842
1842
|
get metaTags() {
|
|
1843
|
-
const ret = wasm.
|
|
1843
|
+
const ret = wasm.wasmdocumentmetadata_metaTags(this.__wbg_ptr);
|
|
1844
1844
|
return takeObject(ret);
|
|
1845
1845
|
}
|
|
1846
1846
|
/**
|
|
@@ -1854,7 +1854,7 @@ export class JsDocumentMetadata {
|
|
|
1854
1854
|
* @param {string | null} [canonical_url]
|
|
1855
1855
|
* @param {string | null} [base_href]
|
|
1856
1856
|
* @param {string | null} [language]
|
|
1857
|
-
* @param {
|
|
1857
|
+
* @param {WasmTextDirection | null} [text_direction]
|
|
1858
1858
|
*/
|
|
1859
1859
|
constructor(keywords, open_graph, twitter_card, meta_tags, title, description, author, canonical_url, base_href, language, text_direction) {
|
|
1860
1860
|
var ptr0 = isLikeNone(keywords) ? 0 : passArrayJsValueToWasm0(keywords, wasm.__wbindgen_export);
|
|
@@ -1871,16 +1871,16 @@ export class JsDocumentMetadata {
|
|
|
1871
1871
|
var len5 = WASM_VECTOR_LEN;
|
|
1872
1872
|
var ptr6 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1873
1873
|
var len6 = WASM_VECTOR_LEN;
|
|
1874
|
-
const ret = wasm.
|
|
1874
|
+
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);
|
|
1875
1875
|
this.__wbg_ptr = ret >>> 0;
|
|
1876
|
-
|
|
1876
|
+
WasmDocumentMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
1877
1877
|
return this;
|
|
1878
1878
|
}
|
|
1879
1879
|
/**
|
|
1880
1880
|
* @returns {WasmConversionResult}
|
|
1881
1881
|
*/
|
|
1882
1882
|
get openGraph() {
|
|
1883
|
-
const ret = wasm.
|
|
1883
|
+
const ret = wasm.wasmdocumentmetadata_openGraph(this.__wbg_ptr);
|
|
1884
1884
|
return takeObject(ret);
|
|
1885
1885
|
}
|
|
1886
1886
|
/**
|
|
@@ -1889,7 +1889,7 @@ export class JsDocumentMetadata {
|
|
|
1889
1889
|
set author(value) {
|
|
1890
1890
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1891
1891
|
var len0 = WASM_VECTOR_LEN;
|
|
1892
|
-
wasm.
|
|
1892
|
+
wasm.wasmdocumentmetadata_set_author(this.__wbg_ptr, ptr0, len0);
|
|
1893
1893
|
}
|
|
1894
1894
|
/**
|
|
1895
1895
|
* @param {string | null} [value]
|
|
@@ -1897,7 +1897,7 @@ export class JsDocumentMetadata {
|
|
|
1897
1897
|
set baseHref(value) {
|
|
1898
1898
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1899
1899
|
var len0 = WASM_VECTOR_LEN;
|
|
1900
|
-
wasm.
|
|
1900
|
+
wasm.wasmdocumentmetadata_set_baseHref(this.__wbg_ptr, ptr0, len0);
|
|
1901
1901
|
}
|
|
1902
1902
|
/**
|
|
1903
1903
|
* @param {string | null} [value]
|
|
@@ -1905,7 +1905,7 @@ export class JsDocumentMetadata {
|
|
|
1905
1905
|
set canonicalUrl(value) {
|
|
1906
1906
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1907
1907
|
var len0 = WASM_VECTOR_LEN;
|
|
1908
|
-
wasm.
|
|
1908
|
+
wasm.wasmdocumentmetadata_set_canonicalUrl(this.__wbg_ptr, ptr0, len0);
|
|
1909
1909
|
}
|
|
1910
1910
|
/**
|
|
1911
1911
|
* @param {string | null} [value]
|
|
@@ -1913,7 +1913,7 @@ export class JsDocumentMetadata {
|
|
|
1913
1913
|
set description(value) {
|
|
1914
1914
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1915
1915
|
var len0 = WASM_VECTOR_LEN;
|
|
1916
|
-
wasm.
|
|
1916
|
+
wasm.wasmdocumentmetadata_set_description(this.__wbg_ptr, ptr0, len0);
|
|
1917
1917
|
}
|
|
1918
1918
|
/**
|
|
1919
1919
|
* @param {string[]} value
|
|
@@ -1921,7 +1921,7 @@ export class JsDocumentMetadata {
|
|
|
1921
1921
|
set keywords(value) {
|
|
1922
1922
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1923
1923
|
const len0 = WASM_VECTOR_LEN;
|
|
1924
|
-
wasm.
|
|
1924
|
+
wasm.wasmdocumentmetadata_set_keywords(this.__wbg_ptr, ptr0, len0);
|
|
1925
1925
|
}
|
|
1926
1926
|
/**
|
|
1927
1927
|
* @param {string | null} [value]
|
|
@@ -1929,25 +1929,25 @@ export class JsDocumentMetadata {
|
|
|
1929
1929
|
set language(value) {
|
|
1930
1930
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1931
1931
|
var len0 = WASM_VECTOR_LEN;
|
|
1932
|
-
wasm.
|
|
1932
|
+
wasm.wasmdocumentmetadata_set_language(this.__wbg_ptr, ptr0, len0);
|
|
1933
1933
|
}
|
|
1934
1934
|
/**
|
|
1935
1935
|
* @param {any} value
|
|
1936
1936
|
*/
|
|
1937
1937
|
set metaTags(value) {
|
|
1938
|
-
wasm.
|
|
1938
|
+
wasm.wasmdocumentmetadata_set_metaTags(this.__wbg_ptr, addHeapObject(value));
|
|
1939
1939
|
}
|
|
1940
1940
|
/**
|
|
1941
1941
|
* @param {any} value
|
|
1942
1942
|
*/
|
|
1943
1943
|
set openGraph(value) {
|
|
1944
|
-
wasm.
|
|
1944
|
+
wasm.wasmdocumentmetadata_set_openGraph(this.__wbg_ptr, addHeapObject(value));
|
|
1945
1945
|
}
|
|
1946
1946
|
/**
|
|
1947
|
-
* @param {
|
|
1947
|
+
* @param {WasmTextDirection | null} [value]
|
|
1948
1948
|
*/
|
|
1949
1949
|
set textDirection(value) {
|
|
1950
|
-
wasm.
|
|
1950
|
+
wasm.wasmdocumentmetadata_set_textDirection(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* @param {string | null} [value]
|
|
@@ -1955,19 +1955,19 @@ export class JsDocumentMetadata {
|
|
|
1955
1955
|
set title(value) {
|
|
1956
1956
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1957
1957
|
var len0 = WASM_VECTOR_LEN;
|
|
1958
|
-
wasm.
|
|
1958
|
+
wasm.wasmdocumentmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
1961
|
* @param {any} value
|
|
1962
1962
|
*/
|
|
1963
1963
|
set twitterCard(value) {
|
|
1964
|
-
wasm.
|
|
1964
|
+
wasm.wasmdocumentmetadata_set_twitterCard(this.__wbg_ptr, addHeapObject(value));
|
|
1965
1965
|
}
|
|
1966
1966
|
/**
|
|
1967
|
-
* @returns {
|
|
1967
|
+
* @returns {WasmTextDirection | undefined}
|
|
1968
1968
|
*/
|
|
1969
1969
|
get textDirection() {
|
|
1970
|
-
const ret = wasm.
|
|
1970
|
+
const ret = wasm.wasmdocumentmetadata_textDirection(this.__wbg_ptr);
|
|
1971
1971
|
return ret === 3 ? undefined : ret;
|
|
1972
1972
|
}
|
|
1973
1973
|
/**
|
|
@@ -1976,7 +1976,7 @@ export class JsDocumentMetadata {
|
|
|
1976
1976
|
get title() {
|
|
1977
1977
|
try {
|
|
1978
1978
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1979
|
-
wasm.
|
|
1979
|
+
wasm.wasmdocumentmetadata_title(retptr, this.__wbg_ptr);
|
|
1980
1980
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1981
1981
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1982
1982
|
let v1;
|
|
@@ -1993,22 +1993,22 @@ export class JsDocumentMetadata {
|
|
|
1993
1993
|
* @returns {WasmConversionResult}
|
|
1994
1994
|
*/
|
|
1995
1995
|
get twitterCard() {
|
|
1996
|
-
const ret = wasm.
|
|
1996
|
+
const ret = wasm.wasmdocumentmetadata_twitterCard(this.__wbg_ptr);
|
|
1997
1997
|
return takeObject(ret);
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
|
-
if (Symbol.dispose)
|
|
2000
|
+
if (Symbol.dispose) WasmDocumentMetadata.prototype[Symbol.dispose] = WasmDocumentMetadata.prototype.free;
|
|
2001
2001
|
|
|
2002
|
-
export class
|
|
2002
|
+
export class WasmDocumentNode {
|
|
2003
2003
|
static __wrap(ptr) {
|
|
2004
2004
|
ptr = ptr >>> 0;
|
|
2005
|
-
const obj = Object.create(
|
|
2005
|
+
const obj = Object.create(WasmDocumentNode.prototype);
|
|
2006
2006
|
obj.__wbg_ptr = ptr;
|
|
2007
|
-
|
|
2007
|
+
WasmDocumentNodeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2008
2008
|
return obj;
|
|
2009
2009
|
}
|
|
2010
2010
|
static __unwrap(jsValue) {
|
|
2011
|
-
if (!(jsValue instanceof
|
|
2011
|
+
if (!(jsValue instanceof WasmDocumentNode)) {
|
|
2012
2012
|
return 0;
|
|
2013
2013
|
}
|
|
2014
2014
|
return jsValue.__destroy_into_raw();
|
|
@@ -2016,20 +2016,20 @@ export class JsDocumentNode {
|
|
|
2016
2016
|
__destroy_into_raw() {
|
|
2017
2017
|
const ptr = this.__wbg_ptr;
|
|
2018
2018
|
this.__wbg_ptr = 0;
|
|
2019
|
-
|
|
2019
|
+
WasmDocumentNodeFinalization.unregister(this);
|
|
2020
2020
|
return ptr;
|
|
2021
2021
|
}
|
|
2022
2022
|
free() {
|
|
2023
2023
|
const ptr = this.__destroy_into_raw();
|
|
2024
|
-
wasm.
|
|
2024
|
+
wasm.__wbg_wasmdocumentnode_free(ptr, 0);
|
|
2025
2025
|
}
|
|
2026
2026
|
/**
|
|
2027
|
-
* @returns {
|
|
2027
|
+
* @returns {WasmTextAnnotation[]}
|
|
2028
2028
|
*/
|
|
2029
2029
|
get annotations() {
|
|
2030
2030
|
try {
|
|
2031
2031
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2032
|
-
wasm.
|
|
2032
|
+
wasm.wasmdocumentnode_annotations(retptr, this.__wbg_ptr);
|
|
2033
2033
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2034
2034
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2035
2035
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2043,7 +2043,7 @@ export class JsDocumentNode {
|
|
|
2043
2043
|
* @returns {any | undefined}
|
|
2044
2044
|
*/
|
|
2045
2045
|
get attributes() {
|
|
2046
|
-
const ret = wasm.
|
|
2046
|
+
const ret = wasm.wasmdocumentnode_attributes(this.__wbg_ptr);
|
|
2047
2047
|
return takeObject(ret);
|
|
2048
2048
|
}
|
|
2049
2049
|
/**
|
|
@@ -2052,7 +2052,7 @@ export class JsDocumentNode {
|
|
|
2052
2052
|
get children() {
|
|
2053
2053
|
try {
|
|
2054
2054
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2055
|
-
wasm.
|
|
2055
|
+
wasm.wasmdocumentnode_children(retptr, this.__wbg_ptr);
|
|
2056
2056
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2057
2057
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2058
2058
|
var v1 = getArrayU32FromWasm0(r0, r1).slice();
|
|
@@ -2063,10 +2063,10 @@ export class JsDocumentNode {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
2065
|
/**
|
|
2066
|
-
* @returns {
|
|
2066
|
+
* @returns {WasmNodeContent}
|
|
2067
2067
|
*/
|
|
2068
2068
|
get content() {
|
|
2069
|
-
const ret = wasm.
|
|
2069
|
+
const ret = wasm.wasmdocumentnode_content(this.__wbg_ptr);
|
|
2070
2070
|
return ret;
|
|
2071
2071
|
}
|
|
2072
2072
|
/**
|
|
@@ -2077,7 +2077,7 @@ export class JsDocumentNode {
|
|
|
2077
2077
|
let deferred1_1;
|
|
2078
2078
|
try {
|
|
2079
2079
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2080
|
-
wasm.
|
|
2080
|
+
wasm.wasmdocumentnode_id(retptr, this.__wbg_ptr);
|
|
2081
2081
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2082
2082
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2083
2083
|
deferred1_0 = r0;
|
|
@@ -2090,9 +2090,9 @@ export class JsDocumentNode {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
/**
|
|
2092
2092
|
* @param {string} id
|
|
2093
|
-
* @param {
|
|
2093
|
+
* @param {WasmNodeContent} content
|
|
2094
2094
|
* @param {Uint32Array} children
|
|
2095
|
-
* @param {
|
|
2095
|
+
* @param {WasmTextAnnotation[]} annotations
|
|
2096
2096
|
* @param {number | null} [parent]
|
|
2097
2097
|
* @param {any | null} [attributes]
|
|
2098
2098
|
*/
|
|
@@ -2103,31 +2103,31 @@ export class JsDocumentNode {
|
|
|
2103
2103
|
const len1 = WASM_VECTOR_LEN;
|
|
2104
2104
|
const ptr2 = passArrayJsValueToWasm0(annotations, wasm.__wbindgen_export);
|
|
2105
2105
|
const len2 = WASM_VECTOR_LEN;
|
|
2106
|
-
const ret = wasm.
|
|
2106
|
+
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, ptr2, len2, isLikeNone(parent) ? 0x100000001 : (parent) >>> 0, isLikeNone(attributes) ? 0 : addHeapObject(attributes));
|
|
2107
2107
|
this.__wbg_ptr = ret >>> 0;
|
|
2108
|
-
|
|
2108
|
+
WasmDocumentNodeFinalization.register(this, this.__wbg_ptr, this);
|
|
2109
2109
|
return this;
|
|
2110
2110
|
}
|
|
2111
2111
|
/**
|
|
2112
2112
|
* @returns {number | undefined}
|
|
2113
2113
|
*/
|
|
2114
2114
|
get parent() {
|
|
2115
|
-
const ret = wasm.
|
|
2115
|
+
const ret = wasm.wasmdocumentnode_parent(this.__wbg_ptr);
|
|
2116
2116
|
return ret === 0x100000001 ? undefined : ret;
|
|
2117
2117
|
}
|
|
2118
2118
|
/**
|
|
2119
|
-
* @param {
|
|
2119
|
+
* @param {WasmTextAnnotation[]} value
|
|
2120
2120
|
*/
|
|
2121
2121
|
set annotations(value) {
|
|
2122
2122
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2123
2123
|
const len0 = WASM_VECTOR_LEN;
|
|
2124
|
-
wasm.
|
|
2124
|
+
wasm.wasmdocumentnode_set_annotations(this.__wbg_ptr, ptr0, len0);
|
|
2125
2125
|
}
|
|
2126
2126
|
/**
|
|
2127
2127
|
* @param {any | null} [value]
|
|
2128
2128
|
*/
|
|
2129
2129
|
set attributes(value) {
|
|
2130
|
-
wasm.
|
|
2130
|
+
wasm.wasmdocumentnode_set_attributes(this.__wbg_ptr, isLikeNone(value) ? 0 : addHeapObject(value));
|
|
2131
2131
|
}
|
|
2132
2132
|
/**
|
|
2133
2133
|
* @param {Uint32Array} value
|
|
@@ -2135,13 +2135,13 @@ export class JsDocumentNode {
|
|
|
2135
2135
|
set children(value) {
|
|
2136
2136
|
const ptr0 = passArray32ToWasm0(value, wasm.__wbindgen_export);
|
|
2137
2137
|
const len0 = WASM_VECTOR_LEN;
|
|
2138
|
-
wasm.
|
|
2138
|
+
wasm.wasmdocumentnode_set_children(this.__wbg_ptr, ptr0, len0);
|
|
2139
2139
|
}
|
|
2140
2140
|
/**
|
|
2141
|
-
* @param {
|
|
2141
|
+
* @param {WasmNodeContent} value
|
|
2142
2142
|
*/
|
|
2143
2143
|
set content(value) {
|
|
2144
|
-
wasm.
|
|
2144
|
+
wasm.wasmdocumentnode_set_content(this.__wbg_ptr, value);
|
|
2145
2145
|
}
|
|
2146
2146
|
/**
|
|
2147
2147
|
* @param {string} value
|
|
@@ -2149,37 +2149,37 @@ export class JsDocumentNode {
|
|
|
2149
2149
|
set id(value) {
|
|
2150
2150
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2151
2151
|
const len0 = WASM_VECTOR_LEN;
|
|
2152
|
-
wasm.
|
|
2152
|
+
wasm.wasmdocumentnode_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2153
2153
|
}
|
|
2154
2154
|
/**
|
|
2155
2155
|
* @param {number | null} [value]
|
|
2156
2156
|
*/
|
|
2157
2157
|
set parent(value) {
|
|
2158
|
-
wasm.
|
|
2158
|
+
wasm.wasmdocumentnode_set_parent(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
-
if (Symbol.dispose)
|
|
2161
|
+
if (Symbol.dispose) WasmDocumentNode.prototype[Symbol.dispose] = WasmDocumentNode.prototype.free;
|
|
2162
2162
|
|
|
2163
|
-
export class
|
|
2163
|
+
export class WasmDocumentStructure {
|
|
2164
2164
|
static __wrap(ptr) {
|
|
2165
2165
|
ptr = ptr >>> 0;
|
|
2166
|
-
const obj = Object.create(
|
|
2166
|
+
const obj = Object.create(WasmDocumentStructure.prototype);
|
|
2167
2167
|
obj.__wbg_ptr = ptr;
|
|
2168
|
-
|
|
2168
|
+
WasmDocumentStructureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2169
2169
|
return obj;
|
|
2170
2170
|
}
|
|
2171
2171
|
__destroy_into_raw() {
|
|
2172
2172
|
const ptr = this.__wbg_ptr;
|
|
2173
2173
|
this.__wbg_ptr = 0;
|
|
2174
|
-
|
|
2174
|
+
WasmDocumentStructureFinalization.unregister(this);
|
|
2175
2175
|
return ptr;
|
|
2176
2176
|
}
|
|
2177
2177
|
free() {
|
|
2178
2178
|
const ptr = this.__destroy_into_raw();
|
|
2179
|
-
wasm.
|
|
2179
|
+
wasm.__wbg_wasmdocumentstructure_free(ptr, 0);
|
|
2180
2180
|
}
|
|
2181
2181
|
/**
|
|
2182
|
-
* @param {
|
|
2182
|
+
* @param {WasmDocumentNode[]} nodes
|
|
2183
2183
|
* @param {string | null} [source_format]
|
|
2184
2184
|
*/
|
|
2185
2185
|
constructor(nodes, source_format) {
|
|
@@ -2187,18 +2187,18 @@ export class JsDocumentStructure {
|
|
|
2187
2187
|
const len0 = WASM_VECTOR_LEN;
|
|
2188
2188
|
var ptr1 = isLikeNone(source_format) ? 0 : passStringToWasm0(source_format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2189
2189
|
var len1 = WASM_VECTOR_LEN;
|
|
2190
|
-
const ret = wasm.
|
|
2190
|
+
const ret = wasm.wasmdocumentstructure_new(ptr0, len0, ptr1, len1);
|
|
2191
2191
|
this.__wbg_ptr = ret >>> 0;
|
|
2192
|
-
|
|
2192
|
+
WasmDocumentStructureFinalization.register(this, this.__wbg_ptr, this);
|
|
2193
2193
|
return this;
|
|
2194
2194
|
}
|
|
2195
2195
|
/**
|
|
2196
|
-
* @returns {
|
|
2196
|
+
* @returns {WasmDocumentNode[]}
|
|
2197
2197
|
*/
|
|
2198
2198
|
get nodes() {
|
|
2199
2199
|
try {
|
|
2200
2200
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2201
|
-
wasm.
|
|
2201
|
+
wasm.wasmdocumentstructure_nodes(retptr, this.__wbg_ptr);
|
|
2202
2202
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2203
2203
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2204
2204
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2209,12 +2209,12 @@ export class JsDocumentStructure {
|
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
2211
|
/**
|
|
2212
|
-
* @param {
|
|
2212
|
+
* @param {WasmDocumentNode[]} value
|
|
2213
2213
|
*/
|
|
2214
2214
|
set nodes(value) {
|
|
2215
2215
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2216
2216
|
const len0 = WASM_VECTOR_LEN;
|
|
2217
|
-
wasm.
|
|
2217
|
+
wasm.wasmdocumentstructure_set_nodes(this.__wbg_ptr, ptr0, len0);
|
|
2218
2218
|
}
|
|
2219
2219
|
/**
|
|
2220
2220
|
* @param {string | null} [value]
|
|
@@ -2222,7 +2222,7 @@ export class JsDocumentStructure {
|
|
|
2222
2222
|
set sourceFormat(value) {
|
|
2223
2223
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2224
2224
|
var len0 = WASM_VECTOR_LEN;
|
|
2225
|
-
wasm.
|
|
2225
|
+
wasm.wasmdocumentstructure_set_sourceFormat(this.__wbg_ptr, ptr0, len0);
|
|
2226
2226
|
}
|
|
2227
2227
|
/**
|
|
2228
2228
|
* @returns {string | undefined}
|
|
@@ -2230,7 +2230,7 @@ export class JsDocumentStructure {
|
|
|
2230
2230
|
get sourceFormat() {
|
|
2231
2231
|
try {
|
|
2232
2232
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2233
|
-
wasm.
|
|
2233
|
+
wasm.wasmdocumentstructure_sourceFormat(retptr, this.__wbg_ptr);
|
|
2234
2234
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2235
2235
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2236
2236
|
let v1;
|
|
@@ -2244,18 +2244,18 @@ export class JsDocumentStructure {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
|
-
if (Symbol.dispose)
|
|
2247
|
+
if (Symbol.dispose) WasmDocumentStructure.prototype[Symbol.dispose] = WasmDocumentStructure.prototype.free;
|
|
2248
2248
|
|
|
2249
|
-
export class
|
|
2249
|
+
export class WasmGridCell {
|
|
2250
2250
|
static __wrap(ptr) {
|
|
2251
2251
|
ptr = ptr >>> 0;
|
|
2252
|
-
const obj = Object.create(
|
|
2252
|
+
const obj = Object.create(WasmGridCell.prototype);
|
|
2253
2253
|
obj.__wbg_ptr = ptr;
|
|
2254
|
-
|
|
2254
|
+
WasmGridCellFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2255
2255
|
return obj;
|
|
2256
2256
|
}
|
|
2257
2257
|
static __unwrap(jsValue) {
|
|
2258
|
-
if (!(jsValue instanceof
|
|
2258
|
+
if (!(jsValue instanceof WasmGridCell)) {
|
|
2259
2259
|
return 0;
|
|
2260
2260
|
}
|
|
2261
2261
|
return jsValue.__destroy_into_raw();
|
|
@@ -2263,25 +2263,25 @@ export class JsGridCell {
|
|
|
2263
2263
|
__destroy_into_raw() {
|
|
2264
2264
|
const ptr = this.__wbg_ptr;
|
|
2265
2265
|
this.__wbg_ptr = 0;
|
|
2266
|
-
|
|
2266
|
+
WasmGridCellFinalization.unregister(this);
|
|
2267
2267
|
return ptr;
|
|
2268
2268
|
}
|
|
2269
2269
|
free() {
|
|
2270
2270
|
const ptr = this.__destroy_into_raw();
|
|
2271
|
-
wasm.
|
|
2271
|
+
wasm.__wbg_wasmgridcell_free(ptr, 0);
|
|
2272
2272
|
}
|
|
2273
2273
|
/**
|
|
2274
2274
|
* @returns {number}
|
|
2275
2275
|
*/
|
|
2276
2276
|
get col() {
|
|
2277
|
-
const ret = wasm.
|
|
2277
|
+
const ret = wasm.wasmgridcell_col(this.__wbg_ptr);
|
|
2278
2278
|
return ret >>> 0;
|
|
2279
2279
|
}
|
|
2280
2280
|
/**
|
|
2281
2281
|
* @returns {number}
|
|
2282
2282
|
*/
|
|
2283
2283
|
get colSpan() {
|
|
2284
|
-
const ret = wasm.
|
|
2284
|
+
const ret = wasm.wasmgridcell_colSpan(this.__wbg_ptr);
|
|
2285
2285
|
return ret >>> 0;
|
|
2286
2286
|
}
|
|
2287
2287
|
/**
|
|
@@ -2292,7 +2292,7 @@ export class JsGridCell {
|
|
|
2292
2292
|
let deferred1_1;
|
|
2293
2293
|
try {
|
|
2294
2294
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2295
|
-
wasm.
|
|
2295
|
+
wasm.wasmgridcell_content(retptr, this.__wbg_ptr);
|
|
2296
2296
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2297
2297
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2298
2298
|
deferred1_0 = r0;
|
|
@@ -2307,7 +2307,7 @@ export class JsGridCell {
|
|
|
2307
2307
|
* @returns {boolean}
|
|
2308
2308
|
*/
|
|
2309
2309
|
get isHeader() {
|
|
2310
|
-
const ret = wasm.
|
|
2310
|
+
const ret = wasm.wasmgridcell_isHeader(this.__wbg_ptr);
|
|
2311
2311
|
return ret !== 0;
|
|
2312
2312
|
}
|
|
2313
2313
|
/**
|
|
@@ -2321,36 +2321,36 @@ export class JsGridCell {
|
|
|
2321
2321
|
constructor(content, row, col, row_span, col_span, is_header) {
|
|
2322
2322
|
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2323
2323
|
const len0 = WASM_VECTOR_LEN;
|
|
2324
|
-
const ret = wasm.
|
|
2324
|
+
const ret = wasm.wasmgridcell_new(ptr0, len0, row, col, row_span, col_span, is_header);
|
|
2325
2325
|
this.__wbg_ptr = ret >>> 0;
|
|
2326
|
-
|
|
2326
|
+
WasmGridCellFinalization.register(this, this.__wbg_ptr, this);
|
|
2327
2327
|
return this;
|
|
2328
2328
|
}
|
|
2329
2329
|
/**
|
|
2330
2330
|
* @returns {number}
|
|
2331
2331
|
*/
|
|
2332
2332
|
get row() {
|
|
2333
|
-
const ret = wasm.
|
|
2333
|
+
const ret = wasm.wasmgridcell_row(this.__wbg_ptr);
|
|
2334
2334
|
return ret >>> 0;
|
|
2335
2335
|
}
|
|
2336
2336
|
/**
|
|
2337
2337
|
* @returns {number}
|
|
2338
2338
|
*/
|
|
2339
2339
|
get rowSpan() {
|
|
2340
|
-
const ret = wasm.
|
|
2340
|
+
const ret = wasm.wasmgridcell_rowSpan(this.__wbg_ptr);
|
|
2341
2341
|
return ret >>> 0;
|
|
2342
2342
|
}
|
|
2343
2343
|
/**
|
|
2344
2344
|
* @param {number} value
|
|
2345
2345
|
*/
|
|
2346
2346
|
set col(value) {
|
|
2347
|
-
wasm.
|
|
2347
|
+
wasm.wasmgridcell_set_col(this.__wbg_ptr, value);
|
|
2348
2348
|
}
|
|
2349
2349
|
/**
|
|
2350
2350
|
* @param {number} value
|
|
2351
2351
|
*/
|
|
2352
2352
|
set colSpan(value) {
|
|
2353
|
-
wasm.
|
|
2353
|
+
wasm.wasmgridcell_set_colSpan(this.__wbg_ptr, value);
|
|
2354
2354
|
}
|
|
2355
2355
|
/**
|
|
2356
2356
|
* @param {string} value
|
|
@@ -2358,39 +2358,39 @@ export class JsGridCell {
|
|
|
2358
2358
|
set content(value) {
|
|
2359
2359
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2360
2360
|
const len0 = WASM_VECTOR_LEN;
|
|
2361
|
-
wasm.
|
|
2361
|
+
wasm.wasmgridcell_set_content(this.__wbg_ptr, ptr0, len0);
|
|
2362
2362
|
}
|
|
2363
2363
|
/**
|
|
2364
2364
|
* @param {boolean} value
|
|
2365
2365
|
*/
|
|
2366
2366
|
set isHeader(value) {
|
|
2367
|
-
wasm.
|
|
2367
|
+
wasm.wasmgridcell_set_isHeader(this.__wbg_ptr, value);
|
|
2368
2368
|
}
|
|
2369
2369
|
/**
|
|
2370
2370
|
* @param {number} value
|
|
2371
2371
|
*/
|
|
2372
2372
|
set row(value) {
|
|
2373
|
-
wasm.
|
|
2373
|
+
wasm.wasmgridcell_set_row(this.__wbg_ptr, value);
|
|
2374
2374
|
}
|
|
2375
2375
|
/**
|
|
2376
2376
|
* @param {number} value
|
|
2377
2377
|
*/
|
|
2378
2378
|
set rowSpan(value) {
|
|
2379
|
-
wasm.
|
|
2379
|
+
wasm.wasmgridcell_set_rowSpan(this.__wbg_ptr, value);
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
if (Symbol.dispose)
|
|
2382
|
+
if (Symbol.dispose) WasmGridCell.prototype[Symbol.dispose] = WasmGridCell.prototype.free;
|
|
2383
2383
|
|
|
2384
|
-
export class
|
|
2384
|
+
export class WasmHeaderMetadata {
|
|
2385
2385
|
static __wrap(ptr) {
|
|
2386
2386
|
ptr = ptr >>> 0;
|
|
2387
|
-
const obj = Object.create(
|
|
2387
|
+
const obj = Object.create(WasmHeaderMetadata.prototype);
|
|
2388
2388
|
obj.__wbg_ptr = ptr;
|
|
2389
|
-
|
|
2389
|
+
WasmHeaderMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2390
2390
|
return obj;
|
|
2391
2391
|
}
|
|
2392
2392
|
static __unwrap(jsValue) {
|
|
2393
|
-
if (!(jsValue instanceof
|
|
2393
|
+
if (!(jsValue instanceof WasmHeaderMetadata)) {
|
|
2394
2394
|
return 0;
|
|
2395
2395
|
}
|
|
2396
2396
|
return jsValue.__destroy_into_raw();
|
|
@@ -2398,25 +2398,25 @@ export class JsHeaderMetadata {
|
|
|
2398
2398
|
__destroy_into_raw() {
|
|
2399
2399
|
const ptr = this.__wbg_ptr;
|
|
2400
2400
|
this.__wbg_ptr = 0;
|
|
2401
|
-
|
|
2401
|
+
WasmHeaderMetadataFinalization.unregister(this);
|
|
2402
2402
|
return ptr;
|
|
2403
2403
|
}
|
|
2404
2404
|
free() {
|
|
2405
2405
|
const ptr = this.__destroy_into_raw();
|
|
2406
|
-
wasm.
|
|
2406
|
+
wasm.__wbg_wasmheadermetadata_free(ptr, 0);
|
|
2407
2407
|
}
|
|
2408
2408
|
/**
|
|
2409
2409
|
* @returns {number}
|
|
2410
2410
|
*/
|
|
2411
2411
|
get depth() {
|
|
2412
|
-
const ret = wasm.
|
|
2412
|
+
const ret = wasm.wasmheadermetadata_depth(this.__wbg_ptr);
|
|
2413
2413
|
return ret >>> 0;
|
|
2414
2414
|
}
|
|
2415
2415
|
/**
|
|
2416
2416
|
* @returns {number}
|
|
2417
2417
|
*/
|
|
2418
2418
|
get htmlOffset() {
|
|
2419
|
-
const ret = wasm.
|
|
2419
|
+
const ret = wasm.wasmheadermetadata_htmlOffset(this.__wbg_ptr);
|
|
2420
2420
|
return ret >>> 0;
|
|
2421
2421
|
}
|
|
2422
2422
|
/**
|
|
@@ -2425,7 +2425,7 @@ export class JsHeaderMetadata {
|
|
|
2425
2425
|
get id() {
|
|
2426
2426
|
try {
|
|
2427
2427
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2428
|
-
wasm.
|
|
2428
|
+
wasm.wasmheadermetadata_id(retptr, this.__wbg_ptr);
|
|
2429
2429
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2430
2430
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2431
2431
|
let v1;
|
|
@@ -2442,14 +2442,14 @@ export class JsHeaderMetadata {
|
|
|
2442
2442
|
* @returns {boolean}
|
|
2443
2443
|
*/
|
|
2444
2444
|
isValid() {
|
|
2445
|
-
const ret = wasm.
|
|
2445
|
+
const ret = wasm.wasmheadermetadata_isValid(this.__wbg_ptr);
|
|
2446
2446
|
return ret !== 0;
|
|
2447
2447
|
}
|
|
2448
2448
|
/**
|
|
2449
2449
|
* @returns {number}
|
|
2450
2450
|
*/
|
|
2451
2451
|
get level() {
|
|
2452
|
-
const ret = wasm.
|
|
2452
|
+
const ret = wasm.wasmheadermetadata_level(this.__wbg_ptr);
|
|
2453
2453
|
return ret;
|
|
2454
2454
|
}
|
|
2455
2455
|
/**
|
|
@@ -2464,22 +2464,22 @@ export class JsHeaderMetadata {
|
|
|
2464
2464
|
const len0 = WASM_VECTOR_LEN;
|
|
2465
2465
|
var ptr1 = isLikeNone(id) ? 0 : passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2466
2466
|
var len1 = WASM_VECTOR_LEN;
|
|
2467
|
-
const ret = wasm.
|
|
2467
|
+
const ret = wasm.wasmheadermetadata_new(level, ptr0, len0, depth, html_offset, ptr1, len1);
|
|
2468
2468
|
this.__wbg_ptr = ret >>> 0;
|
|
2469
|
-
|
|
2469
|
+
WasmHeaderMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2470
2470
|
return this;
|
|
2471
2471
|
}
|
|
2472
2472
|
/**
|
|
2473
2473
|
* @param {number} value
|
|
2474
2474
|
*/
|
|
2475
2475
|
set depth(value) {
|
|
2476
|
-
wasm.
|
|
2476
|
+
wasm.wasmheadermetadata_set_depth(this.__wbg_ptr, value);
|
|
2477
2477
|
}
|
|
2478
2478
|
/**
|
|
2479
2479
|
* @param {number} value
|
|
2480
2480
|
*/
|
|
2481
2481
|
set htmlOffset(value) {
|
|
2482
|
-
wasm.
|
|
2482
|
+
wasm.wasmheadermetadata_set_htmlOffset(this.__wbg_ptr, value);
|
|
2483
2483
|
}
|
|
2484
2484
|
/**
|
|
2485
2485
|
* @param {string | null} [value]
|
|
@@ -2487,13 +2487,13 @@ export class JsHeaderMetadata {
|
|
|
2487
2487
|
set id(value) {
|
|
2488
2488
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2489
2489
|
var len0 = WASM_VECTOR_LEN;
|
|
2490
|
-
wasm.
|
|
2490
|
+
wasm.wasmheadermetadata_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2491
2491
|
}
|
|
2492
2492
|
/**
|
|
2493
2493
|
* @param {number} value
|
|
2494
2494
|
*/
|
|
2495
2495
|
set level(value) {
|
|
2496
|
-
wasm.
|
|
2496
|
+
wasm.wasmheadermetadata_set_level(this.__wbg_ptr, value);
|
|
2497
2497
|
}
|
|
2498
2498
|
/**
|
|
2499
2499
|
* @param {string} value
|
|
@@ -2501,7 +2501,7 @@ export class JsHeaderMetadata {
|
|
|
2501
2501
|
set text(value) {
|
|
2502
2502
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2503
2503
|
const len0 = WASM_VECTOR_LEN;
|
|
2504
|
-
wasm.
|
|
2504
|
+
wasm.wasmheadermetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
2505
2505
|
}
|
|
2506
2506
|
/**
|
|
2507
2507
|
* @returns {string}
|
|
@@ -2511,7 +2511,7 @@ export class JsHeaderMetadata {
|
|
|
2511
2511
|
let deferred1_1;
|
|
2512
2512
|
try {
|
|
2513
2513
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2514
|
-
wasm.
|
|
2514
|
+
wasm.wasmheadermetadata_text(retptr, this.__wbg_ptr);
|
|
2515
2515
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2516
2516
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2517
2517
|
deferred1_0 = r0;
|
|
@@ -2523,12 +2523,12 @@ export class JsHeaderMetadata {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
|
-
if (Symbol.dispose)
|
|
2526
|
+
if (Symbol.dispose) WasmHeaderMetadata.prototype[Symbol.dispose] = WasmHeaderMetadata.prototype.free;
|
|
2527
2527
|
|
|
2528
2528
|
/**
|
|
2529
2529
|
* @enum {0 | 1 | 2}
|
|
2530
2530
|
*/
|
|
2531
|
-
export const
|
|
2531
|
+
export const WasmHeadingStyle = Object.freeze({
|
|
2532
2532
|
Underlined: 0, "0": "Underlined",
|
|
2533
2533
|
Atx: 1, "1": "Atx",
|
|
2534
2534
|
AtxClosed: 2, "2": "AtxClosed",
|
|
@@ -2537,45 +2537,45 @@ export const JsHeadingStyle = Object.freeze({
|
|
|
2537
2537
|
/**
|
|
2538
2538
|
* @enum {0 | 1 | 2 | 3}
|
|
2539
2539
|
*/
|
|
2540
|
-
export const
|
|
2540
|
+
export const WasmHighlightStyle = Object.freeze({
|
|
2541
2541
|
DoubleEqual: 0, "0": "DoubleEqual",
|
|
2542
2542
|
Html: 1, "1": "Html",
|
|
2543
2543
|
Bold: 2, "2": "Bold",
|
|
2544
2544
|
None: 3, "3": "None",
|
|
2545
2545
|
});
|
|
2546
2546
|
|
|
2547
|
-
export class
|
|
2547
|
+
export class WasmHtmlMetadata {
|
|
2548
2548
|
static __wrap(ptr) {
|
|
2549
2549
|
ptr = ptr >>> 0;
|
|
2550
|
-
const obj = Object.create(
|
|
2550
|
+
const obj = Object.create(WasmHtmlMetadata.prototype);
|
|
2551
2551
|
obj.__wbg_ptr = ptr;
|
|
2552
|
-
|
|
2552
|
+
WasmHtmlMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2553
2553
|
return obj;
|
|
2554
2554
|
}
|
|
2555
2555
|
__destroy_into_raw() {
|
|
2556
2556
|
const ptr = this.__wbg_ptr;
|
|
2557
2557
|
this.__wbg_ptr = 0;
|
|
2558
|
-
|
|
2558
|
+
WasmHtmlMetadataFinalization.unregister(this);
|
|
2559
2559
|
return ptr;
|
|
2560
2560
|
}
|
|
2561
2561
|
free() {
|
|
2562
2562
|
const ptr = this.__destroy_into_raw();
|
|
2563
|
-
wasm.
|
|
2563
|
+
wasm.__wbg_wasmhtmlmetadata_free(ptr, 0);
|
|
2564
2564
|
}
|
|
2565
2565
|
/**
|
|
2566
|
-
* @returns {
|
|
2566
|
+
* @returns {WasmDocumentMetadata}
|
|
2567
2567
|
*/
|
|
2568
2568
|
get document() {
|
|
2569
|
-
const ret = wasm.
|
|
2570
|
-
return
|
|
2569
|
+
const ret = wasm.wasmhtmlmetadata_document(this.__wbg_ptr);
|
|
2570
|
+
return WasmDocumentMetadata.__wrap(ret);
|
|
2571
2571
|
}
|
|
2572
2572
|
/**
|
|
2573
|
-
* @returns {
|
|
2573
|
+
* @returns {WasmHeaderMetadata[]}
|
|
2574
2574
|
*/
|
|
2575
2575
|
get headers() {
|
|
2576
2576
|
try {
|
|
2577
2577
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2578
|
-
wasm.
|
|
2578
|
+
wasm.wasmhtmlmetadata_headers(retptr, this.__wbg_ptr);
|
|
2579
2579
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2580
2580
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2581
2581
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2586,12 +2586,12 @@ export class JsHtmlMetadata {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
2588
|
/**
|
|
2589
|
-
* @returns {
|
|
2589
|
+
* @returns {WasmImageMetadata[]}
|
|
2590
2590
|
*/
|
|
2591
2591
|
get images() {
|
|
2592
2592
|
try {
|
|
2593
2593
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2594
|
-
wasm.
|
|
2594
|
+
wasm.wasmhtmlmetadata_images(retptr, this.__wbg_ptr);
|
|
2595
2595
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2596
2596
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2597
2597
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2602,12 +2602,12 @@ export class JsHtmlMetadata {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
2604
|
/**
|
|
2605
|
-
* @returns {
|
|
2605
|
+
* @returns {WasmLinkMetadata[]}
|
|
2606
2606
|
*/
|
|
2607
2607
|
get links() {
|
|
2608
2608
|
try {
|
|
2609
2609
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2610
|
-
wasm.
|
|
2610
|
+
wasm.wasmhtmlmetadata_links(retptr, this.__wbg_ptr);
|
|
2611
2611
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2612
2612
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2613
2613
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2618,16 +2618,16 @@ export class JsHtmlMetadata {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
/**
|
|
2621
|
-
* @param {
|
|
2622
|
-
* @param {
|
|
2623
|
-
* @param {
|
|
2624
|
-
* @param {
|
|
2625
|
-
* @param {
|
|
2621
|
+
* @param {WasmDocumentMetadata | null} [document]
|
|
2622
|
+
* @param {WasmHeaderMetadata[] | null} [headers]
|
|
2623
|
+
* @param {WasmLinkMetadata[] | null} [links]
|
|
2624
|
+
* @param {WasmImageMetadata[] | null} [images]
|
|
2625
|
+
* @param {WasmStructuredData[] | null} [structured_data]
|
|
2626
2626
|
*/
|
|
2627
2627
|
constructor(document, headers, links, images, structured_data) {
|
|
2628
2628
|
let ptr0 = 0;
|
|
2629
2629
|
if (!isLikeNone(document)) {
|
|
2630
|
-
_assertClass(document,
|
|
2630
|
+
_assertClass(document, WasmDocumentMetadata);
|
|
2631
2631
|
ptr0 = document.__destroy_into_raw();
|
|
2632
2632
|
}
|
|
2633
2633
|
var ptr1 = isLikeNone(headers) ? 0 : passArrayJsValueToWasm0(headers, wasm.__wbindgen_export);
|
|
@@ -2638,58 +2638,58 @@ export class JsHtmlMetadata {
|
|
|
2638
2638
|
var len3 = WASM_VECTOR_LEN;
|
|
2639
2639
|
var ptr4 = isLikeNone(structured_data) ? 0 : passArrayJsValueToWasm0(structured_data, wasm.__wbindgen_export);
|
|
2640
2640
|
var len4 = WASM_VECTOR_LEN;
|
|
2641
|
-
const ret = wasm.
|
|
2641
|
+
const ret = wasm.wasmhtmlmetadata_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
2642
2642
|
this.__wbg_ptr = ret >>> 0;
|
|
2643
|
-
|
|
2643
|
+
WasmHtmlMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2644
2644
|
return this;
|
|
2645
2645
|
}
|
|
2646
2646
|
/**
|
|
2647
|
-
* @param {
|
|
2647
|
+
* @param {WasmDocumentMetadata} value
|
|
2648
2648
|
*/
|
|
2649
2649
|
set document(value) {
|
|
2650
|
-
_assertClass(value,
|
|
2650
|
+
_assertClass(value, WasmDocumentMetadata);
|
|
2651
2651
|
var ptr0 = value.__destroy_into_raw();
|
|
2652
|
-
wasm.
|
|
2652
|
+
wasm.wasmhtmlmetadata_set_document(this.__wbg_ptr, ptr0);
|
|
2653
2653
|
}
|
|
2654
2654
|
/**
|
|
2655
|
-
* @param {
|
|
2655
|
+
* @param {WasmHeaderMetadata[]} value
|
|
2656
2656
|
*/
|
|
2657
2657
|
set headers(value) {
|
|
2658
2658
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2659
2659
|
const len0 = WASM_VECTOR_LEN;
|
|
2660
|
-
wasm.
|
|
2660
|
+
wasm.wasmhtmlmetadata_set_headers(this.__wbg_ptr, ptr0, len0);
|
|
2661
2661
|
}
|
|
2662
2662
|
/**
|
|
2663
|
-
* @param {
|
|
2663
|
+
* @param {WasmImageMetadata[]} value
|
|
2664
2664
|
*/
|
|
2665
2665
|
set images(value) {
|
|
2666
2666
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2667
2667
|
const len0 = WASM_VECTOR_LEN;
|
|
2668
|
-
wasm.
|
|
2668
|
+
wasm.wasmhtmlmetadata_set_images(this.__wbg_ptr, ptr0, len0);
|
|
2669
2669
|
}
|
|
2670
2670
|
/**
|
|
2671
|
-
* @param {
|
|
2671
|
+
* @param {WasmLinkMetadata[]} value
|
|
2672
2672
|
*/
|
|
2673
2673
|
set links(value) {
|
|
2674
2674
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2675
2675
|
const len0 = WASM_VECTOR_LEN;
|
|
2676
|
-
wasm.
|
|
2676
|
+
wasm.wasmhtmlmetadata_set_links(this.__wbg_ptr, ptr0, len0);
|
|
2677
2677
|
}
|
|
2678
2678
|
/**
|
|
2679
|
-
* @param {
|
|
2679
|
+
* @param {WasmStructuredData[]} value
|
|
2680
2680
|
*/
|
|
2681
2681
|
set structuredData(value) {
|
|
2682
2682
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2683
2683
|
const len0 = WASM_VECTOR_LEN;
|
|
2684
|
-
wasm.
|
|
2684
|
+
wasm.wasmhtmlmetadata_set_structuredData(this.__wbg_ptr, ptr0, len0);
|
|
2685
2685
|
}
|
|
2686
2686
|
/**
|
|
2687
|
-
* @returns {
|
|
2687
|
+
* @returns {WasmStructuredData[]}
|
|
2688
2688
|
*/
|
|
2689
2689
|
get structuredData() {
|
|
2690
2690
|
try {
|
|
2691
2691
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2692
|
-
wasm.
|
|
2692
|
+
wasm.wasmhtmlmetadata_structuredData(retptr, this.__wbg_ptr);
|
|
2693
2693
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2694
2694
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2695
2695
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -2700,18 +2700,18 @@ export class JsHtmlMetadata {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
}
|
|
2703
|
-
if (Symbol.dispose)
|
|
2703
|
+
if (Symbol.dispose) WasmHtmlMetadata.prototype[Symbol.dispose] = WasmHtmlMetadata.prototype.free;
|
|
2704
2704
|
|
|
2705
|
-
export class
|
|
2705
|
+
export class WasmImageMetadata {
|
|
2706
2706
|
static __wrap(ptr) {
|
|
2707
2707
|
ptr = ptr >>> 0;
|
|
2708
|
-
const obj = Object.create(
|
|
2708
|
+
const obj = Object.create(WasmImageMetadata.prototype);
|
|
2709
2709
|
obj.__wbg_ptr = ptr;
|
|
2710
|
-
|
|
2710
|
+
WasmImageMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2711
2711
|
return obj;
|
|
2712
2712
|
}
|
|
2713
2713
|
static __unwrap(jsValue) {
|
|
2714
|
-
if (!(jsValue instanceof
|
|
2714
|
+
if (!(jsValue instanceof WasmImageMetadata)) {
|
|
2715
2715
|
return 0;
|
|
2716
2716
|
}
|
|
2717
2717
|
return jsValue.__destroy_into_raw();
|
|
@@ -2719,12 +2719,12 @@ export class JsImageMetadata {
|
|
|
2719
2719
|
__destroy_into_raw() {
|
|
2720
2720
|
const ptr = this.__wbg_ptr;
|
|
2721
2721
|
this.__wbg_ptr = 0;
|
|
2722
|
-
|
|
2722
|
+
WasmImageMetadataFinalization.unregister(this);
|
|
2723
2723
|
return ptr;
|
|
2724
2724
|
}
|
|
2725
2725
|
free() {
|
|
2726
2726
|
const ptr = this.__destroy_into_raw();
|
|
2727
|
-
wasm.
|
|
2727
|
+
wasm.__wbg_wasmimagemetadata_free(ptr, 0);
|
|
2728
2728
|
}
|
|
2729
2729
|
/**
|
|
2730
2730
|
* @returns {string | undefined}
|
|
@@ -2732,7 +2732,7 @@ export class JsImageMetadata {
|
|
|
2732
2732
|
get alt() {
|
|
2733
2733
|
try {
|
|
2734
2734
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2735
|
-
wasm.
|
|
2735
|
+
wasm.wasmimagemetadata_alt(retptr, this.__wbg_ptr);
|
|
2736
2736
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2737
2737
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2738
2738
|
let v1;
|
|
@@ -2749,7 +2749,7 @@ export class JsImageMetadata {
|
|
|
2749
2749
|
* @returns {WasmConversionResult}
|
|
2750
2750
|
*/
|
|
2751
2751
|
get attributes() {
|
|
2752
|
-
const ret = wasm.
|
|
2752
|
+
const ret = wasm.wasmimagemetadata_attributes(this.__wbg_ptr);
|
|
2753
2753
|
return takeObject(ret);
|
|
2754
2754
|
}
|
|
2755
2755
|
/**
|
|
@@ -2758,7 +2758,7 @@ export class JsImageMetadata {
|
|
|
2758
2758
|
get dimensions() {
|
|
2759
2759
|
try {
|
|
2760
2760
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2761
|
-
wasm.
|
|
2761
|
+
wasm.wasmimagemetadata_dimensions(retptr, this.__wbg_ptr);
|
|
2762
2762
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2763
2763
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2764
2764
|
let v1;
|
|
@@ -2772,15 +2772,15 @@ export class JsImageMetadata {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
}
|
|
2774
2774
|
/**
|
|
2775
|
-
* @returns {
|
|
2775
|
+
* @returns {WasmImageType}
|
|
2776
2776
|
*/
|
|
2777
2777
|
get imageType() {
|
|
2778
|
-
const ret = wasm.
|
|
2778
|
+
const ret = wasm.wasmimagemetadata_imageType(this.__wbg_ptr);
|
|
2779
2779
|
return ret;
|
|
2780
2780
|
}
|
|
2781
2781
|
/**
|
|
2782
2782
|
* @param {string} src
|
|
2783
|
-
* @param {
|
|
2783
|
+
* @param {WasmImageType} image_type
|
|
2784
2784
|
* @param {any} attributes
|
|
2785
2785
|
* @param {string | null} [alt]
|
|
2786
2786
|
* @param {string | null} [title]
|
|
@@ -2795,9 +2795,9 @@ export class JsImageMetadata {
|
|
|
2795
2795
|
var len2 = WASM_VECTOR_LEN;
|
|
2796
2796
|
var ptr3 = isLikeNone(dimensions) ? 0 : passStringToWasm0(dimensions, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2797
2797
|
var len3 = WASM_VECTOR_LEN;
|
|
2798
|
-
const ret = wasm.
|
|
2798
|
+
const ret = wasm.wasmimagemetadata_new(ptr0, len0, image_type, addHeapObject(attributes), ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2799
2799
|
this.__wbg_ptr = ret >>> 0;
|
|
2800
|
-
|
|
2800
|
+
WasmImageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2801
2801
|
return this;
|
|
2802
2802
|
}
|
|
2803
2803
|
/**
|
|
@@ -2806,13 +2806,13 @@ export class JsImageMetadata {
|
|
|
2806
2806
|
set alt(value) {
|
|
2807
2807
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2808
2808
|
var len0 = WASM_VECTOR_LEN;
|
|
2809
|
-
wasm.
|
|
2809
|
+
wasm.wasmimagemetadata_set_alt(this.__wbg_ptr, ptr0, len0);
|
|
2810
2810
|
}
|
|
2811
2811
|
/**
|
|
2812
2812
|
* @param {any} value
|
|
2813
2813
|
*/
|
|
2814
2814
|
set attributes(value) {
|
|
2815
|
-
wasm.
|
|
2815
|
+
wasm.wasmimagemetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
2816
2816
|
}
|
|
2817
2817
|
/**
|
|
2818
2818
|
* @param {string | null} [value]
|
|
@@ -2820,13 +2820,13 @@ export class JsImageMetadata {
|
|
|
2820
2820
|
set dimensions(value) {
|
|
2821
2821
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2822
2822
|
var len0 = WASM_VECTOR_LEN;
|
|
2823
|
-
wasm.
|
|
2823
|
+
wasm.wasmimagemetadata_set_dimensions(this.__wbg_ptr, ptr0, len0);
|
|
2824
2824
|
}
|
|
2825
2825
|
/**
|
|
2826
|
-
* @param {
|
|
2826
|
+
* @param {WasmImageType} value
|
|
2827
2827
|
*/
|
|
2828
2828
|
set imageType(value) {
|
|
2829
|
-
wasm.
|
|
2829
|
+
wasm.wasmimagemetadata_set_imageType(this.__wbg_ptr, value);
|
|
2830
2830
|
}
|
|
2831
2831
|
/**
|
|
2832
2832
|
* @param {string} value
|
|
@@ -2834,7 +2834,7 @@ export class JsImageMetadata {
|
|
|
2834
2834
|
set src(value) {
|
|
2835
2835
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2836
2836
|
const len0 = WASM_VECTOR_LEN;
|
|
2837
|
-
wasm.
|
|
2837
|
+
wasm.wasmimagemetadata_set_src(this.__wbg_ptr, ptr0, len0);
|
|
2838
2838
|
}
|
|
2839
2839
|
/**
|
|
2840
2840
|
* @param {string | null} [value]
|
|
@@ -2842,7 +2842,7 @@ export class JsImageMetadata {
|
|
|
2842
2842
|
set title(value) {
|
|
2843
2843
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2844
2844
|
var len0 = WASM_VECTOR_LEN;
|
|
2845
|
-
wasm.
|
|
2845
|
+
wasm.wasmimagemetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
2846
2846
|
}
|
|
2847
2847
|
/**
|
|
2848
2848
|
* @returns {string}
|
|
@@ -2852,7 +2852,7 @@ export class JsImageMetadata {
|
|
|
2852
2852
|
let deferred1_1;
|
|
2853
2853
|
try {
|
|
2854
2854
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2855
|
-
wasm.
|
|
2855
|
+
wasm.wasmimagemetadata_src(retptr, this.__wbg_ptr);
|
|
2856
2856
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2857
2857
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2858
2858
|
deferred1_0 = r0;
|
|
@@ -2869,7 +2869,7 @@ export class JsImageMetadata {
|
|
|
2869
2869
|
get title() {
|
|
2870
2870
|
try {
|
|
2871
2871
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2872
|
-
wasm.
|
|
2872
|
+
wasm.wasmimagemetadata_title(retptr, this.__wbg_ptr);
|
|
2873
2873
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2874
2874
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2875
2875
|
let v1;
|
|
@@ -2883,28 +2883,28 @@ export class JsImageMetadata {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
|
-
if (Symbol.dispose)
|
|
2886
|
+
if (Symbol.dispose) WasmImageMetadata.prototype[Symbol.dispose] = WasmImageMetadata.prototype.free;
|
|
2887
2887
|
|
|
2888
2888
|
/**
|
|
2889
2889
|
* @enum {0 | 1 | 2 | 3}
|
|
2890
2890
|
*/
|
|
2891
|
-
export const
|
|
2891
|
+
export const WasmImageType = Object.freeze({
|
|
2892
2892
|
DataUri: 0, "0": "DataUri",
|
|
2893
2893
|
InlineSvg: 1, "1": "InlineSvg",
|
|
2894
2894
|
External: 2, "2": "External",
|
|
2895
2895
|
Relative: 3, "3": "Relative",
|
|
2896
2896
|
});
|
|
2897
2897
|
|
|
2898
|
-
export class
|
|
2898
|
+
export class WasmLinkMetadata {
|
|
2899
2899
|
static __wrap(ptr) {
|
|
2900
2900
|
ptr = ptr >>> 0;
|
|
2901
|
-
const obj = Object.create(
|
|
2901
|
+
const obj = Object.create(WasmLinkMetadata.prototype);
|
|
2902
2902
|
obj.__wbg_ptr = ptr;
|
|
2903
|
-
|
|
2903
|
+
WasmLinkMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2904
2904
|
return obj;
|
|
2905
2905
|
}
|
|
2906
2906
|
static __unwrap(jsValue) {
|
|
2907
|
-
if (!(jsValue instanceof
|
|
2907
|
+
if (!(jsValue instanceof WasmLinkMetadata)) {
|
|
2908
2908
|
return 0;
|
|
2909
2909
|
}
|
|
2910
2910
|
return jsValue.__destroy_into_raw();
|
|
@@ -2912,28 +2912,28 @@ export class JsLinkMetadata {
|
|
|
2912
2912
|
__destroy_into_raw() {
|
|
2913
2913
|
const ptr = this.__wbg_ptr;
|
|
2914
2914
|
this.__wbg_ptr = 0;
|
|
2915
|
-
|
|
2915
|
+
WasmLinkMetadataFinalization.unregister(this);
|
|
2916
2916
|
return ptr;
|
|
2917
2917
|
}
|
|
2918
2918
|
free() {
|
|
2919
2919
|
const ptr = this.__destroy_into_raw();
|
|
2920
|
-
wasm.
|
|
2920
|
+
wasm.__wbg_wasmlinkmetadata_free(ptr, 0);
|
|
2921
2921
|
}
|
|
2922
2922
|
/**
|
|
2923
2923
|
* @returns {WasmConversionResult}
|
|
2924
2924
|
*/
|
|
2925
2925
|
get attributes() {
|
|
2926
|
-
const ret = wasm.
|
|
2926
|
+
const ret = wasm.wasmlinkmetadata_attributes(this.__wbg_ptr);
|
|
2927
2927
|
return takeObject(ret);
|
|
2928
2928
|
}
|
|
2929
2929
|
/**
|
|
2930
2930
|
* @param {string} href
|
|
2931
|
-
* @returns {
|
|
2931
|
+
* @returns {WasmLinkType}
|
|
2932
2932
|
*/
|
|
2933
2933
|
static classifyLink(href) {
|
|
2934
2934
|
const ptr0 = passStringToWasm0(href, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2935
2935
|
const len0 = WASM_VECTOR_LEN;
|
|
2936
|
-
const ret = wasm.
|
|
2936
|
+
const ret = wasm.wasmlinkmetadata_classifyLink(ptr0, len0);
|
|
2937
2937
|
return ret;
|
|
2938
2938
|
}
|
|
2939
2939
|
/**
|
|
@@ -2944,7 +2944,7 @@ export class JsLinkMetadata {
|
|
|
2944
2944
|
let deferred1_1;
|
|
2945
2945
|
try {
|
|
2946
2946
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2947
|
-
wasm.
|
|
2947
|
+
wasm.wasmlinkmetadata_href(retptr, this.__wbg_ptr);
|
|
2948
2948
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2949
2949
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2950
2950
|
deferred1_0 = r0;
|
|
@@ -2956,16 +2956,16 @@ export class JsLinkMetadata {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
}
|
|
2958
2958
|
/**
|
|
2959
|
-
* @returns {
|
|
2959
|
+
* @returns {WasmLinkType}
|
|
2960
2960
|
*/
|
|
2961
2961
|
get linkType() {
|
|
2962
|
-
const ret = wasm.
|
|
2962
|
+
const ret = wasm.wasmlinkmetadata_linkType(this.__wbg_ptr);
|
|
2963
2963
|
return ret;
|
|
2964
2964
|
}
|
|
2965
2965
|
/**
|
|
2966
2966
|
* @param {string} href
|
|
2967
2967
|
* @param {string} text
|
|
2968
|
-
* @param {
|
|
2968
|
+
* @param {WasmLinkType} link_type
|
|
2969
2969
|
* @param {string[]} rel
|
|
2970
2970
|
* @param {any} attributes
|
|
2971
2971
|
* @param {string | null} [title]
|
|
@@ -2979,9 +2979,9 @@ export class JsLinkMetadata {
|
|
|
2979
2979
|
const len2 = WASM_VECTOR_LEN;
|
|
2980
2980
|
var ptr3 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2981
2981
|
var len3 = WASM_VECTOR_LEN;
|
|
2982
|
-
const ret = wasm.
|
|
2982
|
+
const ret = wasm.wasmlinkmetadata_new(ptr0, len0, ptr1, len1, link_type, ptr2, len2, addHeapObject(attributes), ptr3, len3);
|
|
2983
2983
|
this.__wbg_ptr = ret >>> 0;
|
|
2984
|
-
|
|
2984
|
+
WasmLinkMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2985
2985
|
return this;
|
|
2986
2986
|
}
|
|
2987
2987
|
/**
|
|
@@ -2990,7 +2990,7 @@ export class JsLinkMetadata {
|
|
|
2990
2990
|
get rel() {
|
|
2991
2991
|
try {
|
|
2992
2992
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2993
|
-
wasm.
|
|
2993
|
+
wasm.wasmlinkmetadata_rel(retptr, this.__wbg_ptr);
|
|
2994
2994
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2995
2995
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2996
2996
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -3004,7 +3004,7 @@ export class JsLinkMetadata {
|
|
|
3004
3004
|
* @param {any} value
|
|
3005
3005
|
*/
|
|
3006
3006
|
set attributes(value) {
|
|
3007
|
-
wasm.
|
|
3007
|
+
wasm.wasmlinkmetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
3008
3008
|
}
|
|
3009
3009
|
/**
|
|
3010
3010
|
* @param {string} value
|
|
@@ -3012,13 +3012,13 @@ export class JsLinkMetadata {
|
|
|
3012
3012
|
set href(value) {
|
|
3013
3013
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3014
3014
|
const len0 = WASM_VECTOR_LEN;
|
|
3015
|
-
wasm.
|
|
3015
|
+
wasm.wasmlinkmetadata_set_href(this.__wbg_ptr, ptr0, len0);
|
|
3016
3016
|
}
|
|
3017
3017
|
/**
|
|
3018
|
-
* @param {
|
|
3018
|
+
* @param {WasmLinkType} value
|
|
3019
3019
|
*/
|
|
3020
3020
|
set linkType(value) {
|
|
3021
|
-
wasm.
|
|
3021
|
+
wasm.wasmlinkmetadata_set_linkType(this.__wbg_ptr, value);
|
|
3022
3022
|
}
|
|
3023
3023
|
/**
|
|
3024
3024
|
* @param {string[]} value
|
|
@@ -3026,7 +3026,7 @@ export class JsLinkMetadata {
|
|
|
3026
3026
|
set rel(value) {
|
|
3027
3027
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3028
3028
|
const len0 = WASM_VECTOR_LEN;
|
|
3029
|
-
wasm.
|
|
3029
|
+
wasm.wasmlinkmetadata_set_rel(this.__wbg_ptr, ptr0, len0);
|
|
3030
3030
|
}
|
|
3031
3031
|
/**
|
|
3032
3032
|
* @param {string} value
|
|
@@ -3034,7 +3034,7 @@ export class JsLinkMetadata {
|
|
|
3034
3034
|
set text(value) {
|
|
3035
3035
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3036
3036
|
const len0 = WASM_VECTOR_LEN;
|
|
3037
|
-
wasm.
|
|
3037
|
+
wasm.wasmlinkmetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
3038
3038
|
}
|
|
3039
3039
|
/**
|
|
3040
3040
|
* @param {string | null} [value]
|
|
@@ -3042,7 +3042,7 @@ export class JsLinkMetadata {
|
|
|
3042
3042
|
set title(value) {
|
|
3043
3043
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3044
3044
|
var len0 = WASM_VECTOR_LEN;
|
|
3045
|
-
wasm.
|
|
3045
|
+
wasm.wasmlinkmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
3046
3046
|
}
|
|
3047
3047
|
/**
|
|
3048
3048
|
* @returns {string}
|
|
@@ -3052,7 +3052,7 @@ export class JsLinkMetadata {
|
|
|
3052
3052
|
let deferred1_1;
|
|
3053
3053
|
try {
|
|
3054
3054
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3055
|
-
wasm.
|
|
3055
|
+
wasm.wasmlinkmetadata_text(retptr, this.__wbg_ptr);
|
|
3056
3056
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3057
3057
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3058
3058
|
deferred1_0 = r0;
|
|
@@ -3069,7 +3069,7 @@ export class JsLinkMetadata {
|
|
|
3069
3069
|
get title() {
|
|
3070
3070
|
try {
|
|
3071
3071
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3072
|
-
wasm.
|
|
3072
|
+
wasm.wasmlinkmetadata_title(retptr, this.__wbg_ptr);
|
|
3073
3073
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3074
3074
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3075
3075
|
let v1;
|
|
@@ -3083,12 +3083,12 @@ export class JsLinkMetadata {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
if (Symbol.dispose)
|
|
3086
|
+
if (Symbol.dispose) WasmLinkMetadata.prototype[Symbol.dispose] = WasmLinkMetadata.prototype.free;
|
|
3087
3087
|
|
|
3088
3088
|
/**
|
|
3089
3089
|
* @enum {0 | 1}
|
|
3090
3090
|
*/
|
|
3091
|
-
export const
|
|
3091
|
+
export const WasmLinkStyle = Object.freeze({
|
|
3092
3092
|
Inline: 0, "0": "Inline",
|
|
3093
3093
|
Reference: 1, "1": "Reference",
|
|
3094
3094
|
});
|
|
@@ -3096,7 +3096,7 @@ export const JsLinkStyle = Object.freeze({
|
|
|
3096
3096
|
/**
|
|
3097
3097
|
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
3098
3098
|
*/
|
|
3099
|
-
export const
|
|
3099
|
+
export const WasmLinkType = Object.freeze({
|
|
3100
3100
|
Anchor: 0, "0": "Anchor",
|
|
3101
3101
|
Internal: 1, "1": "Internal",
|
|
3102
3102
|
External: 2, "2": "External",
|
|
@@ -3108,83 +3108,83 @@ export const JsLinkType = Object.freeze({
|
|
|
3108
3108
|
/**
|
|
3109
3109
|
* @enum {0 | 1}
|
|
3110
3110
|
*/
|
|
3111
|
-
export const
|
|
3111
|
+
export const WasmListIndentType = Object.freeze({
|
|
3112
3112
|
Spaces: 0, "0": "Spaces",
|
|
3113
3113
|
Tabs: 1, "1": "Tabs",
|
|
3114
3114
|
});
|
|
3115
3115
|
|
|
3116
|
-
export class
|
|
3116
|
+
export class WasmMetadataConfig {
|
|
3117
3117
|
static __wrap(ptr) {
|
|
3118
3118
|
ptr = ptr >>> 0;
|
|
3119
|
-
const obj = Object.create(
|
|
3119
|
+
const obj = Object.create(WasmMetadataConfig.prototype);
|
|
3120
3120
|
obj.__wbg_ptr = ptr;
|
|
3121
|
-
|
|
3121
|
+
WasmMetadataConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3122
3122
|
return obj;
|
|
3123
3123
|
}
|
|
3124
3124
|
__destroy_into_raw() {
|
|
3125
3125
|
const ptr = this.__wbg_ptr;
|
|
3126
3126
|
this.__wbg_ptr = 0;
|
|
3127
|
-
|
|
3127
|
+
WasmMetadataConfigFinalization.unregister(this);
|
|
3128
3128
|
return ptr;
|
|
3129
3129
|
}
|
|
3130
3130
|
free() {
|
|
3131
3131
|
const ptr = this.__destroy_into_raw();
|
|
3132
|
-
wasm.
|
|
3132
|
+
wasm.__wbg_wasmmetadataconfig_free(ptr, 0);
|
|
3133
3133
|
}
|
|
3134
3134
|
/**
|
|
3135
3135
|
* @returns {boolean}
|
|
3136
3136
|
*/
|
|
3137
3137
|
anyEnabled() {
|
|
3138
|
-
const ret = wasm.
|
|
3138
|
+
const ret = wasm.wasmmetadataconfig_anyEnabled(this.__wbg_ptr);
|
|
3139
3139
|
return ret !== 0;
|
|
3140
3140
|
}
|
|
3141
3141
|
/**
|
|
3142
|
-
* @returns {
|
|
3142
|
+
* @returns {WasmMetadataConfig}
|
|
3143
3143
|
*/
|
|
3144
3144
|
static default() {
|
|
3145
|
-
const ret = wasm.
|
|
3146
|
-
return
|
|
3145
|
+
const ret = wasm.wasmmetadataconfig_default();
|
|
3146
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3147
3147
|
}
|
|
3148
3148
|
/**
|
|
3149
3149
|
* @returns {boolean}
|
|
3150
3150
|
*/
|
|
3151
3151
|
get extractDocument() {
|
|
3152
|
-
const ret = wasm.
|
|
3152
|
+
const ret = wasm.wasmmetadataconfig_extractDocument(this.__wbg_ptr);
|
|
3153
3153
|
return ret !== 0;
|
|
3154
3154
|
}
|
|
3155
3155
|
/**
|
|
3156
3156
|
* @returns {boolean}
|
|
3157
3157
|
*/
|
|
3158
3158
|
get extractHeaders() {
|
|
3159
|
-
const ret = wasm.
|
|
3159
|
+
const ret = wasm.wasmmetadataconfig_extractHeaders(this.__wbg_ptr);
|
|
3160
3160
|
return ret !== 0;
|
|
3161
3161
|
}
|
|
3162
3162
|
/**
|
|
3163
3163
|
* @returns {boolean}
|
|
3164
3164
|
*/
|
|
3165
3165
|
get extractImages() {
|
|
3166
|
-
const ret = wasm.
|
|
3166
|
+
const ret = wasm.wasmmetadataconfig_extractImages(this.__wbg_ptr);
|
|
3167
3167
|
return ret !== 0;
|
|
3168
3168
|
}
|
|
3169
3169
|
/**
|
|
3170
3170
|
* @returns {boolean}
|
|
3171
3171
|
*/
|
|
3172
3172
|
get extractLinks() {
|
|
3173
|
-
const ret = wasm.
|
|
3173
|
+
const ret = wasm.wasmmetadataconfig_extractLinks(this.__wbg_ptr);
|
|
3174
3174
|
return ret !== 0;
|
|
3175
3175
|
}
|
|
3176
3176
|
/**
|
|
3177
3177
|
* @returns {boolean}
|
|
3178
3178
|
*/
|
|
3179
3179
|
get extractStructuredData() {
|
|
3180
|
-
const ret = wasm.
|
|
3180
|
+
const ret = wasm.wasmmetadataconfig_extractStructuredData(this.__wbg_ptr);
|
|
3181
3181
|
return ret !== 0;
|
|
3182
3182
|
}
|
|
3183
3183
|
/**
|
|
3184
3184
|
* @returns {number}
|
|
3185
3185
|
*/
|
|
3186
3186
|
get maxStructuredDataSize() {
|
|
3187
|
-
const ret = wasm.
|
|
3187
|
+
const ret = wasm.wasmmetadataconfig_maxStructuredDataSize(this.__wbg_ptr);
|
|
3188
3188
|
return ret >>> 0;
|
|
3189
3189
|
}
|
|
3190
3190
|
/**
|
|
@@ -3196,101 +3196,101 @@ export class JsMetadataConfig {
|
|
|
3196
3196
|
* @param {number | null} [max_structured_data_size]
|
|
3197
3197
|
*/
|
|
3198
3198
|
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3199
|
-
const ret = wasm.
|
|
3199
|
+
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);
|
|
3200
3200
|
this.__wbg_ptr = ret >>> 0;
|
|
3201
|
-
|
|
3201
|
+
WasmMetadataConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
3202
3202
|
return this;
|
|
3203
3203
|
}
|
|
3204
3204
|
/**
|
|
3205
3205
|
* @param {boolean} value
|
|
3206
3206
|
*/
|
|
3207
3207
|
set extractDocument(value) {
|
|
3208
|
-
wasm.
|
|
3208
|
+
wasm.wasmmetadataconfig_set_extractDocument(this.__wbg_ptr, value);
|
|
3209
3209
|
}
|
|
3210
3210
|
/**
|
|
3211
3211
|
* @param {boolean} value
|
|
3212
3212
|
*/
|
|
3213
3213
|
set extractHeaders(value) {
|
|
3214
|
-
wasm.
|
|
3214
|
+
wasm.wasmmetadataconfig_set_extractHeaders(this.__wbg_ptr, value);
|
|
3215
3215
|
}
|
|
3216
3216
|
/**
|
|
3217
3217
|
* @param {boolean} value
|
|
3218
3218
|
*/
|
|
3219
3219
|
set extractImages(value) {
|
|
3220
|
-
wasm.
|
|
3220
|
+
wasm.wasmmetadataconfig_set_extractImages(this.__wbg_ptr, value);
|
|
3221
3221
|
}
|
|
3222
3222
|
/**
|
|
3223
3223
|
* @param {boolean} value
|
|
3224
3224
|
*/
|
|
3225
3225
|
set extractLinks(value) {
|
|
3226
|
-
wasm.
|
|
3226
|
+
wasm.wasmmetadataconfig_set_extractLinks(this.__wbg_ptr, value);
|
|
3227
3227
|
}
|
|
3228
3228
|
/**
|
|
3229
3229
|
* @param {boolean} value
|
|
3230
3230
|
*/
|
|
3231
3231
|
set extractStructuredData(value) {
|
|
3232
|
-
wasm.
|
|
3232
|
+
wasm.wasmmetadataconfig_set_extractStructuredData(this.__wbg_ptr, value);
|
|
3233
3233
|
}
|
|
3234
3234
|
/**
|
|
3235
3235
|
* @param {number} value
|
|
3236
3236
|
*/
|
|
3237
3237
|
set maxStructuredDataSize(value) {
|
|
3238
|
-
wasm.
|
|
3238
|
+
wasm.wasmmetadataconfig_set_maxStructuredDataSize(this.__wbg_ptr, value);
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
|
-
if (Symbol.dispose)
|
|
3241
|
+
if (Symbol.dispose) WasmMetadataConfig.prototype[Symbol.dispose] = WasmMetadataConfig.prototype.free;
|
|
3242
3242
|
|
|
3243
|
-
export class
|
|
3243
|
+
export class WasmMetadataConfigUpdate {
|
|
3244
3244
|
__destroy_into_raw() {
|
|
3245
3245
|
const ptr = this.__wbg_ptr;
|
|
3246
3246
|
this.__wbg_ptr = 0;
|
|
3247
|
-
|
|
3247
|
+
WasmMetadataConfigUpdateFinalization.unregister(this);
|
|
3248
3248
|
return ptr;
|
|
3249
3249
|
}
|
|
3250
3250
|
free() {
|
|
3251
3251
|
const ptr = this.__destroy_into_raw();
|
|
3252
|
-
wasm.
|
|
3252
|
+
wasm.__wbg_wasmmetadataconfigupdate_free(ptr, 0);
|
|
3253
3253
|
}
|
|
3254
3254
|
/**
|
|
3255
3255
|
* @returns {boolean | undefined}
|
|
3256
3256
|
*/
|
|
3257
3257
|
get extractDocument() {
|
|
3258
|
-
const ret = wasm.
|
|
3258
|
+
const ret = wasm.wasmmetadataconfigupdate_extractDocument(this.__wbg_ptr);
|
|
3259
3259
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3260
3260
|
}
|
|
3261
3261
|
/**
|
|
3262
3262
|
* @returns {boolean | undefined}
|
|
3263
3263
|
*/
|
|
3264
3264
|
get extractHeaders() {
|
|
3265
|
-
const ret = wasm.
|
|
3265
|
+
const ret = wasm.wasmmetadataconfigupdate_extractHeaders(this.__wbg_ptr);
|
|
3266
3266
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3267
3267
|
}
|
|
3268
3268
|
/**
|
|
3269
3269
|
* @returns {boolean | undefined}
|
|
3270
3270
|
*/
|
|
3271
3271
|
get extractImages() {
|
|
3272
|
-
const ret = wasm.
|
|
3272
|
+
const ret = wasm.wasmmetadataconfigupdate_extractImages(this.__wbg_ptr);
|
|
3273
3273
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3274
3274
|
}
|
|
3275
3275
|
/**
|
|
3276
3276
|
* @returns {boolean | undefined}
|
|
3277
3277
|
*/
|
|
3278
3278
|
get extractLinks() {
|
|
3279
|
-
const ret = wasm.
|
|
3279
|
+
const ret = wasm.wasmmetadataconfigupdate_extractLinks(this.__wbg_ptr);
|
|
3280
3280
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3281
3281
|
}
|
|
3282
3282
|
/**
|
|
3283
3283
|
* @returns {boolean | undefined}
|
|
3284
3284
|
*/
|
|
3285
3285
|
get extractStructuredData() {
|
|
3286
|
-
const ret = wasm.
|
|
3286
|
+
const ret = wasm.wasmmetadataconfigupdate_extractStructuredData(this.__wbg_ptr);
|
|
3287
3287
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3288
3288
|
}
|
|
3289
3289
|
/**
|
|
3290
3290
|
* @returns {number | undefined}
|
|
3291
3291
|
*/
|
|
3292
3292
|
get maxStructuredDataSize() {
|
|
3293
|
-
const ret = wasm.
|
|
3293
|
+
const ret = wasm.wasmmetadataconfigupdate_maxStructuredDataSize(this.__wbg_ptr);
|
|
3294
3294
|
return ret === 0x100000001 ? undefined : ret;
|
|
3295
3295
|
}
|
|
3296
3296
|
/**
|
|
@@ -3302,54 +3302,54 @@ export class JsMetadataConfigUpdate {
|
|
|
3302
3302
|
* @param {number | null} [max_structured_data_size]
|
|
3303
3303
|
*/
|
|
3304
3304
|
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3305
|
-
const ret = wasm.
|
|
3305
|
+
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);
|
|
3306
3306
|
this.__wbg_ptr = ret >>> 0;
|
|
3307
|
-
|
|
3307
|
+
WasmMetadataConfigUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3308
3308
|
return this;
|
|
3309
3309
|
}
|
|
3310
3310
|
/**
|
|
3311
3311
|
* @param {boolean | null} [value]
|
|
3312
3312
|
*/
|
|
3313
3313
|
set extractDocument(value) {
|
|
3314
|
-
wasm.
|
|
3314
|
+
wasm.wasmmetadataconfigupdate_set_extractDocument(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3315
3315
|
}
|
|
3316
3316
|
/**
|
|
3317
3317
|
* @param {boolean | null} [value]
|
|
3318
3318
|
*/
|
|
3319
3319
|
set extractHeaders(value) {
|
|
3320
|
-
wasm.
|
|
3320
|
+
wasm.wasmmetadataconfigupdate_set_extractHeaders(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3321
3321
|
}
|
|
3322
3322
|
/**
|
|
3323
3323
|
* @param {boolean | null} [value]
|
|
3324
3324
|
*/
|
|
3325
3325
|
set extractImages(value) {
|
|
3326
|
-
wasm.
|
|
3326
|
+
wasm.wasmmetadataconfigupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3327
3327
|
}
|
|
3328
3328
|
/**
|
|
3329
3329
|
* @param {boolean | null} [value]
|
|
3330
3330
|
*/
|
|
3331
3331
|
set extractLinks(value) {
|
|
3332
|
-
wasm.
|
|
3332
|
+
wasm.wasmmetadataconfigupdate_set_extractLinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3333
3333
|
}
|
|
3334
3334
|
/**
|
|
3335
3335
|
* @param {boolean | null} [value]
|
|
3336
3336
|
*/
|
|
3337
3337
|
set extractStructuredData(value) {
|
|
3338
|
-
wasm.
|
|
3338
|
+
wasm.wasmmetadataconfigupdate_set_extractStructuredData(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3339
3339
|
}
|
|
3340
3340
|
/**
|
|
3341
3341
|
* @param {number | null} [value]
|
|
3342
3342
|
*/
|
|
3343
3343
|
set maxStructuredDataSize(value) {
|
|
3344
|
-
wasm.
|
|
3344
|
+
wasm.wasmmetadataconfigupdate_set_maxStructuredDataSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
3347
|
-
if (Symbol.dispose)
|
|
3347
|
+
if (Symbol.dispose) WasmMetadataConfigUpdate.prototype[Symbol.dispose] = WasmMetadataConfigUpdate.prototype.free;
|
|
3348
3348
|
|
|
3349
3349
|
/**
|
|
3350
3350
|
* @enum {0 | 1}
|
|
3351
3351
|
*/
|
|
3352
|
-
export const
|
|
3352
|
+
export const WasmNewlineStyle = Object.freeze({
|
|
3353
3353
|
Spaces: 0, "0": "Spaces",
|
|
3354
3354
|
Backslash: 1, "1": "Backslash",
|
|
3355
3355
|
});
|
|
@@ -3357,7 +3357,7 @@ export const JsNewlineStyle = Object.freeze({
|
|
|
3357
3357
|
/**
|
|
3358
3358
|
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
|
|
3359
3359
|
*/
|
|
3360
|
-
export const
|
|
3360
|
+
export const WasmNodeContent = Object.freeze({
|
|
3361
3361
|
Heading: 0, "0": "Heading",
|
|
3362
3362
|
Paragraph: 1, "1": "Paragraph",
|
|
3363
3363
|
List: 2, "2": "List",
|
|
@@ -3376,208 +3376,208 @@ export const JsNodeContent = Object.freeze({
|
|
|
3376
3376
|
/**
|
|
3377
3377
|
* @enum {0 | 1 | 2}
|
|
3378
3378
|
*/
|
|
3379
|
-
export const
|
|
3379
|
+
export const WasmOutputFormat = Object.freeze({
|
|
3380
3380
|
Markdown: 0, "0": "Markdown",
|
|
3381
3381
|
Djot: 1, "1": "Djot",
|
|
3382
3382
|
Plain: 2, "2": "Plain",
|
|
3383
3383
|
});
|
|
3384
3384
|
|
|
3385
|
-
export class
|
|
3385
|
+
export class WasmPreprocessingOptions {
|
|
3386
3386
|
static __wrap(ptr) {
|
|
3387
3387
|
ptr = ptr >>> 0;
|
|
3388
|
-
const obj = Object.create(
|
|
3388
|
+
const obj = Object.create(WasmPreprocessingOptions.prototype);
|
|
3389
3389
|
obj.__wbg_ptr = ptr;
|
|
3390
|
-
|
|
3390
|
+
WasmPreprocessingOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3391
3391
|
return obj;
|
|
3392
3392
|
}
|
|
3393
3393
|
__destroy_into_raw() {
|
|
3394
3394
|
const ptr = this.__wbg_ptr;
|
|
3395
3395
|
this.__wbg_ptr = 0;
|
|
3396
|
-
|
|
3396
|
+
WasmPreprocessingOptionsFinalization.unregister(this);
|
|
3397
3397
|
return ptr;
|
|
3398
3398
|
}
|
|
3399
3399
|
free() {
|
|
3400
3400
|
const ptr = this.__destroy_into_raw();
|
|
3401
|
-
wasm.
|
|
3401
|
+
wasm.__wbg_wasmpreprocessingoptions_free(ptr, 0);
|
|
3402
3402
|
}
|
|
3403
3403
|
/**
|
|
3404
|
-
* @returns {
|
|
3404
|
+
* @returns {WasmPreprocessingOptions}
|
|
3405
3405
|
*/
|
|
3406
3406
|
static default() {
|
|
3407
|
-
const ret = wasm.
|
|
3408
|
-
return
|
|
3407
|
+
const ret = wasm.wasmpreprocessingoptions_default();
|
|
3408
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3409
3409
|
}
|
|
3410
3410
|
/**
|
|
3411
3411
|
* @returns {boolean}
|
|
3412
3412
|
*/
|
|
3413
3413
|
get enabled() {
|
|
3414
|
-
const ret = wasm.
|
|
3414
|
+
const ret = wasm.wasmpreprocessingoptions_enabled(this.__wbg_ptr);
|
|
3415
3415
|
return ret !== 0;
|
|
3416
3416
|
}
|
|
3417
3417
|
/**
|
|
3418
3418
|
* @param {boolean | null} [enabled]
|
|
3419
|
-
* @param {
|
|
3419
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3420
3420
|
* @param {boolean | null} [remove_navigation]
|
|
3421
3421
|
* @param {boolean | null} [remove_forms]
|
|
3422
3422
|
*/
|
|
3423
3423
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3424
|
-
const ret = wasm.
|
|
3424
|
+
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);
|
|
3425
3425
|
this.__wbg_ptr = ret >>> 0;
|
|
3426
|
-
|
|
3426
|
+
WasmPreprocessingOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3427
3427
|
return this;
|
|
3428
3428
|
}
|
|
3429
3429
|
/**
|
|
3430
|
-
* @returns {
|
|
3430
|
+
* @returns {WasmPreprocessingPreset}
|
|
3431
3431
|
*/
|
|
3432
3432
|
get preset() {
|
|
3433
|
-
const ret = wasm.
|
|
3433
|
+
const ret = wasm.wasmpreprocessingoptions_preset(this.__wbg_ptr);
|
|
3434
3434
|
return ret;
|
|
3435
3435
|
}
|
|
3436
3436
|
/**
|
|
3437
3437
|
* @returns {boolean}
|
|
3438
3438
|
*/
|
|
3439
3439
|
get removeForms() {
|
|
3440
|
-
const ret = wasm.
|
|
3440
|
+
const ret = wasm.wasmpreprocessingoptions_removeForms(this.__wbg_ptr);
|
|
3441
3441
|
return ret !== 0;
|
|
3442
3442
|
}
|
|
3443
3443
|
/**
|
|
3444
3444
|
* @returns {boolean}
|
|
3445
3445
|
*/
|
|
3446
3446
|
get removeNavigation() {
|
|
3447
|
-
const ret = wasm.
|
|
3447
|
+
const ret = wasm.wasmpreprocessingoptions_removeNavigation(this.__wbg_ptr);
|
|
3448
3448
|
return ret !== 0;
|
|
3449
3449
|
}
|
|
3450
3450
|
/**
|
|
3451
3451
|
* @param {boolean} value
|
|
3452
3452
|
*/
|
|
3453
3453
|
set enabled(value) {
|
|
3454
|
-
wasm.
|
|
3454
|
+
wasm.wasmpreprocessingoptions_set_enabled(this.__wbg_ptr, value);
|
|
3455
3455
|
}
|
|
3456
3456
|
/**
|
|
3457
|
-
* @param {
|
|
3457
|
+
* @param {WasmPreprocessingPreset} value
|
|
3458
3458
|
*/
|
|
3459
3459
|
set preset(value) {
|
|
3460
|
-
wasm.
|
|
3460
|
+
wasm.wasmpreprocessingoptions_set_preset(this.__wbg_ptr, value);
|
|
3461
3461
|
}
|
|
3462
3462
|
/**
|
|
3463
3463
|
* @param {boolean} value
|
|
3464
3464
|
*/
|
|
3465
3465
|
set removeForms(value) {
|
|
3466
|
-
wasm.
|
|
3466
|
+
wasm.wasmpreprocessingoptions_set_removeForms(this.__wbg_ptr, value);
|
|
3467
3467
|
}
|
|
3468
3468
|
/**
|
|
3469
3469
|
* @param {boolean} value
|
|
3470
3470
|
*/
|
|
3471
3471
|
set removeNavigation(value) {
|
|
3472
|
-
wasm.
|
|
3472
|
+
wasm.wasmpreprocessingoptions_set_removeNavigation(this.__wbg_ptr, value);
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
|
-
if (Symbol.dispose)
|
|
3475
|
+
if (Symbol.dispose) WasmPreprocessingOptions.prototype[Symbol.dispose] = WasmPreprocessingOptions.prototype.free;
|
|
3476
3476
|
|
|
3477
|
-
export class
|
|
3477
|
+
export class WasmPreprocessingOptionsUpdate {
|
|
3478
3478
|
static __wrap(ptr) {
|
|
3479
3479
|
ptr = ptr >>> 0;
|
|
3480
|
-
const obj = Object.create(
|
|
3480
|
+
const obj = Object.create(WasmPreprocessingOptionsUpdate.prototype);
|
|
3481
3481
|
obj.__wbg_ptr = ptr;
|
|
3482
|
-
|
|
3482
|
+
WasmPreprocessingOptionsUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3483
3483
|
return obj;
|
|
3484
3484
|
}
|
|
3485
3485
|
__destroy_into_raw() {
|
|
3486
3486
|
const ptr = this.__wbg_ptr;
|
|
3487
3487
|
this.__wbg_ptr = 0;
|
|
3488
|
-
|
|
3488
|
+
WasmPreprocessingOptionsUpdateFinalization.unregister(this);
|
|
3489
3489
|
return ptr;
|
|
3490
3490
|
}
|
|
3491
3491
|
free() {
|
|
3492
3492
|
const ptr = this.__destroy_into_raw();
|
|
3493
|
-
wasm.
|
|
3493
|
+
wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr, 0);
|
|
3494
3494
|
}
|
|
3495
3495
|
/**
|
|
3496
3496
|
* @returns {boolean | undefined}
|
|
3497
3497
|
*/
|
|
3498
3498
|
get enabled() {
|
|
3499
|
-
const ret = wasm.
|
|
3499
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_enabled(this.__wbg_ptr);
|
|
3500
3500
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3501
3501
|
}
|
|
3502
3502
|
/**
|
|
3503
3503
|
* @param {boolean | null} [enabled]
|
|
3504
|
-
* @param {
|
|
3504
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3505
3505
|
* @param {boolean | null} [remove_navigation]
|
|
3506
3506
|
* @param {boolean | null} [remove_forms]
|
|
3507
3507
|
*/
|
|
3508
3508
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3509
|
-
const ret = wasm.
|
|
3509
|
+
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);
|
|
3510
3510
|
this.__wbg_ptr = ret >>> 0;
|
|
3511
|
-
|
|
3511
|
+
WasmPreprocessingOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3512
3512
|
return this;
|
|
3513
3513
|
}
|
|
3514
3514
|
/**
|
|
3515
|
-
* @returns {
|
|
3515
|
+
* @returns {WasmPreprocessingPreset | undefined}
|
|
3516
3516
|
*/
|
|
3517
3517
|
get preset() {
|
|
3518
|
-
const ret = wasm.
|
|
3518
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_preset(this.__wbg_ptr);
|
|
3519
3519
|
return ret === 3 ? undefined : ret;
|
|
3520
3520
|
}
|
|
3521
3521
|
/**
|
|
3522
3522
|
* @returns {boolean | undefined}
|
|
3523
3523
|
*/
|
|
3524
3524
|
get removeForms() {
|
|
3525
|
-
const ret = wasm.
|
|
3525
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeForms(this.__wbg_ptr);
|
|
3526
3526
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3527
3527
|
}
|
|
3528
3528
|
/**
|
|
3529
3529
|
* @returns {boolean | undefined}
|
|
3530
3530
|
*/
|
|
3531
3531
|
get removeNavigation() {
|
|
3532
|
-
const ret = wasm.
|
|
3532
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeNavigation(this.__wbg_ptr);
|
|
3533
3533
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3534
3534
|
}
|
|
3535
3535
|
/**
|
|
3536
3536
|
* @param {boolean | null} [value]
|
|
3537
3537
|
*/
|
|
3538
3538
|
set enabled(value) {
|
|
3539
|
-
wasm.
|
|
3539
|
+
wasm.wasmpreprocessingoptionsupdate_set_enabled(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3540
3540
|
}
|
|
3541
3541
|
/**
|
|
3542
|
-
* @param {
|
|
3542
|
+
* @param {WasmPreprocessingPreset | null} [value]
|
|
3543
3543
|
*/
|
|
3544
3544
|
set preset(value) {
|
|
3545
|
-
wasm.
|
|
3545
|
+
wasm.wasmpreprocessingoptionsupdate_set_preset(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
3546
3546
|
}
|
|
3547
3547
|
/**
|
|
3548
3548
|
* @param {boolean | null} [value]
|
|
3549
3549
|
*/
|
|
3550
3550
|
set removeForms(value) {
|
|
3551
|
-
wasm.
|
|
3551
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeForms(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3552
3552
|
}
|
|
3553
3553
|
/**
|
|
3554
3554
|
* @param {boolean | null} [value]
|
|
3555
3555
|
*/
|
|
3556
3556
|
set removeNavigation(value) {
|
|
3557
|
-
wasm.
|
|
3557
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeNavigation(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
|
-
if (Symbol.dispose)
|
|
3560
|
+
if (Symbol.dispose) WasmPreprocessingOptionsUpdate.prototype[Symbol.dispose] = WasmPreprocessingOptionsUpdate.prototype.free;
|
|
3561
3561
|
|
|
3562
3562
|
/**
|
|
3563
3563
|
* @enum {0 | 1 | 2}
|
|
3564
3564
|
*/
|
|
3565
|
-
export const
|
|
3565
|
+
export const WasmPreprocessingPreset = Object.freeze({
|
|
3566
3566
|
Minimal: 0, "0": "Minimal",
|
|
3567
3567
|
Standard: 1, "1": "Standard",
|
|
3568
3568
|
Aggressive: 2, "2": "Aggressive",
|
|
3569
3569
|
});
|
|
3570
3570
|
|
|
3571
|
-
export class
|
|
3571
|
+
export class WasmProcessingWarning {
|
|
3572
3572
|
static __wrap(ptr) {
|
|
3573
3573
|
ptr = ptr >>> 0;
|
|
3574
|
-
const obj = Object.create(
|
|
3574
|
+
const obj = Object.create(WasmProcessingWarning.prototype);
|
|
3575
3575
|
obj.__wbg_ptr = ptr;
|
|
3576
|
-
|
|
3576
|
+
WasmProcessingWarningFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3577
3577
|
return obj;
|
|
3578
3578
|
}
|
|
3579
3579
|
static __unwrap(jsValue) {
|
|
3580
|
-
if (!(jsValue instanceof
|
|
3580
|
+
if (!(jsValue instanceof WasmProcessingWarning)) {
|
|
3581
3581
|
return 0;
|
|
3582
3582
|
}
|
|
3583
3583
|
return jsValue.__destroy_into_raw();
|
|
@@ -3585,18 +3585,18 @@ export class JsProcessingWarning {
|
|
|
3585
3585
|
__destroy_into_raw() {
|
|
3586
3586
|
const ptr = this.__wbg_ptr;
|
|
3587
3587
|
this.__wbg_ptr = 0;
|
|
3588
|
-
|
|
3588
|
+
WasmProcessingWarningFinalization.unregister(this);
|
|
3589
3589
|
return ptr;
|
|
3590
3590
|
}
|
|
3591
3591
|
free() {
|
|
3592
3592
|
const ptr = this.__destroy_into_raw();
|
|
3593
|
-
wasm.
|
|
3593
|
+
wasm.__wbg_wasmprocessingwarning_free(ptr, 0);
|
|
3594
3594
|
}
|
|
3595
3595
|
/**
|
|
3596
|
-
* @returns {
|
|
3596
|
+
* @returns {WasmWarningKind}
|
|
3597
3597
|
*/
|
|
3598
3598
|
get kind() {
|
|
3599
|
-
const ret = wasm.
|
|
3599
|
+
const ret = wasm.wasmprocessingwarning_kind(this.__wbg_ptr);
|
|
3600
3600
|
return ret;
|
|
3601
3601
|
}
|
|
3602
3602
|
/**
|
|
@@ -3607,7 +3607,7 @@ export class JsProcessingWarning {
|
|
|
3607
3607
|
let deferred1_1;
|
|
3608
3608
|
try {
|
|
3609
3609
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3610
|
-
wasm.
|
|
3610
|
+
wasm.wasmprocessingwarning_message(retptr, this.__wbg_ptr);
|
|
3611
3611
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3612
3612
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3613
3613
|
deferred1_0 = r0;
|
|
@@ -3620,21 +3620,21 @@ export class JsProcessingWarning {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
/**
|
|
3622
3622
|
* @param {string} message
|
|
3623
|
-
* @param {
|
|
3623
|
+
* @param {WasmWarningKind} kind
|
|
3624
3624
|
*/
|
|
3625
3625
|
constructor(message, kind) {
|
|
3626
3626
|
const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3627
3627
|
const len0 = WASM_VECTOR_LEN;
|
|
3628
|
-
const ret = wasm.
|
|
3628
|
+
const ret = wasm.wasmprocessingwarning_new(ptr0, len0, kind);
|
|
3629
3629
|
this.__wbg_ptr = ret >>> 0;
|
|
3630
|
-
|
|
3630
|
+
WasmProcessingWarningFinalization.register(this, this.__wbg_ptr, this);
|
|
3631
3631
|
return this;
|
|
3632
3632
|
}
|
|
3633
3633
|
/**
|
|
3634
|
-
* @param {
|
|
3634
|
+
* @param {WasmWarningKind} value
|
|
3635
3635
|
*/
|
|
3636
3636
|
set kind(value) {
|
|
3637
|
-
wasm.
|
|
3637
|
+
wasm.wasmprocessingwarning_set_kind(this.__wbg_ptr, value);
|
|
3638
3638
|
}
|
|
3639
3639
|
/**
|
|
3640
3640
|
* @param {string} value
|
|
@@ -3642,21 +3642,21 @@ export class JsProcessingWarning {
|
|
|
3642
3642
|
set message(value) {
|
|
3643
3643
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3644
3644
|
const len0 = WASM_VECTOR_LEN;
|
|
3645
|
-
wasm.
|
|
3645
|
+
wasm.wasmprocessingwarning_set_message(this.__wbg_ptr, ptr0, len0);
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
3648
|
-
if (Symbol.dispose)
|
|
3648
|
+
if (Symbol.dispose) WasmProcessingWarning.prototype[Symbol.dispose] = WasmProcessingWarning.prototype.free;
|
|
3649
3649
|
|
|
3650
|
-
export class
|
|
3650
|
+
export class WasmStructuredData {
|
|
3651
3651
|
static __wrap(ptr) {
|
|
3652
3652
|
ptr = ptr >>> 0;
|
|
3653
|
-
const obj = Object.create(
|
|
3653
|
+
const obj = Object.create(WasmStructuredData.prototype);
|
|
3654
3654
|
obj.__wbg_ptr = ptr;
|
|
3655
|
-
|
|
3655
|
+
WasmStructuredDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3656
3656
|
return obj;
|
|
3657
3657
|
}
|
|
3658
3658
|
static __unwrap(jsValue) {
|
|
3659
|
-
if (!(jsValue instanceof
|
|
3659
|
+
if (!(jsValue instanceof WasmStructuredData)) {
|
|
3660
3660
|
return 0;
|
|
3661
3661
|
}
|
|
3662
3662
|
return jsValue.__destroy_into_raw();
|
|
@@ -3664,22 +3664,22 @@ export class JsStructuredData {
|
|
|
3664
3664
|
__destroy_into_raw() {
|
|
3665
3665
|
const ptr = this.__wbg_ptr;
|
|
3666
3666
|
this.__wbg_ptr = 0;
|
|
3667
|
-
|
|
3667
|
+
WasmStructuredDataFinalization.unregister(this);
|
|
3668
3668
|
return ptr;
|
|
3669
3669
|
}
|
|
3670
3670
|
free() {
|
|
3671
3671
|
const ptr = this.__destroy_into_raw();
|
|
3672
|
-
wasm.
|
|
3672
|
+
wasm.__wbg_wasmstructureddata_free(ptr, 0);
|
|
3673
3673
|
}
|
|
3674
3674
|
/**
|
|
3675
|
-
* @returns {
|
|
3675
|
+
* @returns {WasmStructuredDataType}
|
|
3676
3676
|
*/
|
|
3677
3677
|
get dataType() {
|
|
3678
|
-
const ret = wasm.
|
|
3678
|
+
const ret = wasm.wasmstructureddata_dataType(this.__wbg_ptr);
|
|
3679
3679
|
return ret;
|
|
3680
3680
|
}
|
|
3681
3681
|
/**
|
|
3682
|
-
* @param {
|
|
3682
|
+
* @param {WasmStructuredDataType} data_type
|
|
3683
3683
|
* @param {string} raw_json
|
|
3684
3684
|
* @param {string | null} [schema_type]
|
|
3685
3685
|
*/
|
|
@@ -3688,9 +3688,9 @@ export class JsStructuredData {
|
|
|
3688
3688
|
const len0 = WASM_VECTOR_LEN;
|
|
3689
3689
|
var ptr1 = isLikeNone(schema_type) ? 0 : passStringToWasm0(schema_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3690
3690
|
var len1 = WASM_VECTOR_LEN;
|
|
3691
|
-
const ret = wasm.
|
|
3691
|
+
const ret = wasm.wasmstructureddata_new(data_type, ptr0, len0, ptr1, len1);
|
|
3692
3692
|
this.__wbg_ptr = ret >>> 0;
|
|
3693
|
-
|
|
3693
|
+
WasmStructuredDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3694
3694
|
return this;
|
|
3695
3695
|
}
|
|
3696
3696
|
/**
|
|
@@ -3701,7 +3701,7 @@ export class JsStructuredData {
|
|
|
3701
3701
|
let deferred1_1;
|
|
3702
3702
|
try {
|
|
3703
3703
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3704
|
-
wasm.
|
|
3704
|
+
wasm.wasmstructureddata_rawJson(retptr, this.__wbg_ptr);
|
|
3705
3705
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3706
3706
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3707
3707
|
deferred1_0 = r0;
|
|
@@ -3718,7 +3718,7 @@ export class JsStructuredData {
|
|
|
3718
3718
|
get schemaType() {
|
|
3719
3719
|
try {
|
|
3720
3720
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3721
|
-
wasm.
|
|
3721
|
+
wasm.wasmstructureddata_schemaType(retptr, this.__wbg_ptr);
|
|
3722
3722
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3723
3723
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3724
3724
|
let v1;
|
|
@@ -3732,10 +3732,10 @@ export class JsStructuredData {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
/**
|
|
3735
|
-
* @param {
|
|
3735
|
+
* @param {WasmStructuredDataType} value
|
|
3736
3736
|
*/
|
|
3737
3737
|
set dataType(value) {
|
|
3738
|
-
wasm.
|
|
3738
|
+
wasm.wasmstructureddata_set_dataType(this.__wbg_ptr, value);
|
|
3739
3739
|
}
|
|
3740
3740
|
/**
|
|
3741
3741
|
* @param {string} value
|
|
@@ -3743,7 +3743,7 @@ export class JsStructuredData {
|
|
|
3743
3743
|
set rawJson(value) {
|
|
3744
3744
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3745
3745
|
const len0 = WASM_VECTOR_LEN;
|
|
3746
|
-
wasm.
|
|
3746
|
+
wasm.wasmstructureddata_set_rawJson(this.__wbg_ptr, ptr0, len0);
|
|
3747
3747
|
}
|
|
3748
3748
|
/**
|
|
3749
3749
|
* @param {string | null} [value]
|
|
@@ -3751,30 +3751,30 @@ export class JsStructuredData {
|
|
|
3751
3751
|
set schemaType(value) {
|
|
3752
3752
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3753
3753
|
var len0 = WASM_VECTOR_LEN;
|
|
3754
|
-
wasm.
|
|
3754
|
+
wasm.wasmstructureddata_set_schemaType(this.__wbg_ptr, ptr0, len0);
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
if (Symbol.dispose)
|
|
3757
|
+
if (Symbol.dispose) WasmStructuredData.prototype[Symbol.dispose] = WasmStructuredData.prototype.free;
|
|
3758
3758
|
|
|
3759
3759
|
/**
|
|
3760
3760
|
* @enum {0 | 1 | 2}
|
|
3761
3761
|
*/
|
|
3762
|
-
export const
|
|
3762
|
+
export const WasmStructuredDataType = Object.freeze({
|
|
3763
3763
|
JsonLd: 0, "0": "JsonLd",
|
|
3764
3764
|
Microdata: 1, "1": "Microdata",
|
|
3765
3765
|
RDFa: 2, "2": "RDFa",
|
|
3766
3766
|
});
|
|
3767
3767
|
|
|
3768
|
-
export class
|
|
3768
|
+
export class WasmTableData {
|
|
3769
3769
|
static __wrap(ptr) {
|
|
3770
3770
|
ptr = ptr >>> 0;
|
|
3771
|
-
const obj = Object.create(
|
|
3771
|
+
const obj = Object.create(WasmTableData.prototype);
|
|
3772
3772
|
obj.__wbg_ptr = ptr;
|
|
3773
|
-
|
|
3773
|
+
WasmTableDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3774
3774
|
return obj;
|
|
3775
3775
|
}
|
|
3776
3776
|
static __unwrap(jsValue) {
|
|
3777
|
-
if (!(jsValue instanceof
|
|
3777
|
+
if (!(jsValue instanceof WasmTableData)) {
|
|
3778
3778
|
return 0;
|
|
3779
3779
|
}
|
|
3780
3780
|
return jsValue.__destroy_into_raw();
|
|
@@ -3782,19 +3782,19 @@ export class JsTableData {
|
|
|
3782
3782
|
__destroy_into_raw() {
|
|
3783
3783
|
const ptr = this.__wbg_ptr;
|
|
3784
3784
|
this.__wbg_ptr = 0;
|
|
3785
|
-
|
|
3785
|
+
WasmTableDataFinalization.unregister(this);
|
|
3786
3786
|
return ptr;
|
|
3787
3787
|
}
|
|
3788
3788
|
free() {
|
|
3789
3789
|
const ptr = this.__destroy_into_raw();
|
|
3790
|
-
wasm.
|
|
3790
|
+
wasm.__wbg_wasmtabledata_free(ptr, 0);
|
|
3791
3791
|
}
|
|
3792
3792
|
/**
|
|
3793
|
-
* @returns {
|
|
3793
|
+
* @returns {WasmTableGrid}
|
|
3794
3794
|
*/
|
|
3795
3795
|
get grid() {
|
|
3796
|
-
const ret = wasm.
|
|
3797
|
-
return
|
|
3796
|
+
const ret = wasm.wasmtabledata_grid(this.__wbg_ptr);
|
|
3797
|
+
return WasmTableGrid.__wrap(ret);
|
|
3798
3798
|
}
|
|
3799
3799
|
/**
|
|
3800
3800
|
* @returns {string}
|
|
@@ -3804,7 +3804,7 @@ export class JsTableData {
|
|
|
3804
3804
|
let deferred1_1;
|
|
3805
3805
|
try {
|
|
3806
3806
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3807
|
-
wasm.
|
|
3807
|
+
wasm.wasmtabledata_markdown(retptr, this.__wbg_ptr);
|
|
3808
3808
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3809
3809
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3810
3810
|
deferred1_0 = r0;
|
|
@@ -3816,26 +3816,26 @@ export class JsTableData {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
}
|
|
3818
3818
|
/**
|
|
3819
|
-
* @param {
|
|
3819
|
+
* @param {WasmTableGrid} grid
|
|
3820
3820
|
* @param {string} markdown
|
|
3821
3821
|
*/
|
|
3822
3822
|
constructor(grid, markdown) {
|
|
3823
|
-
_assertClass(grid,
|
|
3823
|
+
_assertClass(grid, WasmTableGrid);
|
|
3824
3824
|
var ptr0 = grid.__destroy_into_raw();
|
|
3825
3825
|
const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3826
3826
|
const len1 = WASM_VECTOR_LEN;
|
|
3827
|
-
const ret = wasm.
|
|
3827
|
+
const ret = wasm.wasmtabledata_new(ptr0, ptr1, len1);
|
|
3828
3828
|
this.__wbg_ptr = ret >>> 0;
|
|
3829
|
-
|
|
3829
|
+
WasmTableDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3830
3830
|
return this;
|
|
3831
3831
|
}
|
|
3832
3832
|
/**
|
|
3833
|
-
* @param {
|
|
3833
|
+
* @param {WasmTableGrid} value
|
|
3834
3834
|
*/
|
|
3835
3835
|
set grid(value) {
|
|
3836
|
-
_assertClass(value,
|
|
3836
|
+
_assertClass(value, WasmTableGrid);
|
|
3837
3837
|
var ptr0 = value.__destroy_into_raw();
|
|
3838
|
-
wasm.
|
|
3838
|
+
wasm.wasmtabledata_set_grid(this.__wbg_ptr, ptr0);
|
|
3839
3839
|
}
|
|
3840
3840
|
/**
|
|
3841
3841
|
* @param {string} value
|
|
@@ -3843,36 +3843,36 @@ export class JsTableData {
|
|
|
3843
3843
|
set markdown(value) {
|
|
3844
3844
|
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3845
3845
|
const len0 = WASM_VECTOR_LEN;
|
|
3846
|
-
wasm.
|
|
3846
|
+
wasm.wasmtabledata_set_markdown(this.__wbg_ptr, ptr0, len0);
|
|
3847
3847
|
}
|
|
3848
3848
|
}
|
|
3849
|
-
if (Symbol.dispose)
|
|
3849
|
+
if (Symbol.dispose) WasmTableData.prototype[Symbol.dispose] = WasmTableData.prototype.free;
|
|
3850
3850
|
|
|
3851
|
-
export class
|
|
3851
|
+
export class WasmTableGrid {
|
|
3852
3852
|
static __wrap(ptr) {
|
|
3853
3853
|
ptr = ptr >>> 0;
|
|
3854
|
-
const obj = Object.create(
|
|
3854
|
+
const obj = Object.create(WasmTableGrid.prototype);
|
|
3855
3855
|
obj.__wbg_ptr = ptr;
|
|
3856
|
-
|
|
3856
|
+
WasmTableGridFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3857
3857
|
return obj;
|
|
3858
3858
|
}
|
|
3859
3859
|
__destroy_into_raw() {
|
|
3860
3860
|
const ptr = this.__wbg_ptr;
|
|
3861
3861
|
this.__wbg_ptr = 0;
|
|
3862
|
-
|
|
3862
|
+
WasmTableGridFinalization.unregister(this);
|
|
3863
3863
|
return ptr;
|
|
3864
3864
|
}
|
|
3865
3865
|
free() {
|
|
3866
3866
|
const ptr = this.__destroy_into_raw();
|
|
3867
|
-
wasm.
|
|
3867
|
+
wasm.__wbg_wasmtablegrid_free(ptr, 0);
|
|
3868
3868
|
}
|
|
3869
3869
|
/**
|
|
3870
|
-
* @returns {
|
|
3870
|
+
* @returns {WasmGridCell[]}
|
|
3871
3871
|
*/
|
|
3872
3872
|
get cells() {
|
|
3873
3873
|
try {
|
|
3874
3874
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3875
|
-
wasm.
|
|
3875
|
+
wasm.wasmtablegrid_cells(retptr, this.__wbg_ptr);
|
|
3876
3876
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3877
3877
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3878
3878
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
@@ -3886,62 +3886,62 @@ export class JsTableGrid {
|
|
|
3886
3886
|
* @returns {number}
|
|
3887
3887
|
*/
|
|
3888
3888
|
get cols() {
|
|
3889
|
-
const ret = wasm.
|
|
3889
|
+
const ret = wasm.wasmtablegrid_cols(this.__wbg_ptr);
|
|
3890
3890
|
return ret >>> 0;
|
|
3891
3891
|
}
|
|
3892
3892
|
/**
|
|
3893
3893
|
* @param {number | null} [rows]
|
|
3894
3894
|
* @param {number | null} [cols]
|
|
3895
|
-
* @param {
|
|
3895
|
+
* @param {WasmGridCell[] | null} [cells]
|
|
3896
3896
|
*/
|
|
3897
3897
|
constructor(rows, cols, cells) {
|
|
3898
3898
|
var ptr0 = isLikeNone(cells) ? 0 : passArrayJsValueToWasm0(cells, wasm.__wbindgen_export);
|
|
3899
3899
|
var len0 = WASM_VECTOR_LEN;
|
|
3900
|
-
const ret = wasm.
|
|
3900
|
+
const ret = wasm.wasmtablegrid_new(isLikeNone(rows) ? 0x100000001 : (rows) >>> 0, isLikeNone(cols) ? 0x100000001 : (cols) >>> 0, ptr0, len0);
|
|
3901
3901
|
this.__wbg_ptr = ret >>> 0;
|
|
3902
|
-
|
|
3902
|
+
WasmTableGridFinalization.register(this, this.__wbg_ptr, this);
|
|
3903
3903
|
return this;
|
|
3904
3904
|
}
|
|
3905
3905
|
/**
|
|
3906
3906
|
* @returns {number}
|
|
3907
3907
|
*/
|
|
3908
3908
|
get rows() {
|
|
3909
|
-
const ret = wasm.
|
|
3909
|
+
const ret = wasm.wasmtablegrid_rows(this.__wbg_ptr);
|
|
3910
3910
|
return ret >>> 0;
|
|
3911
3911
|
}
|
|
3912
3912
|
/**
|
|
3913
|
-
* @param {
|
|
3913
|
+
* @param {WasmGridCell[]} value
|
|
3914
3914
|
*/
|
|
3915
3915
|
set cells(value) {
|
|
3916
3916
|
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3917
3917
|
const len0 = WASM_VECTOR_LEN;
|
|
3918
|
-
wasm.
|
|
3918
|
+
wasm.wasmtablegrid_set_cells(this.__wbg_ptr, ptr0, len0);
|
|
3919
3919
|
}
|
|
3920
3920
|
/**
|
|
3921
3921
|
* @param {number} value
|
|
3922
3922
|
*/
|
|
3923
3923
|
set cols(value) {
|
|
3924
|
-
wasm.
|
|
3924
|
+
wasm.wasmtablegrid_set_cols(this.__wbg_ptr, value);
|
|
3925
3925
|
}
|
|
3926
3926
|
/**
|
|
3927
3927
|
* @param {number} value
|
|
3928
3928
|
*/
|
|
3929
3929
|
set rows(value) {
|
|
3930
|
-
wasm.
|
|
3930
|
+
wasm.wasmtablegrid_set_rows(this.__wbg_ptr, value);
|
|
3931
3931
|
}
|
|
3932
3932
|
}
|
|
3933
|
-
if (Symbol.dispose)
|
|
3933
|
+
if (Symbol.dispose) WasmTableGrid.prototype[Symbol.dispose] = WasmTableGrid.prototype.free;
|
|
3934
3934
|
|
|
3935
|
-
export class
|
|
3935
|
+
export class WasmTextAnnotation {
|
|
3936
3936
|
static __wrap(ptr) {
|
|
3937
3937
|
ptr = ptr >>> 0;
|
|
3938
|
-
const obj = Object.create(
|
|
3938
|
+
const obj = Object.create(WasmTextAnnotation.prototype);
|
|
3939
3939
|
obj.__wbg_ptr = ptr;
|
|
3940
|
-
|
|
3940
|
+
WasmTextAnnotationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3941
3941
|
return obj;
|
|
3942
3942
|
}
|
|
3943
3943
|
static __unwrap(jsValue) {
|
|
3944
|
-
if (!(jsValue instanceof
|
|
3944
|
+
if (!(jsValue instanceof WasmTextAnnotation)) {
|
|
3945
3945
|
return 0;
|
|
3946
3946
|
}
|
|
3947
3947
|
return jsValue.__destroy_into_raw();
|
|
@@ -3949,70 +3949,70 @@ export class JsTextAnnotation {
|
|
|
3949
3949
|
__destroy_into_raw() {
|
|
3950
3950
|
const ptr = this.__wbg_ptr;
|
|
3951
3951
|
this.__wbg_ptr = 0;
|
|
3952
|
-
|
|
3952
|
+
WasmTextAnnotationFinalization.unregister(this);
|
|
3953
3953
|
return ptr;
|
|
3954
3954
|
}
|
|
3955
3955
|
free() {
|
|
3956
3956
|
const ptr = this.__destroy_into_raw();
|
|
3957
|
-
wasm.
|
|
3957
|
+
wasm.__wbg_wasmtextannotation_free(ptr, 0);
|
|
3958
3958
|
}
|
|
3959
3959
|
/**
|
|
3960
3960
|
* @returns {number}
|
|
3961
3961
|
*/
|
|
3962
3962
|
get end() {
|
|
3963
|
-
const ret = wasm.
|
|
3963
|
+
const ret = wasm.wasmtextannotation_end(this.__wbg_ptr);
|
|
3964
3964
|
return ret >>> 0;
|
|
3965
3965
|
}
|
|
3966
3966
|
/**
|
|
3967
|
-
* @returns {
|
|
3967
|
+
* @returns {WasmAnnotationKind}
|
|
3968
3968
|
*/
|
|
3969
3969
|
get kind() {
|
|
3970
|
-
const ret = wasm.
|
|
3970
|
+
const ret = wasm.wasmtextannotation_kind(this.__wbg_ptr);
|
|
3971
3971
|
return ret;
|
|
3972
3972
|
}
|
|
3973
3973
|
/**
|
|
3974
3974
|
* @param {number} start
|
|
3975
3975
|
* @param {number} end
|
|
3976
|
-
* @param {
|
|
3976
|
+
* @param {WasmAnnotationKind} kind
|
|
3977
3977
|
*/
|
|
3978
3978
|
constructor(start, end, kind) {
|
|
3979
|
-
const ret = wasm.
|
|
3979
|
+
const ret = wasm.wasmtextannotation_new(start, end, kind);
|
|
3980
3980
|
this.__wbg_ptr = ret >>> 0;
|
|
3981
|
-
|
|
3981
|
+
WasmTextAnnotationFinalization.register(this, this.__wbg_ptr, this);
|
|
3982
3982
|
return this;
|
|
3983
3983
|
}
|
|
3984
3984
|
/**
|
|
3985
3985
|
* @param {number} value
|
|
3986
3986
|
*/
|
|
3987
3987
|
set end(value) {
|
|
3988
|
-
wasm.
|
|
3988
|
+
wasm.wasmtextannotation_set_end(this.__wbg_ptr, value);
|
|
3989
3989
|
}
|
|
3990
3990
|
/**
|
|
3991
|
-
* @param {
|
|
3991
|
+
* @param {WasmAnnotationKind} value
|
|
3992
3992
|
*/
|
|
3993
3993
|
set kind(value) {
|
|
3994
|
-
wasm.
|
|
3994
|
+
wasm.wasmtextannotation_set_kind(this.__wbg_ptr, value);
|
|
3995
3995
|
}
|
|
3996
3996
|
/**
|
|
3997
3997
|
* @param {number} value
|
|
3998
3998
|
*/
|
|
3999
3999
|
set start(value) {
|
|
4000
|
-
wasm.
|
|
4000
|
+
wasm.wasmtextannotation_set_start(this.__wbg_ptr, value);
|
|
4001
4001
|
}
|
|
4002
4002
|
/**
|
|
4003
4003
|
* @returns {number}
|
|
4004
4004
|
*/
|
|
4005
4005
|
get start() {
|
|
4006
|
-
const ret = wasm.
|
|
4006
|
+
const ret = wasm.wasmtextannotation_start(this.__wbg_ptr);
|
|
4007
4007
|
return ret >>> 0;
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
|
-
if (Symbol.dispose)
|
|
4010
|
+
if (Symbol.dispose) WasmTextAnnotation.prototype[Symbol.dispose] = WasmTextAnnotation.prototype.free;
|
|
4011
4011
|
|
|
4012
4012
|
/**
|
|
4013
4013
|
* @enum {0 | 1 | 2}
|
|
4014
4014
|
*/
|
|
4015
|
-
export const
|
|
4015
|
+
export const WasmTextDirection = Object.freeze({
|
|
4016
4016
|
LeftToRight: 0, "0": "LeftToRight",
|
|
4017
4017
|
RightToLeft: 1, "1": "RightToLeft",
|
|
4018
4018
|
Auto: 2, "2": "Auto",
|
|
@@ -4021,7 +4021,7 @@ export const JsTextDirection = Object.freeze({
|
|
|
4021
4021
|
/**
|
|
4022
4022
|
* @enum {0 | 1 | 2 | 3 | 4}
|
|
4023
4023
|
*/
|
|
4024
|
-
export const
|
|
4024
|
+
export const WasmWarningKind = Object.freeze({
|
|
4025
4025
|
ImageExtractionFailed: 0, "0": "ImageExtractionFailed",
|
|
4026
4026
|
EncodingFallback: 1, "1": "EncodingFallback",
|
|
4027
4027
|
TruncatedInput: 2, "2": "TruncatedInput",
|
|
@@ -4032,15 +4032,15 @@ export const JsWarningKind = Object.freeze({
|
|
|
4032
4032
|
/**
|
|
4033
4033
|
* @enum {0 | 1}
|
|
4034
4034
|
*/
|
|
4035
|
-
export const
|
|
4035
|
+
export const WasmWhitespaceMode = Object.freeze({
|
|
4036
4036
|
Normalized: 0, "0": "Normalized",
|
|
4037
4037
|
Strict: 1, "1": "Strict",
|
|
4038
4038
|
});
|
|
4039
4039
|
|
|
4040
4040
|
/**
|
|
4041
4041
|
* @param {string} html
|
|
4042
|
-
* @param {
|
|
4043
|
-
* @returns {
|
|
4042
|
+
* @param {WasmConversionOptions | null} [options]
|
|
4043
|
+
* @returns {WasmConversionResult}
|
|
4044
4044
|
*/
|
|
4045
4045
|
export function convert(html, options) {
|
|
4046
4046
|
try {
|
|
@@ -4049,7 +4049,7 @@ export function convert(html, options) {
|
|
|
4049
4049
|
const len0 = WASM_VECTOR_LEN;
|
|
4050
4050
|
let ptr1 = 0;
|
|
4051
4051
|
if (!isLikeNone(options)) {
|
|
4052
|
-
_assertClass(options,
|
|
4052
|
+
_assertClass(options, WasmConversionOptions);
|
|
4053
4053
|
ptr1 = options.__destroy_into_raw();
|
|
4054
4054
|
}
|
|
4055
4055
|
wasm.convert(retptr, ptr0, len0, ptr1);
|
|
@@ -4059,7 +4059,7 @@ export function convert(html, options) {
|
|
|
4059
4059
|
if (r2) {
|
|
4060
4060
|
throw takeObject(r1);
|
|
4061
4061
|
}
|
|
4062
|
-
return
|
|
4062
|
+
return WasmConversionResult.__wrap(r0);
|
|
4063
4063
|
} finally {
|
|
4064
4064
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4065
4065
|
}
|
|
@@ -4087,93 +4087,93 @@ export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
|
|
|
4087
4087
|
export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
|
|
4088
4088
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4089
4089
|
}
|
|
4090
|
-
export function
|
|
4091
|
-
const ret =
|
|
4090
|
+
export function __wbg_new_34d45cc8e36aaead() {
|
|
4091
|
+
const ret = new Map();
|
|
4092
4092
|
return addHeapObject(ret);
|
|
4093
4093
|
}
|
|
4094
|
-
export function
|
|
4095
|
-
const ret =
|
|
4096
|
-
return ret;
|
|
4097
|
-
}
|
|
4098
|
-
export function __wbg_jsgridcell_new(arg0) {
|
|
4099
|
-
const ret = JsGridCell.__wrap(arg0);
|
|
4094
|
+
export function __wbg_new_aa8d0fa9762c29bd() {
|
|
4095
|
+
const ret = new Object();
|
|
4100
4096
|
return addHeapObject(ret);
|
|
4101
4097
|
}
|
|
4102
|
-
export function
|
|
4103
|
-
|
|
4104
|
-
return ret;
|
|
4098
|
+
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
4099
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4105
4100
|
}
|
|
4106
|
-
export function
|
|
4107
|
-
const ret =
|
|
4101
|
+
export function __wbg_set_fde2cec06c23692b(arg0, arg1, arg2) {
|
|
4102
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4108
4103
|
return addHeapObject(ret);
|
|
4109
4104
|
}
|
|
4110
|
-
export function
|
|
4111
|
-
const ret =
|
|
4112
|
-
return ret;
|
|
4113
|
-
}
|
|
4114
|
-
export function __wbg_jsimagemetadata_new(arg0) {
|
|
4115
|
-
const ret = JsImageMetadata.__wrap(arg0);
|
|
4105
|
+
export function __wbg_wasmdocumentnode_new(arg0) {
|
|
4106
|
+
const ret = WasmDocumentNode.__wrap(arg0);
|
|
4116
4107
|
return addHeapObject(ret);
|
|
4117
4108
|
}
|
|
4118
|
-
export function
|
|
4119
|
-
const ret =
|
|
4109
|
+
export function __wbg_wasmdocumentnode_unwrap(arg0) {
|
|
4110
|
+
const ret = WasmDocumentNode.__unwrap(getObject(arg0));
|
|
4120
4111
|
return ret;
|
|
4121
4112
|
}
|
|
4122
|
-
export function
|
|
4123
|
-
const ret =
|
|
4113
|
+
export function __wbg_wasmgridcell_new(arg0) {
|
|
4114
|
+
const ret = WasmGridCell.__wrap(arg0);
|
|
4124
4115
|
return addHeapObject(ret);
|
|
4125
4116
|
}
|
|
4126
|
-
export function
|
|
4127
|
-
const ret =
|
|
4117
|
+
export function __wbg_wasmgridcell_unwrap(arg0) {
|
|
4118
|
+
const ret = WasmGridCell.__unwrap(getObject(arg0));
|
|
4128
4119
|
return ret;
|
|
4129
4120
|
}
|
|
4130
|
-
export function
|
|
4131
|
-
const ret =
|
|
4121
|
+
export function __wbg_wasmheadermetadata_new(arg0) {
|
|
4122
|
+
const ret = WasmHeaderMetadata.__wrap(arg0);
|
|
4132
4123
|
return addHeapObject(ret);
|
|
4133
4124
|
}
|
|
4134
|
-
export function
|
|
4135
|
-
const ret =
|
|
4125
|
+
export function __wbg_wasmheadermetadata_unwrap(arg0) {
|
|
4126
|
+
const ret = WasmHeaderMetadata.__unwrap(getObject(arg0));
|
|
4136
4127
|
return ret;
|
|
4137
4128
|
}
|
|
4138
|
-
export function
|
|
4139
|
-
const ret =
|
|
4129
|
+
export function __wbg_wasmimagemetadata_new(arg0) {
|
|
4130
|
+
const ret = WasmImageMetadata.__wrap(arg0);
|
|
4140
4131
|
return addHeapObject(ret);
|
|
4141
4132
|
}
|
|
4142
|
-
export function
|
|
4143
|
-
const ret =
|
|
4133
|
+
export function __wbg_wasmimagemetadata_unwrap(arg0) {
|
|
4134
|
+
const ret = WasmImageMetadata.__unwrap(getObject(arg0));
|
|
4144
4135
|
return ret;
|
|
4145
4136
|
}
|
|
4146
|
-
export function
|
|
4147
|
-
const ret =
|
|
4137
|
+
export function __wbg_wasmlinkmetadata_new(arg0) {
|
|
4138
|
+
const ret = WasmLinkMetadata.__wrap(arg0);
|
|
4148
4139
|
return addHeapObject(ret);
|
|
4149
4140
|
}
|
|
4150
|
-
export function
|
|
4151
|
-
const ret =
|
|
4141
|
+
export function __wbg_wasmlinkmetadata_unwrap(arg0) {
|
|
4142
|
+
const ret = WasmLinkMetadata.__unwrap(getObject(arg0));
|
|
4152
4143
|
return ret;
|
|
4153
4144
|
}
|
|
4154
|
-
export function
|
|
4155
|
-
const ret =
|
|
4145
|
+
export function __wbg_wasmprocessingwarning_new(arg0) {
|
|
4146
|
+
const ret = WasmProcessingWarning.__wrap(arg0);
|
|
4156
4147
|
return addHeapObject(ret);
|
|
4157
4148
|
}
|
|
4158
|
-
export function
|
|
4159
|
-
const ret =
|
|
4149
|
+
export function __wbg_wasmprocessingwarning_unwrap(arg0) {
|
|
4150
|
+
const ret = WasmProcessingWarning.__unwrap(getObject(arg0));
|
|
4160
4151
|
return ret;
|
|
4161
4152
|
}
|
|
4162
|
-
export function
|
|
4163
|
-
const ret =
|
|
4153
|
+
export function __wbg_wasmstructureddata_new(arg0) {
|
|
4154
|
+
const ret = WasmStructuredData.__wrap(arg0);
|
|
4164
4155
|
return addHeapObject(ret);
|
|
4165
4156
|
}
|
|
4166
|
-
export function
|
|
4167
|
-
const ret =
|
|
4157
|
+
export function __wbg_wasmstructureddata_unwrap(arg0) {
|
|
4158
|
+
const ret = WasmStructuredData.__unwrap(getObject(arg0));
|
|
4159
|
+
return ret;
|
|
4160
|
+
}
|
|
4161
|
+
export function __wbg_wasmtabledata_new(arg0) {
|
|
4162
|
+
const ret = WasmTableData.__wrap(arg0);
|
|
4168
4163
|
return addHeapObject(ret);
|
|
4169
4164
|
}
|
|
4170
|
-
export function
|
|
4171
|
-
getObject(arg0)
|
|
4165
|
+
export function __wbg_wasmtabledata_unwrap(arg0) {
|
|
4166
|
+
const ret = WasmTableData.__unwrap(getObject(arg0));
|
|
4167
|
+
return ret;
|
|
4172
4168
|
}
|
|
4173
|
-
export function
|
|
4174
|
-
const ret =
|
|
4169
|
+
export function __wbg_wasmtextannotation_new(arg0) {
|
|
4170
|
+
const ret = WasmTextAnnotation.__wrap(arg0);
|
|
4175
4171
|
return addHeapObject(ret);
|
|
4176
4172
|
}
|
|
4173
|
+
export function __wbg_wasmtextannotation_unwrap(arg0) {
|
|
4174
|
+
const ret = WasmTextAnnotation.__unwrap(getObject(arg0));
|
|
4175
|
+
return ret;
|
|
4176
|
+
}
|
|
4177
4177
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
4178
4178
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
4179
4179
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -4186,69 +4186,69 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
4186
4186
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
4187
4187
|
takeObject(arg0);
|
|
4188
4188
|
}
|
|
4189
|
-
const
|
|
4189
|
+
const WasmConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4190
4190
|
? { register: () => {}, unregister: () => {} }
|
|
4191
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4192
|
-
const
|
|
4191
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptions_free(ptr >>> 0, 1));
|
|
4192
|
+
const WasmConversionOptionsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4193
4193
|
? { register: () => {}, unregister: () => {} }
|
|
4194
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4195
|
-
const
|
|
4194
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsbuilder_free(ptr >>> 0, 1));
|
|
4195
|
+
const WasmConversionOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4196
4196
|
? { register: () => {}, unregister: () => {} }
|
|
4197
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4198
|
-
const
|
|
4197
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsupdate_free(ptr >>> 0, 1));
|
|
4198
|
+
const WasmConversionResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4199
4199
|
? { register: () => {}, unregister: () => {} }
|
|
4200
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4201
|
-
const
|
|
4200
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionresult_free(ptr >>> 0, 1));
|
|
4201
|
+
const WasmDocumentMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4202
4202
|
? { register: () => {}, unregister: () => {} }
|
|
4203
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4204
|
-
const
|
|
4203
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentmetadata_free(ptr >>> 0, 1));
|
|
4204
|
+
const WasmDocumentNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4205
4205
|
? { register: () => {}, unregister: () => {} }
|
|
4206
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4207
|
-
const
|
|
4206
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentnode_free(ptr >>> 0, 1));
|
|
4207
|
+
const WasmDocumentStructureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4208
4208
|
? { register: () => {}, unregister: () => {} }
|
|
4209
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4210
|
-
const
|
|
4209
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentstructure_free(ptr >>> 0, 1));
|
|
4210
|
+
const WasmGridCellFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4211
4211
|
? { register: () => {}, unregister: () => {} }
|
|
4212
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4213
|
-
const
|
|
4212
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgridcell_free(ptr >>> 0, 1));
|
|
4213
|
+
const WasmHeaderMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4214
4214
|
? { register: () => {}, unregister: () => {} }
|
|
4215
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4216
|
-
const
|
|
4215
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheadermetadata_free(ptr >>> 0, 1));
|
|
4216
|
+
const WasmHtmlMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4217
4217
|
? { register: () => {}, unregister: () => {} }
|
|
4218
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4219
|
-
const
|
|
4218
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr >>> 0, 1));
|
|
4219
|
+
const WasmImageMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4220
4220
|
? { register: () => {}, unregister: () => {} }
|
|
4221
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4222
|
-
const
|
|
4221
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr >>> 0, 1));
|
|
4222
|
+
const WasmLinkMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4223
4223
|
? { register: () => {}, unregister: () => {} }
|
|
4224
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4225
|
-
const
|
|
4224
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr >>> 0, 1));
|
|
4225
|
+
const WasmMetadataConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4226
4226
|
? { register: () => {}, unregister: () => {} }
|
|
4227
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4228
|
-
const
|
|
4227
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfig_free(ptr >>> 0, 1));
|
|
4228
|
+
const WasmMetadataConfigUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4229
4229
|
? { register: () => {}, unregister: () => {} }
|
|
4230
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4231
|
-
const
|
|
4230
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfigupdate_free(ptr >>> 0, 1));
|
|
4231
|
+
const WasmPreprocessingOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4232
4232
|
? { register: () => {}, unregister: () => {} }
|
|
4233
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4234
|
-
const
|
|
4233
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptions_free(ptr >>> 0, 1));
|
|
4234
|
+
const WasmPreprocessingOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4235
4235
|
? { register: () => {}, unregister: () => {} }
|
|
4236
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4237
|
-
const
|
|
4236
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr >>> 0, 1));
|
|
4237
|
+
const WasmProcessingWarningFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4238
4238
|
? { register: () => {}, unregister: () => {} }
|
|
4239
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4240
|
-
const
|
|
4239
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmprocessingwarning_free(ptr >>> 0, 1));
|
|
4240
|
+
const WasmStructuredDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4241
4241
|
? { register: () => {}, unregister: () => {} }
|
|
4242
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4243
|
-
const
|
|
4242
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstructureddata_free(ptr >>> 0, 1));
|
|
4243
|
+
const WasmTableDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4244
4244
|
? { register: () => {}, unregister: () => {} }
|
|
4245
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4246
|
-
const
|
|
4245
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtabledata_free(ptr >>> 0, 1));
|
|
4246
|
+
const WasmTableGridFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4247
4247
|
? { register: () => {}, unregister: () => {} }
|
|
4248
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4249
|
-
const
|
|
4248
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtablegrid_free(ptr >>> 0, 1));
|
|
4249
|
+
const WasmTextAnnotationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4250
4250
|
? { register: () => {}, unregister: () => {} }
|
|
4251
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
4251
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextannotation_free(ptr >>> 0, 1));
|
|
4252
4252
|
|
|
4253
4253
|
function addHeapObject(obj) {
|
|
4254
4254
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|