isard 0.0.0-stage → 0.2.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/CHANGELOG.md +114 -0
- package/LICENSE +21 -0
- package/README.md +150 -2
- package/dist/basemap.worker.d.ts +66 -0
- package/dist/basemap.worker.js +4 -0
- package/dist/basemap.worker.js.map +13 -0
- package/dist/basemaps.d.ts +46 -0
- package/dist/basemaps.js +95 -0
- package/dist/basemaps.js.map +1 -0
- package/dist/color.d.ts +8 -0
- package/dist/color.js +98 -0
- package/dist/color.js.map +1 -0
- package/dist/controls.d.ts +43 -0
- package/dist/controls.js +115 -0
- package/dist/controls.js.map +1 -0
- package/dist/decoder.worker.js +6 -0
- package/dist/decoder.worker.js.map +12 -0
- package/dist/decoders.d.ts +27 -0
- package/dist/decoders.js +109 -0
- package/dist/decoders.js.map +1 -0
- package/dist/equirectangular.d.ts +35 -0
- package/dist/equirectangular.js +113 -0
- package/dist/equirectangular.js.map +1 -0
- package/dist/extrusions.d.ts +79 -0
- package/dist/extrusions.js +215 -0
- package/dist/extrusions.js.map +1 -0
- package/dist/features.d.ts +159 -0
- package/dist/features.js +387 -0
- package/dist/features.js.map +1 -0
- package/dist/geoplateforme.d.ts +35 -0
- package/dist/geoplateforme.js +56 -0
- package/dist/geoplateforme.js.map +1 -0
- package/dist/glyphs.d.ts +104 -0
- package/dist/glyphs.js +383 -0
- package/dist/glyphs.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/interaction.d.ts +50 -0
- package/dist/interaction.js +243 -0
- package/dist/interaction.js.map +1 -0
- package/dist/isard_bg.wasm +0 -0
- package/dist/isard_core_bg.wasm +0 -0
- package/dist/layers.d.ts +100 -0
- package/dist/layers.js +281 -0
- package/dist/layers.js.map +1 -0
- package/dist/loader.d.ts +30 -0
- package/dist/loader.js +102 -0
- package/dist/loader.js.map +1 -0
- package/dist/map.d.ts +203 -0
- package/dist/map.js +1083 -0
- package/dist/map.js.map +1 -0
- package/dist/mvt.d.ts +19 -0
- package/dist/mvt.js +231 -0
- package/dist/mvt.js.map +1 -0
- package/dist/overlay.d.ts +118 -0
- package/dist/overlay.js +334 -0
- package/dist/overlay.js.map +1 -0
- package/dist/protocol.d.ts +30 -0
- package/dist/protocol.js +2 -0
- package/dist/protocol.js.map +1 -0
- package/dist/style.d.ts +7 -0
- package/dist/style.js +130 -0
- package/dist/style.js.map +1 -0
- package/dist/symbols.d.ts +61 -0
- package/dist/symbols.js +238 -0
- package/dist/symbols.js.map +1 -0
- package/dist/terrain.d.ts +14 -0
- package/dist/terrain.js +44 -0
- package/dist/terrain.js.map +1 -0
- package/dist/types.d.ts +304 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/vectorstyle.d.ts +83 -0
- package/dist/vectorstyle.js +518 -0
- package/dist/vectorstyle.js.map +1 -0
- package/dist/vectortiles.d.ts +121 -0
- package/dist/vectortiles.js +507 -0
- package/dist/vectortiles.js.map +1 -0
- package/dist/wasm/isard.d.ts +611 -0
- package/dist/wasm/isard.js +2606 -0
- package/dist/wasm/isard_core.d.ts +468 -0
- package/dist/wasm/isard_core.js +2360 -0
- package/package.json +49 -4
|
@@ -0,0 +1,2360 @@
|
|
|
1
|
+
/* @ts-self-types="./isard_core.d.ts" */
|
|
2
|
+
|
|
3
|
+
export class Engine {
|
|
4
|
+
__destroy_into_raw() {
|
|
5
|
+
const ptr = this.__wbg_ptr;
|
|
6
|
+
this.__wbg_ptr = 0;
|
|
7
|
+
EngineFinalization.unregister(this);
|
|
8
|
+
return ptr;
|
|
9
|
+
}
|
|
10
|
+
free() {
|
|
11
|
+
const ptr = this.__destroy_into_raw();
|
|
12
|
+
wasm.__wbg_engine_free(ptr, 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Circle layer of `feature_count` features: points (Mercator [0, 1], interleaved) and the feature of each
|
|
16
|
+
* @param {Float64Array} points
|
|
17
|
+
* @param {Uint32Array} feature
|
|
18
|
+
* @param {number} feature_count
|
|
19
|
+
* @returns {number}
|
|
20
|
+
*/
|
|
21
|
+
addCircles(points, feature, feature_count) {
|
|
22
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
23
|
+
const len0 = WASM_VECTOR_LEN;
|
|
24
|
+
const ptr1 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
25
|
+
const len1 = WASM_VECTOR_LEN;
|
|
26
|
+
const ret = wasm.engine_addCircles(this.__wbg_ptr, ptr0, len0, ptr1, len1, feature_count);
|
|
27
|
+
if (ret[2]) {
|
|
28
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
29
|
+
}
|
|
30
|
+
return ret[0] >>> 0;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* An empty extrusion layer: its blocks come in batches (`setExtrusionBatch`)
|
|
34
|
+
* @returns {number}
|
|
35
|
+
*/
|
|
36
|
+
addExtrusions() {
|
|
37
|
+
const ret = wasm.engine_addExtrusions(this.__wbg_ptr);
|
|
38
|
+
if (ret[2]) {
|
|
39
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
40
|
+
}
|
|
41
|
+
return ret[0] >>> 0;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Fill layer of `feature_count` features: polygons given by their points (Mercator [0, 1], interleaved), the first
|
|
45
|
+
* point of each ring (`ring_start`, one more entry than rings), the first ring of each polygon (`polygon_start`,
|
|
46
|
+
* one more entry than polygons; the first ring is the outer one, the others holes) and the feature of each polygon
|
|
47
|
+
* @param {Float64Array} points
|
|
48
|
+
* @param {Uint32Array} ring_start
|
|
49
|
+
* @param {Uint32Array} polygon_start
|
|
50
|
+
* @param {Uint32Array} feature
|
|
51
|
+
* @param {number} feature_count
|
|
52
|
+
* @returns {number}
|
|
53
|
+
*/
|
|
54
|
+
addFills(points, ring_start, polygon_start, feature, feature_count) {
|
|
55
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
56
|
+
const len0 = WASM_VECTOR_LEN;
|
|
57
|
+
const ptr1 = passArray32ToWasm0(ring_start, wasm.__wbindgen_malloc);
|
|
58
|
+
const len1 = WASM_VECTOR_LEN;
|
|
59
|
+
const ptr2 = passArray32ToWasm0(polygon_start, wasm.__wbindgen_malloc);
|
|
60
|
+
const len2 = WASM_VECTOR_LEN;
|
|
61
|
+
const ptr3 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
62
|
+
const len3 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.engine_addFills(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, feature_count);
|
|
64
|
+
if (ret[2]) {
|
|
65
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
66
|
+
}
|
|
67
|
+
return ret[0] >>> 0;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Ground layer running `code` (GLSL ES 3.0 defining `vec4 ground(vec2 offset)`, see `render::ground`) over the
|
|
71
|
+
* ground; `anchor`: Mercator point the offsets are taken from; bounds: Mercator box it shows in. Compilation errors
|
|
72
|
+
* come back with the shader's info log (line numbers of `code`)
|
|
73
|
+
* @param {string} code
|
|
74
|
+
* @param {number} anchor_x
|
|
75
|
+
* @param {number} anchor_y
|
|
76
|
+
* @param {number} min_x
|
|
77
|
+
* @param {number} min_y
|
|
78
|
+
* @param {number} max_x
|
|
79
|
+
* @param {number} max_y
|
|
80
|
+
* @returns {number}
|
|
81
|
+
*/
|
|
82
|
+
addGround(code, anchor_x, anchor_y, min_x, min_y, max_x, max_y) {
|
|
83
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
84
|
+
const len0 = WASM_VECTOR_LEN;
|
|
85
|
+
const ret = wasm.engine_addGround(this.__wbg_ptr, ptr0, len0, anchor_x, anchor_y, min_x, min_y, max_x, max_y);
|
|
86
|
+
if (ret[2]) {
|
|
87
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
88
|
+
}
|
|
89
|
+
return ret[0] >>> 0;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Line layer of `feature_count` features: polylines given by their points (Mercator [0, 1], interleaved), the
|
|
93
|
+
* first point of each (`start`, one more entry than lines) and the feature each one belongs to
|
|
94
|
+
* @param {Float64Array} points
|
|
95
|
+
* @param {Uint32Array} start
|
|
96
|
+
* @param {Uint32Array} feature
|
|
97
|
+
* @param {number} feature_count
|
|
98
|
+
* @returns {number}
|
|
99
|
+
*/
|
|
100
|
+
addLines(points, start, feature, feature_count) {
|
|
101
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
102
|
+
const len0 = WASM_VECTOR_LEN;
|
|
103
|
+
const ptr1 = passArray32ToWasm0(start, wasm.__wbindgen_malloc);
|
|
104
|
+
const len1 = WASM_VECTOR_LEN;
|
|
105
|
+
const ptr2 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
106
|
+
const len2 = WASM_VECTOR_LEN;
|
|
107
|
+
const ret = wasm.engine_addLines(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, feature_count);
|
|
108
|
+
if (ret[2]) {
|
|
109
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
110
|
+
}
|
|
111
|
+
return ret[0] >>> 0;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Network of `mercator.length / 2` nodes (Mercator [0, 1], y towards the south, interleaved: converted by the
|
|
115
|
+
* JavaScript side, where `Math.tan` and `Math.log` are much faster than in WebAssembly) and `edges.length / 2`
|
|
116
|
+
* edges (node index pairs, interleaved). `line_start` and `line_points`: the line of each edge from A to B, points
|
|
117
|
+
* `line_start[e] .. line_start[e + 1]` of `line_points` (Mercator, interleaved; straight if fewer than two). `costs`: per edge, the
|
|
118
|
+
* cost of travelling it from A to B then from B to A; without, values are interpolated along the edges.
|
|
119
|
+
* @param {Float64Array} mercator
|
|
120
|
+
* @param {Uint32Array} edges
|
|
121
|
+
* @param {Uint32Array | null | undefined} line_start
|
|
122
|
+
* @param {Float64Array | null | undefined} line_points
|
|
123
|
+
* @param {Float32Array | null | undefined} costs
|
|
124
|
+
* @param {Float32Array} style
|
|
125
|
+
* @returns {number}
|
|
126
|
+
*/
|
|
127
|
+
addNetwork(mercator, edges, line_start, line_points, costs, style) {
|
|
128
|
+
const ptr0 = passArrayF64ToWasm0(mercator, wasm.__wbindgen_malloc);
|
|
129
|
+
const len0 = WASM_VECTOR_LEN;
|
|
130
|
+
const ptr1 = passArray32ToWasm0(edges, wasm.__wbindgen_malloc);
|
|
131
|
+
const len1 = WASM_VECTOR_LEN;
|
|
132
|
+
var ptr2 = isLikeNone(line_start) ? 0 : passArray32ToWasm0(line_start, wasm.__wbindgen_malloc);
|
|
133
|
+
var len2 = WASM_VECTOR_LEN;
|
|
134
|
+
var ptr3 = isLikeNone(line_points) ? 0 : passArrayF64ToWasm0(line_points, wasm.__wbindgen_malloc);
|
|
135
|
+
var len3 = WASM_VECTOR_LEN;
|
|
136
|
+
var ptr4 = isLikeNone(costs) ? 0 : passArrayF32ToWasm0(costs, wasm.__wbindgen_malloc);
|
|
137
|
+
var len4 = WASM_VECTOR_LEN;
|
|
138
|
+
const ptr5 = passArrayF32ToWasm0(style, wasm.__wbindgen_malloc);
|
|
139
|
+
const len5 = WASM_VECTOR_LEN;
|
|
140
|
+
const ret = wasm.engine_addNetwork(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
141
|
+
if (ret[2]) {
|
|
142
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
143
|
+
}
|
|
144
|
+
return ret[0] >>> 0;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Raster tiles in Web Mercator; `url` holds {z}, {x} and {y}. `size`: side of the tiles' textures (256 by
|
|
148
|
+
* default); `loader`: draws each tile instead of fetching `url`, `(z, x, y, signal) => Promise<ImageBitmap |
|
|
149
|
+
* null>`, an image of `size` × `size` (null: nothing there)
|
|
150
|
+
* @param {string} url
|
|
151
|
+
* @param {number} min_z
|
|
152
|
+
* @param {number} max_z
|
|
153
|
+
* @param {number} opacity
|
|
154
|
+
* @param {number} saturation
|
|
155
|
+
* @param {number | null | undefined} size
|
|
156
|
+
* @param {((z: number, x: number, y: number, signal: AbortSignal) => Promise<ImageBitmap | null>) | undefined} loader
|
|
157
|
+
* @returns {number}
|
|
158
|
+
*/
|
|
159
|
+
addRaster(url, min_z, max_z, opacity, saturation, size, loader) {
|
|
160
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
161
|
+
const len0 = WASM_VECTOR_LEN;
|
|
162
|
+
const ret = wasm.engine_addRaster(this.__wbg_ptr, ptr0, len0, min_z, max_z, opacity, saturation, isLikeNone(size) ? Number.MAX_SAFE_INTEGER : (size) >> 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader));
|
|
163
|
+
if (ret[2]) {
|
|
164
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
165
|
+
}
|
|
166
|
+
return ret[0] >>> 0;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* An empty symbol layer
|
|
170
|
+
* @returns {number}
|
|
171
|
+
*/
|
|
172
|
+
addSymbols() {
|
|
173
|
+
const ret = wasm.engine_addSymbols(this.__wbg_ptr);
|
|
174
|
+
if (ret[2]) {
|
|
175
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
176
|
+
}
|
|
177
|
+
return ret[0] >>> 0;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Longitudes and latitudes the view covers on the ground, `[west, south, east, north]` (degrees): the screen's
|
|
181
|
+
* border cast on the ground, or on the far plane where it passes the horizon
|
|
182
|
+
* @returns {Float64Array}
|
|
183
|
+
*/
|
|
184
|
+
bounds() {
|
|
185
|
+
const ret = wasm.engine_bounds(this.__wbg_ptr);
|
|
186
|
+
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
187
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
188
|
+
return v1;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @returns {Camera}
|
|
192
|
+
*/
|
|
193
|
+
camera() {
|
|
194
|
+
const ret = wasm.engine_camera(this.__wbg_ptr);
|
|
195
|
+
return ret;
|
|
196
|
+
}
|
|
197
|
+
clearPreload() {
|
|
198
|
+
wasm.engine_clearPreload(this.__wbg_ptr);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Position under a screen point (CSS pixels), undefined above the horizon; on the relief itself
|
|
202
|
+
* @param {number} x
|
|
203
|
+
* @param {number} y
|
|
204
|
+
* @returns {[lon: number, lat: number] | undefined}
|
|
205
|
+
*/
|
|
206
|
+
ground(x, y) {
|
|
207
|
+
const ret = wasm.engine_ground(this.__wbg_ptr, x, y);
|
|
208
|
+
return ret;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Colors an extrusion layer by the node values of network layer `network` (undefined: by its own values):
|
|
212
|
+
* each block takes min(value(A) + cost from A, value(B) + cost from B) from its anchors (`setExtrusionAnchors`),
|
|
213
|
+
* through the layer's ramp, up to `max` (above: its own color)
|
|
214
|
+
* @param {number} id
|
|
215
|
+
* @param {number | null | undefined} network
|
|
216
|
+
* @param {number} max
|
|
217
|
+
*/
|
|
218
|
+
linkExtrusionNetwork(id, network, max) {
|
|
219
|
+
wasm.engine_linkExtrusionNetwork(this.__wbg_ptr, id, isLikeNone(network) ? Number.MAX_SAFE_INTEGER : (network) >>> 0, max);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Moves a layer to a drawing position (0 = bottom)
|
|
223
|
+
* @param {number} id
|
|
224
|
+
* @param {number} index
|
|
225
|
+
*/
|
|
226
|
+
moveLayer(id, index) {
|
|
227
|
+
wasm.engine_moveLayer(this.__wbg_ptr, id, index);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Pieces of a network in all and drawn in the last frame (only the squares in view are)
|
|
231
|
+
* @param {number} id
|
|
232
|
+
* @returns {NetworkStats | undefined}
|
|
233
|
+
*/
|
|
234
|
+
networkStats(id) {
|
|
235
|
+
const ret = wasm.engine_networkStats(this.__wbg_ptr, id);
|
|
236
|
+
return ret;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* `redraw` is called when the engine needs a new frame (a tile arrived)
|
|
240
|
+
* @param {HTMLCanvasElement} canvas
|
|
241
|
+
* @param {() => void} redraw
|
|
242
|
+
*/
|
|
243
|
+
constructor(canvas, redraw) {
|
|
244
|
+
const ret = wasm.engine_new(canvas, redraw);
|
|
245
|
+
if (ret[2]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
247
|
+
}
|
|
248
|
+
this.__wbg_ptr = ret[0];
|
|
249
|
+
EngineFinalization.register(this, this.__wbg_ptr, this);
|
|
250
|
+
return this;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Drags the ground from one screen point to another (CSS pixels); in relief, the ground point grabbed stays
|
|
254
|
+
* under the cursor
|
|
255
|
+
* @param {number} x0
|
|
256
|
+
* @param {number} y0
|
|
257
|
+
* @param {number} x1
|
|
258
|
+
* @param {number} y1
|
|
259
|
+
*/
|
|
260
|
+
pan(x0, y0, x1, y1) {
|
|
261
|
+
wasm.engine_pan(this.__wbg_ptr, x0, y0, x1, y1);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Feature under a screen point (CSS pixels), or the nearest one within `radius` CSS pixels: its layer and its
|
|
265
|
+
* index there (the edge of a network, the feature of a line, circle or fill layer), undefined if none. The
|
|
266
|
+
* pickable layers are drawn with each feature colored by its number; then the fills are tested on the ground.
|
|
267
|
+
* `only`: the ids of the layers to look in (all if undefined): the others are not drawn and hide nothing.
|
|
268
|
+
* Reads the pixels back at once (the GPU finishes its work first): for clicks; `requestPick` for the hover
|
|
269
|
+
* @param {number} x
|
|
270
|
+
* @param {number} y
|
|
271
|
+
* @param {number | null} [radius]
|
|
272
|
+
* @param {Uint32Array | null} [only]
|
|
273
|
+
* @returns {PickHit | undefined}
|
|
274
|
+
*/
|
|
275
|
+
pick(x, y, radius, only) {
|
|
276
|
+
var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
|
|
277
|
+
var len0 = WASM_VECTOR_LEN;
|
|
278
|
+
const ret = wasm.engine_pick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
|
|
279
|
+
return ret;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* The answer to the last `requestPick` once the GPU has delivered it (then forgotten), undefined while it is not
|
|
283
|
+
* there yet (or nothing was asked, or the context was lost)
|
|
284
|
+
* @returns {PickResult | undefined}
|
|
285
|
+
*/
|
|
286
|
+
pollPick() {
|
|
287
|
+
const ret = wasm.engine_pollPick(this.__wbg_ptr);
|
|
288
|
+
return ret;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Loads in advance the tiles of a camera flight's destination; `clearPreload` when the flight ends
|
|
292
|
+
* @param {number} lon
|
|
293
|
+
* @param {number} lat
|
|
294
|
+
* @param {number} zoom
|
|
295
|
+
* @param {number} pitch
|
|
296
|
+
* @param {number} bearing
|
|
297
|
+
*/
|
|
298
|
+
preload(lon, lat, zoom, pitch, bearing) {
|
|
299
|
+
wasm.engine_preload(this.__wbg_ptr, lon, lat, zoom, pitch, bearing);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Screen point (CSS pixels) of a ground position, undefined behind the camera
|
|
303
|
+
* @param {number} lon
|
|
304
|
+
* @param {number} lat
|
|
305
|
+
* @returns {[x: number, y: number] | undefined}
|
|
306
|
+
*/
|
|
307
|
+
project(lon, lat) {
|
|
308
|
+
const ret = wasm.engine_project(this.__wbg_ptr, lon, lat);
|
|
309
|
+
return ret;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @param {number} id
|
|
313
|
+
* @param {number} key
|
|
314
|
+
*/
|
|
315
|
+
removeExtrusionBatch(id, key) {
|
|
316
|
+
wasm.engine_removeExtrusionBatch(this.__wbg_ptr, id, key);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* @param {number} id
|
|
320
|
+
*/
|
|
321
|
+
removeLayer(id) {
|
|
322
|
+
wasm.engine_removeLayer(this.__wbg_ptr, id);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Draws a frame; returns true while tiles are still loading (a new frame will be asked through `redraw`)
|
|
326
|
+
* @returns {boolean}
|
|
327
|
+
*/
|
|
328
|
+
render() {
|
|
329
|
+
const ret = wasm.engine_render(this.__wbg_ptr);
|
|
330
|
+
return ret !== 0;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Asks what is under a screen point without waiting for the GPU (as `pick`, with the position there): the
|
|
334
|
+
* picking pass is drawn now and read back into a buffer; `pollPick` gives the answer on a later frame. A new
|
|
335
|
+
* request replaces the one in flight. Returns false if nothing could be asked (no WebGL2 fence)
|
|
336
|
+
* @param {number} x
|
|
337
|
+
* @param {number} y
|
|
338
|
+
* @param {number | null} [radius]
|
|
339
|
+
* @param {Uint32Array | null} [only]
|
|
340
|
+
* @returns {boolean}
|
|
341
|
+
*/
|
|
342
|
+
requestPick(x, y, radius, only) {
|
|
343
|
+
var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
|
|
344
|
+
var len0 = WASM_VECTOR_LEN;
|
|
345
|
+
const ret = wasm.engine_requestPick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
|
|
346
|
+
return ret !== 0;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Viewport in CSS pixels and device pixel ratio
|
|
350
|
+
* @param {number} width
|
|
351
|
+
* @param {number} height
|
|
352
|
+
* @param {number} pixel_ratio
|
|
353
|
+
*/
|
|
354
|
+
resize(width, height, pixel_ratio) {
|
|
355
|
+
wasm.engine_resize(this.__wbg_ptr, width, height, pixel_ratio);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Turns and tilts around the screen center, in degrees
|
|
359
|
+
* @param {number} bearing
|
|
360
|
+
* @param {number} pitch
|
|
361
|
+
*/
|
|
362
|
+
rotate(bearing, pitch) {
|
|
363
|
+
wasm.engine_rotate(this.__wbg_ptr, bearing, pitch);
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Sky over the plane (`MapLibre`'s `setSky`): colors of the sky, the horizon and the fog (RGB 0-1, 9 numbers),
|
|
367
|
+
* then the sky-horizon, horizon-fog and fog-ground blends; `undefined` for none (the background color shows)
|
|
368
|
+
* @param {Float32Array | null} [settings]
|
|
369
|
+
*/
|
|
370
|
+
setAtmosphere(settings) {
|
|
371
|
+
var ptr0 = isLikeNone(settings) ? 0 : passArrayF32ToWasm0(settings, wasm.__wbindgen_malloc);
|
|
372
|
+
var len0 = WASM_VECTOR_LEN;
|
|
373
|
+
wasm.engine_setAtmosphere(this.__wbg_ptr, ptr0, len0);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @param {number} r
|
|
377
|
+
* @param {number} g
|
|
378
|
+
* @param {number} b
|
|
379
|
+
*/
|
|
380
|
+
setBackground(r, g, b) {
|
|
381
|
+
wasm.engine_setBackground(this.__wbg_ptr, r, g, b);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* The body the map is drawn on: its equatorial radius (metres) and flattening (0 for a sphere), the halo of its
|
|
385
|
+
* atmosphere around the globe (RGB 0-1 and its strength, 4 numbers; `undefined` for an airless body), and the
|
|
386
|
+
* lowest and highest altitudes of its ground (metres: what its relief may raise into view). WGS 84, the Earth's
|
|
387
|
+
* blue halo and the relief of France by default; set before the layers and the relief, whose shaders may take its
|
|
388
|
+
* size (`ISARD_EARTH` of the ground layers)
|
|
389
|
+
* @param {number} radius
|
|
390
|
+
* @param {number} flattening
|
|
391
|
+
* @param {Float32Array | null | undefined} halo
|
|
392
|
+
* @param {number} lowest
|
|
393
|
+
* @param {number} highest
|
|
394
|
+
*/
|
|
395
|
+
setBody(radius, flattening, halo, lowest, highest) {
|
|
396
|
+
var ptr0 = isLikeNone(halo) ? 0 : passArrayF32ToWasm0(halo, wasm.__wbindgen_malloc);
|
|
397
|
+
var len0 = WASM_VECTOR_LEN;
|
|
398
|
+
wasm.engine_setBody(this.__wbg_ptr, radius, flattening, ptr0, len0, lowest, highest);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @param {number} lon
|
|
402
|
+
* @param {number} lat
|
|
403
|
+
* @param {number} zoom
|
|
404
|
+
* @param {number} pitch
|
|
405
|
+
* @param {number} bearing
|
|
406
|
+
*/
|
|
407
|
+
setCamera(lon, lat, zoom, pitch, bearing) {
|
|
408
|
+
wasm.engine_setCamera(this.__wbg_ptr, lon, lat, zoom, pitch, bearing);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Circles lying on the ground (true) or facing the screen
|
|
412
|
+
* @param {number} id
|
|
413
|
+
* @param {boolean} on_ground
|
|
414
|
+
*/
|
|
415
|
+
setCircleAlignment(id, on_ground) {
|
|
416
|
+
wasm.engine_setCircleAlignment(this.__wbg_ptr, id, on_ground);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* New points for a circle layer (same features)
|
|
420
|
+
* @param {number} id
|
|
421
|
+
* @param {Float64Array} points
|
|
422
|
+
* @param {Uint32Array} feature
|
|
423
|
+
*/
|
|
424
|
+
setCircles(id, points, feature) {
|
|
425
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
426
|
+
const len0 = WASM_VECTOR_LEN;
|
|
427
|
+
const ptr1 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
428
|
+
const len1 = WASM_VECTOR_LEN;
|
|
429
|
+
wasm.engine_setCircles(this.__wbg_ptr, id, ptr0, len0, ptr1, len1);
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Anchors of batch `key` on the linked network: per feature, node A, node B, cost from A, cost from B
|
|
433
|
+
* @param {number} id
|
|
434
|
+
* @param {number} key
|
|
435
|
+
* @param {Float32Array} anchors
|
|
436
|
+
*/
|
|
437
|
+
setExtrusionAnchors(id, key, anchors) {
|
|
438
|
+
const ptr0 = passArrayF32ToWasm0(anchors, wasm.__wbindgen_malloc);
|
|
439
|
+
const len0 = WASM_VECTOR_LEN;
|
|
440
|
+
const ret = wasm.engine_setExtrusionAnchors(this.__wbg_ptr, id, key, ptr0, len0);
|
|
441
|
+
if (ret[1]) {
|
|
442
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Adds or replaces batch `key` of an extrusion layer: polygons as for `addFills`, `feature_count` features (the
|
|
447
|
+
* feature style gives each its height and base height as its two sizes, metres)
|
|
448
|
+
* @param {number} id
|
|
449
|
+
* @param {number} key
|
|
450
|
+
* @param {Float64Array} points
|
|
451
|
+
* @param {Uint32Array} ring_start
|
|
452
|
+
* @param {Uint32Array} polygon_start
|
|
453
|
+
* @param {Uint32Array} feature
|
|
454
|
+
* @param {number} feature_count
|
|
455
|
+
*/
|
|
456
|
+
setExtrusionBatch(id, key, points, ring_start, polygon_start, feature, feature_count) {
|
|
457
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
458
|
+
const len0 = WASM_VECTOR_LEN;
|
|
459
|
+
const ptr1 = passArray32ToWasm0(ring_start, wasm.__wbindgen_malloc);
|
|
460
|
+
const len1 = WASM_VECTOR_LEN;
|
|
461
|
+
const ptr2 = passArray32ToWasm0(polygon_start, wasm.__wbindgen_malloc);
|
|
462
|
+
const len2 = WASM_VECTOR_LEN;
|
|
463
|
+
const ptr3 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
464
|
+
const len3 = WASM_VECTOR_LEN;
|
|
465
|
+
const ret = wasm.engine_setExtrusionBatch(this.__wbg_ptr, id, key, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, feature_count);
|
|
466
|
+
if (ret[1]) {
|
|
467
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Layer-wide style of a feature layer: opacity as zoom stops (four zooms then four values), the zoom range it
|
|
472
|
+
* shows in (`min_zoom` included, `max_zoom` excluded), whether it shows at all
|
|
473
|
+
* @param {number} id
|
|
474
|
+
* @param {Float32Array} opacity
|
|
475
|
+
* @param {number} min_zoom
|
|
476
|
+
* @param {number} max_zoom
|
|
477
|
+
* @param {boolean} visible
|
|
478
|
+
*/
|
|
479
|
+
setFeatureLayer(id, opacity, min_zoom, max_zoom, visible) {
|
|
480
|
+
const ptr0 = passArrayF32ToWasm0(opacity, wasm.__wbindgen_malloc);
|
|
481
|
+
const len0 = WASM_VECTOR_LEN;
|
|
482
|
+
wasm.engine_setFeatureLayer(this.__wbg_ptr, id, ptr0, len0, min_zoom, max_zoom, visible);
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* One byte per feature, 0 hiding it (the filter)
|
|
486
|
+
* @param {number} id
|
|
487
|
+
* @param {Uint8Array} mask
|
|
488
|
+
* @param {number | null} [key]
|
|
489
|
+
*/
|
|
490
|
+
setFeatureMask(id, mask, key) {
|
|
491
|
+
const ptr0 = passArray8ToWasm0(mask, wasm.__wbindgen_malloc);
|
|
492
|
+
const len0 = WASM_VECTOR_LEN;
|
|
493
|
+
wasm.engine_setFeatureMask(this.__wbg_ptr, id, ptr0, len0, isLikeNone(key) ? Number.MAX_SAFE_INTEGER : (key) >>> 0);
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Colors of the values `min` to `max`, 256 RGBA texels (1024 bytes); undefined: none
|
|
497
|
+
* @param {number} id
|
|
498
|
+
* @param {Uint8Array | null | undefined} rgba
|
|
499
|
+
* @param {number} min
|
|
500
|
+
* @param {number} max
|
|
501
|
+
*/
|
|
502
|
+
setFeatureRamp(id, rgba, min, max) {
|
|
503
|
+
var ptr0 = isLikeNone(rgba) ? 0 : passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
|
|
504
|
+
var len0 = WASM_VECTOR_LEN;
|
|
505
|
+
wasm.engine_setFeatureRamp(this.__wbg_ptr, id, ptr0, len0, min, max);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Style of the features of a line, circle, fill or extrusion layer (batch `key` of the latter): 32 floats per
|
|
509
|
+
* feature, its color (RGBA 0-1), its second color (a circle's stroke), then two sizes as zoom stops (four zooms,
|
|
510
|
+
* four values each): a line's width; a circle's radius and stroke width, CSS pixels; a block's height and base
|
|
511
|
+
* height, metres
|
|
512
|
+
* @param {number} id
|
|
513
|
+
* @param {Float32Array} style
|
|
514
|
+
* @param {number | null} [key]
|
|
515
|
+
*/
|
|
516
|
+
setFeatureStyle(id, style, key) {
|
|
517
|
+
const ptr0 = passArrayF32ToWasm0(style, wasm.__wbindgen_malloc);
|
|
518
|
+
const len0 = WASM_VECTOR_LEN;
|
|
519
|
+
wasm.engine_setFeatureStyle(this.__wbg_ptr, id, ptr0, len0, isLikeNone(key) ? Number.MAX_SAFE_INTEGER : (key) >>> 0);
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* One value per feature, colored through the layer's ramp (`setFeatureRamp`); 1e30 or NaN: its own color
|
|
523
|
+
* @param {number} id
|
|
524
|
+
* @param {Float32Array} values
|
|
525
|
+
* @param {number | null} [key]
|
|
526
|
+
*/
|
|
527
|
+
setFeatureValues(id, values, key) {
|
|
528
|
+
const ptr0 = passArrayF32ToWasm0(values, wasm.__wbindgen_malloc);
|
|
529
|
+
const len0 = WASM_VECTOR_LEN;
|
|
530
|
+
wasm.engine_setFeatureValues(this.__wbg_ptr, id, ptr0, len0, isLikeNone(key) ? Number.MAX_SAFE_INTEGER : (key) >>> 0);
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* New polygons for a fill layer (same arguments as `addFills`, the same features)
|
|
534
|
+
* @param {number} id
|
|
535
|
+
* @param {Float64Array} points
|
|
536
|
+
* @param {Uint32Array} ring_start
|
|
537
|
+
* @param {Uint32Array} polygon_start
|
|
538
|
+
* @param {Uint32Array} feature
|
|
539
|
+
*/
|
|
540
|
+
setFills(id, points, ring_start, polygon_start, feature) {
|
|
541
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
542
|
+
const len0 = WASM_VECTOR_LEN;
|
|
543
|
+
const ptr1 = passArray32ToWasm0(ring_start, wasm.__wbindgen_malloc);
|
|
544
|
+
const len1 = WASM_VECTOR_LEN;
|
|
545
|
+
const ptr2 = passArray32ToWasm0(polygon_start, wasm.__wbindgen_malloc);
|
|
546
|
+
const len2 = WASM_VECTOR_LEN;
|
|
547
|
+
const ptr3 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
548
|
+
const len3 = WASM_VECTOR_LEN;
|
|
549
|
+
wasm.engine_setFills(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Color of the globe under the tiles (polar caps)
|
|
553
|
+
* @param {number} r
|
|
554
|
+
* @param {number} g
|
|
555
|
+
* @param {number} b
|
|
556
|
+
*/
|
|
557
|
+
setGlobeColor(r, g, b) {
|
|
558
|
+
wasm.engine_setGlobeColor(this.__wbg_ptr, r, g, b);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Globe (true) or Web Mercator (false)
|
|
562
|
+
* @param {boolean} globe
|
|
563
|
+
*/
|
|
564
|
+
setGlobe(globe) {
|
|
565
|
+
wasm.engine_setGlobe(this.__wbg_ptr, globe);
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* The glyph atlas shared by the symbol layers, one page: `width` × `height` bytes of signed distances
|
|
569
|
+
* (allocated again, filled with `data` if given)
|
|
570
|
+
* @param {number} width
|
|
571
|
+
* @param {number} height
|
|
572
|
+
* @param {Uint8Array | null} [data]
|
|
573
|
+
*/
|
|
574
|
+
setGlyphAtlas(width, height, data) {
|
|
575
|
+
var ptr0 = isLikeNone(data) ? 0 : passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
576
|
+
var len0 = WASM_VECTOR_LEN;
|
|
577
|
+
const ret = wasm.engine_setGlyphAtlas(this.__wbg_ptr, width, height, ptr0, len0);
|
|
578
|
+
if (ret[1]) {
|
|
579
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* The glyph atlas shared by the symbol layers, `pages` pages of `width` × `height` bytes of signed distances,
|
|
584
|
+
* allocated again and empty (`updateGlyphPage` fills them). A glyph on page `p` at row `v` has the atlas
|
|
585
|
+
* coordinate `v + p × height`
|
|
586
|
+
* @param {number} width
|
|
587
|
+
* @param {number} height
|
|
588
|
+
* @param {number} pages
|
|
589
|
+
*/
|
|
590
|
+
setGlyphPages(width, height, pages) {
|
|
591
|
+
const ret = wasm.engine_setGlyphPages(this.__wbg_ptr, width, height, pages);
|
|
592
|
+
if (ret[1]) {
|
|
593
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* @param {number} id
|
|
598
|
+
* @param {number} min_x
|
|
599
|
+
* @param {number} min_y
|
|
600
|
+
* @param {number} max_x
|
|
601
|
+
* @param {number} max_y
|
|
602
|
+
*/
|
|
603
|
+
setGroundBounds(id, min_x, min_y, max_x, max_y) {
|
|
604
|
+
wasm.engine_setGroundBounds(this.__wbg_ptr, id, min_x, min_y, max_x, max_y);
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Creates the texture of sampler `name` (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f, rgba8,
|
|
608
|
+
* rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers; `linear` filtering for the
|
|
609
|
+
* non-integer formats); `data`: its texels as bytes, or undefined for an empty texture
|
|
610
|
+
* @param {number} id
|
|
611
|
+
* @param {string} name
|
|
612
|
+
* @param {string} format
|
|
613
|
+
* @param {number} width
|
|
614
|
+
* @param {number} height
|
|
615
|
+
* @param {number} depth
|
|
616
|
+
* @param {boolean} linear
|
|
617
|
+
* @param {Uint8Array | null} [data]
|
|
618
|
+
*/
|
|
619
|
+
setGroundTexture(id, name, format, width, height, depth, linear, data) {
|
|
620
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
621
|
+
const len0 = WASM_VECTOR_LEN;
|
|
622
|
+
const ptr1 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
623
|
+
const len1 = WASM_VECTOR_LEN;
|
|
624
|
+
var ptr2 = isLikeNone(data) ? 0 : passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
625
|
+
var len2 = WASM_VECTOR_LEN;
|
|
626
|
+
const ret = wasm.engine_setGroundTexture(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, width, height, depth, linear, ptr2, len2);
|
|
627
|
+
if (ret[1]) {
|
|
628
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* A uniform of a ground layer's code, as numbers
|
|
633
|
+
* @param {number} id
|
|
634
|
+
* @param {string} name
|
|
635
|
+
* @param {Float64Array} values
|
|
636
|
+
*/
|
|
637
|
+
setGroundUniform(id, name, values) {
|
|
638
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
639
|
+
const len0 = WASM_VECTOR_LEN;
|
|
640
|
+
const ptr1 = passArrayF64ToWasm0(values, wasm.__wbindgen_malloc);
|
|
641
|
+
const len1 = WASM_VECTOR_LEN;
|
|
642
|
+
const ret = wasm.engine_setGroundUniform(this.__wbg_ptr, id, ptr0, len0, ptr1, len1);
|
|
643
|
+
if (ret[1]) {
|
|
644
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @param {number} id
|
|
649
|
+
* @param {boolean} visible
|
|
650
|
+
*/
|
|
651
|
+
setGroundVisible(id, visible) {
|
|
652
|
+
wasm.engine_setGroundVisible(this.__wbg_ptr, id, visible);
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* How tiles load and show: `true`, immediately (everything visible loads, no fade, the default); `false`,
|
|
656
|
+
* smoothly (levels skipped during flights, off-center tiles waiting while the camera moves, fade-in)
|
|
657
|
+
* @param {boolean} immediate
|
|
658
|
+
*/
|
|
659
|
+
setImmediateLoading(immediate) {
|
|
660
|
+
wasm.engine_setImmediateLoading(this.__wbg_ptr, immediate);
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Dashes of a line layer, in line widths (`MapLibre`'s `line-dasharray`); 0, 0: solid
|
|
664
|
+
* @param {number} id
|
|
665
|
+
* @param {number} dash
|
|
666
|
+
* @param {number} gap
|
|
667
|
+
*/
|
|
668
|
+
setLineDash(id, dash, gap) {
|
|
669
|
+
wasm.engine_setLineDash(this.__wbg_ptr, id, dash, gap);
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* New lines for a line layer (same arguments as `addLines`, the same features)
|
|
673
|
+
* @param {number} id
|
|
674
|
+
* @param {Float64Array} points
|
|
675
|
+
* @param {Uint32Array} start
|
|
676
|
+
* @param {Uint32Array} feature
|
|
677
|
+
*/
|
|
678
|
+
setLines(id, points, start, feature) {
|
|
679
|
+
const ptr0 = passArrayF64ToWasm0(points, wasm.__wbindgen_malloc);
|
|
680
|
+
const len0 = WASM_VECTOR_LEN;
|
|
681
|
+
const ptr1 = passArray32ToWasm0(start, wasm.__wbindgen_malloc);
|
|
682
|
+
const len1 = WASM_VECTOR_LEN;
|
|
683
|
+
const ptr2 = passArray32ToWasm0(feature, wasm.__wbindgen_malloc);
|
|
684
|
+
const len2 = WASM_VECTOR_LEN;
|
|
685
|
+
const ret = wasm.engine_setLines(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
686
|
+
if (ret[1]) {
|
|
687
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Highest pitch the camera accepts, degrees (up to 85)
|
|
692
|
+
* @param {number} max
|
|
693
|
+
*/
|
|
694
|
+
setMaxPitch(max) {
|
|
695
|
+
wasm.engine_setMaxPitch(this.__wbg_ptr, max);
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Costs of a network's edges (see `addNetwork`), when the way it is travelled changes; null: interpolated values
|
|
699
|
+
* @param {number} id
|
|
700
|
+
* @param {Float32Array | null} [costs]
|
|
701
|
+
*/
|
|
702
|
+
setNetworkCosts(id, costs) {
|
|
703
|
+
var ptr0 = isLikeNone(costs) ? 0 : passArrayF32ToWasm0(costs, wasm.__wbindgen_malloc);
|
|
704
|
+
var len0 = WASM_VECTOR_LEN;
|
|
705
|
+
wasm.engine_setNetworkCosts(this.__wbg_ptr, id, ptr0, len0);
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Colors of the values from 0 to the maximum, 256 RGBA texels (1024 bytes); undefined: green to red
|
|
709
|
+
* @param {number} id
|
|
710
|
+
* @param {Uint8Array | null} [rgba]
|
|
711
|
+
*/
|
|
712
|
+
setNetworkRamp(id, rgba) {
|
|
713
|
+
var ptr0 = isLikeNone(rgba) ? 0 : passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
|
|
714
|
+
var len0 = WASM_VECTOR_LEN;
|
|
715
|
+
wasm.engine_setNetworkRamp(this.__wbg_ptr, id, ptr0, len0);
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Width factor of each edge (1 without): rail lines wider than streets
|
|
719
|
+
* @param {number} id
|
|
720
|
+
* @param {Float32Array | null} [scales]
|
|
721
|
+
*/
|
|
722
|
+
setNetworkScales(id, scales) {
|
|
723
|
+
var ptr0 = isLikeNone(scales) ? 0 : passArrayF32ToWasm0(scales, wasm.__wbindgen_malloc);
|
|
724
|
+
var len0 = WASM_VECTOR_LEN;
|
|
725
|
+
wasm.engine_setNetworkScales(this.__wbg_ptr, id, ptr0, len0);
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Style of a network: width (CSS pixels) and halo width as zoom stops (8 numbers each: four zooms, four values),
|
|
729
|
+
* then the maximum, the contour interval, the opacity, the halo opacity, the color of the unreached parts (RGBA
|
|
730
|
+
* 0-1) and the share of the maximum over which the colors fade out: 25 numbers
|
|
731
|
+
* @param {number} id
|
|
732
|
+
* @param {Float32Array} style
|
|
733
|
+
*/
|
|
734
|
+
setNetworkStyle(id, style) {
|
|
735
|
+
const ptr0 = passArrayF32ToWasm0(style, wasm.__wbindgen_malloc);
|
|
736
|
+
const len0 = WASM_VECTOR_LEN;
|
|
737
|
+
wasm.engine_setNetworkStyle(this.__wbg_ptr, id, ptr0, len0);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* One value per node; negative = unreached
|
|
741
|
+
* @param {number} id
|
|
742
|
+
* @param {Float32Array} values
|
|
743
|
+
*/
|
|
744
|
+
setNetworkValues(id, values) {
|
|
745
|
+
const ptr0 = passArrayF32ToWasm0(values, wasm.__wbindgen_malloc);
|
|
746
|
+
const len0 = WASM_VECTOR_LEN;
|
|
747
|
+
wasm.engine_setNetworkValues(this.__wbg_ptr, id, ptr0, len0);
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @param {number} id
|
|
751
|
+
* @param {number} opacity
|
|
752
|
+
* @param {number} saturation
|
|
753
|
+
*/
|
|
754
|
+
setRasterStyle(id, opacity, saturation) {
|
|
755
|
+
wasm.engine_setRasterStyle(this.__wbg_ptr, id, opacity, saturation);
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Space behind the globe (stars, atmosphere halo), in the globe projection
|
|
759
|
+
* @param {boolean} enabled
|
|
760
|
+
*/
|
|
761
|
+
setSky(enabled) {
|
|
762
|
+
wasm.engine_setSky(this.__wbg_ptr, enabled);
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Layer-wide style of a symbol layer: size scale and opacity as zoom stops (four zooms then four values each),
|
|
766
|
+
* zoom range, visibility
|
|
767
|
+
* @param {number} id
|
|
768
|
+
* @param {Float32Array} size
|
|
769
|
+
* @param {Float32Array} opacity
|
|
770
|
+
* @param {number} min_zoom
|
|
771
|
+
* @param {number} max_zoom
|
|
772
|
+
* @param {boolean} visible
|
|
773
|
+
*/
|
|
774
|
+
setSymbolLayer(id, size, opacity, min_zoom, max_zoom, visible) {
|
|
775
|
+
const ptr0 = passArrayF32ToWasm0(size, wasm.__wbindgen_malloc);
|
|
776
|
+
const len0 = WASM_VECTOR_LEN;
|
|
777
|
+
const ptr1 = passArrayF32ToWasm0(opacity, wasm.__wbindgen_malloc);
|
|
778
|
+
const len1 = WASM_VECTOR_LEN;
|
|
779
|
+
wasm.engine_setSymbolLayer(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, min_zoom, max_zoom, visible);
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Labels of a symbol layer, shaped by the page: anchors (Mercator, interleaved), boxes (min x, min y, max x, max y,
|
|
783
|
+
* CSS pixels from the anchor), styles (20 floats each, see `LABEL_FLOATS`) and glyph quads (10 floats each: label, x, y, width, height from the anchor, atlas u0, v0, u1, v1 in
|
|
784
|
+
* texels, font scale)
|
|
785
|
+
* @param {number} id
|
|
786
|
+
* @param {Float64Array} anchors
|
|
787
|
+
* @param {Float32Array} boxes
|
|
788
|
+
* @param {Float32Array} styles
|
|
789
|
+
* @param {Float32Array} quads
|
|
790
|
+
*/
|
|
791
|
+
setSymbols(id, anchors, boxes, styles, quads) {
|
|
792
|
+
const ptr0 = passArrayF64ToWasm0(anchors, wasm.__wbindgen_malloc);
|
|
793
|
+
const len0 = WASM_VECTOR_LEN;
|
|
794
|
+
const ptr1 = passArrayF32ToWasm0(boxes, wasm.__wbindgen_malloc);
|
|
795
|
+
const len1 = WASM_VECTOR_LEN;
|
|
796
|
+
const ptr2 = passArrayF32ToWasm0(styles, wasm.__wbindgen_malloc);
|
|
797
|
+
const len2 = WASM_VECTOR_LEN;
|
|
798
|
+
const ptr3 = passArrayF32ToWasm0(quads, wasm.__wbindgen_malloc);
|
|
799
|
+
const len3 = WASM_VECTOR_LEN;
|
|
800
|
+
const ret = wasm.engine_setSymbols(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
801
|
+
if (ret[1]) {
|
|
802
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Relief under the raster layers, from raw altitudes (`image/x-bil;bits=32`, 256 × 256, or the same followed by
|
|
807
|
+
* the validity mask of an `ArcGIS` raw grid): `url` is a template with `{bbox}` (WMS `GetMap` in EPSG:3857, or in
|
|
808
|
+
* the Mercator metres of another body) or `{z}/{x}/{y}`; `undefined` turns it off. `exaggeration` scales the
|
|
809
|
+
* heights (1: true relief); `max_z`: finest level loaded (up to 15, from 6 on the Earth, coarser on bodies of a
|
|
810
|
+
* larger relief for their size: `terrain_levels`); `geoid`: altitudes raised by the RAF20 geoid height (heights
|
|
811
|
+
* above the ellipsoid, those of 3D Tiles), else left as served (NGF-IGN69 over France); `loader`: gives the
|
|
812
|
+
* altitudes of each tile instead of fetching `url` (an encoding decoded by the page: Terrarium, Terrain-RGB)
|
|
813
|
+
* @param {string | null | undefined} url
|
|
814
|
+
* @param {number} exaggeration
|
|
815
|
+
* @param {number | null | undefined} max_z
|
|
816
|
+
* @param {boolean | null | undefined} geoid
|
|
817
|
+
* @param {((z: number, x: number, y: number, signal: AbortSignal) => Promise<Float32Array | null>) | undefined} loader
|
|
818
|
+
*/
|
|
819
|
+
setTerrain(url, exaggeration, max_z, geoid, loader) {
|
|
820
|
+
var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
821
|
+
var len0 = WASM_VECTOR_LEN;
|
|
822
|
+
const ret = wasm.engine_setTerrain(this.__wbg_ptr, ptr0, len0, exaggeration, isLikeNone(max_z) ? 0xFFFFFF : max_z, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader));
|
|
823
|
+
if (ret[1]) {
|
|
824
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* @param {number} min
|
|
829
|
+
* @param {number} max
|
|
830
|
+
*/
|
|
831
|
+
setZoomRange(min, max) {
|
|
832
|
+
wasm.engine_setZoomRange(this.__wbg_ptr, min, max);
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Tile counters of the raster layers, for diagnostics
|
|
836
|
+
* @returns {RasterLayerStats[]}
|
|
837
|
+
*/
|
|
838
|
+
stats() {
|
|
839
|
+
const ret = wasm.engine_stats(this.__wbg_ptr);
|
|
840
|
+
return ret;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* A region of the first page of the glyph atlas: `width` × `height` bytes at (`x`, `y`)
|
|
844
|
+
* @param {number} x
|
|
845
|
+
* @param {number} y
|
|
846
|
+
* @param {number} width
|
|
847
|
+
* @param {number} height
|
|
848
|
+
* @param {Uint8Array} data
|
|
849
|
+
*/
|
|
850
|
+
updateGlyphAtlas(x, y, width, height, data) {
|
|
851
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
852
|
+
const len0 = WASM_VECTOR_LEN;
|
|
853
|
+
wasm.engine_updateGlyphAtlas(this.__wbg_ptr, x, y, width, height, ptr0, len0);
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* A region of a page of the glyph atlas: `width` × `height` bytes at (`x`, `y`) of the page
|
|
857
|
+
* @param {number} page
|
|
858
|
+
* @param {number} x
|
|
859
|
+
* @param {number} y
|
|
860
|
+
* @param {number} width
|
|
861
|
+
* @param {number} height
|
|
862
|
+
* @param {Uint8Array} data
|
|
863
|
+
*/
|
|
864
|
+
updateGlyphPage(page, x, y, width, height, data) {
|
|
865
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
866
|
+
const len0 = WASM_VECTOR_LEN;
|
|
867
|
+
wasm.engine_updateGlyphPage(this.__wbg_ptr, page, x, y, width, height, ptr0, len0);
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Replaces a region of a ground layer's texture (one layer of a 2D array)
|
|
871
|
+
* @param {number} id
|
|
872
|
+
* @param {string} name
|
|
873
|
+
* @param {number} x
|
|
874
|
+
* @param {number} y
|
|
875
|
+
* @param {number} layer
|
|
876
|
+
* @param {number} width
|
|
877
|
+
* @param {number} height
|
|
878
|
+
* @param {Uint8Array} data
|
|
879
|
+
*/
|
|
880
|
+
updateGroundTexture(id, name, x, y, layer, width, height, data) {
|
|
881
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
882
|
+
const len0 = WASM_VECTOR_LEN;
|
|
883
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
884
|
+
const len1 = WASM_VECTOR_LEN;
|
|
885
|
+
const ret = wasm.engine_updateGroundTexture(this.__wbg_ptr, id, ptr0, len0, x, y, layer, width, height, ptr1, len1);
|
|
886
|
+
if (ret[1]) {
|
|
887
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* @param {number} delta
|
|
892
|
+
* @param {number} x
|
|
893
|
+
* @param {number} y
|
|
894
|
+
*/
|
|
895
|
+
zoomAt(delta, x, y) {
|
|
896
|
+
wasm.engine_zoomAt(this.__wbg_ptr, delta, x, y);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
|
|
900
|
+
function __wbg_get_imports() {
|
|
901
|
+
const import0 = {
|
|
902
|
+
__proto__: null,
|
|
903
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
904
|
+
const v = arg0;
|
|
905
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
906
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
907
|
+
},
|
|
908
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
909
|
+
const ret = debugString(arg1);
|
|
910
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
911
|
+
const len1 = WASM_VECTOR_LEN;
|
|
912
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
913
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
914
|
+
},
|
|
915
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
916
|
+
const ret = typeof(arg0) === 'function';
|
|
917
|
+
return ret;
|
|
918
|
+
},
|
|
919
|
+
__wbg___wbindgen_is_null_e343b7d08827ba72: function(arg0) {
|
|
920
|
+
const ret = arg0 === null;
|
|
921
|
+
return ret;
|
|
922
|
+
},
|
|
923
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
924
|
+
const ret = arg0 === undefined;
|
|
925
|
+
return ret;
|
|
926
|
+
},
|
|
927
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
928
|
+
const obj = arg1;
|
|
929
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
930
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
931
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
932
|
+
},
|
|
933
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
934
|
+
const obj = arg1;
|
|
935
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
936
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
937
|
+
var len1 = WASM_VECTOR_LEN;
|
|
938
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
939
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
940
|
+
},
|
|
941
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
942
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
943
|
+
},
|
|
944
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
945
|
+
arg0._wbg_cb_unref();
|
|
946
|
+
},
|
|
947
|
+
__wbg_abort_f78b99d80248bacb: function(arg0) {
|
|
948
|
+
arg0.abort();
|
|
949
|
+
},
|
|
950
|
+
__wbg_aborted_5b2b5f06b5e59fde: function(arg0) {
|
|
951
|
+
const ret = arg0.aborted;
|
|
952
|
+
return ret;
|
|
953
|
+
},
|
|
954
|
+
__wbg_activeTexture_11079673eac5c921: function(arg0, arg1) {
|
|
955
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
956
|
+
},
|
|
957
|
+
__wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
|
|
958
|
+
arg0.activeTexture(arg1 >>> 0);
|
|
959
|
+
},
|
|
960
|
+
__wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
|
|
961
|
+
const ret = arg0.arrayBuffer();
|
|
962
|
+
return ret;
|
|
963
|
+
}, arguments); },
|
|
964
|
+
__wbg_attachShader_8920a5beea54aba7: function(arg0, arg1, arg2) {
|
|
965
|
+
arg0.attachShader(arg1, arg2);
|
|
966
|
+
},
|
|
967
|
+
__wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
|
|
968
|
+
arg0.attachShader(arg1, arg2);
|
|
969
|
+
},
|
|
970
|
+
__wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
|
|
971
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
972
|
+
},
|
|
973
|
+
__wbg_bindBuffer_2195e89b585ce0c3: function(arg0, arg1, arg2) {
|
|
974
|
+
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
975
|
+
},
|
|
976
|
+
__wbg_bindFramebuffer_22e4b8e6e6d8d0e8: function(arg0, arg1, arg2) {
|
|
977
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
978
|
+
},
|
|
979
|
+
__wbg_bindFramebuffer_378eb18ef219d37a: function(arg0, arg1, arg2) {
|
|
980
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
981
|
+
},
|
|
982
|
+
__wbg_bindRenderbuffer_db090531fb28de34: function(arg0, arg1, arg2) {
|
|
983
|
+
arg0.bindRenderbuffer(arg1 >>> 0, arg2);
|
|
984
|
+
},
|
|
985
|
+
__wbg_bindRenderbuffer_e0c5aeef245a913a: function(arg0, arg1, arg2) {
|
|
986
|
+
arg0.bindRenderbuffer(arg1 >>> 0, arg2);
|
|
987
|
+
},
|
|
988
|
+
__wbg_bindTexture_3cf008f256f3ed99: function(arg0, arg1, arg2) {
|
|
989
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
990
|
+
},
|
|
991
|
+
__wbg_bindTexture_613a47b8917a0ccd: function(arg0, arg1, arg2) {
|
|
992
|
+
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
993
|
+
},
|
|
994
|
+
__wbg_bindVertexArrayOES_3141815cb8234a6e: function(arg0, arg1) {
|
|
995
|
+
arg0.bindVertexArrayOES(arg1);
|
|
996
|
+
},
|
|
997
|
+
__wbg_bindVertexArray_f58af0a346185ec5: function(arg0, arg1) {
|
|
998
|
+
arg0.bindVertexArray(arg1);
|
|
999
|
+
},
|
|
1000
|
+
__wbg_blendFuncSeparate_28abe082febb1a26: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1001
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1002
|
+
},
|
|
1003
|
+
__wbg_blendFuncSeparate_2af9d47f7efc0452: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1004
|
+
arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1005
|
+
},
|
|
1006
|
+
__wbg_blendFunc_491ee1105079ce76: function(arg0, arg1, arg2) {
|
|
1007
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
1008
|
+
},
|
|
1009
|
+
__wbg_blendFunc_589e4252bb396484: function(arg0, arg1, arg2) {
|
|
1010
|
+
arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
|
|
1011
|
+
},
|
|
1012
|
+
__wbg_blob_232135c7e297b861: function() { return handleError(function (arg0) {
|
|
1013
|
+
const ret = arg0.blob();
|
|
1014
|
+
return ret;
|
|
1015
|
+
}, arguments); },
|
|
1016
|
+
__wbg_bufferData_50f5eb06469330e4: function(arg0, arg1, arg2, arg3) {
|
|
1017
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1018
|
+
},
|
|
1019
|
+
__wbg_bufferData_53e0f7a06b58fe81: function(arg0, arg1, arg2, arg3) {
|
|
1020
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1021
|
+
},
|
|
1022
|
+
__wbg_bufferData_5fa44d94fe7a3878: function(arg0, arg1, arg2, arg3) {
|
|
1023
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1024
|
+
},
|
|
1025
|
+
__wbg_bufferData_bad7ce562b6a9eac: function(arg0, arg1, arg2, arg3) {
|
|
1026
|
+
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1027
|
+
},
|
|
1028
|
+
__wbg_byteLength_27689b065d089962: function(arg0) {
|
|
1029
|
+
const ret = arg0.byteLength;
|
|
1030
|
+
return ret;
|
|
1031
|
+
},
|
|
1032
|
+
__wbg_call_01721c8c75200a10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1033
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
|
|
1034
|
+
return ret;
|
|
1035
|
+
}, arguments); },
|
|
1036
|
+
__wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
|
|
1037
|
+
const ret = arg0.call(arg1);
|
|
1038
|
+
return ret;
|
|
1039
|
+
}, arguments); },
|
|
1040
|
+
__wbg_clearColor_3f6aa096dc12e8b7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1041
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
1042
|
+
},
|
|
1043
|
+
__wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1044
|
+
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
|
|
1047
|
+
arg0.clearStencil(arg1);
|
|
1048
|
+
},
|
|
1049
|
+
__wbg_clearStencil_e4383e4a543e7997: function(arg0, arg1) {
|
|
1050
|
+
arg0.clearStencil(arg1);
|
|
1051
|
+
},
|
|
1052
|
+
__wbg_clear_175cf3cb6d98d72b: function(arg0, arg1) {
|
|
1053
|
+
arg0.clear(arg1 >>> 0);
|
|
1054
|
+
},
|
|
1055
|
+
__wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
|
|
1056
|
+
arg0.clear(arg1 >>> 0);
|
|
1057
|
+
},
|
|
1058
|
+
__wbg_close_355afba6ea5ad1ae: function(arg0) {
|
|
1059
|
+
arg0.close();
|
|
1060
|
+
},
|
|
1061
|
+
__wbg_colorMask_4d6afbbbc3022fbe: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1062
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
1063
|
+
},
|
|
1064
|
+
__wbg_colorMask_8c903995f6f873be: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1065
|
+
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
|
|
1066
|
+
},
|
|
1067
|
+
__wbg_compileShader_073a75409aaf96d2: function(arg0, arg1) {
|
|
1068
|
+
arg0.compileShader(arg1);
|
|
1069
|
+
},
|
|
1070
|
+
__wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
|
|
1071
|
+
arg0.compileShader(arg1);
|
|
1072
|
+
},
|
|
1073
|
+
__wbg_createBuffer_d1dd23bf8704564c: function(arg0) {
|
|
1074
|
+
const ret = arg0.createBuffer();
|
|
1075
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1076
|
+
},
|
|
1077
|
+
__wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
|
|
1078
|
+
const ret = arg0.createBuffer();
|
|
1079
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1080
|
+
},
|
|
1081
|
+
__wbg_createFramebuffer_2c6b5b0f49c88e5d: function(arg0) {
|
|
1082
|
+
const ret = arg0.createFramebuffer();
|
|
1083
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1084
|
+
},
|
|
1085
|
+
__wbg_createFramebuffer_d0969af4e9886297: function(arg0) {
|
|
1086
|
+
const ret = arg0.createFramebuffer();
|
|
1087
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_createImageBitmap_69996a36c51d409f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1090
|
+
const ret = arg0.createImageBitmap(arg1, arg2);
|
|
1091
|
+
return ret;
|
|
1092
|
+
}, arguments); },
|
|
1093
|
+
__wbg_createProgram_cbf448e6f18a9402: function(arg0) {
|
|
1094
|
+
const ret = arg0.createProgram();
|
|
1095
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1096
|
+
},
|
|
1097
|
+
__wbg_createProgram_e0c81b0d2b8d0fd0: function(arg0) {
|
|
1098
|
+
const ret = arg0.createProgram();
|
|
1099
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1100
|
+
},
|
|
1101
|
+
__wbg_createRenderbuffer_2b17e9fe2e6fb4be: function(arg0) {
|
|
1102
|
+
const ret = arg0.createRenderbuffer();
|
|
1103
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1104
|
+
},
|
|
1105
|
+
__wbg_createRenderbuffer_c864095d6ebd60d0: function(arg0) {
|
|
1106
|
+
const ret = arg0.createRenderbuffer();
|
|
1107
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1108
|
+
},
|
|
1109
|
+
__wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
|
|
1110
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
1111
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1112
|
+
},
|
|
1113
|
+
__wbg_createShader_7c9d99a21ecb08c0: function(arg0, arg1) {
|
|
1114
|
+
const ret = arg0.createShader(arg1 >>> 0);
|
|
1115
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1116
|
+
},
|
|
1117
|
+
__wbg_createTexture_01e8e591b64237de: function(arg0) {
|
|
1118
|
+
const ret = arg0.createTexture();
|
|
1119
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1120
|
+
},
|
|
1121
|
+
__wbg_createTexture_5f2583508ebe379b: function(arg0) {
|
|
1122
|
+
const ret = arg0.createTexture();
|
|
1123
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1124
|
+
},
|
|
1125
|
+
__wbg_createVertexArrayOES_a8dc8498b56df937: function(arg0) {
|
|
1126
|
+
const ret = arg0.createVertexArrayOES();
|
|
1127
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1128
|
+
},
|
|
1129
|
+
__wbg_createVertexArray_b223ea69dd08fcab: function(arg0) {
|
|
1130
|
+
const ret = arg0.createVertexArray();
|
|
1131
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1132
|
+
},
|
|
1133
|
+
__wbg_deleteBuffer_070e58aaaf2a7a8b: function(arg0, arg1) {
|
|
1134
|
+
arg0.deleteBuffer(arg1);
|
|
1135
|
+
},
|
|
1136
|
+
__wbg_deleteBuffer_7775ee9e248c8468: function(arg0, arg1) {
|
|
1137
|
+
arg0.deleteBuffer(arg1);
|
|
1138
|
+
},
|
|
1139
|
+
__wbg_deleteFramebuffer_3f8ab330098bf8e6: function(arg0, arg1) {
|
|
1140
|
+
arg0.deleteFramebuffer(arg1);
|
|
1141
|
+
},
|
|
1142
|
+
__wbg_deleteFramebuffer_570d3b214a509fa2: function(arg0, arg1) {
|
|
1143
|
+
arg0.deleteFramebuffer(arg1);
|
|
1144
|
+
},
|
|
1145
|
+
__wbg_deleteProgram_822906f0368175d0: function(arg0, arg1) {
|
|
1146
|
+
arg0.deleteProgram(arg1);
|
|
1147
|
+
},
|
|
1148
|
+
__wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
|
|
1149
|
+
arg0.deleteProgram(arg1);
|
|
1150
|
+
},
|
|
1151
|
+
__wbg_deleteRenderbuffer_826c9b43b7ea68f5: function(arg0, arg1) {
|
|
1152
|
+
arg0.deleteRenderbuffer(arg1);
|
|
1153
|
+
},
|
|
1154
|
+
__wbg_deleteRenderbuffer_f4e121a3ab21c605: function(arg0, arg1) {
|
|
1155
|
+
arg0.deleteRenderbuffer(arg1);
|
|
1156
|
+
},
|
|
1157
|
+
__wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
|
|
1158
|
+
arg0.deleteShader(arg1);
|
|
1159
|
+
},
|
|
1160
|
+
__wbg_deleteShader_da18a294158c2d15: function(arg0, arg1) {
|
|
1161
|
+
arg0.deleteShader(arg1);
|
|
1162
|
+
},
|
|
1163
|
+
__wbg_deleteSync_4f0be28b03f50495: function(arg0, arg1) {
|
|
1164
|
+
arg0.deleteSync(arg1);
|
|
1165
|
+
},
|
|
1166
|
+
__wbg_deleteTexture_78c170241204a466: function(arg0, arg1) {
|
|
1167
|
+
arg0.deleteTexture(arg1);
|
|
1168
|
+
},
|
|
1169
|
+
__wbg_deleteTexture_9f42750adb092e4f: function(arg0, arg1) {
|
|
1170
|
+
arg0.deleteTexture(arg1);
|
|
1171
|
+
},
|
|
1172
|
+
__wbg_deleteVertexArrayOES_e01f31634d466176: function(arg0, arg1) {
|
|
1173
|
+
arg0.deleteVertexArrayOES(arg1);
|
|
1174
|
+
},
|
|
1175
|
+
__wbg_deleteVertexArray_ca9768805d051d49: function(arg0, arg1) {
|
|
1176
|
+
arg0.deleteVertexArray(arg1);
|
|
1177
|
+
},
|
|
1178
|
+
__wbg_depthFunc_92e96d8f46a23300: function(arg0, arg1) {
|
|
1179
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
1180
|
+
},
|
|
1181
|
+
__wbg_depthFunc_a41fb5adacb22e09: function(arg0, arg1) {
|
|
1182
|
+
arg0.depthFunc(arg1 >>> 0);
|
|
1183
|
+
},
|
|
1184
|
+
__wbg_depthMask_06ecff4d4514c38f: function(arg0, arg1) {
|
|
1185
|
+
arg0.depthMask(arg1 !== 0);
|
|
1186
|
+
},
|
|
1187
|
+
__wbg_depthMask_0d7c3dec3b8405ee: function(arg0, arg1) {
|
|
1188
|
+
arg0.depthMask(arg1 !== 0);
|
|
1189
|
+
},
|
|
1190
|
+
__wbg_detachShader_1ed15fc2d289cf15: function(arg0, arg1, arg2) {
|
|
1191
|
+
arg0.detachShader(arg1, arg2);
|
|
1192
|
+
},
|
|
1193
|
+
__wbg_detachShader_67dabaaad80a795e: function(arg0, arg1, arg2) {
|
|
1194
|
+
arg0.detachShader(arg1, arg2);
|
|
1195
|
+
},
|
|
1196
|
+
__wbg_disable_19fe787eccdf0272: function(arg0, arg1) {
|
|
1197
|
+
arg0.disable(arg1 >>> 0);
|
|
1198
|
+
},
|
|
1199
|
+
__wbg_disable_81b2cb5f8cea15ae: function(arg0, arg1) {
|
|
1200
|
+
arg0.disable(arg1 >>> 0);
|
|
1201
|
+
},
|
|
1202
|
+
__wbg_drawArraysInstancedANGLE_b76512b5abba6668: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1203
|
+
arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
|
1204
|
+
},
|
|
1205
|
+
__wbg_drawArraysInstanced_9b44aa78a087154d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1206
|
+
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
1207
|
+
},
|
|
1208
|
+
__wbg_drawArrays_08872e02fb57b847: function(arg0, arg1, arg2, arg3) {
|
|
1209
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
1210
|
+
},
|
|
1211
|
+
__wbg_drawArrays_741af5c3f8db636f: function(arg0, arg1, arg2, arg3) {
|
|
1212
|
+
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
1213
|
+
},
|
|
1214
|
+
__wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1215
|
+
arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1216
|
+
},
|
|
1217
|
+
__wbg_drawElementsInstanced_d7c396aa034159b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1218
|
+
arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1219
|
+
},
|
|
1220
|
+
__wbg_drawElements_c8988ba71de1101a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1221
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
1222
|
+
},
|
|
1223
|
+
__wbg_drawElements_cc1e6c631e89eddf: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1224
|
+
arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
|
|
1225
|
+
},
|
|
1226
|
+
__wbg_enableVertexAttribArray_1496b78a8dbab9fd: function(arg0, arg1) {
|
|
1227
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1228
|
+
},
|
|
1229
|
+
__wbg_enableVertexAttribArray_d52693866bc8b8dd: function(arg0, arg1) {
|
|
1230
|
+
arg0.enableVertexAttribArray(arg1 >>> 0);
|
|
1231
|
+
},
|
|
1232
|
+
__wbg_enable_6eeb9c0e9b483cee: function(arg0, arg1) {
|
|
1233
|
+
arg0.enable(arg1 >>> 0);
|
|
1234
|
+
},
|
|
1235
|
+
__wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
|
|
1236
|
+
arg0.enable(arg1 >>> 0);
|
|
1237
|
+
},
|
|
1238
|
+
__wbg_fenceSync_330293024adb66bc: function(arg0, arg1, arg2) {
|
|
1239
|
+
const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
|
|
1240
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1241
|
+
},
|
|
1242
|
+
__wbg_fetch_b322877f1ed6457d: function(arg0, arg1, arg2, arg3) {
|
|
1243
|
+
const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
|
|
1244
|
+
return ret;
|
|
1245
|
+
},
|
|
1246
|
+
__wbg_flush_13b162660ad850d2: function(arg0) {
|
|
1247
|
+
arg0.flush();
|
|
1248
|
+
},
|
|
1249
|
+
__wbg_flush_a5ad38200881ac35: function(arg0) {
|
|
1250
|
+
arg0.flush();
|
|
1251
|
+
},
|
|
1252
|
+
__wbg_framebufferRenderbuffer_1c6337e0030411f3: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1253
|
+
arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
1254
|
+
},
|
|
1255
|
+
__wbg_framebufferRenderbuffer_f019e9231b142c0d: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1256
|
+
arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
1257
|
+
},
|
|
1258
|
+
__wbg_framebufferTexture2D_73c52f23ec33aa22: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1259
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
1260
|
+
},
|
|
1261
|
+
__wbg_framebufferTexture2D_caddefa1f767646e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1262
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
1263
|
+
},
|
|
1264
|
+
__wbg_frontFace_6751b4b97f997aeb: function(arg0, arg1) {
|
|
1265
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1266
|
+
},
|
|
1267
|
+
__wbg_frontFace_b064adb15b6f3772: function(arg0, arg1) {
|
|
1268
|
+
arg0.frontFace(arg1 >>> 0);
|
|
1269
|
+
},
|
|
1270
|
+
__wbg_getActiveUniform_239de631a40c387a: function(arg0, arg1, arg2) {
|
|
1271
|
+
const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
|
|
1272
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1273
|
+
},
|
|
1274
|
+
__wbg_getActiveUniform_f2052b3c57679fe2: function(arg0, arg1, arg2) {
|
|
1275
|
+
const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
|
|
1276
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1277
|
+
},
|
|
1278
|
+
__wbg_getBufferSubData_dd23246099b166d1: function(arg0, arg1, arg2, arg3) {
|
|
1279
|
+
arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
|
|
1280
|
+
},
|
|
1281
|
+
__wbg_getContext_051324720aa5b7e8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1282
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
1283
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1284
|
+
}, arguments); },
|
|
1285
|
+
__wbg_getExtension_abfda2c5db286b07: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1286
|
+
const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
|
|
1287
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1288
|
+
}, arguments); },
|
|
1289
|
+
__wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
|
|
1290
|
+
const ret = arg0.getParameter(arg1 >>> 0);
|
|
1291
|
+
return ret;
|
|
1292
|
+
}, arguments); },
|
|
1293
|
+
__wbg_getProgramInfoLog_208fb1ff31006495: function(arg0, arg1, arg2) {
|
|
1294
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1295
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1296
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1297
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1298
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1299
|
+
},
|
|
1300
|
+
__wbg_getProgramInfoLog_3276b294d6d42fe2: function(arg0, arg1, arg2) {
|
|
1301
|
+
const ret = arg1.getProgramInfoLog(arg2);
|
|
1302
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1303
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1304
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1305
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1306
|
+
},
|
|
1307
|
+
__wbg_getProgramParameter_50bafab01cf88652: function(arg0, arg1, arg2) {
|
|
1308
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1309
|
+
return ret;
|
|
1310
|
+
},
|
|
1311
|
+
__wbg_getProgramParameter_fc7124bb9fb7c675: function(arg0, arg1, arg2) {
|
|
1312
|
+
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
|
|
1313
|
+
return ret;
|
|
1314
|
+
},
|
|
1315
|
+
__wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
|
|
1316
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1317
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1318
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1319
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1320
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1321
|
+
},
|
|
1322
|
+
__wbg_getShaderInfoLog_bb64c5a52df0b7a3: function(arg0, arg1, arg2) {
|
|
1323
|
+
const ret = arg1.getShaderInfoLog(arg2);
|
|
1324
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1325
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1326
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1327
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1328
|
+
},
|
|
1329
|
+
__wbg_getShaderParameter_745acf10b8e45e31: function(arg0, arg1, arg2) {
|
|
1330
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1331
|
+
return ret;
|
|
1332
|
+
},
|
|
1333
|
+
__wbg_getShaderParameter_e55ea9c456df5484: function(arg0, arg1, arg2) {
|
|
1334
|
+
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
|
|
1335
|
+
return ret;
|
|
1336
|
+
},
|
|
1337
|
+
__wbg_getSupportedExtensions_1459bad37860c0c3: function(arg0) {
|
|
1338
|
+
const ret = arg0.getSupportedExtensions();
|
|
1339
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1340
|
+
},
|
|
1341
|
+
__wbg_getSyncParameter_bb4be47b67bfa2f8: function(arg0, arg1, arg2) {
|
|
1342
|
+
const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
|
|
1343
|
+
return ret;
|
|
1344
|
+
},
|
|
1345
|
+
__wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
|
|
1346
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1347
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1348
|
+
},
|
|
1349
|
+
__wbg_getUniformLocation_cb4e3e121235f91a: function(arg0, arg1, arg2, arg3) {
|
|
1350
|
+
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
1351
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1352
|
+
},
|
|
1353
|
+
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
1354
|
+
const ret = arg0[arg1 >>> 0];
|
|
1355
|
+
return ret;
|
|
1356
|
+
},
|
|
1357
|
+
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
|
|
1358
|
+
let result;
|
|
1359
|
+
try {
|
|
1360
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1361
|
+
} catch (_) {
|
|
1362
|
+
result = false;
|
|
1363
|
+
}
|
|
1364
|
+
const ret = result;
|
|
1365
|
+
return ret;
|
|
1366
|
+
},
|
|
1367
|
+
__wbg_instanceof_Blob_7c6191a4cd5834d3: function(arg0) {
|
|
1368
|
+
let result;
|
|
1369
|
+
try {
|
|
1370
|
+
result = arg0 instanceof Blob;
|
|
1371
|
+
} catch (_) {
|
|
1372
|
+
result = false;
|
|
1373
|
+
}
|
|
1374
|
+
const ret = result;
|
|
1375
|
+
return ret;
|
|
1376
|
+
},
|
|
1377
|
+
__wbg_instanceof_Float32Array_595afb0f28b828c9: function(arg0) {
|
|
1378
|
+
let result;
|
|
1379
|
+
try {
|
|
1380
|
+
result = arg0 instanceof Float32Array;
|
|
1381
|
+
} catch (_) {
|
|
1382
|
+
result = false;
|
|
1383
|
+
}
|
|
1384
|
+
const ret = result;
|
|
1385
|
+
return ret;
|
|
1386
|
+
},
|
|
1387
|
+
__wbg_instanceof_ImageBitmap_74bea45ee48d3d7a: function(arg0) {
|
|
1388
|
+
let result;
|
|
1389
|
+
try {
|
|
1390
|
+
result = arg0 instanceof ImageBitmap;
|
|
1391
|
+
} catch (_) {
|
|
1392
|
+
result = false;
|
|
1393
|
+
}
|
|
1394
|
+
const ret = result;
|
|
1395
|
+
return ret;
|
|
1396
|
+
},
|
|
1397
|
+
__wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
|
|
1398
|
+
let result;
|
|
1399
|
+
try {
|
|
1400
|
+
result = arg0 instanceof Response;
|
|
1401
|
+
} catch (_) {
|
|
1402
|
+
result = false;
|
|
1403
|
+
}
|
|
1404
|
+
const ret = result;
|
|
1405
|
+
return ret;
|
|
1406
|
+
},
|
|
1407
|
+
__wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
|
|
1408
|
+
let result;
|
|
1409
|
+
try {
|
|
1410
|
+
result = arg0 instanceof WebGL2RenderingContext;
|
|
1411
|
+
} catch (_) {
|
|
1412
|
+
result = false;
|
|
1413
|
+
}
|
|
1414
|
+
const ret = result;
|
|
1415
|
+
return ret;
|
|
1416
|
+
},
|
|
1417
|
+
__wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
|
|
1418
|
+
let result;
|
|
1419
|
+
try {
|
|
1420
|
+
result = arg0 instanceof Window;
|
|
1421
|
+
} catch (_) {
|
|
1422
|
+
result = false;
|
|
1423
|
+
}
|
|
1424
|
+
const ret = result;
|
|
1425
|
+
return ret;
|
|
1426
|
+
},
|
|
1427
|
+
__wbg_isContextLost_fbbab8b921e614b7: function(arg0) {
|
|
1428
|
+
const ret = arg0.isContextLost();
|
|
1429
|
+
return ret;
|
|
1430
|
+
},
|
|
1431
|
+
__wbg_is_4b278c0bd3caba97: function(arg0, arg1) {
|
|
1432
|
+
const ret = Object.is(arg0, arg1);
|
|
1433
|
+
return ret;
|
|
1434
|
+
},
|
|
1435
|
+
__wbg_length_58572db4c38f3c3e: function(arg0) {
|
|
1436
|
+
const ret = arg0.length;
|
|
1437
|
+
return ret;
|
|
1438
|
+
},
|
|
1439
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
1440
|
+
const ret = arg0.length;
|
|
1441
|
+
return ret;
|
|
1442
|
+
},
|
|
1443
|
+
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
1444
|
+
const ret = arg0.length;
|
|
1445
|
+
return ret;
|
|
1446
|
+
},
|
|
1447
|
+
__wbg_linkProgram_571a9ea00d38ff83: function(arg0, arg1) {
|
|
1448
|
+
arg0.linkProgram(arg1);
|
|
1449
|
+
},
|
|
1450
|
+
__wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
|
|
1451
|
+
arg0.linkProgram(arg1);
|
|
1452
|
+
},
|
|
1453
|
+
__wbg_name_91a697e9ff1634bf: function(arg0, arg1) {
|
|
1454
|
+
const ret = arg1.name;
|
|
1455
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1456
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1457
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1458
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1459
|
+
},
|
|
1460
|
+
__wbg_new_2e41357094e99294: function() { return handleError(function () {
|
|
1461
|
+
const ret = new AbortController();
|
|
1462
|
+
return ret;
|
|
1463
|
+
}, arguments); },
|
|
1464
|
+
__wbg_new_5502aad30c185fc8: function(arg0, arg1) {
|
|
1465
|
+
try {
|
|
1466
|
+
var state0 = {a: arg0, b: arg1};
|
|
1467
|
+
var cb0 = (arg0, arg1) => {
|
|
1468
|
+
const a = state0.a;
|
|
1469
|
+
state0.a = 0;
|
|
1470
|
+
try {
|
|
1471
|
+
return wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1472
|
+
} finally {
|
|
1473
|
+
state0.a = a;
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
const ret = new Promise(cb0);
|
|
1477
|
+
return ret;
|
|
1478
|
+
} finally {
|
|
1479
|
+
state0.a = 0;
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
1483
|
+
const ret = new Object();
|
|
1484
|
+
return ret;
|
|
1485
|
+
},
|
|
1486
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
1487
|
+
const ret = new Array();
|
|
1488
|
+
return ret;
|
|
1489
|
+
},
|
|
1490
|
+
__wbg_new_with_byte_offset_70ba6193352e027b: function(arg0, arg1) {
|
|
1491
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0);
|
|
1492
|
+
return ret;
|
|
1493
|
+
},
|
|
1494
|
+
__wbg_new_with_byte_offset_and_length_40c170286adc9005: function(arg0, arg1, arg2) {
|
|
1495
|
+
const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1496
|
+
return ret;
|
|
1497
|
+
},
|
|
1498
|
+
__wbg_now_aa4ccb83129e9e55: function() {
|
|
1499
|
+
const ret = Date.now();
|
|
1500
|
+
return ret;
|
|
1501
|
+
},
|
|
1502
|
+
__wbg_of_20798cb14708764f: function(arg0, arg1) {
|
|
1503
|
+
const ret = Array.of(arg0, arg1);
|
|
1504
|
+
return ret;
|
|
1505
|
+
},
|
|
1506
|
+
__wbg_pixelStorei_af18e636b3e7b725: function(arg0, arg1, arg2) {
|
|
1507
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1508
|
+
},
|
|
1509
|
+
__wbg_pixelStorei_cb4e43466f5b8703: function(arg0, arg1, arg2) {
|
|
1510
|
+
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
1511
|
+
},
|
|
1512
|
+
__wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
|
|
1513
|
+
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
1514
|
+
},
|
|
1515
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
1516
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1517
|
+
},
|
|
1518
|
+
__wbg_push_2baf45db356cf468: function(arg0, arg1) {
|
|
1519
|
+
const ret = arg0.push(arg1);
|
|
1520
|
+
return ret;
|
|
1521
|
+
},
|
|
1522
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
|
|
1523
|
+
const ret = arg0.queueMicrotask;
|
|
1524
|
+
return ret;
|
|
1525
|
+
},
|
|
1526
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
1527
|
+
queueMicrotask(arg0);
|
|
1528
|
+
},
|
|
1529
|
+
__wbg_readPixels_31e44e70558ac590: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1530
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1531
|
+
}, arguments); },
|
|
1532
|
+
__wbg_readPixels_3321086a7818a739: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1533
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1534
|
+
}, arguments); },
|
|
1535
|
+
__wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1536
|
+
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
1537
|
+
}, arguments); },
|
|
1538
|
+
__wbg_renderbufferStorage_52b131bbf3112b3a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1539
|
+
arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1540
|
+
},
|
|
1541
|
+
__wbg_renderbufferStorage_bca487b0dea425b8: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1542
|
+
arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
|
|
1543
|
+
},
|
|
1544
|
+
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
1545
|
+
const ret = Promise.resolve(arg0);
|
|
1546
|
+
return ret;
|
|
1547
|
+
},
|
|
1548
|
+
__wbg_scissor_12ddc324094acd50: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1549
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1550
|
+
},
|
|
1551
|
+
__wbg_scissor_a9468482697c2bdb: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1552
|
+
arg0.scissor(arg1, arg2, arg3, arg4);
|
|
1553
|
+
},
|
|
1554
|
+
__wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1555
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
1556
|
+
return ret;
|
|
1557
|
+
}, arguments); },
|
|
1558
|
+
__wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1559
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1560
|
+
return ret;
|
|
1561
|
+
}, arguments); },
|
|
1562
|
+
__wbg_set_alpha_6dea851a46253adf: function(arg0, arg1) {
|
|
1563
|
+
arg0.alpha = arg1 !== 0;
|
|
1564
|
+
},
|
|
1565
|
+
__wbg_set_antialias_1f699e96763e8a35: function(arg0, arg1) {
|
|
1566
|
+
arg0.antialias = arg1 !== 0;
|
|
1567
|
+
},
|
|
1568
|
+
__wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
|
|
1569
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1570
|
+
},
|
|
1571
|
+
__wbg_set_color_space_conversion_f27e9d866a683b4b: function(arg0, arg1) {
|
|
1572
|
+
arg0.colorSpaceConversion = __wbindgen_enum_ColorSpaceConversion[arg1];
|
|
1573
|
+
},
|
|
1574
|
+
__wbg_set_depth_8b49de49803d4e60: function(arg0, arg1) {
|
|
1575
|
+
arg0.depth = arg1 !== 0;
|
|
1576
|
+
},
|
|
1577
|
+
__wbg_set_power_preference_6ef22d4c8baf517f: function(arg0, arg1) {
|
|
1578
|
+
arg0.powerPreference = __wbindgen_enum_WebGlPowerPreference[arg1];
|
|
1579
|
+
},
|
|
1580
|
+
__wbg_set_premultiply_alpha_45a4cf9a1e87bfbf: function(arg0, arg1) {
|
|
1581
|
+
arg0.premultiplyAlpha = __wbindgen_enum_PremultiplyAlpha[arg1];
|
|
1582
|
+
},
|
|
1583
|
+
__wbg_set_resize_height_274433c2f249624d: function(arg0, arg1) {
|
|
1584
|
+
arg0.resizeHeight = arg1 >>> 0;
|
|
1585
|
+
},
|
|
1586
|
+
__wbg_set_resize_width_6f06543b29d1ca48: function(arg0, arg1) {
|
|
1587
|
+
arg0.resizeWidth = arg1 >>> 0;
|
|
1588
|
+
},
|
|
1589
|
+
__wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
|
|
1590
|
+
arg0.signal = arg1;
|
|
1591
|
+
},
|
|
1592
|
+
__wbg_set_stencil_edc32d9477c7c107: function(arg0, arg1) {
|
|
1593
|
+
arg0.stencil = arg1 !== 0;
|
|
1594
|
+
},
|
|
1595
|
+
__wbg_shaderSource_06379dac249994dd: function(arg0, arg1, arg2, arg3) {
|
|
1596
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1597
|
+
},
|
|
1598
|
+
__wbg_shaderSource_c8812639b47d87b9: function(arg0, arg1, arg2, arg3) {
|
|
1599
|
+
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
|
|
1600
|
+
},
|
|
1601
|
+
__wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
|
|
1602
|
+
const ret = arg0.signal;
|
|
1603
|
+
return ret;
|
|
1604
|
+
},
|
|
1605
|
+
__wbg_size_74c48d7329291685: function(arg0) {
|
|
1606
|
+
const ret = arg0.size;
|
|
1607
|
+
return ret;
|
|
1608
|
+
},
|
|
1609
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
1610
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1611
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1612
|
+
},
|
|
1613
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
1614
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1615
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1616
|
+
},
|
|
1617
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
1618
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1619
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1620
|
+
},
|
|
1621
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
1622
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1623
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1624
|
+
},
|
|
1625
|
+
__wbg_status_ce0a98d3c57125f3: function(arg0) {
|
|
1626
|
+
const ret = arg0.status;
|
|
1627
|
+
return ret;
|
|
1628
|
+
},
|
|
1629
|
+
__wbg_stencilFunc_aa3cd8856be514c4: function(arg0, arg1, arg2, arg3) {
|
|
1630
|
+
arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1631
|
+
},
|
|
1632
|
+
__wbg_stencilFunc_bab7e0b7c443f093: function(arg0, arg1, arg2, arg3) {
|
|
1633
|
+
arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
|
|
1634
|
+
},
|
|
1635
|
+
__wbg_stencilOpSeparate_7d01185cbdb89d99: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1636
|
+
arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1637
|
+
},
|
|
1638
|
+
__wbg_stencilOpSeparate_c5af5f5dbd237bea: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1639
|
+
arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1640
|
+
},
|
|
1641
|
+
__wbg_stencilOp_12274af665ab8a00: function(arg0, arg1, arg2, arg3) {
|
|
1642
|
+
arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1643
|
+
},
|
|
1644
|
+
__wbg_stencilOp_2697194654fee819: function(arg0, arg1, arg2, arg3) {
|
|
1645
|
+
arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1646
|
+
},
|
|
1647
|
+
__wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1648
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1649
|
+
}, arguments); },
|
|
1650
|
+
__wbg_texImage2D_a856af552acdc9d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1651
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1652
|
+
}, arguments); },
|
|
1653
|
+
__wbg_texImage2D_ca3d0fe24620ec85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1654
|
+
arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1655
|
+
}, arguments); },
|
|
1656
|
+
__wbg_texParameteri_647fdb1426809cb5: function(arg0, arg1, arg2, arg3) {
|
|
1657
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1658
|
+
},
|
|
1659
|
+
__wbg_texParameteri_7864076abcdb03e0: function(arg0, arg1, arg2, arg3) {
|
|
1660
|
+
arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
1661
|
+
},
|
|
1662
|
+
__wbg_texStorage2D_cf2bd991072d9efb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1663
|
+
arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1664
|
+
},
|
|
1665
|
+
__wbg_texStorage3D_74b701c2b176380c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1666
|
+
arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
|
|
1667
|
+
},
|
|
1668
|
+
__wbg_texSubImage2D_31a0c2797aa04f32: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1669
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1670
|
+
}, arguments); },
|
|
1671
|
+
__wbg_texSubImage2D_5e90c7a719d40256: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1672
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1673
|
+
}, arguments); },
|
|
1674
|
+
__wbg_texSubImage2D_bb322aae90f7657f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1675
|
+
arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
|
|
1676
|
+
}, arguments); },
|
|
1677
|
+
__wbg_texSubImage3D_5143d5af7e182ddc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
1678
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
1679
|
+
}, arguments); },
|
|
1680
|
+
__wbg_texSubImage3D_5d773fc7a8cd4d08: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
1681
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
1682
|
+
}, arguments); },
|
|
1683
|
+
__wbg_texSubImage3D_e0d113b7047a5130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
|
|
1684
|
+
arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
|
|
1685
|
+
}, arguments); },
|
|
1686
|
+
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1687
|
+
const ret = arg0.then(arg1, arg2);
|
|
1688
|
+
return ret;
|
|
1689
|
+
},
|
|
1690
|
+
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1691
|
+
const ret = arg0.then(arg1);
|
|
1692
|
+
return ret;
|
|
1693
|
+
},
|
|
1694
|
+
__wbg_type_ff6f7b321fe8478b: function(arg0) {
|
|
1695
|
+
const ret = arg0.type;
|
|
1696
|
+
return ret;
|
|
1697
|
+
},
|
|
1698
|
+
__wbg_uniform1f_9cfecfaeb8cf43c1: function(arg0, arg1, arg2) {
|
|
1699
|
+
arg0.uniform1f(arg1, arg2);
|
|
1700
|
+
},
|
|
1701
|
+
__wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
|
|
1702
|
+
arg0.uniform1f(arg1, arg2);
|
|
1703
|
+
},
|
|
1704
|
+
__wbg_uniform1fv_1bf537fc926ef8b9: function(arg0, arg1, arg2, arg3) {
|
|
1705
|
+
arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1706
|
+
},
|
|
1707
|
+
__wbg_uniform1fv_1cc1d09bc13b03bf: function(arg0, arg1, arg2, arg3) {
|
|
1708
|
+
arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1709
|
+
},
|
|
1710
|
+
__wbg_uniform1i_531b98c4a7177366: function(arg0, arg1, arg2) {
|
|
1711
|
+
arg0.uniform1i(arg1, arg2);
|
|
1712
|
+
},
|
|
1713
|
+
__wbg_uniform1i_fc2dc8cadc49d8ec: function(arg0, arg1, arg2) {
|
|
1714
|
+
arg0.uniform1i(arg1, arg2);
|
|
1715
|
+
},
|
|
1716
|
+
__wbg_uniform1iv_4b8cbceccddfaa62: function(arg0, arg1, arg2, arg3) {
|
|
1717
|
+
arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1718
|
+
},
|
|
1719
|
+
__wbg_uniform1iv_8fc880ae80c77c74: function(arg0, arg1, arg2, arg3) {
|
|
1720
|
+
arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1721
|
+
},
|
|
1722
|
+
__wbg_uniform1ui_353c67ec681b540c: function(arg0, arg1, arg2) {
|
|
1723
|
+
arg0.uniform1ui(arg1, arg2 >>> 0);
|
|
1724
|
+
},
|
|
1725
|
+
__wbg_uniform1uiv_ad5e946730aacbec: function(arg0, arg1, arg2, arg3) {
|
|
1726
|
+
arg0.uniform1uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
1727
|
+
},
|
|
1728
|
+
__wbg_uniform2f_131da2d4bf17e4b9: function(arg0, arg1, arg2, arg3) {
|
|
1729
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1730
|
+
},
|
|
1731
|
+
__wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
|
|
1732
|
+
arg0.uniform2f(arg1, arg2, arg3);
|
|
1733
|
+
},
|
|
1734
|
+
__wbg_uniform2fv_319c49f0ce340f26: function(arg0, arg1, arg2, arg3) {
|
|
1735
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1736
|
+
},
|
|
1737
|
+
__wbg_uniform2fv_a7d3c1830d18c1b2: function(arg0, arg1, arg2, arg3) {
|
|
1738
|
+
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1739
|
+
},
|
|
1740
|
+
__wbg_uniform2iv_65f36fc9777697d7: function(arg0, arg1, arg2, arg3) {
|
|
1741
|
+
arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1742
|
+
},
|
|
1743
|
+
__wbg_uniform2iv_ca9cb507409b9ad1: function(arg0, arg1, arg2, arg3) {
|
|
1744
|
+
arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1745
|
+
},
|
|
1746
|
+
__wbg_uniform2uiv_c95af5fb653ccb86: function(arg0, arg1, arg2, arg3) {
|
|
1747
|
+
arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
1748
|
+
},
|
|
1749
|
+
__wbg_uniform3f_1211579ff87ccfad: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1750
|
+
arg0.uniform3f(arg1, arg2, arg3, arg4);
|
|
1751
|
+
},
|
|
1752
|
+
__wbg_uniform3f_ee105161897ee48a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1753
|
+
arg0.uniform3f(arg1, arg2, arg3, arg4);
|
|
1754
|
+
},
|
|
1755
|
+
__wbg_uniform3fv_055ea5ac38af4fce: function(arg0, arg1, arg2, arg3) {
|
|
1756
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1757
|
+
},
|
|
1758
|
+
__wbg_uniform3fv_58520ffe22a6e27c: function(arg0, arg1, arg2, arg3) {
|
|
1759
|
+
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1760
|
+
},
|
|
1761
|
+
__wbg_uniform3iv_0590e8b7eff2a791: function(arg0, arg1, arg2, arg3) {
|
|
1762
|
+
arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1763
|
+
},
|
|
1764
|
+
__wbg_uniform3iv_e91b1410dc299f50: function(arg0, arg1, arg2, arg3) {
|
|
1765
|
+
arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1766
|
+
},
|
|
1767
|
+
__wbg_uniform3uiv_9992491000463a52: function(arg0, arg1, arg2, arg3) {
|
|
1768
|
+
arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
1769
|
+
},
|
|
1770
|
+
__wbg_uniform4f_22bfec882308eec2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1771
|
+
arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
|
|
1772
|
+
},
|
|
1773
|
+
__wbg_uniform4f_8dd8f311e656ca0d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1774
|
+
arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
|
|
1775
|
+
},
|
|
1776
|
+
__wbg_uniform4fv_3ef2f5121fcb78ae: function(arg0, arg1, arg2, arg3) {
|
|
1777
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1778
|
+
},
|
|
1779
|
+
__wbg_uniform4fv_cf8ff646c36232c8: function(arg0, arg1, arg2, arg3) {
|
|
1780
|
+
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
1781
|
+
},
|
|
1782
|
+
__wbg_uniform4iv_6fc5436b4f876039: function(arg0, arg1, arg2, arg3) {
|
|
1783
|
+
arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1784
|
+
},
|
|
1785
|
+
__wbg_uniform4iv_99c2b07787d362d6: function(arg0, arg1, arg2, arg3) {
|
|
1786
|
+
arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
|
|
1787
|
+
},
|
|
1788
|
+
__wbg_uniform4uiv_a6fb3237d9df7ed4: function(arg0, arg1, arg2, arg3) {
|
|
1789
|
+
arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
|
|
1790
|
+
},
|
|
1791
|
+
__wbg_uniformMatrix3fv_472e7824735acce1: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1792
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1793
|
+
},
|
|
1794
|
+
__wbg_uniformMatrix3fv_83fdc9c3c0d43204: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1795
|
+
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1796
|
+
},
|
|
1797
|
+
__wbg_uniformMatrix4fv_dff9738d995fd0b1: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1798
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1799
|
+
},
|
|
1800
|
+
__wbg_uniformMatrix4fv_e691d7f14d3609f7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1801
|
+
arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
1802
|
+
},
|
|
1803
|
+
__wbg_useProgram_5bdae58fd9f9826f: function(arg0, arg1) {
|
|
1804
|
+
arg0.useProgram(arg1);
|
|
1805
|
+
},
|
|
1806
|
+
__wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
|
|
1807
|
+
arg0.useProgram(arg1);
|
|
1808
|
+
},
|
|
1809
|
+
__wbg_vertexAttribDivisorANGLE_659fb027198a47c3: function(arg0, arg1, arg2) {
|
|
1810
|
+
arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
|
|
1811
|
+
},
|
|
1812
|
+
__wbg_vertexAttribDivisor_7575d382215322f7: function(arg0, arg1, arg2) {
|
|
1813
|
+
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
1814
|
+
},
|
|
1815
|
+
__wbg_vertexAttribIPointer_fc8057c62cfcc63c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1816
|
+
arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
1817
|
+
},
|
|
1818
|
+
__wbg_vertexAttribPointer_24b495e18df325dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1819
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1820
|
+
},
|
|
1821
|
+
__wbg_vertexAttribPointer_54d56b18f71a946d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1822
|
+
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
1823
|
+
},
|
|
1824
|
+
__wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1825
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1826
|
+
},
|
|
1827
|
+
__wbg_viewport_e35d16c542d2ce70: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1828
|
+
arg0.viewport(arg1, arg2, arg3, arg4);
|
|
1829
|
+
},
|
|
1830
|
+
__wbg_warn_13abc63e0d4b3527: function(arg0) {
|
|
1831
|
+
console.warn(arg0);
|
|
1832
|
+
},
|
|
1833
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1834
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 76, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1835
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___wasm_bindgen_3785b71bf6f54dd0___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_3785b71bf6f54dd0___JsError___true_);
|
|
1836
|
+
return ret;
|
|
1837
|
+
},
|
|
1838
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
1839
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1840
|
+
const ret = arg0;
|
|
1841
|
+
return ret;
|
|
1842
|
+
},
|
|
1843
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
1844
|
+
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
1845
|
+
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
1846
|
+
return ret;
|
|
1847
|
+
},
|
|
1848
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
1849
|
+
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
1850
|
+
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
1851
|
+
return ret;
|
|
1852
|
+
},
|
|
1853
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1854
|
+
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
1855
|
+
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
1856
|
+
return ret;
|
|
1857
|
+
},
|
|
1858
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1859
|
+
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
1860
|
+
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
1861
|
+
return ret;
|
|
1862
|
+
},
|
|
1863
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
1864
|
+
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
1865
|
+
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
1866
|
+
return ret;
|
|
1867
|
+
},
|
|
1868
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1869
|
+
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
1870
|
+
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
1871
|
+
return ret;
|
|
1872
|
+
},
|
|
1873
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
1874
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1875
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1876
|
+
return ret;
|
|
1877
|
+
},
|
|
1878
|
+
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
1879
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1880
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1881
|
+
return ret;
|
|
1882
|
+
},
|
|
1883
|
+
__wbindgen_init_externref_table: function() {
|
|
1884
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1885
|
+
const offset = table.grow(4);
|
|
1886
|
+
table.set(0, undefined);
|
|
1887
|
+
table.set(offset + 0, undefined);
|
|
1888
|
+
table.set(offset + 1, null);
|
|
1889
|
+
table.set(offset + 2, true);
|
|
1890
|
+
table.set(offset + 3, false);
|
|
1891
|
+
},
|
|
1892
|
+
};
|
|
1893
|
+
return {
|
|
1894
|
+
__proto__: null,
|
|
1895
|
+
"./isard_core_bg.js": import0,
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
function wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___wasm_bindgen_3785b71bf6f54dd0___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_3785b71bf6f54dd0___JsError___true_(arg0, arg1, arg2) {
|
|
1900
|
+
const ret = wasm.wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___wasm_bindgen_3785b71bf6f54dd0___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_3785b71bf6f54dd0___JsError___true_(arg0, arg1, arg2);
|
|
1901
|
+
if (ret[1]) {
|
|
1902
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
function wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1907
|
+
wasm.wasm_bindgen_3785b71bf6f54dd0___convert__closures_____invoke___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined___js_sys_9aebc20340329cea___Function_fn_wasm_bindgen_3785b71bf6f54dd0___JsValue_____wasm_bindgen_3785b71bf6f54dd0___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
const __wbindgen_enum_ColorSpaceConversion = ["none", "default"];
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
const __wbindgen_enum_WebGlPowerPreference = ["default", "low-power", "high-performance"];
|
|
1921
|
+
const EngineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1922
|
+
? { register: () => {}, unregister: () => {} }
|
|
1923
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_engine_free(ptr, 1));
|
|
1924
|
+
|
|
1925
|
+
function addToExternrefTable0(obj) {
|
|
1926
|
+
const idx = wasm.__externref_table_alloc();
|
|
1927
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1928
|
+
return idx;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1932
|
+
? { register: () => {}, unregister: () => {} }
|
|
1933
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1934
|
+
|
|
1935
|
+
function debugString(val) {
|
|
1936
|
+
// primitive types
|
|
1937
|
+
const type = typeof val;
|
|
1938
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1939
|
+
return `${val}`;
|
|
1940
|
+
}
|
|
1941
|
+
if (type == 'string') {
|
|
1942
|
+
return `"${val}"`;
|
|
1943
|
+
}
|
|
1944
|
+
if (type == 'symbol') {
|
|
1945
|
+
const description = val.description;
|
|
1946
|
+
if (description == null) {
|
|
1947
|
+
return 'Symbol';
|
|
1948
|
+
} else {
|
|
1949
|
+
return `Symbol(${description})`;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
if (type == 'function') {
|
|
1953
|
+
const name = val.name;
|
|
1954
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1955
|
+
return `Function(${name})`;
|
|
1956
|
+
} else {
|
|
1957
|
+
return 'Function';
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
// objects
|
|
1961
|
+
if (Array.isArray(val)) {
|
|
1962
|
+
const length = val.length;
|
|
1963
|
+
let debug = '[';
|
|
1964
|
+
if (length > 0) {
|
|
1965
|
+
debug += debugString(val[0]);
|
|
1966
|
+
}
|
|
1967
|
+
for(let i = 1; i < length; i++) {
|
|
1968
|
+
debug += ', ' + debugString(val[i]);
|
|
1969
|
+
}
|
|
1970
|
+
debug += ']';
|
|
1971
|
+
return debug;
|
|
1972
|
+
}
|
|
1973
|
+
// Test for built-in
|
|
1974
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1975
|
+
let className;
|
|
1976
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1977
|
+
className = builtInMatches[1];
|
|
1978
|
+
} else {
|
|
1979
|
+
// Failed to match the standard '[object ClassName]'
|
|
1980
|
+
return toString.call(val);
|
|
1981
|
+
}
|
|
1982
|
+
if (className == 'Object') {
|
|
1983
|
+
// we're a user defined class or Object
|
|
1984
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1985
|
+
// easier than looping through ownProperties of `val`.
|
|
1986
|
+
try {
|
|
1987
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1988
|
+
} catch (_) {
|
|
1989
|
+
return 'Object';
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
// errors
|
|
1993
|
+
if (val instanceof Error) {
|
|
1994
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1995
|
+
}
|
|
1996
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1997
|
+
return className;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
2001
|
+
ptr = ptr >>> 0;
|
|
2002
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
function getArrayF64FromWasm0(ptr, len) {
|
|
2006
|
+
ptr = ptr >>> 0;
|
|
2007
|
+
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
function getArrayI16FromWasm0(ptr, len) {
|
|
2011
|
+
ptr = ptr >>> 0;
|
|
2012
|
+
return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
2016
|
+
ptr = ptr >>> 0;
|
|
2017
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
function getArrayI8FromWasm0(ptr, len) {
|
|
2021
|
+
ptr = ptr >>> 0;
|
|
2022
|
+
return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
function getArrayU16FromWasm0(ptr, len) {
|
|
2026
|
+
ptr = ptr >>> 0;
|
|
2027
|
+
return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
2031
|
+
ptr = ptr >>> 0;
|
|
2032
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2036
|
+
ptr = ptr >>> 0;
|
|
2037
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
let cachedDataViewMemory0 = null;
|
|
2041
|
+
function getDataViewMemory0() {
|
|
2042
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
2043
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
2044
|
+
}
|
|
2045
|
+
return cachedDataViewMemory0;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
2049
|
+
function getFloat32ArrayMemory0() {
|
|
2050
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
2051
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
2052
|
+
}
|
|
2053
|
+
return cachedFloat32ArrayMemory0;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
2057
|
+
function getFloat64ArrayMemory0() {
|
|
2058
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
2059
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
2060
|
+
}
|
|
2061
|
+
return cachedFloat64ArrayMemory0;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
let cachedInt16ArrayMemory0 = null;
|
|
2065
|
+
function getInt16ArrayMemory0() {
|
|
2066
|
+
if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
|
|
2067
|
+
cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
|
|
2068
|
+
}
|
|
2069
|
+
return cachedInt16ArrayMemory0;
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
let cachedInt32ArrayMemory0 = null;
|
|
2073
|
+
function getInt32ArrayMemory0() {
|
|
2074
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
2075
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
2076
|
+
}
|
|
2077
|
+
return cachedInt32ArrayMemory0;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
let cachedInt8ArrayMemory0 = null;
|
|
2081
|
+
function getInt8ArrayMemory0() {
|
|
2082
|
+
if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
|
|
2083
|
+
cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
|
|
2084
|
+
}
|
|
2085
|
+
return cachedInt8ArrayMemory0;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
function getStringFromWasm0(ptr, len) {
|
|
2089
|
+
return decodeText(ptr >>> 0, len);
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
let cachedUint16ArrayMemory0 = null;
|
|
2093
|
+
function getUint16ArrayMemory0() {
|
|
2094
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
|
2095
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
|
2096
|
+
}
|
|
2097
|
+
return cachedUint16ArrayMemory0;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
let cachedUint32ArrayMemory0 = null;
|
|
2101
|
+
function getUint32ArrayMemory0() {
|
|
2102
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
2103
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
2104
|
+
}
|
|
2105
|
+
return cachedUint32ArrayMemory0;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
let cachedUint8ArrayMemory0 = null;
|
|
2109
|
+
function getUint8ArrayMemory0() {
|
|
2110
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
2111
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
2112
|
+
}
|
|
2113
|
+
return cachedUint8ArrayMemory0;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
function handleError(f, args) {
|
|
2117
|
+
try {
|
|
2118
|
+
return f.apply(this, args);
|
|
2119
|
+
} catch (e) {
|
|
2120
|
+
const idx = addToExternrefTable0(e);
|
|
2121
|
+
wasm.__wbindgen_exn_store(idx);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
function isLikeNone(x) {
|
|
2126
|
+
return x === undefined || x === null;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2130
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2131
|
+
const real = (...args) => {
|
|
2132
|
+
|
|
2133
|
+
// First up with a closure we increment the internal reference
|
|
2134
|
+
// count. This ensures that the Rust closure environment won't
|
|
2135
|
+
// be deallocated while we're invoking it.
|
|
2136
|
+
state.cnt++;
|
|
2137
|
+
const a = state.a;
|
|
2138
|
+
state.a = 0;
|
|
2139
|
+
try {
|
|
2140
|
+
return f(a, state.b, ...args);
|
|
2141
|
+
} finally {
|
|
2142
|
+
state.a = a;
|
|
2143
|
+
real._wbg_cb_unref();
|
|
2144
|
+
}
|
|
2145
|
+
};
|
|
2146
|
+
real._wbg_cb_unref = () => {
|
|
2147
|
+
if (--state.cnt === 0) {
|
|
2148
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2149
|
+
state.a = 0;
|
|
2150
|
+
CLOSURE_DTORS.unregister(state);
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
2154
|
+
return real;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
2158
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
2159
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
2160
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2161
|
+
return ptr;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
2165
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
2166
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
2167
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2168
|
+
return ptr;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
2172
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
2173
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
2174
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2175
|
+
return ptr;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
function passArrayF64ToWasm0(arg, malloc) {
|
|
2179
|
+
const ptr = malloc(arg.length * 8, 8) >>> 0;
|
|
2180
|
+
getFloat64ArrayMemory0().set(arg, ptr / 8);
|
|
2181
|
+
WASM_VECTOR_LEN = arg.length;
|
|
2182
|
+
return ptr;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
2186
|
+
if (realloc === undefined) {
|
|
2187
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2188
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
2189
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
2190
|
+
WASM_VECTOR_LEN = buf.length;
|
|
2191
|
+
return ptr;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
let len = arg.length;
|
|
2195
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
2196
|
+
|
|
2197
|
+
const mem = getUint8ArrayMemory0();
|
|
2198
|
+
|
|
2199
|
+
let offset = 0;
|
|
2200
|
+
|
|
2201
|
+
for (; offset < len; offset++) {
|
|
2202
|
+
const code = arg.charCodeAt(offset);
|
|
2203
|
+
if (code > 0x7F) break;
|
|
2204
|
+
mem[ptr + offset] = code;
|
|
2205
|
+
}
|
|
2206
|
+
if (offset !== len) {
|
|
2207
|
+
if (offset !== 0) {
|
|
2208
|
+
arg = arg.slice(offset);
|
|
2209
|
+
}
|
|
2210
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
2211
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
2212
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
2213
|
+
|
|
2214
|
+
offset += ret.written;
|
|
2215
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
WASM_VECTOR_LEN = offset;
|
|
2219
|
+
return ptr;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
function takeFromExternrefTable0(idx) {
|
|
2223
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
2224
|
+
wasm.__externref_table_dealloc(idx);
|
|
2225
|
+
return value;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2229
|
+
cachedTextDecoder.decode();
|
|
2230
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2231
|
+
let numBytesDecoded = 0;
|
|
2232
|
+
function decodeText(ptr, len) {
|
|
2233
|
+
numBytesDecoded += len;
|
|
2234
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2235
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2236
|
+
cachedTextDecoder.decode();
|
|
2237
|
+
numBytesDecoded = len;
|
|
2238
|
+
}
|
|
2239
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
const cachedTextEncoder = new TextEncoder();
|
|
2243
|
+
|
|
2244
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
2245
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
2246
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
2247
|
+
view.set(buf);
|
|
2248
|
+
return {
|
|
2249
|
+
read: arg.length,
|
|
2250
|
+
written: buf.length
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
let WASM_VECTOR_LEN = 0;
|
|
2256
|
+
|
|
2257
|
+
let wasmModule, wasmInstance, wasm;
|
|
2258
|
+
function __wbg_finalize_init(instance, module) {
|
|
2259
|
+
wasmInstance = instance;
|
|
2260
|
+
wasm = instance.exports;
|
|
2261
|
+
wasmModule = module;
|
|
2262
|
+
cachedDataViewMemory0 = null;
|
|
2263
|
+
cachedFloat32ArrayMemory0 = null;
|
|
2264
|
+
cachedFloat64ArrayMemory0 = null;
|
|
2265
|
+
cachedInt16ArrayMemory0 = null;
|
|
2266
|
+
cachedInt32ArrayMemory0 = null;
|
|
2267
|
+
cachedInt8ArrayMemory0 = null;
|
|
2268
|
+
cachedUint16ArrayMemory0 = null;
|
|
2269
|
+
cachedUint32ArrayMemory0 = null;
|
|
2270
|
+
cachedUint8ArrayMemory0 = null;
|
|
2271
|
+
wasm.__wbindgen_start();
|
|
2272
|
+
return wasm;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
async function __wbg_load(module, imports) {
|
|
2276
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
2277
|
+
if (!module.ok) {
|
|
2278
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2282
|
+
try {
|
|
2283
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2284
|
+
} catch (e) {
|
|
2285
|
+
const validResponse = expectedResponseType(module.type);
|
|
2286
|
+
|
|
2287
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2288
|
+
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);
|
|
2289
|
+
|
|
2290
|
+
} else { throw e; }
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
const bytes = await module.arrayBuffer();
|
|
2295
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
2296
|
+
} else {
|
|
2297
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
2298
|
+
|
|
2299
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
2300
|
+
return { instance, module };
|
|
2301
|
+
} else {
|
|
2302
|
+
return instance;
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
function expectedResponseType(type) {
|
|
2307
|
+
switch (type) {
|
|
2308
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2309
|
+
}
|
|
2310
|
+
return false;
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
function initSync(module) {
|
|
2315
|
+
if (wasm !== undefined) return wasm;
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
if (module !== undefined) {
|
|
2319
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2320
|
+
({module} = module)
|
|
2321
|
+
} else {
|
|
2322
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
const imports = __wbg_get_imports();
|
|
2327
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2328
|
+
module = new WebAssembly.Module(module);
|
|
2329
|
+
}
|
|
2330
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2331
|
+
return __wbg_finalize_init(instance, module);
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
async function __wbg_init(module_or_path) {
|
|
2335
|
+
if (wasm !== undefined) return wasm;
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
if (module_or_path !== undefined) {
|
|
2339
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2340
|
+
({module_or_path} = module_or_path)
|
|
2341
|
+
} else {
|
|
2342
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
if (module_or_path === undefined) {
|
|
2347
|
+
module_or_path = new URL('isard_core_bg.wasm', import.meta.url);
|
|
2348
|
+
}
|
|
2349
|
+
const imports = __wbg_get_imports();
|
|
2350
|
+
|
|
2351
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2352
|
+
module_or_path = fetch(module_or_path);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2356
|
+
|
|
2357
|
+
return __wbg_finalize_init(instance, module);
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
export { initSync, __wbg_init as default };
|