@mermanjs/web-render 0.9.3 → 0.10.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/THIRD_PARTY_LICENSES/d3-path/LICENSE +13 -0
- package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-APACHE +201 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-ISC +13 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-MIT +21 -0
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +60 -38
- package/THIRD_PARTY_NOTICES.md +55 -23
- package/artifacts/provenance.json +156 -106
- package/artifacts/wasm/merman_wasm.d.ts +50 -4
- package/artifacts/wasm/merman_wasm.js +764 -230
- package/artifacts/wasm/merman_wasm_bg.wasm +0 -0
- package/artifacts/wasm/merman_wasm_bg.wasm.d.ts +19 -2
- package/dist/generated/binding-contract.d.ts +384 -0
- package/dist/generated/binding-contract.d.ts.map +1 -0
- package/dist/generated/binding-contract.js +18 -12
- package/dist/generated/binding-contract.js.map +1 -1
- package/dist/generated/capability-surface.d.ts +56 -3
- package/dist/generated/capability-surface.d.ts.map +1 -1
- package/dist/generated/capability-surface.js +64 -1
- package/dist/generated/capability-surface.js.map +1 -1
- package/dist/generated/resource-contract.d.ts +3 -3
- package/dist/generated/resource-contract.d.ts.map +1 -1
- package/dist/generated/resource-contract.js +36 -10
- package/dist/generated/resource-contract.js.map +1 -1
- package/dist/generated/text-measurement-abi.d.ts +5 -0
- package/dist/generated/text-measurement-abi.d.ts.map +1 -1
- package/dist/generated/text-measurement-abi.js +1 -0
- package/dist/generated/text-measurement-abi.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/json-input.js +13 -0
- package/dist/json-input.js.map +1 -0
- package/dist/package-entries/render.d.ts +15 -7
- package/dist/package-entries/render.d.ts.map +1 -1
- package/dist/package-entries/render.js +22 -7
- package/dist/package-entries/render.js.map +1 -1
- package/dist/public-catalog.d.ts +7 -7
- package/dist/public-catalog.d.ts.map +1 -1
- package/dist/public-catalog.js +6 -15
- package/dist/public-catalog.js.map +1 -1
- package/dist/public-types.d.ts +736 -59
- package/dist/public-types.d.ts.map +1 -1
- package/dist/runtime-analysis.d.ts.map +1 -1
- package/dist/runtime-core.d.ts +5 -3
- package/dist/runtime-core.d.ts.map +1 -1
- package/dist/runtime-core.js +222 -75
- package/dist/runtime-core.js.map +1 -1
- package/dist/runtime-mount.d.ts +4 -0
- package/dist/runtime-mount.d.ts.map +1 -0
- package/dist/runtime-mount.js +276 -0
- package/dist/runtime-mount.js.map +1 -0
- package/dist/runtime-render-session.d.ts.map +1 -1
- package/dist/runtime-render-session.js +8 -1
- package/dist/runtime-render-session.js.map +1 -1
- package/dist/runtime-render.d.ts +12 -10
- package/dist/runtime-render.d.ts.map +1 -1
- package/dist/runtime-render.js +118 -32
- package/dist/runtime-render.js.map +1 -1
- package/dist/runtime-state.d.ts +4 -3
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +3 -2
- package/dist/runtime-state.js.map +1 -1
- package/dist/surface-runtime.js +2 -2
- package/dist/surface-runtime.js.map +1 -1
- package/dist/svg-dom.js +24 -0
- package/dist/svg-dom.js.map +1 -0
- package/dist/svg-safety-policy.js +210 -2
- package/dist/svg-safety-policy.js.map +1 -1
- package/package.json +4 -3
|
@@ -1,5 +1,217 @@
|
|
|
1
1
|
/* @ts-self-types="./merman_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
+
export class PreparedSource {
|
|
4
|
+
__destroy_into_raw() {
|
|
5
|
+
const ptr = this.__wbg_ptr;
|
|
6
|
+
this.__wbg_ptr = 0;
|
|
7
|
+
PreparedSourceFinalization.unregister(this);
|
|
8
|
+
return ptr;
|
|
9
|
+
}
|
|
10
|
+
free() {
|
|
11
|
+
const ptr = this.__destroy_into_raw();
|
|
12
|
+
wasm.__wbg_preparedsource_free(ptr, 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @param {string | null | undefined} options_json
|
|
16
|
+
* @param {Function} callback
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
edgeGeometryJsonWithTextMeasurer(options_json, callback) {
|
|
20
|
+
let deferred3_0;
|
|
21
|
+
let deferred3_1;
|
|
22
|
+
try {
|
|
23
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
24
|
+
var len0 = WASM_VECTOR_LEN;
|
|
25
|
+
const ret = wasm.preparedsource_edgeGeometryJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, callback);
|
|
26
|
+
var ptr2 = ret[0];
|
|
27
|
+
var len2 = ret[1];
|
|
28
|
+
if (ret[3]) {
|
|
29
|
+
ptr2 = 0; len2 = 0;
|
|
30
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
31
|
+
}
|
|
32
|
+
deferred3_0 = ptr2;
|
|
33
|
+
deferred3_1 = len2;
|
|
34
|
+
return getStringFromWasm0(ptr2, len2);
|
|
35
|
+
} finally {
|
|
36
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @param {string | null} [options_json]
|
|
41
|
+
* @returns {string}
|
|
42
|
+
*/
|
|
43
|
+
edgeGeometryJson(options_json) {
|
|
44
|
+
let deferred3_0;
|
|
45
|
+
let deferred3_1;
|
|
46
|
+
try {
|
|
47
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
48
|
+
var len0 = WASM_VECTOR_LEN;
|
|
49
|
+
const ret = wasm.preparedsource_edgeGeometryJson(this.__wbg_ptr, ptr0, len0);
|
|
50
|
+
var ptr2 = ret[0];
|
|
51
|
+
var len2 = ret[1];
|
|
52
|
+
if (ret[3]) {
|
|
53
|
+
ptr2 = 0; len2 = 0;
|
|
54
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
55
|
+
}
|
|
56
|
+
deferred3_0 = ptr2;
|
|
57
|
+
deferred3_1 = len2;
|
|
58
|
+
return getStringFromWasm0(ptr2, len2);
|
|
59
|
+
} finally {
|
|
60
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @param {string | null | undefined} options_json
|
|
65
|
+
* @param {Function} callback
|
|
66
|
+
* @returns {string}
|
|
67
|
+
*/
|
|
68
|
+
layoutJsonWithTextMeasurer(options_json, callback) {
|
|
69
|
+
let deferred3_0;
|
|
70
|
+
let deferred3_1;
|
|
71
|
+
try {
|
|
72
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
73
|
+
var len0 = WASM_VECTOR_LEN;
|
|
74
|
+
const ret = wasm.preparedsource_layoutJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, callback);
|
|
75
|
+
var ptr2 = ret[0];
|
|
76
|
+
var len2 = ret[1];
|
|
77
|
+
if (ret[3]) {
|
|
78
|
+
ptr2 = 0; len2 = 0;
|
|
79
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
80
|
+
}
|
|
81
|
+
deferred3_0 = ptr2;
|
|
82
|
+
deferred3_1 = len2;
|
|
83
|
+
return getStringFromWasm0(ptr2, len2);
|
|
84
|
+
} finally {
|
|
85
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @param {string | null} [options_json]
|
|
90
|
+
* @returns {string}
|
|
91
|
+
*/
|
|
92
|
+
layoutJson(options_json) {
|
|
93
|
+
let deferred3_0;
|
|
94
|
+
let deferred3_1;
|
|
95
|
+
try {
|
|
96
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
97
|
+
var len0 = WASM_VECTOR_LEN;
|
|
98
|
+
const ret = wasm.preparedsource_layoutJson(this.__wbg_ptr, ptr0, len0);
|
|
99
|
+
var ptr2 = ret[0];
|
|
100
|
+
var len2 = ret[1];
|
|
101
|
+
if (ret[3]) {
|
|
102
|
+
ptr2 = 0; len2 = 0;
|
|
103
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
104
|
+
}
|
|
105
|
+
deferred3_0 = ptr2;
|
|
106
|
+
deferred3_1 = len2;
|
|
107
|
+
return getStringFromWasm0(ptr2, len2);
|
|
108
|
+
} finally {
|
|
109
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @param {string} source
|
|
114
|
+
* @param {string | null} [options_json]
|
|
115
|
+
*/
|
|
116
|
+
constructor(source, options_json) {
|
|
117
|
+
let ptr0, len0, ptr1, len1;
|
|
118
|
+
try {
|
|
119
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
120
|
+
len0 = WASM_VECTOR_LEN;
|
|
121
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
122
|
+
len1 = WASM_VECTOR_LEN;
|
|
123
|
+
} catch (e) {
|
|
124
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
125
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
126
|
+
throw e;
|
|
127
|
+
}
|
|
128
|
+
const ret = wasm.preparedsource_new(ptr0, len0, ptr1, len1);
|
|
129
|
+
if (ret[2]) {
|
|
130
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
131
|
+
}
|
|
132
|
+
this.__wbg_ptr = ret[0];
|
|
133
|
+
PreparedSourceFinalization.register(this, this.__wbg_ptr, this);
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @param {string | null | undefined} options_json
|
|
138
|
+
* @param {Function} callback
|
|
139
|
+
* @returns {any}
|
|
140
|
+
*/
|
|
141
|
+
renderSvgResultWithTextMeasurer(options_json, callback) {
|
|
142
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
143
|
+
var len0 = WASM_VECTOR_LEN;
|
|
144
|
+
const ret = wasm.preparedsource_renderSvgResultWithTextMeasurer(this.__wbg_ptr, ptr0, len0, callback);
|
|
145
|
+
if (ret[2]) {
|
|
146
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
147
|
+
}
|
|
148
|
+
return takeFromExternrefTable0(ret[0]);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @param {string | null} [options_json]
|
|
152
|
+
* @returns {any}
|
|
153
|
+
*/
|
|
154
|
+
renderSvgResult(options_json) {
|
|
155
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
156
|
+
var len0 = WASM_VECTOR_LEN;
|
|
157
|
+
const ret = wasm.preparedsource_renderSvgResult(this.__wbg_ptr, ptr0, len0);
|
|
158
|
+
if (ret[2]) {
|
|
159
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
160
|
+
}
|
|
161
|
+
return takeFromExternrefTable0(ret[0]);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {string | null | undefined} options_json
|
|
165
|
+
* @param {Function} callback
|
|
166
|
+
* @returns {string}
|
|
167
|
+
*/
|
|
168
|
+
renderSvgWithTextMeasurer(options_json, callback) {
|
|
169
|
+
let deferred3_0;
|
|
170
|
+
let deferred3_1;
|
|
171
|
+
try {
|
|
172
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
173
|
+
var len0 = WASM_VECTOR_LEN;
|
|
174
|
+
const ret = wasm.preparedsource_renderSvgWithTextMeasurer(this.__wbg_ptr, ptr0, len0, callback);
|
|
175
|
+
var ptr2 = ret[0];
|
|
176
|
+
var len2 = ret[1];
|
|
177
|
+
if (ret[3]) {
|
|
178
|
+
ptr2 = 0; len2 = 0;
|
|
179
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
180
|
+
}
|
|
181
|
+
deferred3_0 = ptr2;
|
|
182
|
+
deferred3_1 = len2;
|
|
183
|
+
return getStringFromWasm0(ptr2, len2);
|
|
184
|
+
} finally {
|
|
185
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @param {string | null} [options_json]
|
|
190
|
+
* @returns {string}
|
|
191
|
+
*/
|
|
192
|
+
renderSvg(options_json) {
|
|
193
|
+
let deferred3_0;
|
|
194
|
+
let deferred3_1;
|
|
195
|
+
try {
|
|
196
|
+
var ptr0 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
+
var len0 = WASM_VECTOR_LEN;
|
|
198
|
+
const ret = wasm.preparedsource_renderSvg(this.__wbg_ptr, ptr0, len0);
|
|
199
|
+
var ptr2 = ret[0];
|
|
200
|
+
var len2 = ret[1];
|
|
201
|
+
if (ret[3]) {
|
|
202
|
+
ptr2 = 0; len2 = 0;
|
|
203
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
204
|
+
}
|
|
205
|
+
deferred3_0 = ptr2;
|
|
206
|
+
deferred3_1 = len2;
|
|
207
|
+
return getStringFromWasm0(ptr2, len2);
|
|
208
|
+
} finally {
|
|
209
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (Symbol.dispose) PreparedSource.prototype[Symbol.dispose] = PreparedSource.prototype.free;
|
|
214
|
+
|
|
3
215
|
export class RenderSession {
|
|
4
216
|
__destroy_into_raw() {
|
|
5
217
|
const ptr = this.__wbg_ptr;
|
|
@@ -21,10 +233,17 @@ export class RenderSession {
|
|
|
21
233
|
let deferred4_0;
|
|
22
234
|
let deferred4_1;
|
|
23
235
|
try {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
236
|
+
let ptr0, len0, ptr1, len1;
|
|
237
|
+
try {
|
|
238
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
239
|
+
len0 = WASM_VECTOR_LEN;
|
|
240
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
+
len1 = WASM_VECTOR_LEN;
|
|
242
|
+
} catch (e) {
|
|
243
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
244
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
245
|
+
throw e;
|
|
246
|
+
}
|
|
28
247
|
const ret = wasm.rendersession_edgeGeometryJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
29
248
|
var ptr3 = ret[0];
|
|
30
249
|
var len3 = ret[1];
|
|
@@ -48,10 +267,17 @@ export class RenderSession {
|
|
|
48
267
|
let deferred4_0;
|
|
49
268
|
let deferred4_1;
|
|
50
269
|
try {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
270
|
+
let ptr0, len0, ptr1, len1;
|
|
271
|
+
try {
|
|
272
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
+
len0 = WASM_VECTOR_LEN;
|
|
274
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
275
|
+
len1 = WASM_VECTOR_LEN;
|
|
276
|
+
} catch (e) {
|
|
277
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
278
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
279
|
+
throw e;
|
|
280
|
+
}
|
|
55
281
|
const ret = wasm.rendersession_edgeGeometryJson(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
56
282
|
var ptr3 = ret[0];
|
|
57
283
|
var len3 = ret[1];
|
|
@@ -76,10 +302,17 @@ export class RenderSession {
|
|
|
76
302
|
let deferred4_0;
|
|
77
303
|
let deferred4_1;
|
|
78
304
|
try {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
305
|
+
let ptr0, len0, ptr1, len1;
|
|
306
|
+
try {
|
|
307
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
+
len0 = WASM_VECTOR_LEN;
|
|
309
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
+
len1 = WASM_VECTOR_LEN;
|
|
311
|
+
} catch (e) {
|
|
312
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
313
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
314
|
+
throw e;
|
|
315
|
+
}
|
|
83
316
|
const ret = wasm.rendersession_layoutJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
84
317
|
var ptr3 = ret[0];
|
|
85
318
|
var len3 = ret[1];
|
|
@@ -103,10 +336,17 @@ export class RenderSession {
|
|
|
103
336
|
let deferred4_0;
|
|
104
337
|
let deferred4_1;
|
|
105
338
|
try {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
339
|
+
let ptr0, len0, ptr1, len1;
|
|
340
|
+
try {
|
|
341
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
|
+
len0 = WASM_VECTOR_LEN;
|
|
343
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
len1 = WASM_VECTOR_LEN;
|
|
345
|
+
} catch (e) {
|
|
346
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
347
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
348
|
+
throw e;
|
|
349
|
+
}
|
|
110
350
|
const ret = wasm.rendersession_layoutJson(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
111
351
|
var ptr3 = ret[0];
|
|
112
352
|
var len3 = ret[1];
|
|
@@ -135,6 +375,53 @@ export class RenderSession {
|
|
|
135
375
|
RenderSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
136
376
|
return this;
|
|
137
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* @param {string} source
|
|
380
|
+
* @param {string | null | undefined} options_json
|
|
381
|
+
* @param {Function} callback
|
|
382
|
+
* @returns {any}
|
|
383
|
+
*/
|
|
384
|
+
renderSvgResultWithTextMeasurer(source, options_json, callback) {
|
|
385
|
+
let ptr0, len0, ptr1, len1;
|
|
386
|
+
try {
|
|
387
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
len0 = WASM_VECTOR_LEN;
|
|
389
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
len1 = WASM_VECTOR_LEN;
|
|
391
|
+
} catch (e) {
|
|
392
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
393
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
394
|
+
throw e;
|
|
395
|
+
}
|
|
396
|
+
const ret = wasm.rendersession_renderSvgResultWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
397
|
+
if (ret[2]) {
|
|
398
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
399
|
+
}
|
|
400
|
+
return takeFromExternrefTable0(ret[0]);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @param {string} source
|
|
404
|
+
* @param {string | null} [options_json]
|
|
405
|
+
* @returns {any}
|
|
406
|
+
*/
|
|
407
|
+
renderSvgResult(source, options_json) {
|
|
408
|
+
let ptr0, len0, ptr1, len1;
|
|
409
|
+
try {
|
|
410
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
len0 = WASM_VECTOR_LEN;
|
|
412
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
len1 = WASM_VECTOR_LEN;
|
|
414
|
+
} catch (e) {
|
|
415
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
416
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
417
|
+
throw e;
|
|
418
|
+
}
|
|
419
|
+
const ret = wasm.rendersession_renderSvgResult(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
420
|
+
if (ret[2]) {
|
|
421
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
422
|
+
}
|
|
423
|
+
return takeFromExternrefTable0(ret[0]);
|
|
424
|
+
}
|
|
138
425
|
/**
|
|
139
426
|
* @param {string} source
|
|
140
427
|
* @param {string | null | undefined} options_json
|
|
@@ -145,10 +432,17 @@ export class RenderSession {
|
|
|
145
432
|
let deferred4_0;
|
|
146
433
|
let deferred4_1;
|
|
147
434
|
try {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
435
|
+
let ptr0, len0, ptr1, len1;
|
|
436
|
+
try {
|
|
437
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
438
|
+
len0 = WASM_VECTOR_LEN;
|
|
439
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
440
|
+
len1 = WASM_VECTOR_LEN;
|
|
441
|
+
} catch (e) {
|
|
442
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
443
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
444
|
+
throw e;
|
|
445
|
+
}
|
|
152
446
|
const ret = wasm.rendersession_renderSvgWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
153
447
|
var ptr3 = ret[0];
|
|
154
448
|
var len3 = ret[1];
|
|
@@ -172,10 +466,17 @@ export class RenderSession {
|
|
|
172
466
|
let deferred4_0;
|
|
173
467
|
let deferred4_1;
|
|
174
468
|
try {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
469
|
+
let ptr0, len0, ptr1, len1;
|
|
470
|
+
try {
|
|
471
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
472
|
+
len0 = WASM_VECTOR_LEN;
|
|
473
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
474
|
+
len1 = WASM_VECTOR_LEN;
|
|
475
|
+
} catch (e) {
|
|
476
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
477
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
478
|
+
throw e;
|
|
479
|
+
}
|
|
179
480
|
const ret = wasm.rendersession_renderSvg(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
180
481
|
var ptr3 = ret[0];
|
|
181
482
|
var len3 = ret[1];
|
|
@@ -199,10 +500,17 @@ if (Symbol.dispose) RenderSession.prototype[Symbol.dispose] = RenderSession.prot
|
|
|
199
500
|
* @returns {any}
|
|
200
501
|
*/
|
|
201
502
|
export function analysisFacts(source, options_json) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
503
|
+
let ptr0, len0, ptr1, len1;
|
|
504
|
+
try {
|
|
505
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
506
|
+
len0 = WASM_VECTOR_LEN;
|
|
507
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
508
|
+
len1 = WASM_VECTOR_LEN;
|
|
509
|
+
} catch (e) {
|
|
510
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
511
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
512
|
+
throw e;
|
|
513
|
+
}
|
|
206
514
|
const ret = wasm.analysisFacts(ptr0, len0, ptr1, len1);
|
|
207
515
|
if (ret[2]) {
|
|
208
516
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -216,10 +524,17 @@ export function analysisFacts(source, options_json) {
|
|
|
216
524
|
* @returns {any}
|
|
217
525
|
*/
|
|
218
526
|
export function analyze(source, options_json) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
527
|
+
let ptr0, len0, ptr1, len1;
|
|
528
|
+
try {
|
|
529
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
530
|
+
len0 = WASM_VECTOR_LEN;
|
|
531
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
532
|
+
len1 = WASM_VECTOR_LEN;
|
|
533
|
+
} catch (e) {
|
|
534
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
535
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
536
|
+
throw e;
|
|
537
|
+
}
|
|
223
538
|
const ret = wasm.analyze(ptr0, len0, ptr1, len1);
|
|
224
539
|
if (ret[2]) {
|
|
225
540
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -234,12 +549,20 @@ export function analyze(source, options_json) {
|
|
|
234
549
|
* @returns {any}
|
|
235
550
|
*/
|
|
236
551
|
export function analyzeDocument(source, uri, options_json) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
552
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
553
|
+
try {
|
|
554
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
|
+
len0 = WASM_VECTOR_LEN;
|
|
556
|
+
ptr1 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
557
|
+
len1 = WASM_VECTOR_LEN;
|
|
558
|
+
ptr2 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
559
|
+
len2 = WASM_VECTOR_LEN;
|
|
560
|
+
} catch (e) {
|
|
561
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
562
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
563
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
564
|
+
throw e;
|
|
565
|
+
}
|
|
243
566
|
const ret = wasm.analyzeDocument(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
244
567
|
if (ret[2]) {
|
|
245
568
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -254,12 +577,20 @@ export function analyzeDocument(source, uri, options_json) {
|
|
|
254
577
|
* @returns {any}
|
|
255
578
|
*/
|
|
256
579
|
export function analyzeDocumentFacts(source, uri, options_json) {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
580
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
581
|
+
try {
|
|
582
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
583
|
+
len0 = WASM_VECTOR_LEN;
|
|
584
|
+
ptr1 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
585
|
+
len1 = WASM_VECTOR_LEN;
|
|
586
|
+
ptr2 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
587
|
+
len2 = WASM_VECTOR_LEN;
|
|
588
|
+
} catch (e) {
|
|
589
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
590
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
591
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
592
|
+
throw e;
|
|
593
|
+
}
|
|
263
594
|
const ret = wasm.analyzeDocumentFacts(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
264
595
|
if (ret[2]) {
|
|
265
596
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -273,10 +604,17 @@ export function analyzeDocumentFacts(source, uri, options_json) {
|
|
|
273
604
|
* @returns {any}
|
|
274
605
|
*/
|
|
275
606
|
export function analyzeJson(source, options_json) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
607
|
+
let ptr0, len0, ptr1, len1;
|
|
608
|
+
try {
|
|
609
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
610
|
+
len0 = WASM_VECTOR_LEN;
|
|
611
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
+
len1 = WASM_VECTOR_LEN;
|
|
613
|
+
} catch (e) {
|
|
614
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
615
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
616
|
+
throw e;
|
|
617
|
+
}
|
|
280
618
|
const ret = wasm.analyzeJson(ptr0, len0, ptr1, len1);
|
|
281
619
|
if (ret[2]) {
|
|
282
620
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -306,6 +644,30 @@ export function asciiSupportedDiagrams() {
|
|
|
306
644
|
return takeFromExternrefTable0(ret[0]);
|
|
307
645
|
}
|
|
308
646
|
|
|
647
|
+
/**
|
|
648
|
+
* @param {string} query_json
|
|
649
|
+
* @param {string | null} [options_json]
|
|
650
|
+
* @returns {any}
|
|
651
|
+
*/
|
|
652
|
+
export function describeThemeSupport(query_json, options_json) {
|
|
653
|
+
let ptr0, len0, ptr1, len1;
|
|
654
|
+
try {
|
|
655
|
+
ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
656
|
+
len0 = WASM_VECTOR_LEN;
|
|
657
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
658
|
+
len1 = WASM_VECTOR_LEN;
|
|
659
|
+
} catch (e) {
|
|
660
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
661
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
662
|
+
throw e;
|
|
663
|
+
}
|
|
664
|
+
const ret = wasm.describeThemeSupport(ptr0, len0, ptr1, len1);
|
|
665
|
+
if (ret[2]) {
|
|
666
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
667
|
+
}
|
|
668
|
+
return takeFromExternrefTable0(ret[0]);
|
|
669
|
+
}
|
|
670
|
+
|
|
309
671
|
/**
|
|
310
672
|
* @returns {any}
|
|
311
673
|
*/
|
|
@@ -326,10 +688,17 @@ export function edgeGeometryJson(source, options_json) {
|
|
|
326
688
|
let deferred4_0;
|
|
327
689
|
let deferred4_1;
|
|
328
690
|
try {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
691
|
+
let ptr0, len0, ptr1, len1;
|
|
692
|
+
try {
|
|
693
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
694
|
+
len0 = WASM_VECTOR_LEN;
|
|
695
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
696
|
+
len1 = WASM_VECTOR_LEN;
|
|
697
|
+
} catch (e) {
|
|
698
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
699
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
700
|
+
throw e;
|
|
701
|
+
}
|
|
333
702
|
const ret = wasm.edgeGeometryJson(ptr0, len0, ptr1, len1);
|
|
334
703
|
var ptr3 = ret[0];
|
|
335
704
|
var len3 = ret[1];
|
|
@@ -355,10 +724,17 @@ export function edgeGeometryJsonWithTextMeasurer(source, options_json, callback)
|
|
|
355
724
|
let deferred4_0;
|
|
356
725
|
let deferred4_1;
|
|
357
726
|
try {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
727
|
+
let ptr0, len0, ptr1, len1;
|
|
728
|
+
try {
|
|
729
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
730
|
+
len0 = WASM_VECTOR_LEN;
|
|
731
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
732
|
+
len1 = WASM_VECTOR_LEN;
|
|
733
|
+
} catch (e) {
|
|
734
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
735
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
736
|
+
throw e;
|
|
737
|
+
}
|
|
362
738
|
const ret = wasm.edgeGeometryJsonWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
363
739
|
var ptr3 = ret[0];
|
|
364
740
|
var len3 = ret[1];
|
|
@@ -374,6 +750,30 @@ export function edgeGeometryJsonWithTextMeasurer(source, options_json, callback)
|
|
|
374
750
|
}
|
|
375
751
|
}
|
|
376
752
|
|
|
753
|
+
/**
|
|
754
|
+
* @param {string} preset_id
|
|
755
|
+
* @param {string | null} [options_json]
|
|
756
|
+
* @returns {any}
|
|
757
|
+
*/
|
|
758
|
+
export function exportThemePreset(preset_id, options_json) {
|
|
759
|
+
let ptr0, len0, ptr1, len1;
|
|
760
|
+
try {
|
|
761
|
+
ptr0 = passStringToWasm0(preset_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
762
|
+
len0 = WASM_VECTOR_LEN;
|
|
763
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
764
|
+
len1 = WASM_VECTOR_LEN;
|
|
765
|
+
} catch (e) {
|
|
766
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
767
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
768
|
+
throw e;
|
|
769
|
+
}
|
|
770
|
+
const ret = wasm.exportThemePreset(ptr0, len0, ptr1, len1);
|
|
771
|
+
if (ret[2]) {
|
|
772
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
773
|
+
}
|
|
774
|
+
return takeFromExternrefTable0(ret[0]);
|
|
775
|
+
}
|
|
776
|
+
|
|
377
777
|
/**
|
|
378
778
|
* @param {string} source
|
|
379
779
|
* @param {string | null} [options_json]
|
|
@@ -383,10 +783,17 @@ export function layoutJson(source, options_json) {
|
|
|
383
783
|
let deferred4_0;
|
|
384
784
|
let deferred4_1;
|
|
385
785
|
try {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
786
|
+
let ptr0, len0, ptr1, len1;
|
|
787
|
+
try {
|
|
788
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
789
|
+
len0 = WASM_VECTOR_LEN;
|
|
790
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
+
len1 = WASM_VECTOR_LEN;
|
|
792
|
+
} catch (e) {
|
|
793
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
794
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
795
|
+
throw e;
|
|
796
|
+
}
|
|
390
797
|
const ret = wasm.layoutJson(ptr0, len0, ptr1, len1);
|
|
391
798
|
var ptr3 = ret[0];
|
|
392
799
|
var len3 = ret[1];
|
|
@@ -412,10 +819,17 @@ export function layoutJsonWithTextMeasurer(source, options_json, callback) {
|
|
|
412
819
|
let deferred4_0;
|
|
413
820
|
let deferred4_1;
|
|
414
821
|
try {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
822
|
+
let ptr0, len0, ptr1, len1;
|
|
823
|
+
try {
|
|
824
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
825
|
+
len0 = WASM_VECTOR_LEN;
|
|
826
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
827
|
+
len1 = WASM_VECTOR_LEN;
|
|
828
|
+
} catch (e) {
|
|
829
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
830
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
831
|
+
throw e;
|
|
832
|
+
}
|
|
419
833
|
const ret = wasm.layoutJsonWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
420
834
|
var ptr3 = ret[0];
|
|
421
835
|
var len3 = ret[1];
|
|
@@ -442,6 +856,30 @@ export function lintRuleCatalog() {
|
|
|
442
856
|
return takeFromExternrefTable0(ret[0]);
|
|
443
857
|
}
|
|
444
858
|
|
|
859
|
+
/**
|
|
860
|
+
* @param {string} design_json
|
|
861
|
+
* @param {string | null} [options_json]
|
|
862
|
+
* @returns {any}
|
|
863
|
+
*/
|
|
864
|
+
export function materializeTheme(design_json, options_json) {
|
|
865
|
+
let ptr0, len0, ptr1, len1;
|
|
866
|
+
try {
|
|
867
|
+
ptr0 = passStringToWasm0(design_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
868
|
+
len0 = WASM_VECTOR_LEN;
|
|
869
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
870
|
+
len1 = WASM_VECTOR_LEN;
|
|
871
|
+
} catch (e) {
|
|
872
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
873
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
874
|
+
throw e;
|
|
875
|
+
}
|
|
876
|
+
const ret = wasm.materializeTheme(ptr0, len0, ptr1, len1);
|
|
877
|
+
if (ret[2]) {
|
|
878
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
879
|
+
}
|
|
880
|
+
return takeFromExternrefTable0(ret[0]);
|
|
881
|
+
}
|
|
882
|
+
|
|
445
883
|
/**
|
|
446
884
|
* @returns {string}
|
|
447
885
|
*/
|
|
@@ -467,10 +905,17 @@ export function parseJson(source, options_json) {
|
|
|
467
905
|
let deferred4_0;
|
|
468
906
|
let deferred4_1;
|
|
469
907
|
try {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
908
|
+
let ptr0, len0, ptr1, len1;
|
|
909
|
+
try {
|
|
910
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
911
|
+
len0 = WASM_VECTOR_LEN;
|
|
912
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
913
|
+
len1 = WASM_VECTOR_LEN;
|
|
914
|
+
} catch (e) {
|
|
915
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
916
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
917
|
+
throw e;
|
|
918
|
+
}
|
|
474
919
|
const ret = wasm.parseJson(ptr0, len0, ptr1, len1);
|
|
475
920
|
var ptr3 = ret[0];
|
|
476
921
|
var len3 = ret[1];
|
|
@@ -486,17 +931,6 @@ export function parseJson(source, options_json) {
|
|
|
486
931
|
}
|
|
487
932
|
}
|
|
488
933
|
|
|
489
|
-
/**
|
|
490
|
-
* @returns {any}
|
|
491
|
-
*/
|
|
492
|
-
export function presentationCatalog() {
|
|
493
|
-
const ret = wasm.presentationCatalog();
|
|
494
|
-
if (ret[2]) {
|
|
495
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
496
|
-
}
|
|
497
|
-
return takeFromExternrefTable0(ret[0]);
|
|
498
|
-
}
|
|
499
|
-
|
|
500
934
|
/**
|
|
501
935
|
* @param {string} source
|
|
502
936
|
* @param {string | null} [options_json]
|
|
@@ -506,10 +940,17 @@ export function renderAscii(source, options_json) {
|
|
|
506
940
|
let deferred4_0;
|
|
507
941
|
let deferred4_1;
|
|
508
942
|
try {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
943
|
+
let ptr0, len0, ptr1, len1;
|
|
944
|
+
try {
|
|
945
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
946
|
+
len0 = WASM_VECTOR_LEN;
|
|
947
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
948
|
+
len1 = WASM_VECTOR_LEN;
|
|
949
|
+
} catch (e) {
|
|
950
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
951
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
952
|
+
throw e;
|
|
953
|
+
}
|
|
513
954
|
const ret = wasm.renderAscii(ptr0, len0, ptr1, len1);
|
|
514
955
|
var ptr3 = ret[0];
|
|
515
956
|
var len3 = ret[1];
|
|
@@ -534,10 +975,17 @@ export function renderSvg(source, options_json) {
|
|
|
534
975
|
let deferred4_0;
|
|
535
976
|
let deferred4_1;
|
|
536
977
|
try {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
978
|
+
let ptr0, len0, ptr1, len1;
|
|
979
|
+
try {
|
|
980
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
981
|
+
len0 = WASM_VECTOR_LEN;
|
|
982
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
983
|
+
len1 = WASM_VECTOR_LEN;
|
|
984
|
+
} catch (e) {
|
|
985
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
986
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
987
|
+
throw e;
|
|
988
|
+
}
|
|
541
989
|
const ret = wasm.renderSvg(ptr0, len0, ptr1, len1);
|
|
542
990
|
var ptr3 = ret[0];
|
|
543
991
|
var len3 = ret[1];
|
|
@@ -553,6 +1001,56 @@ export function renderSvg(source, options_json) {
|
|
|
553
1001
|
}
|
|
554
1002
|
}
|
|
555
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* Renders once and retains the execution metadata for the returned SVG.
|
|
1006
|
+
* @param {string} source
|
|
1007
|
+
* @param {string | null} [options_json]
|
|
1008
|
+
* @returns {any}
|
|
1009
|
+
*/
|
|
1010
|
+
export function renderSvgResult(source, options_json) {
|
|
1011
|
+
let ptr0, len0, ptr1, len1;
|
|
1012
|
+
try {
|
|
1013
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1014
|
+
len0 = WASM_VECTOR_LEN;
|
|
1015
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1016
|
+
len1 = WASM_VECTOR_LEN;
|
|
1017
|
+
} catch (e) {
|
|
1018
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1019
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1020
|
+
throw e;
|
|
1021
|
+
}
|
|
1022
|
+
const ret = wasm.renderSvgResult(ptr0, len0, ptr1, len1);
|
|
1023
|
+
if (ret[2]) {
|
|
1024
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1025
|
+
}
|
|
1026
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* @param {string} source
|
|
1031
|
+
* @param {string | null | undefined} options_json
|
|
1032
|
+
* @param {Function} callback
|
|
1033
|
+
* @returns {any}
|
|
1034
|
+
*/
|
|
1035
|
+
export function renderSvgResultWithTextMeasurer(source, options_json, callback) {
|
|
1036
|
+
let ptr0, len0, ptr1, len1;
|
|
1037
|
+
try {
|
|
1038
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1039
|
+
len0 = WASM_VECTOR_LEN;
|
|
1040
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1041
|
+
len1 = WASM_VECTOR_LEN;
|
|
1042
|
+
} catch (e) {
|
|
1043
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1044
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1045
|
+
throw e;
|
|
1046
|
+
}
|
|
1047
|
+
const ret = wasm.renderSvgResultWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
1048
|
+
if (ret[2]) {
|
|
1049
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1050
|
+
}
|
|
1051
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
556
1054
|
/**
|
|
557
1055
|
* @param {string} source
|
|
558
1056
|
* @param {string | null | undefined} options_json
|
|
@@ -563,10 +1061,17 @@ export function renderSvgWithTextMeasurer(source, options_json, callback) {
|
|
|
563
1061
|
let deferred4_0;
|
|
564
1062
|
let deferred4_1;
|
|
565
1063
|
try {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
1064
|
+
let ptr0, len0, ptr1, len1;
|
|
1065
|
+
try {
|
|
1066
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1067
|
+
len0 = WASM_VECTOR_LEN;
|
|
1068
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1069
|
+
len1 = WASM_VECTOR_LEN;
|
|
1070
|
+
} catch (e) {
|
|
1071
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1072
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1073
|
+
throw e;
|
|
1074
|
+
}
|
|
570
1075
|
const ret = wasm.renderSvgWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
571
1076
|
var ptr3 = ret[0];
|
|
572
1077
|
var len3 = ret[1];
|
|
@@ -625,10 +1130,17 @@ export function supportedThemes() {
|
|
|
625
1130
|
* @returns {any}
|
|
626
1131
|
*/
|
|
627
1132
|
export function svgPlanJson(source, options_json) {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
1133
|
+
let ptr0, len0, ptr1, len1;
|
|
1134
|
+
try {
|
|
1135
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1136
|
+
len0 = WASM_VECTOR_LEN;
|
|
1137
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1138
|
+
len1 = WASM_VECTOR_LEN;
|
|
1139
|
+
} catch (e) {
|
|
1140
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1141
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1142
|
+
throw e;
|
|
1143
|
+
}
|
|
632
1144
|
const ret = wasm.svgPlanJson(ptr0, len0, ptr1, len1);
|
|
633
1145
|
if (ret[2]) {
|
|
634
1146
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -636,6 +1148,17 @@ export function svgPlanJson(source, options_json) {
|
|
|
636
1148
|
return takeFromExternrefTable0(ret[0]);
|
|
637
1149
|
}
|
|
638
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* @returns {any}
|
|
1153
|
+
*/
|
|
1154
|
+
export function themeCatalog() {
|
|
1155
|
+
const ret = wasm.themeCatalog();
|
|
1156
|
+
if (ret[2]) {
|
|
1157
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1158
|
+
}
|
|
1159
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1160
|
+
}
|
|
1161
|
+
|
|
639
1162
|
/**
|
|
640
1163
|
* @returns {number}
|
|
641
1164
|
*/
|
|
@@ -650,10 +1173,17 @@ export function transportApiVersion() {
|
|
|
650
1173
|
* @returns {any}
|
|
651
1174
|
*/
|
|
652
1175
|
export function validate(source, options_json) {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
1176
|
+
let ptr0, len0, ptr1, len1;
|
|
1177
|
+
try {
|
|
1178
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1179
|
+
len0 = WASM_VECTOR_LEN;
|
|
1180
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1181
|
+
len1 = WASM_VECTOR_LEN;
|
|
1182
|
+
} catch (e) {
|
|
1183
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1184
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1185
|
+
throw e;
|
|
1186
|
+
}
|
|
657
1187
|
const ret = wasm.validate(ptr0, len0, ptr1, len1);
|
|
658
1188
|
if (ret[2]) {
|
|
659
1189
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -663,11 +1193,11 @@ export function validate(source, options_json) {
|
|
|
663
1193
|
function __wbg_get_imports() {
|
|
664
1194
|
const import0 = {
|
|
665
1195
|
__proto__: null,
|
|
666
|
-
|
|
1196
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
667
1197
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
668
1198
|
return ret;
|
|
669
1199
|
},
|
|
670
|
-
|
|
1200
|
+
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
671
1201
|
const ret = Number(arg0);
|
|
672
1202
|
return ret;
|
|
673
1203
|
},
|
|
@@ -675,78 +1205,78 @@ function __wbg_get_imports() {
|
|
|
675
1205
|
const ret = String(arg1);
|
|
676
1206
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
677
1207
|
const len1 = WASM_VECTOR_LEN;
|
|
678
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
679
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1208
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1209
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
680
1210
|
},
|
|
681
|
-
|
|
1211
|
+
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
682
1212
|
const v = arg1;
|
|
683
1213
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
684
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
685
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1214
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1215
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
686
1216
|
},
|
|
687
|
-
|
|
1217
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
688
1218
|
const v = arg0;
|
|
689
1219
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
690
1220
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
691
1221
|
},
|
|
692
|
-
|
|
1222
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
693
1223
|
const ret = debugString(arg1);
|
|
694
1224
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
695
1225
|
const len1 = WASM_VECTOR_LEN;
|
|
696
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
697
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1226
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1227
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
698
1228
|
},
|
|
699
|
-
|
|
1229
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
700
1230
|
const ret = arg0 in arg1;
|
|
701
1231
|
return ret;
|
|
702
1232
|
},
|
|
703
|
-
|
|
1233
|
+
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
704
1234
|
const ret = typeof(arg0) === 'bigint';
|
|
705
1235
|
return ret;
|
|
706
1236
|
},
|
|
707
|
-
|
|
1237
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
708
1238
|
const ret = arg0 === null;
|
|
709
1239
|
return ret;
|
|
710
1240
|
},
|
|
711
|
-
|
|
1241
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
712
1242
|
const val = arg0;
|
|
713
1243
|
const ret = typeof(val) === 'object' && val !== null;
|
|
714
1244
|
return ret;
|
|
715
1245
|
},
|
|
716
|
-
|
|
1246
|
+
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
717
1247
|
const ret = typeof(arg0) === 'string';
|
|
718
1248
|
return ret;
|
|
719
1249
|
},
|
|
720
|
-
|
|
1250
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
721
1251
|
const ret = arg0 === undefined;
|
|
722
1252
|
return ret;
|
|
723
1253
|
},
|
|
724
|
-
|
|
1254
|
+
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
725
1255
|
const ret = arg0 === arg1;
|
|
726
1256
|
return ret;
|
|
727
1257
|
},
|
|
728
|
-
|
|
1258
|
+
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
729
1259
|
const ret = arg0 == arg1;
|
|
730
1260
|
return ret;
|
|
731
1261
|
},
|
|
732
|
-
|
|
1262
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
733
1263
|
const obj = arg1;
|
|
734
1264
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
735
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
736
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1265
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1266
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
737
1267
|
},
|
|
738
|
-
|
|
1268
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
739
1269
|
const obj = arg1;
|
|
740
1270
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
741
1271
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
742
1272
|
var len1 = WASM_VECTOR_LEN;
|
|
743
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
744
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1273
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1274
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
745
1275
|
},
|
|
746
|
-
|
|
1276
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
747
1277
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
748
1278
|
},
|
|
749
|
-
|
|
1279
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
750
1280
|
const ret = arg0.call(arg1, arg2);
|
|
751
1281
|
return ret;
|
|
752
1282
|
}, arguments); },
|
|
@@ -761,15 +1291,15 @@ function __wbg_get_imports() {
|
|
|
761
1291
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
762
1292
|
}
|
|
763
1293
|
},
|
|
764
|
-
|
|
1294
|
+
__wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
|
|
765
1295
|
const ret = Reflect.get(arg0, arg1);
|
|
766
1296
|
return ret;
|
|
767
1297
|
}, arguments); },
|
|
768
|
-
|
|
1298
|
+
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
769
1299
|
const ret = arg0[arg1];
|
|
770
1300
|
return ret;
|
|
771
1301
|
},
|
|
772
|
-
|
|
1302
|
+
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
773
1303
|
let result;
|
|
774
1304
|
try {
|
|
775
1305
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -779,7 +1309,7 @@ function __wbg_get_imports() {
|
|
|
779
1309
|
const ret = result;
|
|
780
1310
|
return ret;
|
|
781
1311
|
},
|
|
782
|
-
|
|
1312
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
783
1313
|
let result;
|
|
784
1314
|
try {
|
|
785
1315
|
result = arg0 instanceof Uint8Array;
|
|
@@ -789,76 +1319,76 @@ function __wbg_get_imports() {
|
|
|
789
1319
|
const ret = result;
|
|
790
1320
|
return ret;
|
|
791
1321
|
},
|
|
792
|
-
|
|
1322
|
+
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
793
1323
|
const ret = Number.isSafeInteger(arg0);
|
|
794
1324
|
return ret;
|
|
795
1325
|
},
|
|
796
|
-
|
|
1326
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
797
1327
|
const ret = arg0.length;
|
|
798
1328
|
return ret;
|
|
799
1329
|
},
|
|
800
|
-
|
|
1330
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
801
1331
|
const ret = new Uint8Array(arg0);
|
|
802
1332
|
return ret;
|
|
803
1333
|
},
|
|
804
|
-
|
|
805
|
-
const ret = new
|
|
1334
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
1335
|
+
const ret = new Array();
|
|
806
1336
|
return ret;
|
|
807
1337
|
},
|
|
808
|
-
|
|
1338
|
+
__wbg_new_7075786089b89c5e: function() {
|
|
809
1339
|
const ret = new Map();
|
|
810
1340
|
return ret;
|
|
811
1341
|
},
|
|
812
|
-
|
|
813
|
-
const ret = new
|
|
1342
|
+
__wbg_new_bb74001155cb8ca8: function() {
|
|
1343
|
+
const ret = new Error();
|
|
814
1344
|
return ret;
|
|
815
1345
|
},
|
|
816
|
-
|
|
817
|
-
const ret = new
|
|
1346
|
+
__wbg_new_cd4348290afae586: function() {
|
|
1347
|
+
const ret = new Object();
|
|
818
1348
|
return ret;
|
|
819
1349
|
},
|
|
820
1350
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
821
1351
|
const ret = arg0.now();
|
|
822
1352
|
return ret;
|
|
823
1353
|
},
|
|
824
|
-
|
|
1354
|
+
__wbg_performance_7e4e4494fdc9d07a: function(arg0) {
|
|
825
1355
|
const ret = arg0.performance;
|
|
826
1356
|
return ret;
|
|
827
1357
|
},
|
|
828
|
-
|
|
1358
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
829
1359
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
830
1360
|
},
|
|
831
|
-
|
|
1361
|
+
__wbg_set_8282f7e0d2d01336: function(arg0, arg1, arg2) {
|
|
832
1362
|
const ret = arg0.set(arg1, arg2);
|
|
833
1363
|
return ret;
|
|
834
1364
|
},
|
|
835
|
-
|
|
836
|
-
arg0[arg1] = arg2;
|
|
837
|
-
},
|
|
838
|
-
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
1365
|
+
__wbg_set_d2d33b52458e984a: function(arg0, arg1, arg2) {
|
|
839
1366
|
arg0[arg1 >>> 0] = arg2;
|
|
840
1367
|
},
|
|
841
|
-
|
|
1368
|
+
__wbg_set_e4b9a833d288759a: function(arg0, arg1, arg2) {
|
|
1369
|
+
arg0[arg1] = arg2;
|
|
1370
|
+
},
|
|
1371
|
+
__wbg_stack_575c4e0918581b9c: function(arg0, arg1) {
|
|
842
1372
|
const ret = arg1.stack;
|
|
843
1373
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
844
1374
|
const len1 = WASM_VECTOR_LEN;
|
|
845
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
846
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1375
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1376
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
847
1377
|
},
|
|
848
|
-
|
|
849
|
-
const ret = typeof
|
|
1378
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
1379
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
850
1380
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
851
1381
|
},
|
|
852
|
-
|
|
853
|
-
const ret = typeof
|
|
1382
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
1383
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
854
1384
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
855
1385
|
},
|
|
856
|
-
|
|
857
|
-
const ret = typeof self === 'undefined' ?
|
|
1386
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
1387
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
858
1388
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
859
1389
|
},
|
|
860
|
-
|
|
861
|
-
const ret = typeof window === 'undefined' ?
|
|
1390
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
1391
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
862
1392
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
863
1393
|
},
|
|
864
1394
|
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
@@ -883,12 +1413,11 @@ function __wbg_get_imports() {
|
|
|
883
1413
|
},
|
|
884
1414
|
__wbindgen_init_externref_table: function() {
|
|
885
1415
|
const table = wasm.__wbindgen_externrefs;
|
|
886
|
-
const offset = table.grow(4);
|
|
887
1416
|
table.set(0, undefined);
|
|
888
|
-
table.set(
|
|
889
|
-
table.set(
|
|
890
|
-
table.set(
|
|
891
|
-
table.set(
|
|
1417
|
+
table.set(1024, undefined);
|
|
1418
|
+
table.set(1025, null);
|
|
1419
|
+
table.set(1026, true);
|
|
1420
|
+
table.set(1027, false);
|
|
892
1421
|
},
|
|
893
1422
|
};
|
|
894
1423
|
return {
|
|
@@ -897,6 +1426,9 @@ function __wbg_get_imports() {
|
|
|
897
1426
|
};
|
|
898
1427
|
}
|
|
899
1428
|
|
|
1429
|
+
const PreparedSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1430
|
+
? { register: () => {}, unregister: () => {} }
|
|
1431
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_preparedsource_free(ptr, 1));
|
|
900
1432
|
const RenderSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
901
1433
|
? { register: () => {}, unregister: () => {} }
|
|
902
1434
|
: new FinalizationRegistry(ptr => wasm.__wbg_rendersession_free(ptr, 1));
|
|
@@ -908,68 +1440,61 @@ function addToExternrefTable0(obj) {
|
|
|
908
1440
|
}
|
|
909
1441
|
|
|
910
1442
|
function debugString(val) {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
963
|
-
} catch (_) {
|
|
964
|
-
return 'Object';
|
|
1443
|
+
switch (typeof val) {
|
|
1444
|
+
// primitive types
|
|
1445
|
+
case 'number':
|
|
1446
|
+
case 'boolean':
|
|
1447
|
+
case 'undefined':
|
|
1448
|
+
return `${val}`;
|
|
1449
|
+
case 'string':
|
|
1450
|
+
return JSON.stringify(val);
|
|
1451
|
+
case 'bigint':
|
|
1452
|
+
return `${val}n`;
|
|
1453
|
+
case 'symbol':
|
|
1454
|
+
return val.description !== undefined
|
|
1455
|
+
? `Symbol(${val.description})`
|
|
1456
|
+
: 'Symbol';
|
|
1457
|
+
case 'function':
|
|
1458
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
1459
|
+
? `Function(${val.name})`
|
|
1460
|
+
: 'Function';
|
|
1461
|
+
case 'object': {
|
|
1462
|
+
if (val === null) {
|
|
1463
|
+
return 'null';
|
|
1464
|
+
}
|
|
1465
|
+
// objects
|
|
1466
|
+
if (Array.isArray(val)) {
|
|
1467
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
1468
|
+
}
|
|
1469
|
+
// errors
|
|
1470
|
+
if (val instanceof Error) {
|
|
1471
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
const toStringOutput = toString.call(val);
|
|
1475
|
+
// Test for built-in
|
|
1476
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
1477
|
+
|
|
1478
|
+
// Failed to match the standard '[object ClassName]'
|
|
1479
|
+
if (className === undefined) {
|
|
1480
|
+
return toStringOutput;
|
|
1481
|
+
}
|
|
1482
|
+
if (className === 'Object') {
|
|
1483
|
+
// we're a user defined class or Object
|
|
1484
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1485
|
+
// easier than looping through ownProperties of `val`.
|
|
1486
|
+
try {
|
|
1487
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1488
|
+
} catch (_) {
|
|
1489
|
+
return 'Object';
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1493
|
+
return className;
|
|
965
1494
|
}
|
|
1495
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
1496
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
966
1497
|
}
|
|
967
|
-
// errors
|
|
968
|
-
if (val instanceof Error) {
|
|
969
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
970
|
-
}
|
|
971
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
972
|
-
return className;
|
|
973
1498
|
}
|
|
974
1499
|
|
|
975
1500
|
function getArrayU8FromWasm0(ptr, len) {
|
|
@@ -986,7 +1511,8 @@ function getDataViewMemory0() {
|
|
|
986
1511
|
}
|
|
987
1512
|
|
|
988
1513
|
function getStringFromWasm0(ptr, len) {
|
|
989
|
-
|
|
1514
|
+
ptr = ptr >>> 0;
|
|
1515
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
990
1516
|
}
|
|
991
1517
|
|
|
992
1518
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1053,18 +1579,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
1053
1579
|
return value;
|
|
1054
1580
|
}
|
|
1055
1581
|
|
|
1056
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1582
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1057
1583
|
cachedTextDecoder.decode();
|
|
1058
1584
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1059
1585
|
let numBytesDecoded = 0;
|
|
1060
|
-
function decodeText(
|
|
1061
|
-
numBytesDecoded +=
|
|
1586
|
+
function decodeText(bytes) {
|
|
1587
|
+
numBytesDecoded += bytes.length;
|
|
1062
1588
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1063
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1589
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1064
1590
|
cachedTextDecoder.decode();
|
|
1065
|
-
numBytesDecoded =
|
|
1591
|
+
numBytesDecoded = bytes.length;
|
|
1066
1592
|
}
|
|
1067
|
-
return cachedTextDecoder.decode(
|
|
1593
|
+
return cachedTextDecoder.decode(bytes);
|
|
1068
1594
|
}
|
|
1069
1595
|
|
|
1070
1596
|
const cachedTextEncoder = new TextEncoder();
|
|
@@ -1152,9 +1678,17 @@ function initSync(module) {
|
|
|
1152
1678
|
return __wbg_finalize_init(instance, module);
|
|
1153
1679
|
}
|
|
1154
1680
|
|
|
1681
|
+
let __wbg_init_promise;
|
|
1155
1682
|
async function __wbg_init(module_or_path) {
|
|
1156
1683
|
if (wasm !== undefined) return wasm;
|
|
1684
|
+
if (__wbg_init_promise === undefined) {
|
|
1685
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1686
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1687
|
+
}
|
|
1688
|
+
return __wbg_init_promise;
|
|
1689
|
+
}
|
|
1157
1690
|
|
|
1691
|
+
async function __wbg_init_once(module_or_path) {
|
|
1158
1692
|
|
|
1159
1693
|
if (module_or_path !== undefined) {
|
|
1160
1694
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|