@stadiamaps/ferrostar 0.46.0 → 0.46.1
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 +459 -472
- package/ferrostar_bg.js +213 -226
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrostar_bg.js
CHANGED
|
@@ -3,102 +3,10 @@ export function __wbg_set_wasm(val) {
|
|
|
3
3
|
wasm = val;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
11
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
12
|
-
}
|
|
13
|
-
return cachedUint8ArrayMemory0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
-
|
|
18
|
-
cachedTextDecoder.decode();
|
|
19
|
-
|
|
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
|
-
}
|
|
31
|
-
|
|
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
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
53
|
-
|
|
54
|
-
if (realloc === undefined) {
|
|
55
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
57
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
58
|
-
WASM_VECTOR_LEN = buf.length;
|
|
59
|
-
return ptr;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
let len = arg.length;
|
|
63
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
64
|
-
|
|
65
|
-
const mem = getUint8ArrayMemory0();
|
|
66
|
-
|
|
67
|
-
let offset = 0;
|
|
68
|
-
|
|
69
|
-
for (; offset < len; offset++) {
|
|
70
|
-
const code = arg.charCodeAt(offset);
|
|
71
|
-
if (code > 0x7F) break;
|
|
72
|
-
mem[ptr + offset] = code;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (offset !== len) {
|
|
76
|
-
if (offset !== 0) {
|
|
77
|
-
arg = arg.slice(offset);
|
|
78
|
-
}
|
|
79
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
80
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
81
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
82
|
-
|
|
83
|
-
offset += ret.written;
|
|
84
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
WASM_VECTOR_LEN = offset;
|
|
88
|
-
return ptr;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
let cachedDataViewMemory0 = null;
|
|
92
|
-
|
|
93
|
-
function getDataViewMemory0() {
|
|
94
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
95
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
96
|
-
}
|
|
97
|
-
return cachedDataViewMemory0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function isLikeNone(x) {
|
|
101
|
-
return x === undefined || x === null;
|
|
6
|
+
function addToExternrefTable0(obj) {
|
|
7
|
+
const idx = wasm.__externref_table_alloc();
|
|
8
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
9
|
+
return idx;
|
|
102
10
|
}
|
|
103
11
|
|
|
104
12
|
function debugString(val) {
|
|
@@ -166,10 +74,30 @@ function debugString(val) {
|
|
|
166
74
|
return className;
|
|
167
75
|
}
|
|
168
76
|
|
|
169
|
-
function
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
77
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
78
|
+
ptr = ptr >>> 0;
|
|
79
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
let cachedDataViewMemory0 = null;
|
|
83
|
+
function getDataViewMemory0() {
|
|
84
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
85
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
86
|
+
}
|
|
87
|
+
return cachedDataViewMemory0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function getStringFromWasm0(ptr, len) {
|
|
91
|
+
ptr = ptr >>> 0;
|
|
92
|
+
return decodeText(ptr, len);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let cachedUint8ArrayMemory0 = null;
|
|
96
|
+
function getUint8ArrayMemory0() {
|
|
97
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
98
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
99
|
+
}
|
|
100
|
+
return cachedUint8ArrayMemory0;
|
|
173
101
|
}
|
|
174
102
|
|
|
175
103
|
function handleError(f, args) {
|
|
@@ -181,9 +109,8 @@ function handleError(f, args) {
|
|
|
181
109
|
}
|
|
182
110
|
}
|
|
183
111
|
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
112
|
+
function isLikeNone(x) {
|
|
113
|
+
return x === undefined || x === null;
|
|
187
114
|
}
|
|
188
115
|
|
|
189
116
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -193,86 +120,110 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
193
120
|
return ptr;
|
|
194
121
|
}
|
|
195
122
|
|
|
123
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
124
|
+
if (realloc === undefined) {
|
|
125
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
126
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
127
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
128
|
+
WASM_VECTOR_LEN = buf.length;
|
|
129
|
+
return ptr;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
let len = arg.length;
|
|
133
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
134
|
+
|
|
135
|
+
const mem = getUint8ArrayMemory0();
|
|
136
|
+
|
|
137
|
+
let offset = 0;
|
|
138
|
+
|
|
139
|
+
for (; offset < len; offset++) {
|
|
140
|
+
const code = arg.charCodeAt(offset);
|
|
141
|
+
if (code > 0x7F) break;
|
|
142
|
+
mem[ptr + offset] = code;
|
|
143
|
+
}
|
|
144
|
+
if (offset !== len) {
|
|
145
|
+
if (offset !== 0) {
|
|
146
|
+
arg = arg.slice(offset);
|
|
147
|
+
}
|
|
148
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
149
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
150
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
151
|
+
|
|
152
|
+
offset += ret.written;
|
|
153
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
WASM_VECTOR_LEN = offset;
|
|
157
|
+
return ptr;
|
|
158
|
+
}
|
|
159
|
+
|
|
196
160
|
function takeFromExternrefTable0(idx) {
|
|
197
161
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
198
162
|
wasm.__externref_table_dealloc(idx);
|
|
199
163
|
return value;
|
|
200
164
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
const ret = wasm.locationSimulationFromPolyline(ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
213
|
-
if (ret[2]) {
|
|
214
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
165
|
+
|
|
166
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
167
|
+
cachedTextDecoder.decode();
|
|
168
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
169
|
+
let numBytesDecoded = 0;
|
|
170
|
+
function decodeText(ptr, len) {
|
|
171
|
+
numBytesDecoded += len;
|
|
172
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
173
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
174
|
+
cachedTextDecoder.decode();
|
|
175
|
+
numBytesDecoded = len;
|
|
215
176
|
}
|
|
216
|
-
return
|
|
177
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
217
178
|
}
|
|
218
179
|
|
|
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
|
-
}
|
|
180
|
+
const cachedTextEncoder = new TextEncoder();
|
|
228
181
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
const ret = wasm.locationSimulationFromRoute(route, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
238
|
-
if (ret[2]) {
|
|
239
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
182
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
183
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
184
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
185
|
+
view.set(buf);
|
|
186
|
+
return {
|
|
187
|
+
read: arg.length,
|
|
188
|
+
written: buf.length
|
|
189
|
+
};
|
|
240
190
|
}
|
|
241
|
-
return takeFromExternrefTable0(ret[0]);
|
|
242
191
|
}
|
|
243
192
|
|
|
244
|
-
|
|
245
|
-
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
246
|
-
* @param {any} coordinates
|
|
247
|
-
* @param {number | null | undefined} resample_distance
|
|
248
|
-
* @param {LocationBias} bias
|
|
249
|
-
* @returns {any}
|
|
250
|
-
*/
|
|
251
|
-
export function locationSimulationFromCoordinates(coordinates, resample_distance, bias) {
|
|
252
|
-
const ret = wasm.locationSimulationFromCoordinates(coordinates, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
253
|
-
if (ret[2]) {
|
|
254
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
255
|
-
}
|
|
256
|
-
return takeFromExternrefTable0(ret[0]);
|
|
257
|
-
}
|
|
193
|
+
let WASM_VECTOR_LEN = 0;
|
|
258
194
|
|
|
259
195
|
const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
260
196
|
? { register: () => {}, unregister: () => {} }
|
|
261
197
|
: new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
|
|
198
|
+
|
|
199
|
+
const NavigationReplayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
200
|
+
? { register: () => {}, unregister: () => {} }
|
|
201
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_navigationreplay_free(ptr >>> 0, 1));
|
|
202
|
+
|
|
203
|
+
const NavigationSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
204
|
+
? { register: () => {}, unregister: () => {} }
|
|
205
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsession_free(ptr >>> 0, 1));
|
|
206
|
+
|
|
207
|
+
const NavigationSessionRecordingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
208
|
+
? { register: () => {}, unregister: () => {} }
|
|
209
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsessionrecording_free(ptr >>> 0, 1));
|
|
210
|
+
|
|
211
|
+
const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
212
|
+
? { register: () => {}, unregister: () => {} }
|
|
213
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0, 1));
|
|
214
|
+
|
|
262
215
|
/**
|
|
263
216
|
* JavaScript wrapper for `NavigationController`.
|
|
264
217
|
* This wrapper is required because `NavigationController` cannot be directly converted to a JavaScript object
|
|
265
218
|
* and requires serialization/deserialization of its methods' inputs and outputs.
|
|
266
219
|
*/
|
|
267
220
|
export class NavigationController {
|
|
268
|
-
|
|
269
221
|
__destroy_into_raw() {
|
|
270
222
|
const ptr = this.__wbg_ptr;
|
|
271
223
|
this.__wbg_ptr = 0;
|
|
272
224
|
NavigationControllerFinalization.unregister(this);
|
|
273
225
|
return ptr;
|
|
274
226
|
}
|
|
275
|
-
|
|
276
227
|
free() {
|
|
277
228
|
const ptr = this.__destroy_into_raw();
|
|
278
229
|
wasm.__wbg_navigationcontroller_free(ptr, 0);
|
|
@@ -328,9 +279,6 @@ export class NavigationController {
|
|
|
328
279
|
}
|
|
329
280
|
if (Symbol.dispose) NavigationController.prototype[Symbol.dispose] = NavigationController.prototype.free;
|
|
330
281
|
|
|
331
|
-
const NavigationReplayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
332
|
-
? { register: () => {}, unregister: () => {} }
|
|
333
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_navigationreplay_free(ptr >>> 0, 1));
|
|
334
282
|
/**
|
|
335
283
|
* A WebAssembly-compatible wrapper for `NavigationReplay` that exposes its functionality as a JavaScript object.
|
|
336
284
|
*
|
|
@@ -338,14 +286,12 @@ const NavigationReplayFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
338
286
|
* and requires serialization/deserialization of its methods' inputs and outputs.
|
|
339
287
|
*/
|
|
340
288
|
export class NavigationReplay {
|
|
341
|
-
|
|
342
289
|
__destroy_into_raw() {
|
|
343
290
|
const ptr = this.__wbg_ptr;
|
|
344
291
|
this.__wbg_ptr = 0;
|
|
345
292
|
NavigationReplayFinalization.unregister(this);
|
|
346
293
|
return ptr;
|
|
347
294
|
}
|
|
348
|
-
|
|
349
295
|
free() {
|
|
350
296
|
const ptr = this.__destroy_into_raw();
|
|
351
297
|
wasm.__wbg_navigationreplay_free(ptr, 0);
|
|
@@ -416,22 +362,17 @@ export class NavigationReplay {
|
|
|
416
362
|
}
|
|
417
363
|
if (Symbol.dispose) NavigationReplay.prototype[Symbol.dispose] = NavigationReplay.prototype.free;
|
|
418
364
|
|
|
419
|
-
const NavigationSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
420
|
-
? { register: () => {}, unregister: () => {} }
|
|
421
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsession_free(ptr >>> 0, 1));
|
|
422
365
|
/**
|
|
423
366
|
* JavaScript wrapper for [`NavigationSession`] (simple version).
|
|
424
367
|
* This wrapper provides basic navigation functionality without observers.
|
|
425
368
|
*/
|
|
426
369
|
export class NavigationSession {
|
|
427
|
-
|
|
428
370
|
__destroy_into_raw() {
|
|
429
371
|
const ptr = this.__wbg_ptr;
|
|
430
372
|
this.__wbg_ptr = 0;
|
|
431
373
|
NavigationSessionFinalization.unregister(this);
|
|
432
374
|
return ptr;
|
|
433
375
|
}
|
|
434
|
-
|
|
435
376
|
free() {
|
|
436
377
|
const ptr = this.__destroy_into_raw();
|
|
437
378
|
wasm.__wbg_navigationsession_free(ptr, 0);
|
|
@@ -486,22 +427,17 @@ export class NavigationSession {
|
|
|
486
427
|
}
|
|
487
428
|
if (Symbol.dispose) NavigationSession.prototype[Symbol.dispose] = NavigationSession.prototype.free;
|
|
488
429
|
|
|
489
|
-
const NavigationSessionRecordingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
490
|
-
? { register: () => {}, unregister: () => {} }
|
|
491
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_navigationsessionrecording_free(ptr >>> 0, 1));
|
|
492
430
|
/**
|
|
493
431
|
* JavaScript wrapper for [`NavigationSession`] with recording capabilities.
|
|
494
432
|
* This version includes a NavigationRecorder observer and provides direct access to recording functionality.
|
|
495
433
|
*/
|
|
496
434
|
export class NavigationSessionRecording {
|
|
497
|
-
|
|
498
435
|
__destroy_into_raw() {
|
|
499
436
|
const ptr = this.__wbg_ptr;
|
|
500
437
|
this.__wbg_ptr = 0;
|
|
501
438
|
NavigationSessionRecordingFinalization.unregister(this);
|
|
502
439
|
return ptr;
|
|
503
440
|
}
|
|
504
|
-
|
|
505
441
|
free() {
|
|
506
442
|
const ptr = this.__destroy_into_raw();
|
|
507
443
|
wasm.__wbg_navigationsessionrecording_free(ptr, 0);
|
|
@@ -576,21 +512,16 @@ export class NavigationSessionRecording {
|
|
|
576
512
|
}
|
|
577
513
|
if (Symbol.dispose) NavigationSessionRecording.prototype[Symbol.dispose] = NavigationSessionRecording.prototype.free;
|
|
578
514
|
|
|
579
|
-
const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
580
|
-
? { register: () => {}, unregister: () => {} }
|
|
581
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0, 1));
|
|
582
515
|
/**
|
|
583
516
|
* JavaScript wrapper for `RouteAdapter`.
|
|
584
517
|
*/
|
|
585
518
|
export class RouteAdapter {
|
|
586
|
-
|
|
587
519
|
__destroy_into_raw() {
|
|
588
520
|
const ptr = this.__wbg_ptr;
|
|
589
521
|
this.__wbg_ptr = 0;
|
|
590
522
|
RouteAdapterFinalization.unregister(this);
|
|
591
523
|
return ptr;
|
|
592
524
|
}
|
|
593
|
-
|
|
594
525
|
free() {
|
|
595
526
|
const ptr = this.__destroy_into_raw();
|
|
596
527
|
wasm.__wbg_routeadapter_free(ptr, 0);
|
|
@@ -637,12 +568,70 @@ export class RouteAdapter {
|
|
|
637
568
|
}
|
|
638
569
|
if (Symbol.dispose) RouteAdapter.prototype[Symbol.dispose] = RouteAdapter.prototype.free;
|
|
639
570
|
|
|
640
|
-
|
|
571
|
+
/**
|
|
572
|
+
* JavaScript wrapper for `advance_location_simulation`.
|
|
573
|
+
* @param {any} state
|
|
574
|
+
* @returns {any}
|
|
575
|
+
*/
|
|
576
|
+
export function advanceLocationSimulation(state) {
|
|
577
|
+
const ret = wasm.advanceLocationSimulation(state);
|
|
578
|
+
return ret;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
583
|
+
* @param {any} coordinates
|
|
584
|
+
* @param {number | null | undefined} resample_distance
|
|
585
|
+
* @param {LocationBias} bias
|
|
586
|
+
* @returns {any}
|
|
587
|
+
*/
|
|
588
|
+
export function locationSimulationFromCoordinates(coordinates, resample_distance, bias) {
|
|
589
|
+
const ret = wasm.locationSimulationFromCoordinates(coordinates, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
590
|
+
if (ret[2]) {
|
|
591
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
592
|
+
}
|
|
593
|
+
return takeFromExternrefTable0(ret[0]);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
598
|
+
* @param {string} polyline
|
|
599
|
+
* @param {number} precision
|
|
600
|
+
* @param {number | null | undefined} resample_distance
|
|
601
|
+
* @param {LocationBias} bias
|
|
602
|
+
* @returns {any}
|
|
603
|
+
*/
|
|
604
|
+
export function locationSimulationFromPolyline(polyline, precision, resample_distance, bias) {
|
|
605
|
+
const ptr0 = passStringToWasm0(polyline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
606
|
+
const len0 = WASM_VECTOR_LEN;
|
|
607
|
+
const ret = wasm.locationSimulationFromPolyline(ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
608
|
+
if (ret[2]) {
|
|
609
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
610
|
+
}
|
|
611
|
+
return takeFromExternrefTable0(ret[0]);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* JavaScript wrapper for `location_simulation_from_route`.
|
|
616
|
+
* @param {any} route
|
|
617
|
+
* @param {number | null | undefined} resample_distance
|
|
618
|
+
* @param {LocationBias} bias
|
|
619
|
+
* @returns {any}
|
|
620
|
+
*/
|
|
621
|
+
export function locationSimulationFromRoute(route, resample_distance, bias) {
|
|
622
|
+
const ret = wasm.locationSimulationFromRoute(route, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
623
|
+
if (ret[2]) {
|
|
624
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
625
|
+
}
|
|
626
|
+
return takeFromExternrefTable0(ret[0]);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
|
|
641
630
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
642
631
|
return ret;
|
|
643
632
|
};
|
|
644
633
|
|
|
645
|
-
export function
|
|
634
|
+
export function __wbg_Number_2d1dcfcf4ec51736(arg0) {
|
|
646
635
|
const ret = Number(arg0);
|
|
647
636
|
return ret;
|
|
648
637
|
};
|
|
@@ -655,20 +644,20 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
655
644
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
656
645
|
};
|
|
657
646
|
|
|
658
|
-
export function
|
|
647
|
+
export function __wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d(arg0, arg1) {
|
|
659
648
|
const v = arg1;
|
|
660
649
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
661
650
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
662
651
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
663
652
|
};
|
|
664
653
|
|
|
665
|
-
export function
|
|
654
|
+
export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
|
|
666
655
|
const v = arg0;
|
|
667
656
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
668
657
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
669
658
|
};
|
|
670
659
|
|
|
671
|
-
export function
|
|
660
|
+
export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
|
|
672
661
|
const ret = debugString(arg1);
|
|
673
662
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
674
663
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -676,55 +665,55 @@ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
|
|
|
676
665
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
677
666
|
};
|
|
678
667
|
|
|
679
|
-
export function
|
|
668
|
+
export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
|
|
680
669
|
const ret = arg0 in arg1;
|
|
681
670
|
return ret;
|
|
682
671
|
};
|
|
683
672
|
|
|
684
|
-
export function
|
|
673
|
+
export function __wbg___wbindgen_is_bigint_0e1a2e3f55cfae27(arg0) {
|
|
685
674
|
const ret = typeof(arg0) === 'bigint';
|
|
686
675
|
return ret;
|
|
687
676
|
};
|
|
688
677
|
|
|
689
|
-
export function
|
|
678
|
+
export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
|
|
690
679
|
const ret = typeof(arg0) === 'function';
|
|
691
680
|
return ret;
|
|
692
681
|
};
|
|
693
682
|
|
|
694
|
-
export function
|
|
683
|
+
export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
|
|
695
684
|
const val = arg0;
|
|
696
685
|
const ret = typeof(val) === 'object' && val !== null;
|
|
697
686
|
return ret;
|
|
698
687
|
};
|
|
699
688
|
|
|
700
|
-
export function
|
|
689
|
+
export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
|
|
701
690
|
const ret = typeof(arg0) === 'string';
|
|
702
691
|
return ret;
|
|
703
692
|
};
|
|
704
693
|
|
|
705
|
-
export function
|
|
694
|
+
export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
|
|
706
695
|
const ret = arg0 === undefined;
|
|
707
696
|
return ret;
|
|
708
697
|
};
|
|
709
698
|
|
|
710
|
-
export function
|
|
699
|
+
export function __wbg___wbindgen_jsval_eq_b6101cc9cef1fe36(arg0, arg1) {
|
|
711
700
|
const ret = arg0 === arg1;
|
|
712
701
|
return ret;
|
|
713
702
|
};
|
|
714
703
|
|
|
715
|
-
export function
|
|
704
|
+
export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
|
|
716
705
|
const ret = arg0 == arg1;
|
|
717
706
|
return ret;
|
|
718
707
|
};
|
|
719
708
|
|
|
720
|
-
export function
|
|
709
|
+
export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
|
|
721
710
|
const obj = arg1;
|
|
722
711
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
723
712
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
724
713
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
725
714
|
};
|
|
726
715
|
|
|
727
|
-
export function
|
|
716
|
+
export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
|
|
728
717
|
const obj = arg1;
|
|
729
718
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
730
719
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -733,21 +722,21 @@ export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
|
|
|
733
722
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
734
723
|
};
|
|
735
724
|
|
|
736
|
-
export function
|
|
725
|
+
export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
|
|
737
726
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
738
727
|
};
|
|
739
728
|
|
|
740
|
-
export function
|
|
729
|
+
export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
|
|
741
730
|
const ret = arg0.call(arg1);
|
|
742
731
|
return ret;
|
|
743
732
|
}, arguments) };
|
|
744
733
|
|
|
745
|
-
export function
|
|
734
|
+
export function __wbg_done_62ea16af4ce34b24(arg0) {
|
|
746
735
|
const ret = arg0.done;
|
|
747
736
|
return ret;
|
|
748
737
|
};
|
|
749
738
|
|
|
750
|
-
export function
|
|
739
|
+
export function __wbg_entries_83c79938054e065f(arg0) {
|
|
751
740
|
const ret = Object.entries(arg0);
|
|
752
741
|
return ret;
|
|
753
742
|
};
|
|
@@ -760,17 +749,17 @@ export function __wbg_getRandomValues_38a1ff1ea09f6cc7() { return handleError(fu
|
|
|
760
749
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
761
750
|
}, arguments) };
|
|
762
751
|
|
|
763
|
-
export function
|
|
752
|
+
export function __wbg_getTime_ad1e9878a735af08(arg0) {
|
|
764
753
|
const ret = arg0.getTime();
|
|
765
754
|
return ret;
|
|
766
755
|
};
|
|
767
756
|
|
|
768
|
-
export function
|
|
757
|
+
export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
|
|
769
758
|
const ret = arg0[arg1 >>> 0];
|
|
770
759
|
return ret;
|
|
771
760
|
};
|
|
772
761
|
|
|
773
|
-
export function
|
|
762
|
+
export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
|
|
774
763
|
const ret = Reflect.get(arg0, arg1);
|
|
775
764
|
return ret;
|
|
776
765
|
}, arguments) };
|
|
@@ -780,7 +769,7 @@ export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
|
780
769
|
return ret;
|
|
781
770
|
};
|
|
782
771
|
|
|
783
|
-
export function
|
|
772
|
+
export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
784
773
|
let result;
|
|
785
774
|
try {
|
|
786
775
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -791,7 +780,7 @@ export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
|
791
780
|
return ret;
|
|
792
781
|
};
|
|
793
782
|
|
|
794
|
-
export function
|
|
783
|
+
export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
795
784
|
let result;
|
|
796
785
|
try {
|
|
797
786
|
result = arg0 instanceof Uint8Array;
|
|
@@ -802,72 +791,72 @@ export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
|
802
791
|
return ret;
|
|
803
792
|
};
|
|
804
793
|
|
|
805
|
-
export function
|
|
794
|
+
export function __wbg_isArray_51fd9e6422c0a395(arg0) {
|
|
806
795
|
const ret = Array.isArray(arg0);
|
|
807
796
|
return ret;
|
|
808
797
|
};
|
|
809
798
|
|
|
810
|
-
export function
|
|
799
|
+
export function __wbg_isSafeInteger_ae7d3f054d55fa16(arg0) {
|
|
811
800
|
const ret = Number.isSafeInteger(arg0);
|
|
812
801
|
return ret;
|
|
813
802
|
};
|
|
814
803
|
|
|
815
|
-
export function
|
|
804
|
+
export function __wbg_iterator_27b7c8b35ab3e86b() {
|
|
816
805
|
const ret = Symbol.iterator;
|
|
817
806
|
return ret;
|
|
818
807
|
};
|
|
819
808
|
|
|
820
|
-
export function
|
|
809
|
+
export function __wbg_length_22ac23eaec9d8053(arg0) {
|
|
821
810
|
const ret = arg0.length;
|
|
822
811
|
return ret;
|
|
823
812
|
};
|
|
824
813
|
|
|
825
|
-
export function
|
|
814
|
+
export function __wbg_length_d45040a40c570362(arg0) {
|
|
826
815
|
const ret = arg0.length;
|
|
827
816
|
return ret;
|
|
828
817
|
};
|
|
829
818
|
|
|
830
|
-
export function
|
|
819
|
+
export function __wbg_new_0_23cedd11d9b40c9d() {
|
|
831
820
|
const ret = new Date();
|
|
832
821
|
return ret;
|
|
833
822
|
};
|
|
834
823
|
|
|
835
|
-
export function
|
|
824
|
+
export function __wbg_new_1ba21ce319a06297() {
|
|
836
825
|
const ret = new Object();
|
|
837
826
|
return ret;
|
|
838
827
|
};
|
|
839
828
|
|
|
840
|
-
export function
|
|
829
|
+
export function __wbg_new_25f239778d6112b9() {
|
|
830
|
+
const ret = new Array();
|
|
831
|
+
return ret;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
export function __wbg_new_6421f6084cc5bc5a(arg0) {
|
|
841
835
|
const ret = new Uint8Array(arg0);
|
|
842
836
|
return ret;
|
|
843
837
|
};
|
|
844
838
|
|
|
845
|
-
export function
|
|
839
|
+
export function __wbg_new_b546ae120718850e() {
|
|
846
840
|
const ret = new Map();
|
|
847
841
|
return ret;
|
|
848
842
|
};
|
|
849
843
|
|
|
850
|
-
export function
|
|
851
|
-
const ret =
|
|
844
|
+
export function __wbg_next_138a17bbf04e926c(arg0) {
|
|
845
|
+
const ret = arg0.next;
|
|
852
846
|
return ret;
|
|
853
847
|
};
|
|
854
848
|
|
|
855
|
-
export function
|
|
849
|
+
export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
|
|
856
850
|
const ret = arg0.next();
|
|
857
851
|
return ret;
|
|
858
852
|
}, arguments) };
|
|
859
853
|
|
|
860
|
-
export function
|
|
861
|
-
const ret = arg0.next;
|
|
862
|
-
return ret;
|
|
863
|
-
};
|
|
864
|
-
|
|
865
|
-
export function __wbg_now_793306c526e2e3b6() {
|
|
854
|
+
export function __wbg_now_69d776cd24f5215b() {
|
|
866
855
|
const ret = Date.now();
|
|
867
856
|
return ret;
|
|
868
857
|
};
|
|
869
858
|
|
|
870
|
-
export function
|
|
859
|
+
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
871
860
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
872
861
|
};
|
|
873
862
|
|
|
@@ -875,16 +864,16 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
875
864
|
arg0[arg1] = arg2;
|
|
876
865
|
};
|
|
877
866
|
|
|
878
|
-
export function
|
|
879
|
-
|
|
880
|
-
return ret;
|
|
867
|
+
export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
|
|
868
|
+
arg0[arg1 >>> 0] = arg2;
|
|
881
869
|
};
|
|
882
870
|
|
|
883
|
-
export function
|
|
884
|
-
|
|
871
|
+
export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
|
|
872
|
+
const ret = arg0.set(arg1, arg2);
|
|
873
|
+
return ret;
|
|
885
874
|
};
|
|
886
875
|
|
|
887
|
-
export function
|
|
876
|
+
export function __wbg_value_57b7b035e117f7ee(arg0) {
|
|
888
877
|
const ret = arg0.value;
|
|
889
878
|
return ret;
|
|
890
879
|
};
|
|
@@ -921,6 +910,4 @@ export function __wbindgen_init_externref_table() {
|
|
|
921
910
|
table.set(offset + 1, null);
|
|
922
911
|
table.set(offset + 2, true);
|
|
923
912
|
table.set(offset + 3, false);
|
|
924
|
-
;
|
|
925
913
|
};
|
|
926
|
-
|