@stadiamaps/ferrostar 0.44.0 → 0.46.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/ferrostar.d.ts +406 -383
- package/ferrostar_bg.js +301 -304
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrostar_bg.js
CHANGED
|
@@ -4,8 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
let WASM_VECTOR_LEN = 0;
|
|
8
|
-
|
|
9
7
|
let cachedUint8ArrayMemory0 = null;
|
|
10
8
|
|
|
11
9
|
function getUint8ArrayMemory0() {
|
|
@@ -15,22 +13,41 @@ function getUint8ArrayMemory0() {
|
|
|
15
13
|
return cachedUint8ArrayMemory0;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
+
|
|
18
|
+
cachedTextDecoder.decode();
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
21
|
+
let numBytesDecoded = 0;
|
|
22
|
+
function decodeText(ptr, len) {
|
|
23
|
+
numBytesDecoded += len;
|
|
24
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
25
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
26
|
+
cachedTextDecoder.decode();
|
|
27
|
+
numBytesDecoded = len;
|
|
28
|
+
}
|
|
29
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
30
|
+
}
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
32
|
+
function getStringFromWasm0(ptr, len) {
|
|
33
|
+
ptr = ptr >>> 0;
|
|
34
|
+
return decodeText(ptr, len);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let WASM_VECTOR_LEN = 0;
|
|
38
|
+
|
|
39
|
+
const cachedTextEncoder = new TextEncoder();
|
|
40
|
+
|
|
41
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
42
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
43
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
44
|
+
view.set(buf);
|
|
45
|
+
return {
|
|
46
|
+
read: arg.length,
|
|
47
|
+
written: buf.length
|
|
48
|
+
};
|
|
49
|
+
}
|
|
25
50
|
}
|
|
26
|
-
: function (arg, view) {
|
|
27
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
28
|
-
view.set(buf);
|
|
29
|
-
return {
|
|
30
|
-
read: arg.length,
|
|
31
|
-
written: buf.length
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
51
|
|
|
35
52
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
36
53
|
|
|
@@ -61,7 +78,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
61
78
|
}
|
|
62
79
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
80
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
64
|
-
const ret =
|
|
81
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
65
82
|
|
|
66
83
|
offset += ret.written;
|
|
67
84
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -80,26 +97,6 @@ function getDataViewMemory0() {
|
|
|
80
97
|
return cachedDataViewMemory0;
|
|
81
98
|
}
|
|
82
99
|
|
|
83
|
-
function addToExternrefTable0(obj) {
|
|
84
|
-
const idx = wasm.__externref_table_alloc();
|
|
85
|
-
wasm.__wbindgen_export_4.set(idx, obj);
|
|
86
|
-
return idx;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function handleError(f, args) {
|
|
90
|
-
try {
|
|
91
|
-
return f.apply(this, args);
|
|
92
|
-
} catch (e) {
|
|
93
|
-
const idx = addToExternrefTable0(e);
|
|
94
|
-
wasm.__wbindgen_exn_store(idx);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
99
|
-
ptr = ptr >>> 0;
|
|
100
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
100
|
function isLikeNone(x) {
|
|
104
101
|
return x === undefined || x === null;
|
|
105
102
|
}
|
|
@@ -169,21 +166,24 @@ function debugString(val) {
|
|
|
169
166
|
return className;
|
|
170
167
|
}
|
|
171
168
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
function addToExternrefTable0(obj) {
|
|
170
|
+
const idx = wasm.__externref_table_alloc();
|
|
171
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
172
|
+
return idx;
|
|
173
|
+
}
|
|
177
174
|
|
|
178
|
-
function
|
|
179
|
-
|
|
180
|
-
|
|
175
|
+
function handleError(f, args) {
|
|
176
|
+
try {
|
|
177
|
+
return f.apply(this, args);
|
|
178
|
+
} catch (e) {
|
|
179
|
+
const idx = addToExternrefTable0(e);
|
|
180
|
+
wasm.__wbindgen_exn_store(idx);
|
|
181
|
+
}
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
function
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return value;
|
|
184
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
185
|
+
ptr = ptr >>> 0;
|
|
186
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -192,21 +192,40 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
192
192
|
WASM_VECTOR_LEN = arg.length;
|
|
193
193
|
return ptr;
|
|
194
194
|
}
|
|
195
|
+
|
|
196
|
+
function takeFromExternrefTable0(idx) {
|
|
197
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
198
|
+
wasm.__externref_table_dealloc(idx);
|
|
199
|
+
return value;
|
|
200
|
+
}
|
|
195
201
|
/**
|
|
196
|
-
* JavaScript wrapper for `
|
|
197
|
-
* @param {
|
|
202
|
+
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
203
|
+
* @param {string} polyline
|
|
204
|
+
* @param {number} precision
|
|
198
205
|
* @param {number | null | undefined} resample_distance
|
|
199
206
|
* @param {LocationBias} bias
|
|
200
207
|
* @returns {any}
|
|
201
208
|
*/
|
|
202
|
-
export function
|
|
203
|
-
const
|
|
209
|
+
export function locationSimulationFromPolyline(polyline, precision, resample_distance, bias) {
|
|
210
|
+
const ptr0 = passStringToWasm0(polyline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
211
|
+
const len0 = WASM_VECTOR_LEN;
|
|
212
|
+
const ret = wasm.locationSimulationFromPolyline(ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
204
213
|
if (ret[2]) {
|
|
205
214
|
throw takeFromExternrefTable0(ret[1]);
|
|
206
215
|
}
|
|
207
216
|
return takeFromExternrefTable0(ret[0]);
|
|
208
217
|
}
|
|
209
218
|
|
|
219
|
+
/**
|
|
220
|
+
* JavaScript wrapper for `advance_location_simulation`.
|
|
221
|
+
* @param {any} state
|
|
222
|
+
* @returns {any}
|
|
223
|
+
*/
|
|
224
|
+
export function advanceLocationSimulation(state) {
|
|
225
|
+
const ret = wasm.advanceLocationSimulation(state);
|
|
226
|
+
return ret;
|
|
227
|
+
}
|
|
228
|
+
|
|
210
229
|
/**
|
|
211
230
|
* JavaScript wrapper for `location_simulation_from_route`.
|
|
212
231
|
* @param {any} route
|
|
@@ -223,33 +242,20 @@ export function locationSimulationFromRoute(route, resample_distance, bias) {
|
|
|
223
242
|
}
|
|
224
243
|
|
|
225
244
|
/**
|
|
226
|
-
* JavaScript wrapper for `
|
|
227
|
-
* @param {
|
|
228
|
-
* @param {number} precision
|
|
245
|
+
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
246
|
+
* @param {any} coordinates
|
|
229
247
|
* @param {number | null | undefined} resample_distance
|
|
230
248
|
* @param {LocationBias} bias
|
|
231
249
|
* @returns {any}
|
|
232
250
|
*/
|
|
233
|
-
export function
|
|
234
|
-
const
|
|
235
|
-
const len0 = WASM_VECTOR_LEN;
|
|
236
|
-
const ret = wasm.locationSimulationFromPolyline(ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
251
|
+
export function locationSimulationFromCoordinates(coordinates, resample_distance, bias) {
|
|
252
|
+
const ret = wasm.locationSimulationFromCoordinates(coordinates, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
237
253
|
if (ret[2]) {
|
|
238
254
|
throw takeFromExternrefTable0(ret[1]);
|
|
239
255
|
}
|
|
240
256
|
return takeFromExternrefTable0(ret[0]);
|
|
241
257
|
}
|
|
242
258
|
|
|
243
|
-
/**
|
|
244
|
-
* JavaScript wrapper for `advance_location_simulation`.
|
|
245
|
-
* @param {any} state
|
|
246
|
-
* @returns {any}
|
|
247
|
-
*/
|
|
248
|
-
export function advanceLocationSimulation(state) {
|
|
249
|
-
const ret = wasm.advanceLocationSimulation(state);
|
|
250
|
-
return ret;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
259
|
const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
254
260
|
? { register: () => {}, unregister: () => {} }
|
|
255
261
|
: new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
|
|
@@ -271,20 +277,6 @@ export class NavigationController {
|
|
|
271
277
|
const ptr = this.__destroy_into_raw();
|
|
272
278
|
wasm.__wbg_navigationcontroller_free(ptr, 0);
|
|
273
279
|
}
|
|
274
|
-
/**
|
|
275
|
-
* @param {any} route
|
|
276
|
-
* @param {any} config
|
|
277
|
-
* @param {any} should_record
|
|
278
|
-
*/
|
|
279
|
-
constructor(route, config, should_record) {
|
|
280
|
-
const ret = wasm.navigationcontroller_new(route, config, should_record);
|
|
281
|
-
if (ret[2]) {
|
|
282
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
283
|
-
}
|
|
284
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
285
|
-
NavigationControllerFinalization.register(this, this.__wbg_ptr, this);
|
|
286
|
-
return this;
|
|
287
|
-
}
|
|
288
280
|
/**
|
|
289
281
|
* @param {any} location
|
|
290
282
|
* @returns {any}
|
|
@@ -319,7 +311,22 @@ export class NavigationController {
|
|
|
319
311
|
}
|
|
320
312
|
return takeFromExternrefTable0(ret[0]);
|
|
321
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* @param {any} route
|
|
316
|
+
* @param {any} config
|
|
317
|
+
* @param {any} should_record
|
|
318
|
+
*/
|
|
319
|
+
constructor(route, config, should_record) {
|
|
320
|
+
const ret = wasm.navigationcontroller_new(route, config, should_record);
|
|
321
|
+
if (ret[2]) {
|
|
322
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
323
|
+
}
|
|
324
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
325
|
+
NavigationControllerFinalization.register(this, this.__wbg_ptr, this);
|
|
326
|
+
return this;
|
|
327
|
+
}
|
|
322
328
|
}
|
|
329
|
+
if (Symbol.dispose) NavigationController.prototype[Symbol.dispose] = NavigationController.prototype.free;
|
|
323
330
|
|
|
324
331
|
const NavigationReplayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
325
332
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -344,33 +351,31 @@ export class NavigationReplay {
|
|
|
344
351
|
wasm.__wbg_navigationreplay_free(ptr, 0);
|
|
345
352
|
}
|
|
346
353
|
/**
|
|
347
|
-
* @
|
|
354
|
+
* @returns {any}
|
|
348
355
|
*/
|
|
349
|
-
|
|
350
|
-
const ret = wasm.
|
|
356
|
+
getAllEvents() {
|
|
357
|
+
const ret = wasm.navigationreplay_getAllEvents(this.__wbg_ptr);
|
|
351
358
|
if (ret[2]) {
|
|
352
359
|
throw takeFromExternrefTable0(ret[1]);
|
|
353
360
|
}
|
|
354
|
-
|
|
355
|
-
NavigationReplayFinalization.register(this, this.__wbg_ptr, this);
|
|
356
|
-
return this;
|
|
361
|
+
return takeFromExternrefTable0(ret[0]);
|
|
357
362
|
}
|
|
358
363
|
/**
|
|
359
|
-
* @param {any} current_index
|
|
360
364
|
* @returns {any}
|
|
361
365
|
*/
|
|
362
|
-
|
|
363
|
-
const ret = wasm.
|
|
366
|
+
getInitialRoute() {
|
|
367
|
+
const ret = wasm.navigationreplay_getInitialRoute(this.__wbg_ptr);
|
|
364
368
|
if (ret[2]) {
|
|
365
369
|
throw takeFromExternrefTable0(ret[1]);
|
|
366
370
|
}
|
|
367
371
|
return takeFromExternrefTable0(ret[0]);
|
|
368
372
|
}
|
|
369
373
|
/**
|
|
374
|
+
* @param {any} current_index
|
|
370
375
|
* @returns {any}
|
|
371
376
|
*/
|
|
372
|
-
|
|
373
|
-
const ret = wasm.
|
|
377
|
+
getEventByIndex(current_index) {
|
|
378
|
+
const ret = wasm.navigationreplay_getEventByIndex(this.__wbg_ptr, current_index);
|
|
374
379
|
if (ret[2]) {
|
|
375
380
|
throw takeFromExternrefTable0(ret[1]);
|
|
376
381
|
}
|
|
@@ -397,22 +402,25 @@ export class NavigationReplay {
|
|
|
397
402
|
return takeFromExternrefTable0(ret[0]);
|
|
398
403
|
}
|
|
399
404
|
/**
|
|
400
|
-
* @
|
|
405
|
+
* @param {any} json
|
|
401
406
|
*/
|
|
402
|
-
|
|
403
|
-
const ret = wasm.
|
|
407
|
+
constructor(json) {
|
|
408
|
+
const ret = wasm.navigationreplay_new(json);
|
|
404
409
|
if (ret[2]) {
|
|
405
410
|
throw takeFromExternrefTable0(ret[1]);
|
|
406
411
|
}
|
|
407
|
-
|
|
412
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
413
|
+
NavigationReplayFinalization.register(this, this.__wbg_ptr, this);
|
|
414
|
+
return this;
|
|
408
415
|
}
|
|
409
416
|
}
|
|
417
|
+
if (Symbol.dispose) NavigationReplay.prototype[Symbol.dispose] = NavigationReplay.prototype.free;
|
|
410
418
|
|
|
411
419
|
const NavigationSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
412
420
|
? { register: () => {}, unregister: () => {} }
|
|
413
421
|
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsession_free(ptr >>> 0, 1));
|
|
414
422
|
/**
|
|
415
|
-
* JavaScript wrapper for `NavigationSession` (simple version).
|
|
423
|
+
* JavaScript wrapper for [`NavigationSession`] (simple version).
|
|
416
424
|
* This wrapper provides basic navigation functionality without observers.
|
|
417
425
|
*/
|
|
418
426
|
export class NavigationSession {
|
|
@@ -428,19 +436,6 @@ export class NavigationSession {
|
|
|
428
436
|
const ptr = this.__destroy_into_raw();
|
|
429
437
|
wasm.__wbg_navigationsession_free(ptr, 0);
|
|
430
438
|
}
|
|
431
|
-
/**
|
|
432
|
-
* @param {any} route
|
|
433
|
-
* @param {any} config
|
|
434
|
-
*/
|
|
435
|
-
constructor(route, config) {
|
|
436
|
-
const ret = wasm.navigationsession_new(route, config);
|
|
437
|
-
if (ret[2]) {
|
|
438
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
439
|
-
}
|
|
440
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
441
|
-
NavigationSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
442
|
-
return this;
|
|
443
|
-
}
|
|
444
439
|
/**
|
|
445
440
|
* @param {any} location
|
|
446
441
|
* @returns {any}
|
|
@@ -475,13 +470,27 @@ export class NavigationSession {
|
|
|
475
470
|
}
|
|
476
471
|
return takeFromExternrefTable0(ret[0]);
|
|
477
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* @param {any} route
|
|
475
|
+
* @param {any} config
|
|
476
|
+
*/
|
|
477
|
+
constructor(route, config) {
|
|
478
|
+
const ret = wasm.navigationsession_new(route, config);
|
|
479
|
+
if (ret[2]) {
|
|
480
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
481
|
+
}
|
|
482
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
483
|
+
NavigationSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
484
|
+
return this;
|
|
485
|
+
}
|
|
478
486
|
}
|
|
487
|
+
if (Symbol.dispose) NavigationSession.prototype[Symbol.dispose] = NavigationSession.prototype.free;
|
|
479
488
|
|
|
480
489
|
const NavigationSessionRecordingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
481
490
|
? { register: () => {}, unregister: () => {} }
|
|
482
491
|
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsessionrecording_free(ptr >>> 0, 1));
|
|
483
492
|
/**
|
|
484
|
-
* JavaScript wrapper for `NavigationSession` with recording capabilities.
|
|
493
|
+
* JavaScript wrapper for [`NavigationSession`] with recording capabilities.
|
|
485
494
|
* This version includes a NavigationRecorder observer and provides direct access to recording functionality.
|
|
486
495
|
*/
|
|
487
496
|
export class NavigationSessionRecording {
|
|
@@ -498,17 +507,24 @@ export class NavigationSessionRecording {
|
|
|
498
507
|
wasm.__wbg_navigationsessionrecording_free(ptr, 0);
|
|
499
508
|
}
|
|
500
509
|
/**
|
|
501
|
-
* @
|
|
502
|
-
* @param {any} config
|
|
510
|
+
* @returns {any}
|
|
503
511
|
*/
|
|
504
|
-
|
|
505
|
-
const ret = wasm.
|
|
512
|
+
getEvents() {
|
|
513
|
+
const ret = wasm.navigationsessionrecording_getEvents(this.__wbg_ptr);
|
|
506
514
|
if (ret[2]) {
|
|
507
515
|
throw takeFromExternrefTable0(ret[1]);
|
|
508
516
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
517
|
+
return takeFromExternrefTable0(ret[0]);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @returns {any}
|
|
521
|
+
*/
|
|
522
|
+
getRecording() {
|
|
523
|
+
const ret = wasm.navigationsessionrecording_getRecording(this.__wbg_ptr);
|
|
524
|
+
if (ret[2]) {
|
|
525
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
526
|
+
}
|
|
527
|
+
return takeFromExternrefTable0(ret[0]);
|
|
512
528
|
}
|
|
513
529
|
/**
|
|
514
530
|
* @param {any} location
|
|
@@ -545,26 +561,20 @@ export class NavigationSessionRecording {
|
|
|
545
561
|
return takeFromExternrefTable0(ret[0]);
|
|
546
562
|
}
|
|
547
563
|
/**
|
|
548
|
-
* @
|
|
549
|
-
|
|
550
|
-
getRecording() {
|
|
551
|
-
const ret = wasm.navigationsessionrecording_getRecording(this.__wbg_ptr);
|
|
552
|
-
if (ret[2]) {
|
|
553
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
554
|
-
}
|
|
555
|
-
return takeFromExternrefTable0(ret[0]);
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* @returns {any}
|
|
564
|
+
* @param {any} route
|
|
565
|
+
* @param {any} config
|
|
559
566
|
*/
|
|
560
|
-
|
|
561
|
-
const ret = wasm.
|
|
567
|
+
constructor(route, config) {
|
|
568
|
+
const ret = wasm.navigationsessionrecording_new(route, config);
|
|
562
569
|
if (ret[2]) {
|
|
563
570
|
throw takeFromExternrefTable0(ret[1]);
|
|
564
571
|
}
|
|
565
|
-
|
|
572
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
573
|
+
NavigationSessionRecordingFinalization.register(this, this.__wbg_ptr, this);
|
|
574
|
+
return this;
|
|
566
575
|
}
|
|
567
576
|
}
|
|
577
|
+
if (Symbol.dispose) NavigationSessionRecording.prototype[Symbol.dispose] = NavigationSessionRecording.prototype.free;
|
|
568
578
|
|
|
569
579
|
const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
570
580
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -586,26 +596,17 @@ export class RouteAdapter {
|
|
|
586
596
|
wasm.__wbg_routeadapter_free(ptr, 0);
|
|
587
597
|
}
|
|
588
598
|
/**
|
|
589
|
-
*
|
|
590
|
-
*
|
|
591
|
-
* @param {string} endpoint_url
|
|
592
|
-
* @param {string} profile
|
|
593
|
-
* @param {string | null} [costing_options_json]
|
|
599
|
+
* @param {Uint8Array} response
|
|
600
|
+
* @returns {any}
|
|
594
601
|
*/
|
|
595
|
-
|
|
596
|
-
const ptr0 =
|
|
602
|
+
parseResponse(response) {
|
|
603
|
+
const ptr0 = passArray8ToWasm0(response, wasm.__wbindgen_malloc);
|
|
597
604
|
const len0 = WASM_VECTOR_LEN;
|
|
598
|
-
const
|
|
599
|
-
const len1 = WASM_VECTOR_LEN;
|
|
600
|
-
var ptr2 = isLikeNone(costing_options_json) ? 0 : passStringToWasm0(costing_options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
601
|
-
var len2 = WASM_VECTOR_LEN;
|
|
602
|
-
const ret = wasm.routeadapter_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
605
|
+
const ret = wasm.routeadapter_parseResponse(this.__wbg_ptr, ptr0, len0);
|
|
603
606
|
if (ret[2]) {
|
|
604
607
|
throw takeFromExternrefTable0(ret[1]);
|
|
605
608
|
}
|
|
606
|
-
|
|
607
|
-
RouteAdapterFinalization.register(this, this.__wbg_ptr, this);
|
|
608
|
-
return this;
|
|
609
|
+
return takeFromExternrefTable0(ret[0]);
|
|
609
610
|
}
|
|
610
611
|
/**
|
|
611
612
|
* @param {any} user_location
|
|
@@ -620,19 +621,31 @@ export class RouteAdapter {
|
|
|
620
621
|
return takeFromExternrefTable0(ret[0]);
|
|
621
622
|
}
|
|
622
623
|
/**
|
|
623
|
-
*
|
|
624
|
-
*
|
|
624
|
+
* Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
|
|
625
|
+
* At the moment, this is the only supported combination.
|
|
626
|
+
* @param {WellKnownRouteProvider} well_known_route_provider
|
|
625
627
|
*/
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
const len0 = WASM_VECTOR_LEN;
|
|
629
|
-
const ret = wasm.routeadapter_parseResponse(this.__wbg_ptr, ptr0, len0);
|
|
628
|
+
constructor(well_known_route_provider) {
|
|
629
|
+
const ret = wasm.routeadapter_new(well_known_route_provider);
|
|
630
630
|
if (ret[2]) {
|
|
631
631
|
throw takeFromExternrefTable0(ret[1]);
|
|
632
632
|
}
|
|
633
|
-
|
|
633
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
634
|
+
RouteAdapterFinalization.register(this, this.__wbg_ptr, this);
|
|
635
|
+
return this;
|
|
634
636
|
}
|
|
635
637
|
}
|
|
638
|
+
if (Symbol.dispose) RouteAdapter.prototype[Symbol.dispose] = RouteAdapter.prototype.free;
|
|
639
|
+
|
|
640
|
+
export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
|
|
641
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
642
|
+
return ret;
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
export function __wbg_Number_bb48ca12f395cd08(arg0) {
|
|
646
|
+
const ret = Number(arg0);
|
|
647
|
+
return ret;
|
|
648
|
+
};
|
|
636
649
|
|
|
637
650
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
638
651
|
const ret = String(arg1);
|
|
@@ -642,55 +655,132 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
642
655
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
643
656
|
};
|
|
644
657
|
|
|
645
|
-
export function
|
|
646
|
-
const
|
|
658
|
+
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
|
|
659
|
+
const v = arg1;
|
|
660
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
661
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
662
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
|
|
666
|
+
const v = arg0;
|
|
667
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
668
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
672
|
+
const ret = debugString(arg1);
|
|
673
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
674
|
+
const len1 = WASM_VECTOR_LEN;
|
|
675
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
676
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
|
|
680
|
+
const ret = arg0 in arg1;
|
|
681
|
+
return ret;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
|
|
685
|
+
const ret = typeof(arg0) === 'bigint';
|
|
686
|
+
return ret;
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
|
|
690
|
+
const ret = typeof(arg0) === 'function';
|
|
691
|
+
return ret;
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
|
|
695
|
+
const val = arg0;
|
|
696
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
697
|
+
return ret;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
|
|
701
|
+
const ret = typeof(arg0) === 'string';
|
|
702
|
+
return ret;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
|
|
706
|
+
const ret = arg0 === undefined;
|
|
707
|
+
return ret;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
|
|
711
|
+
const ret = arg0 === arg1;
|
|
712
|
+
return ret;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
|
|
716
|
+
const ret = arg0 == arg1;
|
|
647
717
|
return ret;
|
|
648
718
|
};
|
|
649
719
|
|
|
650
|
-
export function
|
|
720
|
+
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
|
|
721
|
+
const obj = arg1;
|
|
722
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
723
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
724
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
728
|
+
const obj = arg1;
|
|
729
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
730
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
+
var len1 = WASM_VECTOR_LEN;
|
|
732
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
733
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
737
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
|
|
651
741
|
const ret = arg0.call(arg1);
|
|
652
742
|
return ret;
|
|
653
743
|
}, arguments) };
|
|
654
744
|
|
|
655
|
-
export function
|
|
745
|
+
export function __wbg_done_2042aa2670fb1db1(arg0) {
|
|
656
746
|
const ret = arg0.done;
|
|
657
747
|
return ret;
|
|
658
748
|
};
|
|
659
749
|
|
|
660
|
-
export function
|
|
750
|
+
export function __wbg_entries_e171b586f8f6bdbf(arg0) {
|
|
661
751
|
const ret = Object.entries(arg0);
|
|
662
752
|
return ret;
|
|
663
753
|
};
|
|
664
754
|
|
|
665
|
-
export function
|
|
755
|
+
export function __wbg_getRandomValues_1c61fac11405ffdc() { return handleError(function (arg0, arg1) {
|
|
666
756
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
667
757
|
}, arguments) };
|
|
668
758
|
|
|
669
|
-
export function
|
|
759
|
+
export function __wbg_getRandomValues_38a1ff1ea09f6cc7() { return handleError(function (arg0, arg1) {
|
|
670
760
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
671
761
|
}, arguments) };
|
|
672
762
|
|
|
673
|
-
export function
|
|
763
|
+
export function __wbg_getTime_14776bfb48a1bff9(arg0) {
|
|
674
764
|
const ret = arg0.getTime();
|
|
675
765
|
return ret;
|
|
676
766
|
};
|
|
677
767
|
|
|
678
|
-
export function
|
|
679
|
-
const ret = Reflect.get(arg0, arg1);
|
|
680
|
-
return ret;
|
|
681
|
-
}, arguments) };
|
|
682
|
-
|
|
683
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
768
|
+
export function __wbg_get_7bed016f185add81(arg0, arg1) {
|
|
684
769
|
const ret = arg0[arg1 >>> 0];
|
|
685
770
|
return ret;
|
|
686
771
|
};
|
|
687
772
|
|
|
688
|
-
export function
|
|
773
|
+
export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
|
|
774
|
+
const ret = Reflect.get(arg0, arg1);
|
|
775
|
+
return ret;
|
|
776
|
+
}, arguments) };
|
|
777
|
+
|
|
778
|
+
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
689
779
|
const ret = arg0[arg1];
|
|
690
780
|
return ret;
|
|
691
781
|
};
|
|
692
782
|
|
|
693
|
-
export function
|
|
783
|
+
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
694
784
|
let result;
|
|
695
785
|
try {
|
|
696
786
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -701,7 +791,7 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
|
701
791
|
return ret;
|
|
702
792
|
};
|
|
703
793
|
|
|
704
|
-
export function
|
|
794
|
+
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
705
795
|
let result;
|
|
706
796
|
try {
|
|
707
797
|
result = arg0 instanceof Uint8Array;
|
|
@@ -712,141 +802,119 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
|
712
802
|
return ret;
|
|
713
803
|
};
|
|
714
804
|
|
|
715
|
-
export function
|
|
805
|
+
export function __wbg_isArray_96e0af9891d0945d(arg0) {
|
|
716
806
|
const ret = Array.isArray(arg0);
|
|
717
807
|
return ret;
|
|
718
808
|
};
|
|
719
809
|
|
|
720
|
-
export function
|
|
810
|
+
export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
|
|
721
811
|
const ret = Number.isSafeInteger(arg0);
|
|
722
812
|
return ret;
|
|
723
813
|
};
|
|
724
814
|
|
|
725
|
-
export function
|
|
815
|
+
export function __wbg_iterator_e5822695327a3c39() {
|
|
726
816
|
const ret = Symbol.iterator;
|
|
727
817
|
return ret;
|
|
728
818
|
};
|
|
729
819
|
|
|
730
|
-
export function
|
|
820
|
+
export function __wbg_length_69bca3cb64fc8748(arg0) {
|
|
731
821
|
const ret = arg0.length;
|
|
732
822
|
return ret;
|
|
733
823
|
};
|
|
734
824
|
|
|
735
|
-
export function
|
|
825
|
+
export function __wbg_length_cdd215e10d9dd507(arg0) {
|
|
736
826
|
const ret = arg0.length;
|
|
737
827
|
return ret;
|
|
738
828
|
};
|
|
739
829
|
|
|
740
|
-
export function
|
|
830
|
+
export function __wbg_new_0_f9740686d739025c() {
|
|
741
831
|
const ret = new Date();
|
|
742
832
|
return ret;
|
|
743
833
|
};
|
|
744
834
|
|
|
745
|
-
export function
|
|
835
|
+
export function __wbg_new_1acc0b6eea89d040() {
|
|
746
836
|
const ret = new Object();
|
|
747
837
|
return ret;
|
|
748
838
|
};
|
|
749
839
|
|
|
750
|
-
export function
|
|
840
|
+
export function __wbg_new_5a79be3ab53b8aa5(arg0) {
|
|
841
|
+
const ret = new Uint8Array(arg0);
|
|
842
|
+
return ret;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
export function __wbg_new_68651c719dcda04e() {
|
|
751
846
|
const ret = new Map();
|
|
752
847
|
return ret;
|
|
753
848
|
};
|
|
754
849
|
|
|
755
|
-
export function
|
|
850
|
+
export function __wbg_new_e17d9f43105b08be() {
|
|
756
851
|
const ret = new Array();
|
|
757
852
|
return ret;
|
|
758
853
|
};
|
|
759
854
|
|
|
760
|
-
export function
|
|
761
|
-
const ret =
|
|
855
|
+
export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
|
|
856
|
+
const ret = arg0.next();
|
|
762
857
|
return ret;
|
|
763
|
-
};
|
|
858
|
+
}, arguments) };
|
|
764
859
|
|
|
765
|
-
export function
|
|
860
|
+
export function __wbg_next_2c826fe5dfec6b6a(arg0) {
|
|
766
861
|
const ret = arg0.next;
|
|
767
862
|
return ret;
|
|
768
863
|
};
|
|
769
864
|
|
|
770
|
-
export function
|
|
771
|
-
const ret = arg0.next();
|
|
772
|
-
return ret;
|
|
773
|
-
}, arguments) };
|
|
774
|
-
|
|
775
|
-
export function __wbg_now_807e54c39636c349() {
|
|
865
|
+
export function __wbg_now_793306c526e2e3b6() {
|
|
776
866
|
const ret = Date.now();
|
|
777
867
|
return ret;
|
|
778
868
|
};
|
|
779
869
|
|
|
780
|
-
export function
|
|
781
|
-
arg0
|
|
870
|
+
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
|
|
871
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
782
872
|
};
|
|
783
873
|
|
|
784
874
|
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
785
875
|
arg0[arg1] = arg2;
|
|
786
876
|
};
|
|
787
877
|
|
|
788
|
-
export function
|
|
789
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
878
|
+
export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
|
|
793
879
|
const ret = arg0.set(arg1, arg2);
|
|
794
880
|
return ret;
|
|
795
881
|
};
|
|
796
882
|
|
|
797
|
-
export function
|
|
798
|
-
|
|
799
|
-
return ret;
|
|
883
|
+
export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
|
|
884
|
+
arg0[arg1 >>> 0] = arg2;
|
|
800
885
|
};
|
|
801
886
|
|
|
802
|
-
export function
|
|
803
|
-
const ret =
|
|
887
|
+
export function __wbg_value_692627309814bb8c(arg0) {
|
|
888
|
+
const ret = arg0.value;
|
|
804
889
|
return ret;
|
|
805
890
|
};
|
|
806
891
|
|
|
807
|
-
export function
|
|
808
|
-
|
|
892
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
893
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
894
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
809
895
|
return ret;
|
|
810
896
|
};
|
|
811
897
|
|
|
812
|
-
export function
|
|
898
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
899
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
813
900
|
const ret = BigInt.asUintN(64, arg0);
|
|
814
901
|
return ret;
|
|
815
902
|
};
|
|
816
903
|
|
|
817
|
-
export function
|
|
818
|
-
|
|
819
|
-
const ret =
|
|
820
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
821
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
export function __wbindgen_boolean_get(arg0) {
|
|
825
|
-
const v = arg0;
|
|
826
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
827
|
-
return ret;
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
831
|
-
const ret = debugString(arg1);
|
|
832
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
833
|
-
const len1 = WASM_VECTOR_LEN;
|
|
834
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
835
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
839
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
904
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
905
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
906
|
+
const ret = arg0;
|
|
840
907
|
return ret;
|
|
841
908
|
};
|
|
842
909
|
|
|
843
|
-
export function
|
|
844
|
-
|
|
910
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
911
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
912
|
+
const ret = arg0;
|
|
845
913
|
return ret;
|
|
846
914
|
};
|
|
847
915
|
|
|
848
916
|
export function __wbindgen_init_externref_table() {
|
|
849
|
-
const table = wasm.
|
|
917
|
+
const table = wasm.__wbindgen_externrefs;
|
|
850
918
|
const offset = table.grow(4);
|
|
851
919
|
table.set(0, undefined);
|
|
852
920
|
table.set(offset + 0, undefined);
|
|
@@ -856,74 +924,3 @@ export function __wbindgen_init_externref_table() {
|
|
|
856
924
|
;
|
|
857
925
|
};
|
|
858
926
|
|
|
859
|
-
export function __wbindgen_is_bigint(arg0) {
|
|
860
|
-
const ret = typeof(arg0) === 'bigint';
|
|
861
|
-
return ret;
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
export function __wbindgen_is_function(arg0) {
|
|
865
|
-
const ret = typeof(arg0) === 'function';
|
|
866
|
-
return ret;
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
export function __wbindgen_is_object(arg0) {
|
|
870
|
-
const val = arg0;
|
|
871
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
872
|
-
return ret;
|
|
873
|
-
};
|
|
874
|
-
|
|
875
|
-
export function __wbindgen_is_string(arg0) {
|
|
876
|
-
const ret = typeof(arg0) === 'string';
|
|
877
|
-
return ret;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
881
|
-
const ret = arg0 === undefined;
|
|
882
|
-
return ret;
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
886
|
-
const ret = arg0 === arg1;
|
|
887
|
-
return ret;
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
891
|
-
const ret = arg0 == arg1;
|
|
892
|
-
return ret;
|
|
893
|
-
};
|
|
894
|
-
|
|
895
|
-
export function __wbindgen_memory() {
|
|
896
|
-
const ret = wasm.memory;
|
|
897
|
-
return ret;
|
|
898
|
-
};
|
|
899
|
-
|
|
900
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
|
901
|
-
const obj = arg1;
|
|
902
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
903
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
904
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
export function __wbindgen_number_new(arg0) {
|
|
908
|
-
const ret = arg0;
|
|
909
|
-
return ret;
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
913
|
-
const obj = arg1;
|
|
914
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
915
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
916
|
-
var len1 = WASM_VECTOR_LEN;
|
|
917
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
918
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
922
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
923
|
-
return ret;
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
export function __wbindgen_throw(arg0, arg1) {
|
|
927
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
928
|
-
};
|
|
929
|
-
|