@auser/workflow-graph-web 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +186 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +190 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
- package/src/index.ts +385 -0
- package/src/wasm.d.ts +19 -0
- package/wasm/workflow_graph_web.js +1079 -0
- package/wasm/workflow_graph_web_bg.wasm +0 -0
|
@@ -0,0 +1,1079 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colors for the workflow graph. All values are CSS color strings.
|
|
3
|
+
*/
|
|
4
|
+
export class ThemeColors {
|
|
5
|
+
__destroy_into_raw() {
|
|
6
|
+
const ptr = this.__wbg_ptr;
|
|
7
|
+
this.__wbg_ptr = 0;
|
|
8
|
+
ThemeColorsFinalization.unregister(this);
|
|
9
|
+
return ptr;
|
|
10
|
+
}
|
|
11
|
+
free() {
|
|
12
|
+
const ptr = this.__destroy_into_raw();
|
|
13
|
+
wasm.__wbg_themecolors_free(ptr, 0);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (Symbol.dispose) ThemeColors.prototype[Symbol.dispose] = ThemeColors.prototype.free;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @param {string} canvas_id
|
|
20
|
+
*/
|
|
21
|
+
export function deselect_all(canvas_id) {
|
|
22
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
23
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24
|
+
wasm.deselect_all(ptr0, len0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {string} canvas_id
|
|
29
|
+
*/
|
|
30
|
+
export function destroy(canvas_id) {
|
|
31
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
32
|
+
const len0 = WASM_VECTOR_LEN;
|
|
33
|
+
wasm.destroy(ptr0, len0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Return the dark theme preset as a JSON string consumers can pass to render_workflow.
|
|
38
|
+
* @returns {string}
|
|
39
|
+
*/
|
|
40
|
+
export function get_dark_theme() {
|
|
41
|
+
let deferred1_0;
|
|
42
|
+
let deferred1_1;
|
|
43
|
+
try {
|
|
44
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
45
|
+
wasm.get_dark_theme(retptr);
|
|
46
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
47
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
48
|
+
deferred1_0 = r0;
|
|
49
|
+
deferred1_1 = r1;
|
|
50
|
+
return getStringFromWasm0(r0, r1);
|
|
51
|
+
} finally {
|
|
52
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
53
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Return the high-contrast accessibility theme preset as a JSON string.
|
|
59
|
+
* @returns {string}
|
|
60
|
+
*/
|
|
61
|
+
export function get_high_contrast_theme() {
|
|
62
|
+
let deferred1_0;
|
|
63
|
+
let deferred1_1;
|
|
64
|
+
try {
|
|
65
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
66
|
+
wasm.get_high_contrast_theme(retptr);
|
|
67
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
68
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
69
|
+
deferred1_0 = r0;
|
|
70
|
+
deferred1_1 = r1;
|
|
71
|
+
return getStringFromWasm0(r0, r1);
|
|
72
|
+
} finally {
|
|
73
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
74
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @param {string} canvas_id
|
|
80
|
+
* @returns {any}
|
|
81
|
+
*/
|
|
82
|
+
export function get_node_positions(canvas_id) {
|
|
83
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
84
|
+
const len0 = WASM_VECTOR_LEN;
|
|
85
|
+
const ret = wasm.get_node_positions(ptr0, len0);
|
|
86
|
+
return takeObject(ret);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Initialize an interactive workflow graph on a canvas.
|
|
91
|
+
*
|
|
92
|
+
* # Arguments
|
|
93
|
+
* - `canvas_id` — ID of the `<canvas>` element
|
|
94
|
+
* - `workflow_json` — JSON string of the `Workflow` data
|
|
95
|
+
* - `on_node_click` — optional callback: `(jobId: string) => void`
|
|
96
|
+
* - `on_node_hover` — optional callback: `(jobId: string | null) => void`
|
|
97
|
+
* - `on_canvas_click` — optional callback: `() => void`
|
|
98
|
+
* - `on_selection_change` — optional callback: `(selectedIds: string[]) => void`
|
|
99
|
+
* - `on_node_drag_end` — optional callback: `(jobId: string, x: number, y: number) => void`
|
|
100
|
+
* - `theme_json` — optional JSON string of `ThemeConfig` for custom colors, fonts, layout, direction
|
|
101
|
+
* @param {string} canvas_id
|
|
102
|
+
* @param {string} workflow_json
|
|
103
|
+
* @param {Function | null} [on_node_click]
|
|
104
|
+
* @param {Function | null} [on_node_hover]
|
|
105
|
+
* @param {Function | null} [on_canvas_click]
|
|
106
|
+
* @param {Function | null} [on_selection_change]
|
|
107
|
+
* @param {Function | null} [on_node_drag_end]
|
|
108
|
+
* @param {string | null} [theme_json]
|
|
109
|
+
*/
|
|
110
|
+
export function render_workflow(canvas_id, workflow_json, on_node_click, on_node_hover, on_canvas_click, on_selection_change, on_node_drag_end, theme_json) {
|
|
111
|
+
try {
|
|
112
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
113
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
114
|
+
const len0 = WASM_VECTOR_LEN;
|
|
115
|
+
const ptr1 = passStringToWasm0(workflow_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
116
|
+
const len1 = WASM_VECTOR_LEN;
|
|
117
|
+
var ptr2 = isLikeNone(theme_json) ? 0 : passStringToWasm0(theme_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
118
|
+
var len2 = WASM_VECTOR_LEN;
|
|
119
|
+
wasm.render_workflow(retptr, ptr0, len0, ptr1, len1, isLikeNone(on_node_click) ? 0 : addHeapObject(on_node_click), isLikeNone(on_node_hover) ? 0 : addHeapObject(on_node_hover), isLikeNone(on_canvas_click) ? 0 : addHeapObject(on_canvas_click), isLikeNone(on_selection_change) ? 0 : addHeapObject(on_selection_change), isLikeNone(on_node_drag_end) ? 0 : addHeapObject(on_node_drag_end), ptr2, len2);
|
|
120
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
121
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
122
|
+
if (r1) {
|
|
123
|
+
throw takeObject(r0);
|
|
124
|
+
}
|
|
125
|
+
} finally {
|
|
126
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {string} canvas_id
|
|
132
|
+
*/
|
|
133
|
+
export function reset_layout(canvas_id) {
|
|
134
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
135
|
+
const len0 = WASM_VECTOR_LEN;
|
|
136
|
+
wasm.reset_layout(ptr0, len0);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {string} canvas_id
|
|
141
|
+
* @param {string} job_id
|
|
142
|
+
*/
|
|
143
|
+
export function select_node(canvas_id, job_id) {
|
|
144
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
145
|
+
const len0 = WASM_VECTOR_LEN;
|
|
146
|
+
const ptr1 = passStringToWasm0(job_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
147
|
+
const len1 = WASM_VECTOR_LEN;
|
|
148
|
+
wasm.select_node(ptr0, len0, ptr1, len1);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Enable or disable auto-resize via ResizeObserver on the canvas parent.
|
|
153
|
+
* @param {string} canvas_id
|
|
154
|
+
* @param {boolean} enabled
|
|
155
|
+
*/
|
|
156
|
+
export function set_auto_resize(canvas_id, enabled) {
|
|
157
|
+
try {
|
|
158
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
159
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
160
|
+
const len0 = WASM_VECTOR_LEN;
|
|
161
|
+
wasm.set_auto_resize(retptr, ptr0, len0, enabled);
|
|
162
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
163
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
164
|
+
if (r1) {
|
|
165
|
+
throw takeObject(r0);
|
|
166
|
+
}
|
|
167
|
+
} finally {
|
|
168
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @param {string} canvas_id
|
|
174
|
+
* @param {string} positions_json
|
|
175
|
+
*/
|
|
176
|
+
export function set_node_positions(canvas_id, positions_json) {
|
|
177
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
178
|
+
const len0 = WASM_VECTOR_LEN;
|
|
179
|
+
const ptr1 = passStringToWasm0(positions_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
180
|
+
const len1 = WASM_VECTOR_LEN;
|
|
181
|
+
wasm.set_node_positions(ptr0, len0, ptr1, len1);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Set an edge click callback: `(fromId: string, toId: string) => void`.
|
|
186
|
+
* @param {string} canvas_id
|
|
187
|
+
* @param {Function} callback
|
|
188
|
+
*/
|
|
189
|
+
export function set_on_edge_click(canvas_id, callback) {
|
|
190
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
191
|
+
const len0 = WASM_VECTOR_LEN;
|
|
192
|
+
wasm.set_on_edge_click(ptr0, len0, addHeapObject(callback));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Set a custom node render callback: `(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, job: object) => boolean`.
|
|
197
|
+
* Return `true` to skip default node rendering, `false` to render the default on top.
|
|
198
|
+
* @param {string} canvas_id
|
|
199
|
+
* @param {Function} callback
|
|
200
|
+
*/
|
|
201
|
+
export function set_on_render_node(canvas_id, callback) {
|
|
202
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
203
|
+
const len0 = WASM_VECTOR_LEN;
|
|
204
|
+
wasm.set_on_render_node(ptr0, len0, addHeapObject(callback));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Update the theme at runtime without resetting state.
|
|
209
|
+
* @param {string} canvas_id
|
|
210
|
+
* @param {string} theme_json
|
|
211
|
+
*/
|
|
212
|
+
export function set_theme(canvas_id, theme_json) {
|
|
213
|
+
try {
|
|
214
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
215
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
217
|
+
const ptr1 = passStringToWasm0(theme_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
218
|
+
const len1 = WASM_VECTOR_LEN;
|
|
219
|
+
wasm.set_theme(retptr, ptr0, len0, ptr1, len1);
|
|
220
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
221
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
222
|
+
if (r1) {
|
|
223
|
+
throw takeObject(r0);
|
|
224
|
+
}
|
|
225
|
+
} finally {
|
|
226
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {string} canvas_id
|
|
232
|
+
* @param {number} level
|
|
233
|
+
*/
|
|
234
|
+
export function set_zoom(canvas_id, level) {
|
|
235
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
wasm.set_zoom(ptr0, len0, level);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function start() {
|
|
241
|
+
wasm.start();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Update workflow data without resetting node positions, zoom, or selection.
|
|
246
|
+
* @param {string} canvas_id
|
|
247
|
+
* @param {string} workflow_json
|
|
248
|
+
*/
|
|
249
|
+
export function update_workflow_data(canvas_id, workflow_json) {
|
|
250
|
+
try {
|
|
251
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
252
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
253
|
+
const len0 = WASM_VECTOR_LEN;
|
|
254
|
+
const ptr1 = passStringToWasm0(workflow_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
255
|
+
const len1 = WASM_VECTOR_LEN;
|
|
256
|
+
wasm.update_workflow_data(retptr, ptr0, len0, ptr1, len1);
|
|
257
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
258
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
259
|
+
if (r1) {
|
|
260
|
+
throw takeObject(r0);
|
|
261
|
+
}
|
|
262
|
+
} finally {
|
|
263
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @param {string} canvas_id
|
|
269
|
+
*/
|
|
270
|
+
export function zoom_to_fit(canvas_id) {
|
|
271
|
+
const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
272
|
+
const len0 = WASM_VECTOR_LEN;
|
|
273
|
+
wasm.zoom_to_fit(ptr0, len0);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function __wbg_get_imports() {
|
|
277
|
+
const import0 = {
|
|
278
|
+
__proto__: null,
|
|
279
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
280
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
281
|
+
return addHeapObject(ret);
|
|
282
|
+
},
|
|
283
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
284
|
+
const v = getObject(arg0);
|
|
285
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
286
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
287
|
+
},
|
|
288
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
289
|
+
const ret = debugString(getObject(arg1));
|
|
290
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
291
|
+
const len1 = WASM_VECTOR_LEN;
|
|
292
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
293
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
294
|
+
},
|
|
295
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
296
|
+
const ret = getObject(arg0) === undefined;
|
|
297
|
+
return ret;
|
|
298
|
+
},
|
|
299
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
300
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
301
|
+
},
|
|
302
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
303
|
+
getObject(arg0)._wbg_cb_unref();
|
|
304
|
+
},
|
|
305
|
+
__wbg_addEventListener_2d985aa8a656f6dc: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
306
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
307
|
+
}, arguments); },
|
|
308
|
+
__wbg_addListener_af610a227738fed8: function() { return handleError(function (arg0, arg1) {
|
|
309
|
+
getObject(arg0).addListener(getObject(arg1));
|
|
310
|
+
}, arguments); },
|
|
311
|
+
__wbg_apply_ac9afb97ca32f169: function() { return handleError(function (arg0, arg1, arg2) {
|
|
312
|
+
const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
|
|
313
|
+
return addHeapObject(ret);
|
|
314
|
+
}, arguments); },
|
|
315
|
+
__wbg_arcTo_c19b87872863e83c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
316
|
+
getObject(arg0).arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
317
|
+
}, arguments); },
|
|
318
|
+
__wbg_arc_775d5170fd5e7a80: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
319
|
+
getObject(arg0).arc(arg1, arg2, arg3, arg4, arg5);
|
|
320
|
+
}, arguments); },
|
|
321
|
+
__wbg_beginPath_596efed55075dbc3: function(arg0) {
|
|
322
|
+
getObject(arg0).beginPath();
|
|
323
|
+
},
|
|
324
|
+
__wbg_bezierCurveTo_ee956cad5cea25b2: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
325
|
+
getObject(arg0).bezierCurveTo(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
326
|
+
},
|
|
327
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
328
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
329
|
+
return addHeapObject(ret);
|
|
330
|
+
}, arguments); },
|
|
331
|
+
__wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
332
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
333
|
+
return addHeapObject(ret);
|
|
334
|
+
}, arguments); },
|
|
335
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
336
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
337
|
+
return addHeapObject(ret);
|
|
338
|
+
}, arguments); },
|
|
339
|
+
__wbg_call_f858478a02f9600f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
340
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
341
|
+
return addHeapObject(ret);
|
|
342
|
+
}, arguments); },
|
|
343
|
+
__wbg_changedTouches_3c03cd569b57245b: function(arg0) {
|
|
344
|
+
const ret = getObject(arg0).changedTouches;
|
|
345
|
+
return addHeapObject(ret);
|
|
346
|
+
},
|
|
347
|
+
__wbg_clientX_7db5d6e77c921464: function(arg0) {
|
|
348
|
+
const ret = getObject(arg0).clientX;
|
|
349
|
+
return ret;
|
|
350
|
+
},
|
|
351
|
+
__wbg_clientX_eff94e775c0667a2: function(arg0) {
|
|
352
|
+
const ret = getObject(arg0).clientX;
|
|
353
|
+
return ret;
|
|
354
|
+
},
|
|
355
|
+
__wbg_clientY_2cf964b439a5974f: function(arg0) {
|
|
356
|
+
const ret = getObject(arg0).clientY;
|
|
357
|
+
return ret;
|
|
358
|
+
},
|
|
359
|
+
__wbg_clientY_6293e127369957bf: function(arg0) {
|
|
360
|
+
const ret = getObject(arg0).clientY;
|
|
361
|
+
return ret;
|
|
362
|
+
},
|
|
363
|
+
__wbg_closePath_f96bcae0fc7087a9: function(arg0) {
|
|
364
|
+
getObject(arg0).closePath();
|
|
365
|
+
},
|
|
366
|
+
__wbg_contentRect_7047bba46353f683: function(arg0) {
|
|
367
|
+
const ret = getObject(arg0).contentRect;
|
|
368
|
+
return addHeapObject(ret);
|
|
369
|
+
},
|
|
370
|
+
__wbg_createElement_9b0aab265c549ded: function() { return handleError(function (arg0, arg1, arg2) {
|
|
371
|
+
const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));
|
|
372
|
+
return addHeapObject(ret);
|
|
373
|
+
}, arguments); },
|
|
374
|
+
__wbg_deltaY_c6ccae416e166d01: function(arg0) {
|
|
375
|
+
const ret = getObject(arg0).deltaY;
|
|
376
|
+
return ret;
|
|
377
|
+
},
|
|
378
|
+
__wbg_devicePixelRatio_c36a5fab28da634e: function(arg0) {
|
|
379
|
+
const ret = getObject(arg0).devicePixelRatio;
|
|
380
|
+
return ret;
|
|
381
|
+
},
|
|
382
|
+
__wbg_disconnect_09ddbc78942a2057: function(arg0) {
|
|
383
|
+
getObject(arg0).disconnect();
|
|
384
|
+
},
|
|
385
|
+
__wbg_document_c0320cd4183c6d9b: function(arg0) {
|
|
386
|
+
const ret = getObject(arg0).document;
|
|
387
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
388
|
+
},
|
|
389
|
+
__wbg_fillRect_4e5596ca954226e7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
390
|
+
getObject(arg0).fillRect(arg1, arg2, arg3, arg4);
|
|
391
|
+
},
|
|
392
|
+
__wbg_fillText_b1722b6179692b85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
393
|
+
getObject(arg0).fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
394
|
+
}, arguments); },
|
|
395
|
+
__wbg_fill_c0bb5e0ec0d7fcf9: function(arg0) {
|
|
396
|
+
getObject(arg0).fill();
|
|
397
|
+
},
|
|
398
|
+
__wbg_fill_fce7fd6ab3af7ac4: function(arg0, arg1) {
|
|
399
|
+
getObject(arg0).fill(getObject(arg1));
|
|
400
|
+
},
|
|
401
|
+
__wbg_getBoundingClientRect_b236f2e393fd0e7a: function(arg0) {
|
|
402
|
+
const ret = getObject(arg0).getBoundingClientRect();
|
|
403
|
+
return addHeapObject(ret);
|
|
404
|
+
},
|
|
405
|
+
__wbg_getContext_f04bf8f22dcb2d53: function() { return handleError(function (arg0, arg1, arg2) {
|
|
406
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
407
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
408
|
+
}, arguments); },
|
|
409
|
+
__wbg_getElementById_d1f25d287b19a833: function(arg0, arg1, arg2) {
|
|
410
|
+
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
|
411
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
412
|
+
},
|
|
413
|
+
__wbg_get_498b26486bad3f29: function(arg0, arg1) {
|
|
414
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
415
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
416
|
+
},
|
|
417
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
418
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
419
|
+
return addHeapObject(ret);
|
|
420
|
+
},
|
|
421
|
+
__wbg_height_8c06cb597de53887: function(arg0) {
|
|
422
|
+
const ret = getObject(arg0).height;
|
|
423
|
+
return ret;
|
|
424
|
+
},
|
|
425
|
+
__wbg_insertBefore_64157928ea5f5def: function() { return handleError(function (arg0, arg1, arg2) {
|
|
426
|
+
const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
|
|
427
|
+
return addHeapObject(ret);
|
|
428
|
+
}, arguments); },
|
|
429
|
+
__wbg_instanceof_CanvasRenderingContext2d_08b9d193c22fa886: function(arg0) {
|
|
430
|
+
let result;
|
|
431
|
+
try {
|
|
432
|
+
result = getObject(arg0) instanceof CanvasRenderingContext2D;
|
|
433
|
+
} catch (_) {
|
|
434
|
+
result = false;
|
|
435
|
+
}
|
|
436
|
+
const ret = result;
|
|
437
|
+
return ret;
|
|
438
|
+
},
|
|
439
|
+
__wbg_instanceof_HtmlCanvasElement_26125339f936be50: function(arg0) {
|
|
440
|
+
let result;
|
|
441
|
+
try {
|
|
442
|
+
result = getObject(arg0) instanceof HTMLCanvasElement;
|
|
443
|
+
} catch (_) {
|
|
444
|
+
result = false;
|
|
445
|
+
}
|
|
446
|
+
const ret = result;
|
|
447
|
+
return ret;
|
|
448
|
+
},
|
|
449
|
+
__wbg_instanceof_HtmlElement_ef05df8222c2b81b: function(arg0) {
|
|
450
|
+
let result;
|
|
451
|
+
try {
|
|
452
|
+
result = getObject(arg0) instanceof HTMLElement;
|
|
453
|
+
} catch (_) {
|
|
454
|
+
result = false;
|
|
455
|
+
}
|
|
456
|
+
const ret = result;
|
|
457
|
+
return ret;
|
|
458
|
+
},
|
|
459
|
+
__wbg_instanceof_ResizeObserverEntry_b10be3468ed1ff8c: function(arg0) {
|
|
460
|
+
let result;
|
|
461
|
+
try {
|
|
462
|
+
result = getObject(arg0) instanceof ResizeObserverEntry;
|
|
463
|
+
} catch (_) {
|
|
464
|
+
result = false;
|
|
465
|
+
}
|
|
466
|
+
const ret = result;
|
|
467
|
+
return ret;
|
|
468
|
+
},
|
|
469
|
+
__wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
|
|
470
|
+
let result;
|
|
471
|
+
try {
|
|
472
|
+
result = getObject(arg0) instanceof Window;
|
|
473
|
+
} catch (_) {
|
|
474
|
+
result = false;
|
|
475
|
+
}
|
|
476
|
+
const ret = result;
|
|
477
|
+
return ret;
|
|
478
|
+
},
|
|
479
|
+
__wbg_key_99eb0f0a1000963d: function(arg0, arg1) {
|
|
480
|
+
const ret = getObject(arg1).key;
|
|
481
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
482
|
+
const len1 = WASM_VECTOR_LEN;
|
|
483
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
484
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
485
|
+
},
|
|
486
|
+
__wbg_left_0050d4abe2736ee9: function(arg0) {
|
|
487
|
+
const ret = getObject(arg0).left;
|
|
488
|
+
return ret;
|
|
489
|
+
},
|
|
490
|
+
__wbg_lineTo_8ea7db5b5d763030: function(arg0, arg1, arg2) {
|
|
491
|
+
getObject(arg0).lineTo(arg1, arg2);
|
|
492
|
+
},
|
|
493
|
+
__wbg_matchMedia_b27489ec503ba2a5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
494
|
+
const ret = getObject(arg0).matchMedia(getStringFromWasm0(arg1, arg2));
|
|
495
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
496
|
+
}, arguments); },
|
|
497
|
+
__wbg_measureText_a914720e0a913aef: function() { return handleError(function (arg0, arg1, arg2) {
|
|
498
|
+
const ret = getObject(arg0).measureText(getStringFromWasm0(arg1, arg2));
|
|
499
|
+
return addHeapObject(ret);
|
|
500
|
+
}, arguments); },
|
|
501
|
+
__wbg_moveTo_6d04ca2f71946754: function(arg0, arg1, arg2) {
|
|
502
|
+
getObject(arg0).moveTo(arg1, arg2);
|
|
503
|
+
},
|
|
504
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
505
|
+
const ret = new Map();
|
|
506
|
+
return addHeapObject(ret);
|
|
507
|
+
},
|
|
508
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
509
|
+
const ret = new Array();
|
|
510
|
+
return addHeapObject(ret);
|
|
511
|
+
},
|
|
512
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
513
|
+
const ret = new Object();
|
|
514
|
+
return addHeapObject(ret);
|
|
515
|
+
},
|
|
516
|
+
__wbg_new_de704db0001dadc8: function() { return handleError(function (arg0) {
|
|
517
|
+
const ret = new ResizeObserver(getObject(arg0));
|
|
518
|
+
return addHeapObject(ret);
|
|
519
|
+
}, arguments); },
|
|
520
|
+
__wbg_new_with_path_string_e0facaac5fe620f5: function() { return handleError(function (arg0, arg1) {
|
|
521
|
+
const ret = new Path2D(getStringFromWasm0(arg0, arg1));
|
|
522
|
+
return addHeapObject(ret);
|
|
523
|
+
}, arguments); },
|
|
524
|
+
__wbg_nextSibling_afcfdc4e646795ea: function(arg0) {
|
|
525
|
+
const ret = getObject(arg0).nextSibling;
|
|
526
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
527
|
+
},
|
|
528
|
+
__wbg_now_16f0c993d5dd6c27: function() {
|
|
529
|
+
const ret = Date.now();
|
|
530
|
+
return ret;
|
|
531
|
+
},
|
|
532
|
+
__wbg_observe_e1a1f270d8431b29: function(arg0, arg1) {
|
|
533
|
+
getObject(arg0).observe(getObject(arg1));
|
|
534
|
+
},
|
|
535
|
+
__wbg_of_bccc72834fbc1287: function(arg0, arg1, arg2, arg3, arg4) {
|
|
536
|
+
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
537
|
+
return addHeapObject(ret);
|
|
538
|
+
},
|
|
539
|
+
__wbg_parentElement_6ea1a9ddfe78f22d: function(arg0) {
|
|
540
|
+
const ret = getObject(arg0).parentElement;
|
|
541
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
542
|
+
},
|
|
543
|
+
__wbg_preventDefault_25a229bfe5c510f8: function(arg0) {
|
|
544
|
+
getObject(arg0).preventDefault();
|
|
545
|
+
},
|
|
546
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
547
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
548
|
+
return ret;
|
|
549
|
+
},
|
|
550
|
+
__wbg_removeEventListener_d27694700fc0df8b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
551
|
+
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
552
|
+
}, arguments); },
|
|
553
|
+
__wbg_remove_892d3e438dfde09b: function(arg0) {
|
|
554
|
+
getObject(arg0).remove();
|
|
555
|
+
},
|
|
556
|
+
__wbg_requestAnimationFrame_206c97f410e7a383: function() { return handleError(function (arg0, arg1) {
|
|
557
|
+
const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
|
|
558
|
+
return ret;
|
|
559
|
+
}, arguments); },
|
|
560
|
+
__wbg_restore_ec1ece47cce5dc64: function(arg0) {
|
|
561
|
+
getObject(arg0).restore();
|
|
562
|
+
},
|
|
563
|
+
__wbg_save_c4e64a4ec29f000f: function(arg0) {
|
|
564
|
+
getObject(arg0).save();
|
|
565
|
+
},
|
|
566
|
+
__wbg_scale_64e919c81a65aba9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
567
|
+
getObject(arg0).scale(arg1, arg2);
|
|
568
|
+
}, arguments); },
|
|
569
|
+
__wbg_setAttribute_f20d3b966749ab64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
570
|
+
getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
571
|
+
}, arguments); },
|
|
572
|
+
__wbg_setLineDash_b22b8de6051bb23a: function() { return handleError(function (arg0, arg1) {
|
|
573
|
+
getObject(arg0).setLineDash(getObject(arg1));
|
|
574
|
+
}, arguments); },
|
|
575
|
+
__wbg_setProperty_ef29d2aa64a04d2b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
576
|
+
getObject(arg0).setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
577
|
+
}, arguments); },
|
|
578
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
579
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
580
|
+
},
|
|
581
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
582
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
583
|
+
},
|
|
584
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
585
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
586
|
+
return addHeapObject(ret);
|
|
587
|
+
},
|
|
588
|
+
__wbg_set_fillStyle_58417b6b548ae475: function(arg0, arg1, arg2) {
|
|
589
|
+
getObject(arg0).fillStyle = getStringFromWasm0(arg1, arg2);
|
|
590
|
+
},
|
|
591
|
+
__wbg_set_font_b038797b3573ae5e: function(arg0, arg1, arg2) {
|
|
592
|
+
getObject(arg0).font = getStringFromWasm0(arg1, arg2);
|
|
593
|
+
},
|
|
594
|
+
__wbg_set_globalAlpha_d51aa11e10f40cfc: function(arg0, arg1) {
|
|
595
|
+
getObject(arg0).globalAlpha = arg1;
|
|
596
|
+
},
|
|
597
|
+
__wbg_set_height_b6548a01bdcb689a: function(arg0, arg1) {
|
|
598
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
599
|
+
},
|
|
600
|
+
__wbg_set_lineCap_1ecf6c7ca9319eb2: function(arg0, arg1, arg2) {
|
|
601
|
+
getObject(arg0).lineCap = getStringFromWasm0(arg1, arg2);
|
|
602
|
+
},
|
|
603
|
+
__wbg_set_lineWidth_e38550ed429ec417: function(arg0, arg1) {
|
|
604
|
+
getObject(arg0).lineWidth = arg1;
|
|
605
|
+
},
|
|
606
|
+
__wbg_set_strokeStyle_a5baa9565d8b6485: function(arg0, arg1, arg2) {
|
|
607
|
+
getObject(arg0).strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
608
|
+
},
|
|
609
|
+
__wbg_set_textContent_1e964492a2410e92: function(arg0, arg1, arg2) {
|
|
610
|
+
getObject(arg0).textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
611
|
+
},
|
|
612
|
+
__wbg_set_width_c0fcaa2da53cd540: function(arg0, arg1) {
|
|
613
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
614
|
+
},
|
|
615
|
+
__wbg_shiftKey_5256a2168f9dc186: function(arg0) {
|
|
616
|
+
const ret = getObject(arg0).shiftKey;
|
|
617
|
+
return ret;
|
|
618
|
+
},
|
|
619
|
+
__wbg_shiftKey_ec106aa0755af421: function(arg0) {
|
|
620
|
+
const ret = getObject(arg0).shiftKey;
|
|
621
|
+
return ret;
|
|
622
|
+
},
|
|
623
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
624
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
625
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
626
|
+
},
|
|
627
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
628
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
629
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
630
|
+
},
|
|
631
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
632
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
633
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
634
|
+
},
|
|
635
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
636
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
637
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
638
|
+
},
|
|
639
|
+
__wbg_strokeRect_2e20ce9870736fad: function(arg0, arg1, arg2, arg3, arg4) {
|
|
640
|
+
getObject(arg0).strokeRect(arg1, arg2, arg3, arg4);
|
|
641
|
+
},
|
|
642
|
+
__wbg_stroke_affa71c0888c6f31: function(arg0) {
|
|
643
|
+
getObject(arg0).stroke();
|
|
644
|
+
},
|
|
645
|
+
__wbg_style_b01fc765f98b99ff: function(arg0) {
|
|
646
|
+
const ret = getObject(arg0).style;
|
|
647
|
+
return addHeapObject(ret);
|
|
648
|
+
},
|
|
649
|
+
__wbg_top_378559f0b38a1038: function(arg0) {
|
|
650
|
+
const ret = getObject(arg0).top;
|
|
651
|
+
return ret;
|
|
652
|
+
},
|
|
653
|
+
__wbg_touches_bbc155f11e845656: function(arg0) {
|
|
654
|
+
const ret = getObject(arg0).touches;
|
|
655
|
+
return addHeapObject(ret);
|
|
656
|
+
},
|
|
657
|
+
__wbg_translate_d7de7bdfdbc1ee9d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
658
|
+
getObject(arg0).translate(arg1, arg2);
|
|
659
|
+
}, arguments); },
|
|
660
|
+
__wbg_width_9824c1a2c17d3ebd: function(arg0) {
|
|
661
|
+
const ret = getObject(arg0).width;
|
|
662
|
+
return ret;
|
|
663
|
+
},
|
|
664
|
+
__wbg_width_eebf2967f114717c: function(arg0) {
|
|
665
|
+
const ret = getObject(arg0).width;
|
|
666
|
+
return ret;
|
|
667
|
+
},
|
|
668
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
669
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [F64], shim_idx: 15, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
670
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_184);
|
|
671
|
+
return addHeapObject(ret);
|
|
672
|
+
},
|
|
673
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
674
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 13, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
675
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_180);
|
|
676
|
+
return addHeapObject(ret);
|
|
677
|
+
},
|
|
678
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
679
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
680
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_171);
|
|
681
|
+
return addHeapObject(ret);
|
|
682
|
+
},
|
|
683
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
684
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
685
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_171_3);
|
|
686
|
+
return addHeapObject(ret);
|
|
687
|
+
},
|
|
688
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
689
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("TouchEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
690
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_171_4);
|
|
691
|
+
return addHeapObject(ret);
|
|
692
|
+
},
|
|
693
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
694
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
695
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_171_5);
|
|
696
|
+
return addHeapObject(ret);
|
|
697
|
+
},
|
|
698
|
+
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
699
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [], shim_idx: 18, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
700
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_170, __wasm_bindgen_func_elem_189);
|
|
701
|
+
return addHeapObject(ret);
|
|
702
|
+
},
|
|
703
|
+
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
704
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
705
|
+
const ret = arg0;
|
|
706
|
+
return addHeapObject(ret);
|
|
707
|
+
},
|
|
708
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
709
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
710
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
711
|
+
return addHeapObject(ret);
|
|
712
|
+
},
|
|
713
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
714
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
715
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
716
|
+
return addHeapObject(ret);
|
|
717
|
+
},
|
|
718
|
+
__wbindgen_object_clone_ref: function(arg0) {
|
|
719
|
+
const ret = getObject(arg0);
|
|
720
|
+
return addHeapObject(ret);
|
|
721
|
+
},
|
|
722
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
723
|
+
takeObject(arg0);
|
|
724
|
+
},
|
|
725
|
+
};
|
|
726
|
+
return {
|
|
727
|
+
__proto__: null,
|
|
728
|
+
"./workflow_graph_web_bg.js": import0,
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
function __wasm_bindgen_func_elem_189(arg0, arg1) {
|
|
733
|
+
wasm.__wasm_bindgen_func_elem_189(arg0, arg1);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
function __wasm_bindgen_func_elem_171(arg0, arg1, arg2) {
|
|
737
|
+
wasm.__wasm_bindgen_func_elem_171(arg0, arg1, addHeapObject(arg2));
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function __wasm_bindgen_func_elem_171_3(arg0, arg1, arg2) {
|
|
741
|
+
wasm.__wasm_bindgen_func_elem_171_3(arg0, arg1, addHeapObject(arg2));
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
function __wasm_bindgen_func_elem_171_4(arg0, arg1, arg2) {
|
|
745
|
+
wasm.__wasm_bindgen_func_elem_171_4(arg0, arg1, addHeapObject(arg2));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
function __wasm_bindgen_func_elem_171_5(arg0, arg1, arg2) {
|
|
749
|
+
wasm.__wasm_bindgen_func_elem_171_5(arg0, arg1, addHeapObject(arg2));
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
function __wasm_bindgen_func_elem_180(arg0, arg1, arg2, arg3) {
|
|
753
|
+
wasm.__wasm_bindgen_func_elem_180(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
function __wasm_bindgen_func_elem_184(arg0, arg1, arg2) {
|
|
757
|
+
wasm.__wasm_bindgen_func_elem_184(arg0, arg1, arg2);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
const ThemeColorsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
761
|
+
? { register: () => {}, unregister: () => {} }
|
|
762
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_themecolors_free(ptr >>> 0, 1));
|
|
763
|
+
|
|
764
|
+
function addHeapObject(obj) {
|
|
765
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
766
|
+
const idx = heap_next;
|
|
767
|
+
heap_next = heap[idx];
|
|
768
|
+
|
|
769
|
+
heap[idx] = obj;
|
|
770
|
+
return idx;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
774
|
+
? { register: () => {}, unregister: () => {} }
|
|
775
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
776
|
+
|
|
777
|
+
function debugString(val) {
|
|
778
|
+
// primitive types
|
|
779
|
+
const type = typeof val;
|
|
780
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
781
|
+
return `${val}`;
|
|
782
|
+
}
|
|
783
|
+
if (type == 'string') {
|
|
784
|
+
return `"${val}"`;
|
|
785
|
+
}
|
|
786
|
+
if (type == 'symbol') {
|
|
787
|
+
const description = val.description;
|
|
788
|
+
if (description == null) {
|
|
789
|
+
return 'Symbol';
|
|
790
|
+
} else {
|
|
791
|
+
return `Symbol(${description})`;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (type == 'function') {
|
|
795
|
+
const name = val.name;
|
|
796
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
797
|
+
return `Function(${name})`;
|
|
798
|
+
} else {
|
|
799
|
+
return 'Function';
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
// objects
|
|
803
|
+
if (Array.isArray(val)) {
|
|
804
|
+
const length = val.length;
|
|
805
|
+
let debug = '[';
|
|
806
|
+
if (length > 0) {
|
|
807
|
+
debug += debugString(val[0]);
|
|
808
|
+
}
|
|
809
|
+
for(let i = 1; i < length; i++) {
|
|
810
|
+
debug += ', ' + debugString(val[i]);
|
|
811
|
+
}
|
|
812
|
+
debug += ']';
|
|
813
|
+
return debug;
|
|
814
|
+
}
|
|
815
|
+
// Test for built-in
|
|
816
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
817
|
+
let className;
|
|
818
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
819
|
+
className = builtInMatches[1];
|
|
820
|
+
} else {
|
|
821
|
+
// Failed to match the standard '[object ClassName]'
|
|
822
|
+
return toString.call(val);
|
|
823
|
+
}
|
|
824
|
+
if (className == 'Object') {
|
|
825
|
+
// we're a user defined class or Object
|
|
826
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
827
|
+
// easier than looping through ownProperties of `val`.
|
|
828
|
+
try {
|
|
829
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
830
|
+
} catch (_) {
|
|
831
|
+
return 'Object';
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
// errors
|
|
835
|
+
if (val instanceof Error) {
|
|
836
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
837
|
+
}
|
|
838
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
839
|
+
return className;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function dropObject(idx) {
|
|
843
|
+
if (idx < 1028) return;
|
|
844
|
+
heap[idx] = heap_next;
|
|
845
|
+
heap_next = idx;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
let cachedDataViewMemory0 = null;
|
|
849
|
+
function getDataViewMemory0() {
|
|
850
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
851
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
852
|
+
}
|
|
853
|
+
return cachedDataViewMemory0;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
function getStringFromWasm0(ptr, len) {
|
|
857
|
+
ptr = ptr >>> 0;
|
|
858
|
+
return decodeText(ptr, len);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
let cachedUint8ArrayMemory0 = null;
|
|
862
|
+
function getUint8ArrayMemory0() {
|
|
863
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
864
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
865
|
+
}
|
|
866
|
+
return cachedUint8ArrayMemory0;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
function getObject(idx) { return heap[idx]; }
|
|
870
|
+
|
|
871
|
+
function handleError(f, args) {
|
|
872
|
+
try {
|
|
873
|
+
return f.apply(this, args);
|
|
874
|
+
} catch (e) {
|
|
875
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
let heap = new Array(1024).fill(undefined);
|
|
880
|
+
heap.push(undefined, null, true, false);
|
|
881
|
+
|
|
882
|
+
let heap_next = heap.length;
|
|
883
|
+
|
|
884
|
+
function isLikeNone(x) {
|
|
885
|
+
return x === undefined || x === null;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
889
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
890
|
+
const real = (...args) => {
|
|
891
|
+
|
|
892
|
+
// First up with a closure we increment the internal reference
|
|
893
|
+
// count. This ensures that the Rust closure environment won't
|
|
894
|
+
// be deallocated while we're invoking it.
|
|
895
|
+
state.cnt++;
|
|
896
|
+
const a = state.a;
|
|
897
|
+
state.a = 0;
|
|
898
|
+
try {
|
|
899
|
+
return f(a, state.b, ...args);
|
|
900
|
+
} finally {
|
|
901
|
+
state.a = a;
|
|
902
|
+
real._wbg_cb_unref();
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
real._wbg_cb_unref = () => {
|
|
906
|
+
if (--state.cnt === 0) {
|
|
907
|
+
state.dtor(state.a, state.b);
|
|
908
|
+
state.a = 0;
|
|
909
|
+
CLOSURE_DTORS.unregister(state);
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
913
|
+
return real;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
917
|
+
if (realloc === undefined) {
|
|
918
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
919
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
920
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
921
|
+
WASM_VECTOR_LEN = buf.length;
|
|
922
|
+
return ptr;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
let len = arg.length;
|
|
926
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
927
|
+
|
|
928
|
+
const mem = getUint8ArrayMemory0();
|
|
929
|
+
|
|
930
|
+
let offset = 0;
|
|
931
|
+
|
|
932
|
+
for (; offset < len; offset++) {
|
|
933
|
+
const code = arg.charCodeAt(offset);
|
|
934
|
+
if (code > 0x7F) break;
|
|
935
|
+
mem[ptr + offset] = code;
|
|
936
|
+
}
|
|
937
|
+
if (offset !== len) {
|
|
938
|
+
if (offset !== 0) {
|
|
939
|
+
arg = arg.slice(offset);
|
|
940
|
+
}
|
|
941
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
942
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
943
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
944
|
+
|
|
945
|
+
offset += ret.written;
|
|
946
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
WASM_VECTOR_LEN = offset;
|
|
950
|
+
return ptr;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
function takeObject(idx) {
|
|
954
|
+
const ret = getObject(idx);
|
|
955
|
+
dropObject(idx);
|
|
956
|
+
return ret;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
960
|
+
cachedTextDecoder.decode();
|
|
961
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
962
|
+
let numBytesDecoded = 0;
|
|
963
|
+
function decodeText(ptr, len) {
|
|
964
|
+
numBytesDecoded += len;
|
|
965
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
966
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
967
|
+
cachedTextDecoder.decode();
|
|
968
|
+
numBytesDecoded = len;
|
|
969
|
+
}
|
|
970
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
const cachedTextEncoder = new TextEncoder();
|
|
974
|
+
|
|
975
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
976
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
977
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
978
|
+
view.set(buf);
|
|
979
|
+
return {
|
|
980
|
+
read: arg.length,
|
|
981
|
+
written: buf.length
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
let WASM_VECTOR_LEN = 0;
|
|
987
|
+
|
|
988
|
+
let wasmModule, wasm;
|
|
989
|
+
function __wbg_finalize_init(instance, module) {
|
|
990
|
+
wasm = instance.exports;
|
|
991
|
+
wasmModule = module;
|
|
992
|
+
cachedDataViewMemory0 = null;
|
|
993
|
+
cachedUint8ArrayMemory0 = null;
|
|
994
|
+
wasm.__wbindgen_start();
|
|
995
|
+
return wasm;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
async function __wbg_load(module, imports) {
|
|
999
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1000
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1001
|
+
try {
|
|
1002
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1003
|
+
} catch (e) {
|
|
1004
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1005
|
+
|
|
1006
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1007
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1008
|
+
|
|
1009
|
+
} else { throw e; }
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
const bytes = await module.arrayBuffer();
|
|
1014
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1015
|
+
} else {
|
|
1016
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1017
|
+
|
|
1018
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1019
|
+
return { instance, module };
|
|
1020
|
+
} else {
|
|
1021
|
+
return instance;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
function expectedResponseType(type) {
|
|
1026
|
+
switch (type) {
|
|
1027
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1028
|
+
}
|
|
1029
|
+
return false;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
function initSync(module) {
|
|
1034
|
+
if (wasm !== undefined) return wasm;
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
if (module !== undefined) {
|
|
1038
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1039
|
+
({module} = module)
|
|
1040
|
+
} else {
|
|
1041
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
const imports = __wbg_get_imports();
|
|
1046
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1047
|
+
module = new WebAssembly.Module(module);
|
|
1048
|
+
}
|
|
1049
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1050
|
+
return __wbg_finalize_init(instance, module);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
async function __wbg_init(module_or_path) {
|
|
1054
|
+
if (wasm !== undefined) return wasm;
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
if (module_or_path !== undefined) {
|
|
1058
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1059
|
+
({module_or_path} = module_or_path)
|
|
1060
|
+
} else {
|
|
1061
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
if (module_or_path === undefined) {
|
|
1066
|
+
module_or_path = new URL('workflow_graph_web_bg.wasm', import.meta.url);
|
|
1067
|
+
}
|
|
1068
|
+
const imports = __wbg_get_imports();
|
|
1069
|
+
|
|
1070
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1071
|
+
module_or_path = fetch(module_or_path);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1075
|
+
|
|
1076
|
+
return __wbg_finalize_init(instance, module);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export { initSync, __wbg_init as default };
|