@braccato/core 1.22.0 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +202 -607
- package/js/element.js +234 -0
- package/js/renderer.d.ts +157 -0
- package/js/renderer.js +535 -0
- package/package.json +22 -17
- package/pkg/braccato_core_rs.d.ts +236 -0
- package/pkg/braccato_core_rs.js +1735 -0
- package/pkg/braccato_core_rs_bg.wasm +0 -0
- package/pkg/braccato_core_rs_bg.wasm.d.ts +55 -0
- package/dist/LICENSE +0 -21
- package/dist/README.md +0 -639
- package/dist/element.d.ts +0 -168
- package/dist/element.js +0 -730
- package/dist/engine/animationConfig.d.ts +0 -84
- package/dist/engine/animationConfig.js +0 -95
- package/dist/engine/animationDrift.d.ts +0 -11
- package/dist/engine/animationDrift.js +0 -43
- package/dist/engine/animationTiming.d.ts +0 -27
- package/dist/engine/animationTiming.js +0 -145
- package/dist/engine/autoScroll.d.ts +0 -24
- package/dist/engine/autoScroll.js +0 -103
- package/dist/engine/clock.d.ts +0 -29
- package/dist/engine/clock.js +0 -70
- package/dist/engine/contextSweep.d.ts +0 -10
- package/dist/engine/contextSweep.js +0 -102
- package/dist/engine/cssValues.d.ts +0 -13
- package/dist/engine/cssValues.js +0 -47
- package/dist/engine/culling.d.ts +0 -6
- package/dist/engine/culling.js +0 -76
- package/dist/engine/debugOverlay.d.ts +0 -14
- package/dist/engine/debugOverlay.js +0 -58
- package/dist/engine/decorationSlides.d.ts +0 -6
- package/dist/engine/decorationSlides.js +0 -53
- package/dist/engine/elementMotion.d.ts +0 -18
- package/dist/engine/elementMotion.js +0 -98
- package/dist/engine/glow.d.ts +0 -7
- package/dist/engine/glow.js +0 -59
- package/dist/engine/instance.d.ts +0 -105
- package/dist/engine/instance.js +0 -89
- package/dist/engine/instrumentalAnimations.d.ts +0 -7
- package/dist/engine/instrumentalAnimations.js +0 -59
- package/dist/engine/letterPlans.d.ts +0 -31
- package/dist/engine/letterPlans.js +0 -62
- package/dist/engine/lineAnimationState.d.ts +0 -10
- package/dist/engine/lineAnimationState.js +0 -82
- package/dist/engine/lineAnimations.d.ts +0 -5
- package/dist/engine/lineAnimations.js +0 -63
- package/dist/engine/lineLifecycle.d.ts +0 -12
- package/dist/engine/lineLifecycle.js +0 -92
- package/dist/engine/lineScroll.d.ts +0 -47
- package/dist/engine/lineScroll.js +0 -184
- package/dist/engine/lineScrollStyle.d.ts +0 -32
- package/dist/engine/lineScrollStyle.js +0 -133
- package/dist/engine/liveViews.d.ts +0 -3
- package/dist/engine/liveViews.js +0 -5
- package/dist/engine/motionCurves.d.ts +0 -19
- package/dist/engine/motionCurves.js +0 -85
- package/dist/engine/motionPreference.d.ts +0 -1
- package/dist/engine/motionPreference.js +0 -1
- package/dist/engine/passiveScroll.d.ts +0 -10
- package/dist/engine/passiveScroll.js +0 -93
- package/dist/engine/renderedLines.d.ts +0 -16
- package/dist/engine/renderedLines.js +0 -130
- package/dist/engine/scrollViewport.d.ts +0 -36
- package/dist/engine/scrollViewport.js +0 -104
- package/dist/engine/stageMotion.d.ts +0 -7
- package/dist/engine/stageMotion.js +0 -319
- package/dist/engine/sweepPlans.d.ts +0 -38
- package/dist/engine/sweepPlans.js +0 -66
- package/dist/engine/tick.d.ts +0 -16
- package/dist/engine/tick.js +0 -270
- package/dist/engine/timingLogs.d.ts +0 -7
- package/dist/engine/timingLogs.js +0 -81
- package/dist/engine/userScroll.d.ts +0 -12
- package/dist/engine/userScroll.js +0 -62
- package/dist/engine/wavePool.d.ts +0 -7
- package/dist/engine/wavePool.js +0 -22
- package/dist/engine/wordAnimations.d.ts +0 -5
- package/dist/engine/wordAnimations.js +0 -206
- package/dist/imageHighlights.d.ts +0 -4
- package/dist/imageHighlights.js +0 -34
- package/dist/index.d.ts +0 -17
- package/dist/index.js +0 -12
- package/dist/inject.d.ts +0 -98
- package/dist/inject.js +0 -591
- package/dist/instrumental.d.ts +0 -11
- package/dist/instrumental.js +0 -121
- package/dist/language.d.ts +0 -9
- package/dist/language.js +0 -47
- package/dist/letters.d.ts +0 -2
- package/dist/letters.js +0 -25
- package/dist/renderer.d.ts +0 -29
- package/dist/renderer.js +0 -412
- package/dist/seek.d.ts +0 -1
- package/dist/seek.js +0 -27
- package/dist/stage.d.ts +0 -58
- package/dist/stage.js +0 -121
- package/dist/types.d.ts +0 -236
- package/dist/types.js +0 -1
- package/dist/view.d.ts +0 -51
- package/dist/view.js +0 -398
|
@@ -0,0 +1,1735 @@
|
|
|
1
|
+
/* @ts-self-types="./braccato_core_rs.d.ts" */
|
|
2
|
+
|
|
3
|
+
export class Renderer {
|
|
4
|
+
__destroy_into_raw() {
|
|
5
|
+
const ptr = this.__wbg_ptr;
|
|
6
|
+
this.__wbg_ptr = 0;
|
|
7
|
+
RendererFinalization.unregister(this);
|
|
8
|
+
return ptr;
|
|
9
|
+
}
|
|
10
|
+
free() {
|
|
11
|
+
const ptr = this.__destroy_into_raw();
|
|
12
|
+
wasm.__wbg_renderer_free(ptr, 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The canvas the view draws on.
|
|
16
|
+
* @returns {HTMLCanvasElement}
|
|
17
|
+
*/
|
|
18
|
+
get canvas() {
|
|
19
|
+
const ret = wasm.renderer_canvas(this.__wbg_ptr);
|
|
20
|
+
return ret;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Takes the lines off the screen and keeps the container. Returns whether there were any.
|
|
24
|
+
* @returns {boolean}
|
|
25
|
+
*/
|
|
26
|
+
clearOnScreen() {
|
|
27
|
+
const ret = wasm.renderer_clearOnScreen(this.__wbg_ptr);
|
|
28
|
+
return ret !== 0;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Drops the song and takes the container out of the page; `setLyrics` puts both back.
|
|
32
|
+
*/
|
|
33
|
+
clear() {
|
|
34
|
+
wasm.renderer_clear(this.__wbg_ptr);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The container the lines are built in, which the host may add its own things to.
|
|
38
|
+
* @returns {HTMLElement}
|
|
39
|
+
*/
|
|
40
|
+
get container() {
|
|
41
|
+
const ret = wasm.renderer_container(this.__wbg_ptr);
|
|
42
|
+
return ret;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Detaches everything. The renderer is unusable afterwards.
|
|
46
|
+
*/
|
|
47
|
+
destroy() {
|
|
48
|
+
wasm.renderer_destroy(this.__wbg_ptr);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Sends any events waiting on the next frame now.
|
|
52
|
+
*/
|
|
53
|
+
flushEvents() {
|
|
54
|
+
wasm.renderer_flushEvents(this.__wbg_ptr);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Changes whenever the line elements do.
|
|
58
|
+
* @returns {number}
|
|
59
|
+
*/
|
|
60
|
+
get generation() {
|
|
61
|
+
const ret = wasm.renderer_generation(this.__wbg_ptr);
|
|
62
|
+
return ret >>> 0;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Hangs a romanization on line `index`, swept by `timed` (a `LyricPart[]`) if given, or takes
|
|
66
|
+
* it off with `null`. Returns whether the line had one before.
|
|
67
|
+
* @param {number} index
|
|
68
|
+
* @param {string | null | undefined} text
|
|
69
|
+
* @param {any} timed
|
|
70
|
+
* @returns {boolean}
|
|
71
|
+
*/
|
|
72
|
+
hangRomanization(index, text, timed) {
|
|
73
|
+
const val2 = +index;
|
|
74
|
+
var ptr0 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
75
|
+
var len0 = WASM_VECTOR_LEN;
|
|
76
|
+
const ret = wasm.renderer_hangRomanization(this.__wbg_ptr, val2, ptr0, len0, timed);
|
|
77
|
+
if (ret[2]) {
|
|
78
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
79
|
+
}
|
|
80
|
+
return ret[0] !== 0;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Hangs a translation on line `index`, or takes it off with `null`. Returns whether the line
|
|
84
|
+
* had one before.
|
|
85
|
+
* @param {number} index
|
|
86
|
+
* @param {string | null} [text]
|
|
87
|
+
* @param {string | null} [language]
|
|
88
|
+
* @returns {boolean}
|
|
89
|
+
*/
|
|
90
|
+
hangTranslation(index, text, language) {
|
|
91
|
+
const val3 = +index;
|
|
92
|
+
let ptr0, len0, ptr1, len1;
|
|
93
|
+
try {
|
|
94
|
+
ptr0 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
95
|
+
len0 = WASM_VECTOR_LEN;
|
|
96
|
+
ptr1 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
97
|
+
len1 = WASM_VECTOR_LEN;
|
|
98
|
+
} catch (e) {
|
|
99
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
100
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
101
|
+
throw e;
|
|
102
|
+
}
|
|
103
|
+
const ret = wasm.renderer_hangTranslation(this.__wbg_ptr, val3, ptr0, len0, ptr1, len1);
|
|
104
|
+
return ret !== 0;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @returns {boolean}
|
|
108
|
+
*/
|
|
109
|
+
hasSong() {
|
|
110
|
+
const ret = wasm.renderer_hasSong(this.__wbg_ptr);
|
|
111
|
+
return ret !== 0;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* `[{ element, parts: HTMLElement[] }]`, one per line, in order.
|
|
115
|
+
* @returns {Array<any>}
|
|
116
|
+
*/
|
|
117
|
+
lineElements() {
|
|
118
|
+
const ret = wasm.renderer_lineElements(this.__wbg_ptr);
|
|
119
|
+
return ret;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The index of the line `element` is, or -1.
|
|
123
|
+
* @param {Element} element
|
|
124
|
+
* @returns {number}
|
|
125
|
+
*/
|
|
126
|
+
lineIndex(element) {
|
|
127
|
+
const ret = wasm.renderer_lineIndex(this.__wbg_ptr, element);
|
|
128
|
+
return ret;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Builds the view inside `host`.
|
|
132
|
+
* @param {HTMLElement} host
|
|
133
|
+
*/
|
|
134
|
+
constructor(host) {
|
|
135
|
+
const ret = wasm.renderer_new(host);
|
|
136
|
+
if (ret[2]) {
|
|
137
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
138
|
+
}
|
|
139
|
+
this.__wbg_ptr = ret[0];
|
|
140
|
+
RendererFinalization.register(this, this.__wbg_ptr, this);
|
|
141
|
+
return this;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The host saw the reader scroll. Scrolls the renderer made itself are told apart and ignored.
|
|
145
|
+
*/
|
|
146
|
+
noteScroll() {
|
|
147
|
+
wasm.renderer_noteScroll(this.__wbg_ptr);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Measures the lines again on the next frame. With `settle`, lines the new measurement moves
|
|
151
|
+
* slide there, and the line in view holds still.
|
|
152
|
+
* @param {boolean | null} [settle]
|
|
153
|
+
*/
|
|
154
|
+
relayout(settle) {
|
|
155
|
+
wasm.renderer_relayout(this.__wbg_ptr, isLikeNone(settle) ? 0xFFFFFF : settle ? 1 : 0);
|
|
156
|
+
}
|
|
157
|
+
resetClock() {
|
|
158
|
+
wasm.renderer_resetClock(this.__wbg_ptr);
|
|
159
|
+
}
|
|
160
|
+
resumeAutoscroll() {
|
|
161
|
+
wasm.renderer_resumeAutoscroll(this.__wbg_ptr);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Which decorations to show from the lyrics' own fields.
|
|
165
|
+
* @param {boolean} translations
|
|
166
|
+
* @param {boolean} romanizations
|
|
167
|
+
*/
|
|
168
|
+
setDecorations(translations, romanizations) {
|
|
169
|
+
wasm.renderer_setDecorations(this.__wbg_ptr, translations, romanizations);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Whether the host has the view off the screen. A hidden view draws nothing until shown.
|
|
173
|
+
* @param {boolean} hidden
|
|
174
|
+
*/
|
|
175
|
+
setHidden(hidden) {
|
|
176
|
+
wasm.renderer_setHidden(this.__wbg_ptr, hidden);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Moves the view into another element of the same document.
|
|
180
|
+
* @param {HTMLElement} host
|
|
181
|
+
*/
|
|
182
|
+
setHost(host) {
|
|
183
|
+
wasm.renderer_setHost(this.__wbg_ptr, host);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @param {string | null} [language]
|
|
187
|
+
*/
|
|
188
|
+
setLanguage(language) {
|
|
189
|
+
var ptr0 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
190
|
+
var len0 = WASM_VECTOR_LEN;
|
|
191
|
+
wasm.renderer_setLanguage(this.__wbg_ptr, ptr0, len0);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* `"stage"` shows only the lines being sung, at the bottom of the element; anything else scrolls.
|
|
195
|
+
* @param {string} layout
|
|
196
|
+
*/
|
|
197
|
+
setLayout(layout) {
|
|
198
|
+
const ptr0 = passStringToWasm0(layout, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
199
|
+
const len0 = WASM_VECTOR_LEN;
|
|
200
|
+
wasm.renderer_setLayout(this.__wbg_ptr, ptr0, len0);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* The song. `lyrics` is a `Lyric[]`, `options` a `{ noLyrics?, language?, songwriters? }`.
|
|
204
|
+
* @param {any} lyrics
|
|
205
|
+
* @param {any} options
|
|
206
|
+
*/
|
|
207
|
+
setLyrics(lyrics, options) {
|
|
208
|
+
const ret = wasm.renderer_setLyrics(this.__wbg_ptr, lyrics, options);
|
|
209
|
+
if (ret[1]) {
|
|
210
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Binds a media element as the clock, or unbinds with `null`.
|
|
215
|
+
* @param {HTMLMediaElement | null} [media]
|
|
216
|
+
*/
|
|
217
|
+
setMedia(media) {
|
|
218
|
+
wasm.renderer_setMedia(this.__wbg_ptr, isLikeNone(media) ? 0 : addToExternrefTable0(media));
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Starts or stops profiling: GPU time, and each frame's CPU time by phase for `takeProfile()`.
|
|
222
|
+
* Returns whether the browser can time the GPU.
|
|
223
|
+
* @param {boolean} on
|
|
224
|
+
* @returns {boolean}
|
|
225
|
+
*/
|
|
226
|
+
setProfiling(on) {
|
|
227
|
+
const ret = wasm.renderer_setProfiling(this.__wbg_ptr, on);
|
|
228
|
+
return ret !== 0;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Whether the view watches its scroll element for a reader scrolling (the default), or leaves
|
|
232
|
+
* it to the host to report scrolls through `noteScroll`.
|
|
233
|
+
* @param {boolean} own
|
|
234
|
+
*/
|
|
235
|
+
setScrollDetection(own) {
|
|
236
|
+
wasm.renderer_setScrollDetection(this.__wbg_ptr, own);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The element autoscroll moves. `null` finds the nearest scrolling ancestor.
|
|
240
|
+
* @param {Element | null} [element]
|
|
241
|
+
*/
|
|
242
|
+
setScrollElement(element) {
|
|
243
|
+
wasm.renderer_setScrollElement(this.__wbg_ptr, isLikeNone(element) ? 0 : addToExternrefTable0(element));
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* A player snapshot: the time it showed, whether it was playing, and when it was read, as
|
|
247
|
+
* `Date.now()` (negative when it was not read off a player).
|
|
248
|
+
* @param {number} seconds
|
|
249
|
+
* @param {boolean} playing
|
|
250
|
+
* @param {number} event_ms
|
|
251
|
+
*/
|
|
252
|
+
setSnapshot(seconds, playing, event_ms) {
|
|
253
|
+
wasm.renderer_setSnapshot(this.__wbg_ptr, seconds, playing, event_ms);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Moves line `index`'s start, or with `part` one of its parts', to `start` seconds.
|
|
257
|
+
* @param {number} index
|
|
258
|
+
* @param {number | null | undefined} part
|
|
259
|
+
* @param {number} start
|
|
260
|
+
*/
|
|
261
|
+
setStart(index, part, start) {
|
|
262
|
+
wasm.renderer_setStart(this.__wbg_ptr, index, isLikeNone(part) ? Number.MAX_SAFE_INTEGER : (part) >>> 0, start);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A theme stylesheet: `--blyrics-*` custom properties, and `blyrics-key = value;` settings in its comments.
|
|
266
|
+
* @param {string} css
|
|
267
|
+
*/
|
|
268
|
+
setTheme(css) {
|
|
269
|
+
const ptr0 = passStringToWasm0(css, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
270
|
+
const len0 = WASM_VECTOR_LEN;
|
|
271
|
+
wasm.renderer_setTheme(this.__wbg_ptr, ptr0, len0);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* `{ lyricOffset?, globalLyricOffset?, playbackRate?, smoothScroll?, passiveScrollEnabled? }`,
|
|
275
|
+
* offsets in seconds.
|
|
276
|
+
* @param {any} options
|
|
277
|
+
*/
|
|
278
|
+
setTickOptions(options) {
|
|
279
|
+
wasm.renderer_setTickOptions(this.__wbg_ptr, options);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Drives the clock by hand, when no media element is bound.
|
|
283
|
+
* @param {number} seconds
|
|
284
|
+
* @param {boolean} playing
|
|
285
|
+
*/
|
|
286
|
+
setTime(seconds, playing) {
|
|
287
|
+
wasm.renderer_setTime(this.__wbg_ptr, seconds, playing);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* A copy of what the view shows now, on a 2D canvas the same size, styled like the view's: for
|
|
291
|
+
* a host that clones the page to animate it away, where a WebGL canvas clones blank. The frame
|
|
292
|
+
* is drawn and copied in one go, while the drawing buffer still holds it.
|
|
293
|
+
* @returns {HTMLCanvasElement | undefined}
|
|
294
|
+
*/
|
|
295
|
+
snapshot() {
|
|
296
|
+
const ret = wasm.renderer_snapshot(this.__wbg_ptr);
|
|
297
|
+
return ret;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* `{ frames, cpuMs, maxCpuMs, gpuMs, quads, residentLines, textureBytes }`: averages over recent frames, and
|
|
301
|
+
* the slowest frame since the last call.
|
|
302
|
+
* @returns {any}
|
|
303
|
+
*/
|
|
304
|
+
stats() {
|
|
305
|
+
const ret = wasm.renderer_stats(this.__wbg_ptr);
|
|
306
|
+
return ret;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* `"richsync"`, `"synced"` or `"none"`, and `"none"` with no song.
|
|
310
|
+
* @returns {string}
|
|
311
|
+
*/
|
|
312
|
+
syncType() {
|
|
313
|
+
let deferred1_0;
|
|
314
|
+
let deferred1_1;
|
|
315
|
+
try {
|
|
316
|
+
const ret = wasm.renderer_syncType(this.__wbg_ptr);
|
|
317
|
+
deferred1_0 = ret[0];
|
|
318
|
+
deferred1_1 = ret[1];
|
|
319
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
320
|
+
} finally {
|
|
321
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* The frames profiled since profiling started or this was last called, which it forgets:
|
|
326
|
+
* `{ fields, frames, gpu }`. `frames` holds one row of `fields.length` milliseconds per frame,
|
|
327
|
+
* the frame's total and then its phases. `gpu` holds the GPU milliseconds of the frames timed so
|
|
328
|
+
* far, which lag a few frames behind and are empty where the browser cannot time the GPU.
|
|
329
|
+
* @returns {any}
|
|
330
|
+
*/
|
|
331
|
+
takeProfile() {
|
|
332
|
+
const ret = wasm.renderer_takeProfile(this.__wbg_ptr);
|
|
333
|
+
return ret;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* `[start, duration]` in seconds of line `index`, or with `part` one of its parts.
|
|
337
|
+
* @param {number} index
|
|
338
|
+
* @param {number | null} [part]
|
|
339
|
+
* @returns {Float32Array | undefined}
|
|
340
|
+
*/
|
|
341
|
+
timing(index, part) {
|
|
342
|
+
const ret = wasm.renderer_timing(this.__wbg_ptr, index, isLikeNone(part) ? Number.MAX_SAFE_INTEGER : (part) >>> 0);
|
|
343
|
+
let v1;
|
|
344
|
+
if (ret[0] !== 0) {
|
|
345
|
+
v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
346
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
347
|
+
}
|
|
348
|
+
return v1;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if (Symbol.dispose) Renderer.prototype[Symbol.dispose] = Renderer.prototype.free;
|
|
352
|
+
function __wbg_get_imports() {
|
|
353
|
+
const import0 = {
|
|
354
|
+
__proto__: null,
|
|
355
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
356
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
357
|
+
return ret;
|
|
358
|
+
},
|
|
359
|
+
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
360
|
+
const ret = Number(arg0);
|
|
361
|
+
return ret;
|
|
362
|
+
},
|
|
363
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
364
|
+
const v = arg0;
|
|
365
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
366
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
367
|
+
},
|
|
368
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
369
|
+
const ret = debugString(arg1);
|
|
370
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
371
|
+
const len1 = WASM_VECTOR_LEN;
|
|
372
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
373
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
374
|
+
},
|
|
375
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
376
|
+
const ret = arg0 in arg1;
|
|
377
|
+
return ret;
|
|
378
|
+
},
|
|
379
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
380
|
+
const ret = typeof(arg0) === 'function';
|
|
381
|
+
return ret;
|
|
382
|
+
},
|
|
383
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
384
|
+
const ret = arg0 === null;
|
|
385
|
+
return ret;
|
|
386
|
+
},
|
|
387
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
388
|
+
const val = arg0;
|
|
389
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
390
|
+
return ret;
|
|
391
|
+
},
|
|
392
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
393
|
+
const ret = arg0 === undefined;
|
|
394
|
+
return ret;
|
|
395
|
+
},
|
|
396
|
+
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
397
|
+
const ret = arg0 == arg1;
|
|
398
|
+
return ret;
|
|
399
|
+
},
|
|
400
|
+
__wbg___wbindgen_memory_17a1178bc3328ea3: function() {
|
|
401
|
+
const ret = wasm.memory;
|
|
402
|
+
return ret;
|
|
403
|
+
},
|
|
404
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
405
|
+
const obj = arg1;
|
|
406
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
407
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
408
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
409
|
+
},
|
|
410
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
411
|
+
const obj = arg1;
|
|
412
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
413
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
414
|
+
var len1 = WASM_VECTOR_LEN;
|
|
415
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
416
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
417
|
+
},
|
|
418
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
419
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
420
|
+
},
|
|
421
|
+
__wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
|
|
422
|
+
arg0._wbg_cb_unref();
|
|
423
|
+
},
|
|
424
|
+
__wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
|
|
425
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
426
|
+
},
|
|
427
|
+
__wbg_addEventListener_f2d27251d333a631: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
428
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
429
|
+
}, arguments); },
|
|
430
|
+
__wbg_add_cf82c8d153d93ae1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
431
|
+
arg0.add(getStringFromWasm0(arg1, arg2));
|
|
432
|
+
}, arguments); },
|
|
433
|
+
__wbg_altKey_f158b37d4bccf5ff: function(arg0) {
|
|
434
|
+
const ret = arg0.altKey;
|
|
435
|
+
return ret;
|
|
436
|
+
},
|
|
437
|
+
__wbg_appendChild_dbf7ad2f48413560: function() { return handleError(function (arg0, arg1) {
|
|
438
|
+
const ret = arg0.appendChild(arg1);
|
|
439
|
+
return ret;
|
|
440
|
+
}, arguments); },
|
|
441
|
+
__wbg_arcTo_a347b807c468785d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
442
|
+
arg0.arcTo(arg1, arg2, arg3, arg4, arg5);
|
|
443
|
+
}, arguments); },
|
|
444
|
+
__wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
|
|
445
|
+
arg0.attachShader(arg1, arg2);
|
|
446
|
+
},
|
|
447
|
+
__wbg_beginPath_ab690dc0c7efe6dc: function(arg0) {
|
|
448
|
+
arg0.beginPath();
|
|
449
|
+
},
|
|
450
|
+
__wbg_beginQuery_f800947e639433e8: function(arg0, arg1, arg2) {
|
|
451
|
+
arg0.beginQuery(arg1 >>> 0, arg2);
|
|
452
|
+
},
|
|
453
|
+
__wbg_bindBufferBase_6860496c67f7dd5a: function(arg0, arg1, arg2, arg3) {
|
|
454
|
+
arg0.bindBufferBase(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
455
|
+
},
|
|
456
|
+
__wbg_bindBuffer_cbc9075f76fffa51: function(arg0, arg1, arg2) {
|
|
457
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
458
|
+
},
|
|
459
|
+
__wbg_bindFramebuffer_79534f24b57b7b95: function(arg0, arg1, arg2) {
|
|
460
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
461
|
+
},
|
|
462
|
+
__wbg_bindTexture_a23350e1b573ddfd: function(arg0, arg1, arg2) {
|
|
463
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
464
|
+
},
|
|
465
|
+
__wbg_bindVertexArray_cc64c48bf67ab8d4: function(arg0, arg1) {
|
|
466
|
+
arg0.bindVertexArray(arg1);
|
|
467
|
+
},
|
|
468
|
+
__wbg_blendFunc_378a3be8ab6cb7d0: function(arg0, arg1, arg2) {
|
|
469
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
470
|
+
},
|
|
471
|
+
__wbg_bufferData_41b591a9f2d502ad: function(arg0, arg1, arg2, arg3) {
|
|
472
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
473
|
+
},
|
|
474
|
+
__wbg_bufferData_9eb9c4c5053ac480: function(arg0, arg1, arg2, arg3) {
|
|
475
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
476
|
+
},
|
|
477
|
+
__wbg_bufferSubData_8acfdcd4b9f7edeb: function(arg0, arg1, arg2, arg3) {
|
|
478
|
+
arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
|
|
479
|
+
},
|
|
480
|
+
__wbg_bufferSubData_ed5ad6302303b52e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
481
|
+
arg0.bufferSubData(arg1 >>> 0, arg2, arg3, arg4 >>> 0, arg5 >>> 0);
|
|
482
|
+
},
|
|
483
|
+
__wbg_buffer_0eaa216bac6b8749: function(arg0) {
|
|
484
|
+
const ret = arg0.buffer;
|
|
485
|
+
return ret;
|
|
486
|
+
},
|
|
487
|
+
__wbg_call_40b008ba32f73991: function() { return handleError(function (arg0, arg1) {
|
|
488
|
+
const ret = arg0.call(arg1);
|
|
489
|
+
return ret;
|
|
490
|
+
}, arguments); },
|
|
491
|
+
__wbg_cancelAnimationFrame_c0d19c5f7cfd7aae: function() { return handleError(function (arg0, arg1) {
|
|
492
|
+
arg0.cancelAnimationFrame(arg1);
|
|
493
|
+
}, arguments); },
|
|
494
|
+
__wbg_children_5767547ca7e1c276: function(arg0) {
|
|
495
|
+
const ret = arg0.children;
|
|
496
|
+
return ret;
|
|
497
|
+
},
|
|
498
|
+
__wbg_classList_97e966c261669b85: function(arg0) {
|
|
499
|
+
const ret = arg0.classList;
|
|
500
|
+
return ret;
|
|
501
|
+
},
|
|
502
|
+
__wbg_className_21cd2b41431f18fa: function(arg0, arg1) {
|
|
503
|
+
const ret = arg1.className;
|
|
504
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
505
|
+
const len1 = WASM_VECTOR_LEN;
|
|
506
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
507
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
508
|
+
},
|
|
509
|
+
__wbg_clearColor_195b5a731bca5836: function(arg0, arg1, arg2, arg3, arg4) {
|
|
510
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
511
|
+
},
|
|
512
|
+
__wbg_clearRect_428f96a6ba73b2f4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
513
|
+
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
514
|
+
},
|
|
515
|
+
__wbg_clear_ccb3d618da90fea3: function(arg0, arg1) {
|
|
516
|
+
arg0.clear(arg1 >>> 0);
|
|
517
|
+
},
|
|
518
|
+
__wbg_clientHeight_b40e8971aed9fa2b: function(arg0) {
|
|
519
|
+
const ret = arg0.clientHeight;
|
|
520
|
+
return ret;
|
|
521
|
+
},
|
|
522
|
+
__wbg_clientLeft_c7af5013c687b778: function(arg0) {
|
|
523
|
+
const ret = arg0.clientLeft;
|
|
524
|
+
return ret;
|
|
525
|
+
},
|
|
526
|
+
__wbg_clientTop_e30b3713fd182206: function(arg0) {
|
|
527
|
+
const ret = arg0.clientTop;
|
|
528
|
+
return ret;
|
|
529
|
+
},
|
|
530
|
+
__wbg_clientWidth_269ea87f17b863bf: function(arg0) {
|
|
531
|
+
const ret = arg0.clientWidth;
|
|
532
|
+
return ret;
|
|
533
|
+
},
|
|
534
|
+
__wbg_clientX_7207eed549b03753: function(arg0) {
|
|
535
|
+
const ret = arg0.clientX;
|
|
536
|
+
return ret;
|
|
537
|
+
},
|
|
538
|
+
__wbg_clientY_3371139730cd6f74: function(arg0) {
|
|
539
|
+
const ret = arg0.clientY;
|
|
540
|
+
return ret;
|
|
541
|
+
},
|
|
542
|
+
__wbg_clip_26239db7c0b67972: function(arg0) {
|
|
543
|
+
arg0.clip();
|
|
544
|
+
},
|
|
545
|
+
__wbg_clip_5b100ab85eecdabe: function(arg0, arg1) {
|
|
546
|
+
arg0.clip(arg1);
|
|
547
|
+
},
|
|
548
|
+
__wbg_closePath_e9e11e034c5d75a3: function(arg0) {
|
|
549
|
+
arg0.closePath();
|
|
550
|
+
},
|
|
551
|
+
__wbg_closest_39824b16065066bc: function() { return handleError(function (arg0, arg1, arg2) {
|
|
552
|
+
const ret = arg0.closest(getStringFromWasm0(arg1, arg2));
|
|
553
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
554
|
+
}, arguments); },
|
|
555
|
+
__wbg_compileShader_11eb6754e9b15970: function(arg0, arg1) {
|
|
556
|
+
arg0.compileShader(arg1);
|
|
557
|
+
},
|
|
558
|
+
__wbg_contains_e732af46e8cdbd31: function(arg0, arg1, arg2) {
|
|
559
|
+
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
560
|
+
return ret;
|
|
561
|
+
},
|
|
562
|
+
__wbg_copyTexSubImage3D_e35f615c7c8244ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
563
|
+
arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
564
|
+
},
|
|
565
|
+
__wbg_createBuffer_2c27ad5f899d418d: function(arg0) {
|
|
566
|
+
const ret = arg0.createBuffer();
|
|
567
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
568
|
+
},
|
|
569
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
570
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
571
|
+
return ret;
|
|
572
|
+
}, arguments); },
|
|
573
|
+
__wbg_createFramebuffer_cdf686778c61014d: function(arg0) {
|
|
574
|
+
const ret = arg0.createFramebuffer();
|
|
575
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
576
|
+
},
|
|
577
|
+
__wbg_createProgram_ea784724f6f0074f: function(arg0) {
|
|
578
|
+
const ret = arg0.createProgram();
|
|
579
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
580
|
+
},
|
|
581
|
+
__wbg_createQuery_8f0481bdf42276b8: function(arg0) {
|
|
582
|
+
const ret = arg0.createQuery();
|
|
583
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
584
|
+
},
|
|
585
|
+
__wbg_createRange_d94ab95f29a3c437: function() { return handleError(function (arg0) {
|
|
586
|
+
const ret = arg0.createRange();
|
|
587
|
+
return ret;
|
|
588
|
+
}, arguments); },
|
|
589
|
+
__wbg_createShader_9754a1e4ef374e84: function(arg0, arg1) {
|
|
590
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
591
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
592
|
+
},
|
|
593
|
+
__wbg_createTextNode_2b48c3fc75dfcc67: function(arg0, arg1, arg2) {
|
|
594
|
+
const ret = arg0.createTextNode(getStringFromWasm0(arg1, arg2));
|
|
595
|
+
return ret;
|
|
596
|
+
},
|
|
597
|
+
__wbg_createTexture_3287f26407473071: function(arg0) {
|
|
598
|
+
const ret = arg0.createTexture();
|
|
599
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
600
|
+
},
|
|
601
|
+
__wbg_createTreeWalker_d8b4ce2824fc8d13: function() { return handleError(function (arg0, arg1, arg2) {
|
|
602
|
+
const ret = arg0.createTreeWalker(arg1, arg2 >>> 0);
|
|
603
|
+
return ret;
|
|
604
|
+
}, arguments); },
|
|
605
|
+
__wbg_createVertexArray_1293d2ffa8346be2: function(arg0) {
|
|
606
|
+
const ret = arg0.createVertexArray();
|
|
607
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
608
|
+
},
|
|
609
|
+
__wbg_currentTime_5acf805e7b52f9c5: function(arg0) {
|
|
610
|
+
const ret = arg0.currentTime;
|
|
611
|
+
return ret;
|
|
612
|
+
},
|
|
613
|
+
__wbg_data_bf4b5c8a5fc46441: function(arg0, arg1) {
|
|
614
|
+
const ret = arg1.data;
|
|
615
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
616
|
+
const len1 = WASM_VECTOR_LEN;
|
|
617
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
618
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
619
|
+
},
|
|
620
|
+
__wbg_decode_7bb84b72e1772cfe: function(arg0) {
|
|
621
|
+
const ret = arg0.decode();
|
|
622
|
+
return ret;
|
|
623
|
+
},
|
|
624
|
+
__wbg_defaultView_a5c6f4959014ed14: function(arg0) {
|
|
625
|
+
const ret = arg0.defaultView;
|
|
626
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
627
|
+
},
|
|
628
|
+
__wbg_deleteFramebuffer_ffdb1bee4c92ae4c: function(arg0, arg1) {
|
|
629
|
+
arg0.deleteFramebuffer(arg1);
|
|
630
|
+
},
|
|
631
|
+
__wbg_deleteQuery_dfd665f6d8652e22: function(arg0, arg1) {
|
|
632
|
+
arg0.deleteQuery(arg1);
|
|
633
|
+
},
|
|
634
|
+
__wbg_deleteTexture_1653a9994a44215e: function(arg0, arg1) {
|
|
635
|
+
arg0.deleteTexture(arg1);
|
|
636
|
+
},
|
|
637
|
+
__wbg_devicePixelRatio_90ee4024cee5d5f4: function(arg0) {
|
|
638
|
+
const ret = arg0.devicePixelRatio;
|
|
639
|
+
return ret;
|
|
640
|
+
},
|
|
641
|
+
__wbg_disable_8a9e81e6d64d046b: function(arg0, arg1) {
|
|
642
|
+
arg0.disable(arg1 >>> 0);
|
|
643
|
+
},
|
|
644
|
+
__wbg_disconnect_098ee921e4c012a2: function(arg0) {
|
|
645
|
+
arg0.disconnect();
|
|
646
|
+
},
|
|
647
|
+
__wbg_disconnect_cfb0d06aca1c1b50: function(arg0) {
|
|
648
|
+
arg0.disconnect();
|
|
649
|
+
},
|
|
650
|
+
__wbg_dispatchEvent_a2af00ffae37e129: function() { return handleError(function (arg0, arg1) {
|
|
651
|
+
const ret = arg0.dispatchEvent(arg1);
|
|
652
|
+
return ret;
|
|
653
|
+
}, arguments); },
|
|
654
|
+
__wbg_documentElement_5e44e37dd0181a81: function(arg0) {
|
|
655
|
+
const ret = arg0.documentElement;
|
|
656
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
657
|
+
},
|
|
658
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
659
|
+
const ret = arg0.document;
|
|
660
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
661
|
+
},
|
|
662
|
+
__wbg_done_57e08d0be6e30c02: function(arg0) {
|
|
663
|
+
const ret = arg0.done;
|
|
664
|
+
return ret;
|
|
665
|
+
},
|
|
666
|
+
__wbg_drawArraysInstanced_762b36f2147c7a85: function(arg0, arg1, arg2, arg3, arg4) {
|
|
667
|
+
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
668
|
+
},
|
|
669
|
+
__wbg_drawImage_115d33dadf38c151: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
670
|
+
arg0.drawImage(arg1, arg2, arg3);
|
|
671
|
+
}, arguments); },
|
|
672
|
+
__wbg_drawImage_47077eeae8f1a73d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
673
|
+
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
674
|
+
}, arguments); },
|
|
675
|
+
__wbg_drawImage_677012fa94c227b5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
676
|
+
arg0.drawImage(arg1, arg2, arg3, arg4, arg5);
|
|
677
|
+
}, arguments); },
|
|
678
|
+
__wbg_enableVertexAttribArray_eeecc6185af24227: function(arg0, arg1) {
|
|
679
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
680
|
+
},
|
|
681
|
+
__wbg_enable_e955d456ef6b93f7: function(arg0, arg1) {
|
|
682
|
+
arg0.enable(arg1 >>> 0);
|
|
683
|
+
},
|
|
684
|
+
__wbg_endQuery_f052a8f0f3589d3b: function(arg0, arg1) {
|
|
685
|
+
arg0.endQuery(arg1 >>> 0);
|
|
686
|
+
},
|
|
687
|
+
__wbg_ended_fbd09c06f146ec0f: function(arg0) {
|
|
688
|
+
const ret = arg0.ended;
|
|
689
|
+
return ret;
|
|
690
|
+
},
|
|
691
|
+
__wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
|
|
692
|
+
const ret = Object.entries(arg0);
|
|
693
|
+
return ret;
|
|
694
|
+
},
|
|
695
|
+
__wbg_fillRect_e1f0b9915220348b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
696
|
+
arg0.fillRect(arg1, arg2, arg3, arg4);
|
|
697
|
+
},
|
|
698
|
+
__wbg_fillText_89d353a9ad9f4a1a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
699
|
+
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
700
|
+
}, arguments); },
|
|
701
|
+
__wbg_fill_0f2da6eee5a2e8d4: function(arg0, arg1) {
|
|
702
|
+
arg0.fill(arg1);
|
|
703
|
+
},
|
|
704
|
+
__wbg_fill_cb36fe21a8d46cd7: function(arg0) {
|
|
705
|
+
arg0.fill();
|
|
706
|
+
},
|
|
707
|
+
__wbg_firstChild_8ba00f6fe3423297: function(arg0) {
|
|
708
|
+
const ret = arg0.firstChild;
|
|
709
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
710
|
+
},
|
|
711
|
+
__wbg_firstElementChild_a60f6eaf7d453487: function(arg0) {
|
|
712
|
+
const ret = arg0.firstElementChild;
|
|
713
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
714
|
+
},
|
|
715
|
+
__wbg_fontBoundingBoxAscent_61e48804fd37a11a: function(arg0) {
|
|
716
|
+
const ret = arg0.fontBoundingBoxAscent;
|
|
717
|
+
return ret;
|
|
718
|
+
},
|
|
719
|
+
__wbg_fontBoundingBoxDescent_59cc69f2bdea4644: function(arg0) {
|
|
720
|
+
const ret = arg0.fontBoundingBoxDescent;
|
|
721
|
+
return ret;
|
|
722
|
+
},
|
|
723
|
+
__wbg_fonts_36aec16d0766d490: function(arg0) {
|
|
724
|
+
const ret = arg0.fonts;
|
|
725
|
+
return ret;
|
|
726
|
+
},
|
|
727
|
+
__wbg_framebufferTexture2D_b6250a0c37eb48c2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
728
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
729
|
+
},
|
|
730
|
+
__wbg_framebufferTextureLayer_2f6e24e2dbf9b214: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
731
|
+
arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
|
|
732
|
+
},
|
|
733
|
+
__wbg_generateMipmap_41bc066b35a6cd3d: function(arg0, arg1) {
|
|
734
|
+
arg0.generateMipmap(arg1 >>> 0);
|
|
735
|
+
},
|
|
736
|
+
__wbg_getAttribute_c7b80d4010284561: function(arg0, arg1, arg2, arg3) {
|
|
737
|
+
const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3));
|
|
738
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
739
|
+
var len1 = WASM_VECTOR_LEN;
|
|
740
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
741
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
742
|
+
},
|
|
743
|
+
__wbg_getBoundingClientRect_329ca748ec918b0c: function(arg0) {
|
|
744
|
+
const ret = arg0.getBoundingClientRect();
|
|
745
|
+
return ret;
|
|
746
|
+
},
|
|
747
|
+
__wbg_getBoundingClientRect_9f973e395d22a7dd: function(arg0) {
|
|
748
|
+
const ret = arg0.getBoundingClientRect();
|
|
749
|
+
return ret;
|
|
750
|
+
},
|
|
751
|
+
__wbg_getClientRects_3c096d928568f69b: function(arg0) {
|
|
752
|
+
const ret = arg0.getClientRects();
|
|
753
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
754
|
+
},
|
|
755
|
+
__wbg_getClientRects_f683d637a254d6a7: function(arg0) {
|
|
756
|
+
const ret = arg0.getClientRects();
|
|
757
|
+
return ret;
|
|
758
|
+
},
|
|
759
|
+
__wbg_getComputedStyle_3be93eadae0000a9: function() { return handleError(function (arg0, arg1) {
|
|
760
|
+
const ret = arg0.getComputedStyle(arg1);
|
|
761
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
762
|
+
}, arguments); },
|
|
763
|
+
__wbg_getContext_9d32151c28a36ed6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
764
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
765
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
766
|
+
}, arguments); },
|
|
767
|
+
__wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
|
|
768
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
769
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
770
|
+
}, arguments); },
|
|
771
|
+
__wbg_getElementById_7ee213db584f37b0: function(arg0, arg1, arg2) {
|
|
772
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
773
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
774
|
+
},
|
|
775
|
+
__wbg_getElementsByTagName_f03a3f33a0f4d532: function(arg0, arg1, arg2) {
|
|
776
|
+
const ret = arg0.getElementsByTagName(getStringFromWasm0(arg1, arg2));
|
|
777
|
+
return ret;
|
|
778
|
+
},
|
|
779
|
+
__wbg_getExtension_30c10f49f67eb05d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
780
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
781
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
782
|
+
}, arguments); },
|
|
783
|
+
__wbg_getImageData_284584d5017b9f60: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
784
|
+
const ret = arg0.getImageData(arg1, arg2, arg3, arg4);
|
|
785
|
+
return ret;
|
|
786
|
+
}, arguments); },
|
|
787
|
+
__wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
|
|
788
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
789
|
+
return ret;
|
|
790
|
+
}, arguments); },
|
|
791
|
+
__wbg_getProgramInfoLog_01799fd7b07b7f3c: function(arg0, arg1, arg2) {
|
|
792
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
793
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
794
|
+
var len1 = WASM_VECTOR_LEN;
|
|
795
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
796
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
797
|
+
},
|
|
798
|
+
__wbg_getProgramParameter_1e7562e7d66170c3: function(arg0, arg1, arg2) {
|
|
799
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
800
|
+
return ret;
|
|
801
|
+
},
|
|
802
|
+
__wbg_getPropertyValue_c0aae8b8341401f1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
803
|
+
const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3));
|
|
804
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
805
|
+
const len1 = WASM_VECTOR_LEN;
|
|
806
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
807
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
808
|
+
}, arguments); },
|
|
809
|
+
__wbg_getQueryParameter_0beb5dc153d8ca4f: function(arg0, arg1, arg2) {
|
|
810
|
+
const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
|
|
811
|
+
return ret;
|
|
812
|
+
},
|
|
813
|
+
__wbg_getShaderInfoLog_3cfe5b3e097d0f2d: function(arg0, arg1, arg2) {
|
|
814
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
815
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
816
|
+
var len1 = WASM_VECTOR_LEN;
|
|
817
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
818
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
819
|
+
},
|
|
820
|
+
__wbg_getShaderParameter_fc64069fbc010d19: function(arg0, arg1, arg2) {
|
|
821
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
822
|
+
return ret;
|
|
823
|
+
},
|
|
824
|
+
__wbg_getUniformBlockIndex_0742ae35f926850a: function(arg0, arg1, arg2, arg3) {
|
|
825
|
+
const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
|
|
826
|
+
return ret;
|
|
827
|
+
},
|
|
828
|
+
__wbg_getUniformLocation_6352e0669c8f5393: function(arg0, arg1, arg2, arg3) {
|
|
829
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
830
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
831
|
+
},
|
|
832
|
+
__wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
|
|
833
|
+
const ret = Reflect.get(arg0, arg1);
|
|
834
|
+
return ret;
|
|
835
|
+
}, arguments); },
|
|
836
|
+
__wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) {
|
|
837
|
+
const ret = Reflect.get(arg0, arg1);
|
|
838
|
+
return ret;
|
|
839
|
+
}, arguments); },
|
|
840
|
+
__wbg_get_d7176cfb76d71114: function(arg0, arg1) {
|
|
841
|
+
const ret = arg0[arg1 >>> 0];
|
|
842
|
+
return ret;
|
|
843
|
+
},
|
|
844
|
+
__wbg_get_d83c4b58c9faac91: function(arg0, arg1) {
|
|
845
|
+
const ret = arg0[arg1 >>> 0];
|
|
846
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
847
|
+
},
|
|
848
|
+
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
849
|
+
const ret = arg0[arg1 >>> 0];
|
|
850
|
+
return ret;
|
|
851
|
+
},
|
|
852
|
+
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
853
|
+
const ret = arg0[arg1];
|
|
854
|
+
return ret;
|
|
855
|
+
},
|
|
856
|
+
__wbg_has_2c4d5cf25ec8c1cf: function() { return handleError(function (arg0, arg1) {
|
|
857
|
+
const ret = Reflect.has(arg0, arg1);
|
|
858
|
+
return ret;
|
|
859
|
+
}, arguments); },
|
|
860
|
+
__wbg_head_931aef85344cb8de: function(arg0) {
|
|
861
|
+
const ret = arg0.head;
|
|
862
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
863
|
+
},
|
|
864
|
+
__wbg_height_ac6f1c3f49c13fe2: function(arg0) {
|
|
865
|
+
const ret = arg0.height;
|
|
866
|
+
return ret;
|
|
867
|
+
},
|
|
868
|
+
__wbg_height_ce5f2b5901ba05ab: function(arg0) {
|
|
869
|
+
const ret = arg0.height;
|
|
870
|
+
return ret;
|
|
871
|
+
},
|
|
872
|
+
__wbg_innerHeight_63bad5524492f70a: function() { return handleError(function (arg0) {
|
|
873
|
+
const ret = arg0.innerHeight;
|
|
874
|
+
return ret;
|
|
875
|
+
}, arguments); },
|
|
876
|
+
__wbg_insertBefore_10ab0c19b463c12b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
877
|
+
const ret = arg0.insertBefore(arg1, arg2);
|
|
878
|
+
return ret;
|
|
879
|
+
}, arguments); },
|
|
880
|
+
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
881
|
+
let result;
|
|
882
|
+
try {
|
|
883
|
+
result = arg0 instanceof ArrayBuffer;
|
|
884
|
+
} catch (_) {
|
|
885
|
+
result = false;
|
|
886
|
+
}
|
|
887
|
+
const ret = result;
|
|
888
|
+
return ret;
|
|
889
|
+
},
|
|
890
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
891
|
+
let result;
|
|
892
|
+
try {
|
|
893
|
+
result = arg0 instanceof Uint8Array;
|
|
894
|
+
} catch (_) {
|
|
895
|
+
result = false;
|
|
896
|
+
}
|
|
897
|
+
const ret = result;
|
|
898
|
+
return ret;
|
|
899
|
+
},
|
|
900
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
901
|
+
let result;
|
|
902
|
+
try {
|
|
903
|
+
result = arg0 instanceof Window;
|
|
904
|
+
} catch (_) {
|
|
905
|
+
result = false;
|
|
906
|
+
}
|
|
907
|
+
const ret = result;
|
|
908
|
+
return ret;
|
|
909
|
+
},
|
|
910
|
+
__wbg_isArray_bcf1376d0d732d08: function(arg0) {
|
|
911
|
+
const ret = Array.isArray(arg0);
|
|
912
|
+
return ret;
|
|
913
|
+
},
|
|
914
|
+
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
915
|
+
const ret = Number.isSafeInteger(arg0);
|
|
916
|
+
return ret;
|
|
917
|
+
},
|
|
918
|
+
__wbg_isSameNode_1eda96b84821596e: function(arg0, arg1) {
|
|
919
|
+
const ret = arg0.isSameNode(arg1);
|
|
920
|
+
return ret;
|
|
921
|
+
},
|
|
922
|
+
__wbg_is_2248ff2b575d60c7: function(arg0, arg1) {
|
|
923
|
+
const ret = Object.is(arg0, arg1);
|
|
924
|
+
return ret;
|
|
925
|
+
},
|
|
926
|
+
__wbg_item_66d2ef77cbc53343: function(arg0, arg1) {
|
|
927
|
+
const ret = arg0.item(arg1 >>> 0);
|
|
928
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
929
|
+
},
|
|
930
|
+
__wbg_iterator_e4c5e8f68ada7b58: function() {
|
|
931
|
+
const ret = Symbol.iterator;
|
|
932
|
+
return ret;
|
|
933
|
+
},
|
|
934
|
+
__wbg_left_9df47701ff317a35: function(arg0) {
|
|
935
|
+
const ret = arg0.left;
|
|
936
|
+
return ret;
|
|
937
|
+
},
|
|
938
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
939
|
+
const ret = arg0.length;
|
|
940
|
+
return ret;
|
|
941
|
+
},
|
|
942
|
+
__wbg_length_9af91c726707ec61: function(arg0) {
|
|
943
|
+
const ret = arg0.length;
|
|
944
|
+
return ret;
|
|
945
|
+
},
|
|
946
|
+
__wbg_length_9f82f041dce0ac51: function(arg0) {
|
|
947
|
+
const ret = arg0.length;
|
|
948
|
+
return ret;
|
|
949
|
+
},
|
|
950
|
+
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
951
|
+
const ret = arg0.length;
|
|
952
|
+
return ret;
|
|
953
|
+
},
|
|
954
|
+
__wbg_linkProgram_99848b73f1ebab5f: function(arg0, arg1) {
|
|
955
|
+
arg0.linkProgram(arg1);
|
|
956
|
+
},
|
|
957
|
+
__wbg_matchMedia_b53687d22ec43649: function() { return handleError(function (arg0, arg1, arg2) {
|
|
958
|
+
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
959
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
960
|
+
}, arguments); },
|
|
961
|
+
__wbg_matches_a47c420646498c64: function(arg0) {
|
|
962
|
+
const ret = arg0.matches;
|
|
963
|
+
return ret;
|
|
964
|
+
},
|
|
965
|
+
__wbg_measureText_d831259b682a3f7d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
966
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
967
|
+
return ret;
|
|
968
|
+
}, arguments); },
|
|
969
|
+
__wbg_moveTo_b4cd3b0b7e1585a5: function(arg0, arg1, arg2) {
|
|
970
|
+
arg0.moveTo(arg1, arg2);
|
|
971
|
+
},
|
|
972
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
973
|
+
const ret = new Uint8Array(arg0);
|
|
974
|
+
return ret;
|
|
975
|
+
},
|
|
976
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
977
|
+
const ret = new Array();
|
|
978
|
+
return ret;
|
|
979
|
+
},
|
|
980
|
+
__wbg_new_787c6ba65fdb1b00: function(arg0) {
|
|
981
|
+
const ret = new Float32Array(arg0);
|
|
982
|
+
return ret;
|
|
983
|
+
},
|
|
984
|
+
__wbg_new_b9daede95aa58c54: function() { return handleError(function (arg0) {
|
|
985
|
+
const ret = new IntersectionObserver(arg0);
|
|
986
|
+
return ret;
|
|
987
|
+
}, arguments); },
|
|
988
|
+
__wbg_new_bdf613c6b0b3d702: function() { return handleError(function (arg0) {
|
|
989
|
+
const ret = new ResizeObserver(arg0);
|
|
990
|
+
return ret;
|
|
991
|
+
}, arguments); },
|
|
992
|
+
__wbg_new_cd4348290afae586: function() {
|
|
993
|
+
const ret = new Object();
|
|
994
|
+
return ret;
|
|
995
|
+
},
|
|
996
|
+
__wbg_new_from_slice_355c10c5d8f2addb: function(arg0, arg1) {
|
|
997
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
998
|
+
return ret;
|
|
999
|
+
},
|
|
1000
|
+
__wbg_new_with_event_init_dict_afa9822926033490: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1001
|
+
const ret = new CustomEvent(getStringFromWasm0(arg0, arg1), arg2);
|
|
1002
|
+
return ret;
|
|
1003
|
+
}, arguments); },
|
|
1004
|
+
__wbg_new_with_path_string_7a9f5ad85cc85cb7: function() { return handleError(function (arg0, arg1) {
|
|
1005
|
+
const ret = new Path2D(getStringFromWasm0(arg0, arg1));
|
|
1006
|
+
return ret;
|
|
1007
|
+
}, arguments); },
|
|
1008
|
+
__wbg_nextNode_e792e069e8880865: function() { return handleError(function (arg0) {
|
|
1009
|
+
const ret = arg0.nextNode();
|
|
1010
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1011
|
+
}, arguments); },
|
|
1012
|
+
__wbg_nextSibling_91136dc7a8ec9b09: function(arg0) {
|
|
1013
|
+
const ret = arg0.nextSibling;
|
|
1014
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1015
|
+
},
|
|
1016
|
+
__wbg_next_178c1651c11432b3: function(arg0) {
|
|
1017
|
+
const ret = arg0.next;
|
|
1018
|
+
return ret;
|
|
1019
|
+
},
|
|
1020
|
+
__wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
|
|
1021
|
+
const ret = arg0.next();
|
|
1022
|
+
return ret;
|
|
1023
|
+
}, arguments); },
|
|
1024
|
+
__wbg_now_043d245551b22f9c: function(arg0) {
|
|
1025
|
+
const ret = arg0.now();
|
|
1026
|
+
return ret;
|
|
1027
|
+
},
|
|
1028
|
+
__wbg_now_463ac581d2fc7ea3: function() {
|
|
1029
|
+
const ret = Date.now();
|
|
1030
|
+
return ret;
|
|
1031
|
+
},
|
|
1032
|
+
__wbg_observe_0bd2cd721b4e32da: function(arg0, arg1) {
|
|
1033
|
+
arg0.observe(arg1);
|
|
1034
|
+
},
|
|
1035
|
+
__wbg_observe_1c390aab39e98a11: function(arg0, arg1) {
|
|
1036
|
+
arg0.observe(arg1);
|
|
1037
|
+
},
|
|
1038
|
+
__wbg_ownerDocument_adefd47fd596fe80: function(arg0) {
|
|
1039
|
+
const ret = arg0.ownerDocument;
|
|
1040
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1041
|
+
},
|
|
1042
|
+
__wbg_parentElement_300cdd39ce1d95f8: function(arg0) {
|
|
1043
|
+
const ret = arg0.parentElement;
|
|
1044
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_parentNode_fe15bcc26df42856: function(arg0) {
|
|
1047
|
+
const ret = arg0.parentNode;
|
|
1048
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1049
|
+
},
|
|
1050
|
+
__wbg_paused_4657f6101dd11043: function(arg0) {
|
|
1051
|
+
const ret = arg0.paused;
|
|
1052
|
+
return ret;
|
|
1053
|
+
},
|
|
1054
|
+
__wbg_performance_50e6a3f8dc80bbca: function(arg0) {
|
|
1055
|
+
const ret = arg0.performance;
|
|
1056
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1057
|
+
},
|
|
1058
|
+
__wbg_pixelStorei_6dd56b4da047c480: function(arg0, arg1, arg2) {
|
|
1059
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1060
|
+
},
|
|
1061
|
+
__wbg_playbackRate_e6fd92785ee03230: function(arg0) {
|
|
1062
|
+
const ret = arg0.playbackRate;
|
|
1063
|
+
return ret;
|
|
1064
|
+
},
|
|
1065
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
1066
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1067
|
+
},
|
|
1068
|
+
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
1069
|
+
const ret = arg0.push(arg1);
|
|
1070
|
+
return ret;
|
|
1071
|
+
},
|
|
1072
|
+
__wbg_querySelector_1555c239948f2bf0: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1073
|
+
const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
|
|
1074
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1075
|
+
}, arguments); },
|
|
1076
|
+
__wbg_ready_d9b92cf6b73e0b91: function() { return handleError(function (arg0) {
|
|
1077
|
+
const ret = arg0.ready;
|
|
1078
|
+
return ret;
|
|
1079
|
+
}, arguments); },
|
|
1080
|
+
__wbg_rect_ab5601e64afdbc33: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1081
|
+
arg0.rect(arg1, arg2, arg3, arg4);
|
|
1082
|
+
},
|
|
1083
|
+
__wbg_removeAttribute_735f25a801a701e1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1084
|
+
arg0.removeAttribute(getStringFromWasm0(arg1, arg2));
|
|
1085
|
+
}, arguments); },
|
|
1086
|
+
__wbg_removeChild_d2dc6fc1d6db896b: function() { return handleError(function (arg0, arg1) {
|
|
1087
|
+
const ret = arg0.removeChild(arg1);
|
|
1088
|
+
return ret;
|
|
1089
|
+
}, arguments); },
|
|
1090
|
+
__wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1091
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1092
|
+
}, arguments); },
|
|
1093
|
+
__wbg_removeProperty_24e2a492b137f2d7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1094
|
+
const ret = arg1.removeProperty(getStringFromWasm0(arg2, arg3));
|
|
1095
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1096
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1097
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1098
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1099
|
+
}, arguments); },
|
|
1100
|
+
__wbg_remove_12e9b1deffec7d2f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1101
|
+
arg0.remove(getStringFromWasm0(arg1, arg2));
|
|
1102
|
+
}, arguments); },
|
|
1103
|
+
__wbg_remove_8228e91d7ddbc755: function(arg0) {
|
|
1104
|
+
arg0.remove();
|
|
1105
|
+
},
|
|
1106
|
+
__wbg_requestAnimationFrame_9ba49d36a19ca83c: function() { return handleError(function (arg0, arg1) {
|
|
1107
|
+
const ret = arg0.requestAnimationFrame(arg1);
|
|
1108
|
+
return ret;
|
|
1109
|
+
}, arguments); },
|
|
1110
|
+
__wbg_restore_f322d9dcee2d3472: function(arg0) {
|
|
1111
|
+
arg0.restore();
|
|
1112
|
+
},
|
|
1113
|
+
__wbg_right_87f14139bda7986d: function(arg0) {
|
|
1114
|
+
const ret = arg0.right;
|
|
1115
|
+
return ret;
|
|
1116
|
+
},
|
|
1117
|
+
__wbg_save_1375b4c2f3596b8b: function(arg0) {
|
|
1118
|
+
arg0.save();
|
|
1119
|
+
},
|
|
1120
|
+
__wbg_scale_57e5c903fb153a90: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1121
|
+
arg0.scale(arg1, arg2);
|
|
1122
|
+
}, arguments); },
|
|
1123
|
+
__wbg_scissor_17956d9d23dfe025: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1124
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1125
|
+
},
|
|
1126
|
+
__wbg_scrollHeight_879470691b1201b7: function(arg0) {
|
|
1127
|
+
const ret = arg0.scrollHeight;
|
|
1128
|
+
return ret;
|
|
1129
|
+
},
|
|
1130
|
+
__wbg_scrollTo_8447b4fdf830d055: function(arg0, arg1, arg2) {
|
|
1131
|
+
arg0.scrollTo(arg1, arg2);
|
|
1132
|
+
},
|
|
1133
|
+
__wbg_scrollTop_23cacc894823db89: function(arg0) {
|
|
1134
|
+
const ret = arg0.scrollTop;
|
|
1135
|
+
return ret;
|
|
1136
|
+
},
|
|
1137
|
+
__wbg_scrollX_7432c8b671bd7d88: function() { return handleError(function (arg0) {
|
|
1138
|
+
const ret = arg0.scrollX;
|
|
1139
|
+
return ret;
|
|
1140
|
+
}, arguments); },
|
|
1141
|
+
__wbg_scrollY_87300ba09c8cf783: function() { return handleError(function (arg0) {
|
|
1142
|
+
const ret = arg0.scrollY;
|
|
1143
|
+
return ret;
|
|
1144
|
+
}, arguments); },
|
|
1145
|
+
__wbg_selectNodeContents_cf099ed1e0e10ec7: function() { return handleError(function (arg0, arg1) {
|
|
1146
|
+
arg0.selectNodeContents(arg1);
|
|
1147
|
+
}, arguments); },
|
|
1148
|
+
__wbg_setAttribute_f75317b2b5cabfb4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1149
|
+
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1150
|
+
}, arguments); },
|
|
1151
|
+
__wbg_setEnd_bed33f84d44f7f10: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1152
|
+
arg0.setEnd(arg1, arg2 >>> 0);
|
|
1153
|
+
}, arguments); },
|
|
1154
|
+
__wbg_setProperty_3fe74e09d53acb0b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1155
|
+
arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1156
|
+
}, arguments); },
|
|
1157
|
+
__wbg_setStart_274773ccee3c34af: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1158
|
+
arg0.setStart(arg1, arg2 >>> 0);
|
|
1159
|
+
}, arguments); },
|
|
1160
|
+
__wbg_setTransform_ee8f5d076fcdec0f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1161
|
+
arg0.setTransform(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1162
|
+
}, arguments); },
|
|
1163
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1164
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1165
|
+
return ret;
|
|
1166
|
+
}, arguments); },
|
|
1167
|
+
__wbg_set_bubbles_c575af63822ba0df: function(arg0, arg1) {
|
|
1168
|
+
arg0.bubbles = arg1 !== 0;
|
|
1169
|
+
},
|
|
1170
|
+
__wbg_set_className_fcd90345b3a090af: function(arg0, arg1, arg2) {
|
|
1171
|
+
arg0.className = getStringFromWasm0(arg1, arg2);
|
|
1172
|
+
},
|
|
1173
|
+
__wbg_set_composed_d7ec06c0693be3f1: function(arg0, arg1) {
|
|
1174
|
+
arg0.composed = arg1 !== 0;
|
|
1175
|
+
},
|
|
1176
|
+
__wbg_set_crossOrigin_eaf70f07e764020a: function(arg0, arg1, arg2) {
|
|
1177
|
+
arg0.crossOrigin = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1178
|
+
},
|
|
1179
|
+
__wbg_set_currentTime_394068ede1cd71d4: function(arg0, arg1) {
|
|
1180
|
+
arg0.currentTime = arg1;
|
|
1181
|
+
},
|
|
1182
|
+
__wbg_set_detail_bf911f4f40441e17: function(arg0, arg1) {
|
|
1183
|
+
arg0.detail = arg1;
|
|
1184
|
+
},
|
|
1185
|
+
__wbg_set_fillStyle_95fde67582a9c695: function(arg0, arg1, arg2) {
|
|
1186
|
+
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
1187
|
+
},
|
|
1188
|
+
__wbg_set_filter_e4f67936c344bf1e: function(arg0, arg1, arg2) {
|
|
1189
|
+
arg0.filter = getStringFromWasm0(arg1, arg2);
|
|
1190
|
+
},
|
|
1191
|
+
__wbg_set_font_aa0c0c514c73a5fa: function(arg0, arg1, arg2) {
|
|
1192
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
1193
|
+
},
|
|
1194
|
+
__wbg_set_globalCompositeOperation_ea01f49b162aa65d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1195
|
+
arg0.globalCompositeOperation = getStringFromWasm0(arg1, arg2);
|
|
1196
|
+
}, arguments); },
|
|
1197
|
+
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
1198
|
+
arg0.height = arg1 >>> 0;
|
|
1199
|
+
},
|
|
1200
|
+
__wbg_set_id_861bcd7afe9f86ad: function(arg0, arg1, arg2) {
|
|
1201
|
+
arg0.id = getStringFromWasm0(arg1, arg2);
|
|
1202
|
+
},
|
|
1203
|
+
__wbg_set_lineWidth_12f039d09cd36dad: function(arg0, arg1) {
|
|
1204
|
+
arg0.lineWidth = arg1;
|
|
1205
|
+
},
|
|
1206
|
+
__wbg_set_passive_ac655beafedbb0a5: function(arg0, arg1) {
|
|
1207
|
+
arg0.passive = arg1 !== 0;
|
|
1208
|
+
},
|
|
1209
|
+
__wbg_set_scrollTop_a01ea28563affafe: function(arg0, arg1) {
|
|
1210
|
+
arg0.scrollTop = arg1;
|
|
1211
|
+
},
|
|
1212
|
+
__wbg_set_src_da602cd25f3603f8: function(arg0, arg1, arg2) {
|
|
1213
|
+
arg0.src = getStringFromWasm0(arg1, arg2);
|
|
1214
|
+
},
|
|
1215
|
+
__wbg_set_strokeStyle_b90c8a6e0d37c80d: function(arg0, arg1, arg2) {
|
|
1216
|
+
arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
1217
|
+
},
|
|
1218
|
+
__wbg_set_textAlign_0a32c51401892c11: function(arg0, arg1, arg2) {
|
|
1219
|
+
arg0.textAlign = getStringFromWasm0(arg1, arg2);
|
|
1220
|
+
},
|
|
1221
|
+
__wbg_set_textBaseline_ff2e3c5c84684b23: function(arg0, arg1, arg2) {
|
|
1222
|
+
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
1223
|
+
},
|
|
1224
|
+
__wbg_set_textContent_0177b2a6d9293c2c: function(arg0, arg1, arg2) {
|
|
1225
|
+
arg0.textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1226
|
+
},
|
|
1227
|
+
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
1228
|
+
arg0.width = arg1 >>> 0;
|
|
1229
|
+
},
|
|
1230
|
+
__wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
|
|
1231
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1232
|
+
},
|
|
1233
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
1234
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
1235
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1236
|
+
},
|
|
1237
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
1238
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
1239
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1240
|
+
},
|
|
1241
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
1242
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
1243
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1244
|
+
},
|
|
1245
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
1246
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
1247
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1248
|
+
},
|
|
1249
|
+
__wbg_stroke_19fa3f3ec093bc25: function(arg0) {
|
|
1250
|
+
arg0.stroke();
|
|
1251
|
+
},
|
|
1252
|
+
__wbg_style_f499e599ac70277f: function(arg0) {
|
|
1253
|
+
const ret = arg0.style;
|
|
1254
|
+
return ret;
|
|
1255
|
+
},
|
|
1256
|
+
__wbg_target_e5cd9c7aa87dd8df: function(arg0) {
|
|
1257
|
+
const ret = arg0.target;
|
|
1258
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1259
|
+
},
|
|
1260
|
+
__wbg_texImage2D_170b4cef4a56a388: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
|
|
1261
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9 === 0 ? undefined : getArrayU8FromWasm0(arg9, arg10));
|
|
1262
|
+
}, arguments); },
|
|
1263
|
+
__wbg_texParameteri_e24e4fdc17153838: function(arg0, arg1, arg2, arg3) {
|
|
1264
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1265
|
+
},
|
|
1266
|
+
__wbg_texStorage3D_a82e5be79cb278dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1267
|
+
arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
|
|
1268
|
+
},
|
|
1269
|
+
__wbg_texSubImage3D_00e908f23d33228d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
1270
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
1271
|
+
}, arguments); },
|
|
1272
|
+
__wbg_textContent_240d7f8264a6246e: function(arg0, arg1) {
|
|
1273
|
+
const ret = arg1.textContent;
|
|
1274
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1275
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1276
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1277
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1278
|
+
},
|
|
1279
|
+
__wbg_then_3a4f899454bcf8c9: function(arg0, arg1) {
|
|
1280
|
+
const ret = arg0.then(arg1);
|
|
1281
|
+
return ret;
|
|
1282
|
+
},
|
|
1283
|
+
__wbg_then_7ede85da03ac5cd0: function(arg0, arg1, arg2) {
|
|
1284
|
+
const ret = arg0.then(arg1, arg2);
|
|
1285
|
+
return ret;
|
|
1286
|
+
},
|
|
1287
|
+
__wbg_top_2d45cda4e060d8bf: function(arg0) {
|
|
1288
|
+
const ret = arg0.top;
|
|
1289
|
+
return ret;
|
|
1290
|
+
},
|
|
1291
|
+
__wbg_translate_73a88129c5d9f3b2: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1292
|
+
arg0.translate(arg1, arg2);
|
|
1293
|
+
}, arguments); },
|
|
1294
|
+
__wbg_uniform1i_778a02a48ecdceed: function(arg0, arg1, arg2) {
|
|
1295
|
+
arg0.uniform1i(arg1, arg2);
|
|
1296
|
+
},
|
|
1297
|
+
__wbg_uniformBlockBinding_61c5a97721e0f36b: function(arg0, arg1, arg2, arg3) {
|
|
1298
|
+
arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
1299
|
+
},
|
|
1300
|
+
__wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
|
|
1301
|
+
arg0.useProgram(arg1);
|
|
1302
|
+
},
|
|
1303
|
+
__wbg_value_e0f328965e184931: function(arg0) {
|
|
1304
|
+
const ret = arg0.value;
|
|
1305
|
+
return ret;
|
|
1306
|
+
},
|
|
1307
|
+
__wbg_vertexAttribDivisor_5b64fc697c0496e1: function(arg0, arg1, arg2) {
|
|
1308
|
+
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
1309
|
+
},
|
|
1310
|
+
__wbg_vertexAttribPointer_39b706eb26c50057: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1311
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1312
|
+
},
|
|
1313
|
+
__wbg_viewport_cdae9e8b2f33343d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1314
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1315
|
+
},
|
|
1316
|
+
__wbg_width_babc5dc7654771b1: function(arg0) {
|
|
1317
|
+
const ret = arg0.width;
|
|
1318
|
+
return ret;
|
|
1319
|
+
},
|
|
1320
|
+
__wbg_width_d3c8d417d821d2fd: function(arg0) {
|
|
1321
|
+
const ret = arg0.width;
|
|
1322
|
+
return ret;
|
|
1323
|
+
},
|
|
1324
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1325
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1326
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true_);
|
|
1327
|
+
return ret;
|
|
1328
|
+
},
|
|
1329
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1330
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [F64], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1331
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___f64______true_);
|
|
1332
|
+
return ret;
|
|
1333
|
+
},
|
|
1334
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1335
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1336
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__39);
|
|
1337
|
+
return ret;
|
|
1338
|
+
},
|
|
1339
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1340
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1341
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__40);
|
|
1342
|
+
return ret;
|
|
1343
|
+
},
|
|
1344
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1345
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 12, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1346
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke_______true_);
|
|
1347
|
+
return ret;
|
|
1348
|
+
},
|
|
1349
|
+
__wbindgen_generic_0000000000000006: function(arg0) {
|
|
1350
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1351
|
+
const ret = arg0;
|
|
1352
|
+
return ret;
|
|
1353
|
+
},
|
|
1354
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1355
|
+
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
1356
|
+
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
1357
|
+
return ret;
|
|
1358
|
+
},
|
|
1359
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1360
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1361
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1362
|
+
return ret;
|
|
1363
|
+
},
|
|
1364
|
+
__wbindgen_init_externref_table: function() {
|
|
1365
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1366
|
+
table.set(0, undefined);
|
|
1367
|
+
table.set(1024, undefined);
|
|
1368
|
+
table.set(1025, null);
|
|
1369
|
+
table.set(1026, true);
|
|
1370
|
+
table.set(1027, false);
|
|
1371
|
+
},
|
|
1372
|
+
};
|
|
1373
|
+
return {
|
|
1374
|
+
__proto__: null,
|
|
1375
|
+
"./braccato_core_rs_bg.js": import0,
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
function wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1380
|
+
wasm.wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
function wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true_(arg0, arg1, arg2) {
|
|
1384
|
+
wasm.wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true_(arg0, arg1, arg2);
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
function wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__39(arg0, arg1, arg2) {
|
|
1388
|
+
wasm.wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__39(arg0, arg1, arg2);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
function wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__40(arg0, arg1, arg2) {
|
|
1392
|
+
wasm.wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___wasm_bindgen_662efdbedeaa8f26___JsValue______true__40(arg0, arg1, arg2);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
function wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___f64______true_(arg0, arg1, arg2) {
|
|
1396
|
+
wasm.wasm_bindgen_662efdbedeaa8f26___convert__closures_____invoke___f64______true_(arg0, arg1, arg2);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
const RendererFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1400
|
+
? { register: () => {}, unregister: () => {} }
|
|
1401
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_renderer_free(ptr, 1));
|
|
1402
|
+
|
|
1403
|
+
function addToExternrefTable0(obj) {
|
|
1404
|
+
const idx = wasm.__externref_table_alloc();
|
|
1405
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1406
|
+
return idx;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1410
|
+
? { register: () => {}, unregister: () => {} }
|
|
1411
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1412
|
+
|
|
1413
|
+
function debugString(val) {
|
|
1414
|
+
switch (typeof val) {
|
|
1415
|
+
// primitive types
|
|
1416
|
+
case 'number':
|
|
1417
|
+
case 'boolean':
|
|
1418
|
+
case 'undefined':
|
|
1419
|
+
return `${val}`;
|
|
1420
|
+
case 'string':
|
|
1421
|
+
return JSON.stringify(val);
|
|
1422
|
+
case 'bigint':
|
|
1423
|
+
return `${val}n`;
|
|
1424
|
+
case 'symbol':
|
|
1425
|
+
return val.description !== undefined
|
|
1426
|
+
? `Symbol(${val.description})`
|
|
1427
|
+
: 'Symbol';
|
|
1428
|
+
case 'function':
|
|
1429
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
1430
|
+
? `Function(${val.name})`
|
|
1431
|
+
: 'Function';
|
|
1432
|
+
case 'object': {
|
|
1433
|
+
if (val === null) {
|
|
1434
|
+
return 'null';
|
|
1435
|
+
}
|
|
1436
|
+
// objects
|
|
1437
|
+
if (Array.isArray(val)) {
|
|
1438
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
1439
|
+
}
|
|
1440
|
+
// errors
|
|
1441
|
+
if (val instanceof Error) {
|
|
1442
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
const toStringOutput = toString.call(val);
|
|
1446
|
+
// Test for built-in
|
|
1447
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
1448
|
+
|
|
1449
|
+
// Failed to match the standard '[object ClassName]'
|
|
1450
|
+
if (className === undefined) {
|
|
1451
|
+
return toStringOutput;
|
|
1452
|
+
}
|
|
1453
|
+
if (className === 'Object') {
|
|
1454
|
+
// we're a user defined class or Object
|
|
1455
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1456
|
+
// easier than looping through ownProperties of `val`.
|
|
1457
|
+
try {
|
|
1458
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1459
|
+
} catch (_) {
|
|
1460
|
+
return 'Object';
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1464
|
+
return className;
|
|
1465
|
+
}
|
|
1466
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
1467
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
1472
|
+
ptr = ptr >>> 0;
|
|
1473
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1477
|
+
ptr = ptr >>> 0;
|
|
1478
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
let cachedDataViewMemory0 = null;
|
|
1482
|
+
function getDataViewMemory0() {
|
|
1483
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1484
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1485
|
+
}
|
|
1486
|
+
return cachedDataViewMemory0;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
1490
|
+
function getFloat32ArrayMemory0() {
|
|
1491
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
1492
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
1493
|
+
}
|
|
1494
|
+
return cachedFloat32ArrayMemory0;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
function getStringFromWasm0(ptr, len) {
|
|
1498
|
+
ptr = ptr >>> 0;
|
|
1499
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1503
|
+
function getUint8ArrayMemory0() {
|
|
1504
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1505
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1506
|
+
}
|
|
1507
|
+
return cachedUint8ArrayMemory0;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
function handleError(f, args) {
|
|
1511
|
+
try {
|
|
1512
|
+
return f.apply(this, args);
|
|
1513
|
+
} catch (e) {
|
|
1514
|
+
const idx = addToExternrefTable0(e);
|
|
1515
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
function isLikeNone(x) {
|
|
1520
|
+
return x === undefined || x === null;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1524
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1525
|
+
const real = (...args) => {
|
|
1526
|
+
|
|
1527
|
+
// First up with a closure we increment the internal reference
|
|
1528
|
+
// count. This ensures that the Rust closure environment won't
|
|
1529
|
+
// be deallocated while we're invoking it.
|
|
1530
|
+
state.cnt++;
|
|
1531
|
+
const a = state.a;
|
|
1532
|
+
state.a = 0;
|
|
1533
|
+
try {
|
|
1534
|
+
return f(a, state.b, ...args);
|
|
1535
|
+
} finally {
|
|
1536
|
+
state.a = a;
|
|
1537
|
+
real._wbg_cb_unref();
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
real._wbg_cb_unref = () => {
|
|
1541
|
+
if (--state.cnt === 0) {
|
|
1542
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1543
|
+
state.a = 0;
|
|
1544
|
+
CLOSURE_DTORS.unregister(state);
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1548
|
+
return real;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1552
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1553
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1554
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1555
|
+
return ptr;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1559
|
+
if (realloc === undefined) {
|
|
1560
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1561
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1562
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1563
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1564
|
+
return ptr;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
let len = arg.length;
|
|
1568
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1569
|
+
|
|
1570
|
+
const mem = getUint8ArrayMemory0();
|
|
1571
|
+
|
|
1572
|
+
let offset = 0;
|
|
1573
|
+
|
|
1574
|
+
for (; offset < len; offset++) {
|
|
1575
|
+
const code = arg.charCodeAt(offset);
|
|
1576
|
+
if (code > 0x7F) break;
|
|
1577
|
+
mem[ptr + offset] = code;
|
|
1578
|
+
}
|
|
1579
|
+
if (offset !== len) {
|
|
1580
|
+
if (offset !== 0) {
|
|
1581
|
+
arg = arg.slice(offset);
|
|
1582
|
+
}
|
|
1583
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1584
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1585
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1586
|
+
|
|
1587
|
+
offset += ret.written;
|
|
1588
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
WASM_VECTOR_LEN = offset;
|
|
1592
|
+
return ptr;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
function takeFromExternrefTable0(idx) {
|
|
1596
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1597
|
+
wasm.__externref_table_dealloc(idx);
|
|
1598
|
+
return value;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1602
|
+
cachedTextDecoder.decode();
|
|
1603
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1604
|
+
let numBytesDecoded = 0;
|
|
1605
|
+
function decodeText(bytes) {
|
|
1606
|
+
numBytesDecoded += bytes.length;
|
|
1607
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1608
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1609
|
+
cachedTextDecoder.decode();
|
|
1610
|
+
numBytesDecoded = bytes.length;
|
|
1611
|
+
}
|
|
1612
|
+
return cachedTextDecoder.decode(bytes);
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1616
|
+
|
|
1617
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1618
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1619
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1620
|
+
view.set(buf);
|
|
1621
|
+
return {
|
|
1622
|
+
read: arg.length,
|
|
1623
|
+
written: buf.length
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
let WASM_VECTOR_LEN = 0;
|
|
1629
|
+
|
|
1630
|
+
let wasmModule, wasmInstance, wasm;
|
|
1631
|
+
function __wbg_finalize_init(instance, module) {
|
|
1632
|
+
wasmInstance = instance;
|
|
1633
|
+
wasm = instance.exports;
|
|
1634
|
+
wasmModule = module;
|
|
1635
|
+
cachedDataViewMemory0 = null;
|
|
1636
|
+
cachedFloat32ArrayMemory0 = null;
|
|
1637
|
+
cachedUint8ArrayMemory0 = null;
|
|
1638
|
+
wasm.__wbindgen_start();
|
|
1639
|
+
return wasm;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
async function __wbg_load(module, imports) {
|
|
1643
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1644
|
+
if (!module.ok) {
|
|
1645
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1649
|
+
try {
|
|
1650
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1651
|
+
} catch (e) {
|
|
1652
|
+
const validResponse = expectedResponseType(module.type);
|
|
1653
|
+
|
|
1654
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1655
|
+
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);
|
|
1656
|
+
|
|
1657
|
+
} else { throw e; }
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
const bytes = await module.arrayBuffer();
|
|
1662
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1663
|
+
} else {
|
|
1664
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1665
|
+
|
|
1666
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1667
|
+
return { instance, module };
|
|
1668
|
+
} else {
|
|
1669
|
+
return instance;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
function expectedResponseType(type) {
|
|
1674
|
+
switch (type) {
|
|
1675
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1676
|
+
}
|
|
1677
|
+
return false;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
function initSync(module) {
|
|
1682
|
+
if (wasm !== undefined) return wasm;
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
if (module !== undefined) {
|
|
1686
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1687
|
+
({module} = module)
|
|
1688
|
+
} else {
|
|
1689
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
const imports = __wbg_get_imports();
|
|
1694
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1695
|
+
module = new WebAssembly.Module(module);
|
|
1696
|
+
}
|
|
1697
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1698
|
+
return __wbg_finalize_init(instance, module);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
let __wbg_init_promise;
|
|
1702
|
+
async function __wbg_init(module_or_path) {
|
|
1703
|
+
if (wasm !== undefined) return wasm;
|
|
1704
|
+
if (__wbg_init_promise === undefined) {
|
|
1705
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1706
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1707
|
+
}
|
|
1708
|
+
return __wbg_init_promise;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
async function __wbg_init_once(module_or_path) {
|
|
1712
|
+
|
|
1713
|
+
if (module_or_path !== undefined) {
|
|
1714
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1715
|
+
({module_or_path} = module_or_path)
|
|
1716
|
+
} else {
|
|
1717
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
if (module_or_path === undefined) {
|
|
1722
|
+
module_or_path = new URL('braccato_core_rs_bg.wasm', import.meta.url);
|
|
1723
|
+
}
|
|
1724
|
+
const imports = __wbg_get_imports();
|
|
1725
|
+
|
|
1726
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1727
|
+
module_or_path = fetch(module_or_path);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1731
|
+
|
|
1732
|
+
return __wbg_finalize_init(instance, module);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export { initSync, __wbg_init as default };
|