@stadiamaps/ferrostar 0.10.0 → 0.11.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.js CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  import * as wasm from "./ferrostar_bg.wasm";
2
3
  import { __wbg_set_wasm } from "./ferrostar_bg.js";
3
4
  __wbg_set_wasm(wasm);
package/ferrostar_bg.js CHANGED
@@ -28,22 +28,13 @@ function isLikeNone(x) {
28
28
  return x === undefined || x === null;
29
29
  }
30
30
 
31
- let cachedFloat64Memory0 = null;
31
+ let cachedDataViewMemory0 = null;
32
32
 
33
- function getFloat64Memory0() {
34
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
35
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
33
+ function getDataViewMemory0() {
34
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
35
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
36
36
  }
37
- return cachedFloat64Memory0;
38
- }
39
-
40
- let cachedInt32Memory0 = null;
41
-
42
- function getInt32Memory0() {
43
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
44
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
45
- }
46
- return cachedInt32Memory0;
37
+ return cachedDataViewMemory0;
47
38
  }
48
39
 
49
40
  function addHeapObject(obj) {
@@ -57,13 +48,13 @@ function addHeapObject(obj) {
57
48
 
58
49
  let WASM_VECTOR_LEN = 0;
59
50
 
60
- let cachedUint8Memory0 = null;
51
+ let cachedUint8ArrayMemory0 = null;
61
52
 
62
- function getUint8Memory0() {
63
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
64
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
53
+ function getUint8ArrayMemory0() {
54
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
55
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
65
56
  }
66
- return cachedUint8Memory0;
57
+ return cachedUint8ArrayMemory0;
67
58
  }
68
59
 
69
60
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
@@ -88,7 +79,7 @@ function passStringToWasm0(arg, malloc, realloc) {
88
79
  if (realloc === undefined) {
89
80
  const buf = cachedTextEncoder.encode(arg);
90
81
  const ptr = malloc(buf.length, 1) >>> 0;
91
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
82
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
92
83
  WASM_VECTOR_LEN = buf.length;
93
84
  return ptr;
94
85
  }
@@ -96,7 +87,7 @@ function passStringToWasm0(arg, malloc, realloc) {
96
87
  let len = arg.length;
97
88
  let ptr = malloc(len, 1) >>> 0;
98
89
 
99
- const mem = getUint8Memory0();
90
+ const mem = getUint8ArrayMemory0();
100
91
 
101
92
  let offset = 0;
102
93
 
@@ -111,7 +102,7 @@ function passStringToWasm0(arg, malloc, realloc) {
111
102
  arg = arg.slice(offset);
112
103
  }
113
104
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
114
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
105
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
115
106
  const ret = encodeString(arg, view);
116
107
 
117
108
  offset += ret.written;
@@ -130,16 +121,7 @@ cachedTextDecoder.decode();
130
121
 
131
122
  function getStringFromWasm0(ptr, len) {
132
123
  ptr = ptr >>> 0;
133
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
134
- }
135
-
136
- let cachedBigInt64Memory0 = null;
137
-
138
- function getBigInt64Memory0() {
139
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
140
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
141
- }
142
- return cachedBigInt64Memory0;
124
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
143
125
  }
144
126
 
145
127
  function debugString(val) {
@@ -216,9 +198,9 @@ export function locationSimulationFromCoordinates(coordinates, resample_distance
216
198
  try {
217
199
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
218
200
  wasm.locationSimulationFromCoordinates(retptr, addHeapObject(coordinates), !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
219
- var r0 = getInt32Memory0()[retptr / 4 + 0];
220
- var r1 = getInt32Memory0()[retptr / 4 + 1];
221
- var r2 = getInt32Memory0()[retptr / 4 + 2];
201
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
202
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
203
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
222
204
  if (r2) {
223
205
  throw takeObject(r1);
224
206
  }
@@ -238,9 +220,9 @@ export function locationSimulationFromRoute(route, resample_distance) {
238
220
  try {
239
221
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
222
  wasm.locationSimulationFromRoute(retptr, addHeapObject(route), !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
241
- var r0 = getInt32Memory0()[retptr / 4 + 0];
242
- var r1 = getInt32Memory0()[retptr / 4 + 1];
243
- var r2 = getInt32Memory0()[retptr / 4 + 2];
223
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
224
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
225
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
244
226
  if (r2) {
245
227
  throw takeObject(r1);
246
228
  }
@@ -263,9 +245,9 @@ export function locationSimulationFromPolyline(polyline, precision, resample_dis
263
245
  const ptr0 = passStringToWasm0(polyline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
264
246
  const len0 = WASM_VECTOR_LEN;
265
247
  wasm.locationSimulationFromPolyline(retptr, ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
266
- var r0 = getInt32Memory0()[retptr / 4 + 0];
267
- var r1 = getInt32Memory0()[retptr / 4 + 1];
268
- var r2 = getInt32Memory0()[retptr / 4 + 2];
248
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
249
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
250
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
269
251
  if (r2) {
270
252
  throw takeObject(r1);
271
253
  }
@@ -287,7 +269,7 @@ export function advanceLocationSimulation(state) {
287
269
 
288
270
  function passArray8ToWasm0(arg, malloc) {
289
271
  const ptr = malloc(arg.length * 1, 1) >>> 0;
290
- getUint8Memory0().set(arg, ptr / 1);
272
+ getUint8ArrayMemory0().set(arg, ptr / 1);
291
273
  WASM_VECTOR_LEN = arg.length;
292
274
  return ptr;
293
275
  }
@@ -302,7 +284,7 @@ function handleError(f, args) {
302
284
 
303
285
  const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
304
286
  ? { register: () => {}, unregister: () => {} }
305
- : new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0));
287
+ : new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
306
288
  /**
307
289
  * JavaScript wrapper for `NavigationController`.
308
290
  */
@@ -317,7 +299,7 @@ export class NavigationController {
317
299
 
318
300
  free() {
319
301
  const ptr = this.__destroy_into_raw();
320
- wasm.__wbg_navigationcontroller_free(ptr);
302
+ wasm.__wbg_navigationcontroller_free(ptr, 0);
321
303
  }
322
304
  /**
323
305
  * @param {any} route
@@ -327,13 +309,14 @@ export class NavigationController {
327
309
  try {
328
310
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
329
311
  wasm.navigationcontroller_new(retptr, addHeapObject(route), addHeapObject(config));
330
- var r0 = getInt32Memory0()[retptr / 4 + 0];
331
- var r1 = getInt32Memory0()[retptr / 4 + 1];
332
- var r2 = getInt32Memory0()[retptr / 4 + 2];
312
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
313
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
314
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
333
315
  if (r2) {
334
316
  throw takeObject(r1);
335
317
  }
336
318
  this.__wbg_ptr = r0 >>> 0;
319
+ NavigationControllerFinalization.register(this, this.__wbg_ptr, this);
337
320
  return this;
338
321
  } finally {
339
322
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -347,9 +330,9 @@ export class NavigationController {
347
330
  try {
348
331
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
349
332
  wasm.navigationcontroller_getInitialState(retptr, this.__wbg_ptr, addHeapObject(location));
350
- var r0 = getInt32Memory0()[retptr / 4 + 0];
351
- var r1 = getInt32Memory0()[retptr / 4 + 1];
352
- var r2 = getInt32Memory0()[retptr / 4 + 2];
333
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
334
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
335
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
353
336
  if (r2) {
354
337
  throw takeObject(r1);
355
338
  }
@@ -366,9 +349,9 @@ export class NavigationController {
366
349
  try {
367
350
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
368
351
  wasm.navigationcontroller_advance_to_next_step(retptr, this.__wbg_ptr, addHeapObject(state));
369
- var r0 = getInt32Memory0()[retptr / 4 + 0];
370
- var r1 = getInt32Memory0()[retptr / 4 + 1];
371
- var r2 = getInt32Memory0()[retptr / 4 + 2];
352
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
353
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
354
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
372
355
  if (r2) {
373
356
  throw takeObject(r1);
374
357
  }
@@ -386,9 +369,9 @@ export class NavigationController {
386
369
  try {
387
370
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
388
371
  wasm.navigationcontroller_updateUserLocation(retptr, this.__wbg_ptr, addHeapObject(location), addHeapObject(state));
389
- var r0 = getInt32Memory0()[retptr / 4 + 0];
390
- var r1 = getInt32Memory0()[retptr / 4 + 1];
391
- var r2 = getInt32Memory0()[retptr / 4 + 2];
372
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
373
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
374
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
392
375
  if (r2) {
393
376
  throw takeObject(r1);
394
377
  }
@@ -401,7 +384,7 @@ export class NavigationController {
401
384
 
402
385
  const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
403
386
  ? { register: () => {}, unregister: () => {} }
404
- : new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0));
387
+ : new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0, 1));
405
388
  /**
406
389
  * JavaScript wrapper for `RouteAdapter`.
407
390
  */
@@ -416,7 +399,7 @@ export class RouteAdapter {
416
399
 
417
400
  free() {
418
401
  const ptr = this.__destroy_into_raw();
419
- wasm.__wbg_routeadapter_free(ptr);
402
+ wasm.__wbg_routeadapter_free(ptr, 0);
420
403
  }
421
404
  /**
422
405
  * Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
@@ -435,13 +418,14 @@ export class RouteAdapter {
435
418
  var ptr2 = isLikeNone(costing_options_json) ? 0 : passStringToWasm0(costing_options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
436
419
  var len2 = WASM_VECTOR_LEN;
437
420
  wasm.routeadapter_new(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
438
- var r0 = getInt32Memory0()[retptr / 4 + 0];
439
- var r1 = getInt32Memory0()[retptr / 4 + 1];
440
- var r2 = getInt32Memory0()[retptr / 4 + 2];
421
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
422
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
423
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
441
424
  if (r2) {
442
425
  throw takeObject(r1);
443
426
  }
444
427
  this.__wbg_ptr = r0 >>> 0;
428
+ RouteAdapterFinalization.register(this, this.__wbg_ptr, this);
445
429
  return this;
446
430
  } finally {
447
431
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -456,9 +440,9 @@ export class RouteAdapter {
456
440
  try {
457
441
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
458
442
  wasm.routeadapter_generateRequest(retptr, this.__wbg_ptr, addHeapObject(user_location), addHeapObject(waypoints));
459
- var r0 = getInt32Memory0()[retptr / 4 + 0];
460
- var r1 = getInt32Memory0()[retptr / 4 + 1];
461
- var r2 = getInt32Memory0()[retptr / 4 + 2];
443
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
444
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
445
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
462
446
  if (r2) {
463
447
  throw takeObject(r1);
464
448
  }
@@ -477,9 +461,9 @@ export class RouteAdapter {
477
461
  const ptr0 = passArray8ToWasm0(response, wasm.__wbindgen_malloc);
478
462
  const len0 = WASM_VECTOR_LEN;
479
463
  wasm.routeadapter_parseResponse(retptr, this.__wbg_ptr, ptr0, len0);
480
- var r0 = getInt32Memory0()[retptr / 4 + 0];
481
- var r1 = getInt32Memory0()[retptr / 4 + 1];
482
- var r2 = getInt32Memory0()[retptr / 4 + 2];
464
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
465
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
466
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
483
467
  if (r2) {
484
468
  throw takeObject(r1);
485
469
  }
@@ -507,8 +491,8 @@ export function __wbindgen_in(arg0, arg1) {
507
491
  export function __wbindgen_number_get(arg0, arg1) {
508
492
  const obj = getObject(arg1);
509
493
  const ret = typeof(obj) === 'number' ? obj : undefined;
510
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
511
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
494
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
495
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
512
496
  };
513
497
 
514
498
  export function __wbindgen_is_bigint(arg0) {
@@ -536,8 +520,8 @@ export function __wbindgen_string_get(arg0, arg1) {
536
520
  const ret = typeof(obj) === 'string' ? obj : undefined;
537
521
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
538
522
  var len1 = WASM_VECTOR_LEN;
539
- getInt32Memory0()[arg0 / 4 + 1] = len1;
540
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
523
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
524
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
541
525
  };
542
526
 
543
527
  export function __wbindgen_is_object(arg0) {
@@ -546,13 +530,13 @@ export function __wbindgen_is_object(arg0) {
546
530
  return ret;
547
531
  };
548
532
 
549
- export function __wbindgen_string_new(arg0, arg1) {
550
- const ret = getStringFromWasm0(arg0, arg1);
533
+ export function __wbindgen_error_new(arg0, arg1) {
534
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
551
535
  return addHeapObject(ret);
552
536
  };
553
537
 
554
- export function __wbindgen_error_new(arg0, arg1) {
555
- const ret = new Error(getStringFromWasm0(arg0, arg1));
538
+ export function __wbindgen_string_new(arg0, arg1) {
539
+ const ret = getStringFromWasm0(arg0, arg1);
556
540
  return addHeapObject(ret);
557
541
  };
558
542
 
@@ -581,8 +565,8 @@ export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
581
565
  const ret = String(getObject(arg1));
582
566
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
583
567
  const len1 = WASM_VECTOR_LEN;
584
- getInt32Memory0()[arg0 / 4 + 1] = len1;
585
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
568
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
569
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
586
570
  };
587
571
 
588
572
  export function __wbindgen_number_new(arg0) {
@@ -642,17 +626,17 @@ export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(fu
642
626
  getObject(arg0).getRandomValues(getObject(arg1));
643
627
  }, arguments) };
644
628
 
645
- export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
629
+ export function __wbg_get_3baa728f9d58d3f6(arg0, arg1) {
646
630
  const ret = getObject(arg0)[arg1 >>> 0];
647
631
  return addHeapObject(ret);
648
632
  };
649
633
 
650
- export function __wbg_length_cd7af8117672b8b8(arg0) {
634
+ export function __wbg_length_ae22078168b726f5(arg0) {
651
635
  const ret = getObject(arg0).length;
652
636
  return ret;
653
637
  };
654
638
 
655
- export function __wbg_new_16b304a2cfa7ff4a() {
639
+ export function __wbg_new_a220cf903aa02ca2() {
656
640
  const ret = new Array();
657
641
  return addHeapObject(ret);
658
642
  };
@@ -662,86 +646,86 @@ export function __wbindgen_is_function(arg0) {
662
646
  return ret;
663
647
  };
664
648
 
665
- export function __wbg_newnoargs_e258087cd0daa0ea(arg0, arg1) {
649
+ export function __wbg_newnoargs_76313bd6ff35d0f2(arg0, arg1) {
666
650
  const ret = new Function(getStringFromWasm0(arg0, arg1));
667
651
  return addHeapObject(ret);
668
652
  };
669
653
 
670
- export function __wbg_new_d9bc3a0147634640() {
654
+ export function __wbg_new_8608a2b51a5f6737() {
671
655
  const ret = new Map();
672
656
  return addHeapObject(ret);
673
657
  };
674
658
 
675
- export function __wbg_next_40fc327bfc8770e6(arg0) {
659
+ export function __wbg_next_de3e9db4440638b2(arg0) {
676
660
  const ret = getObject(arg0).next;
677
661
  return addHeapObject(ret);
678
662
  };
679
663
 
680
- export function __wbg_next_196c84450b364254() { return handleError(function (arg0) {
664
+ export function __wbg_next_f9cb570345655b9a() { return handleError(function (arg0) {
681
665
  const ret = getObject(arg0).next();
682
666
  return addHeapObject(ret);
683
667
  }, arguments) };
684
668
 
685
- export function __wbg_done_298b57d23c0fc80c(arg0) {
669
+ export function __wbg_done_bfda7aa8f252b39f(arg0) {
686
670
  const ret = getObject(arg0).done;
687
671
  return ret;
688
672
  };
689
673
 
690
- export function __wbg_value_d93c65011f51a456(arg0) {
674
+ export function __wbg_value_6d39332ab4788d86(arg0) {
691
675
  const ret = getObject(arg0).value;
692
676
  return addHeapObject(ret);
693
677
  };
694
678
 
695
- export function __wbg_iterator_2cee6dadfd956dfa() {
679
+ export function __wbg_iterator_888179a48810a9fe() {
696
680
  const ret = Symbol.iterator;
697
681
  return addHeapObject(ret);
698
682
  };
699
683
 
700
- export function __wbg_get_e3c254076557e348() { return handleError(function (arg0, arg1) {
684
+ export function __wbg_get_224d16597dbbfd96() { return handleError(function (arg0, arg1) {
701
685
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
702
686
  return addHeapObject(ret);
703
687
  }, arguments) };
704
688
 
705
- export function __wbg_call_27c0f87801dedf93() { return handleError(function (arg0, arg1) {
689
+ export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) {
706
690
  const ret = getObject(arg0).call(getObject(arg1));
707
691
  return addHeapObject(ret);
708
692
  }, arguments) };
709
693
 
710
- export function __wbg_new_72fb9a18b5ae2624() {
694
+ export function __wbg_new_525245e2b9901204() {
711
695
  const ret = new Object();
712
696
  return addHeapObject(ret);
713
697
  };
714
698
 
715
- export function __wbg_self_ce0dbfc45cf2f5be() { return handleError(function () {
699
+ export function __wbg_self_3093d5d1f7bcb682() { return handleError(function () {
716
700
  const ret = self.self;
717
701
  return addHeapObject(ret);
718
702
  }, arguments) };
719
703
 
720
- export function __wbg_window_c6fb939a7f436783() { return handleError(function () {
704
+ export function __wbg_window_3bcfc4d31bc012f8() { return handleError(function () {
721
705
  const ret = window.window;
722
706
  return addHeapObject(ret);
723
707
  }, arguments) };
724
708
 
725
- export function __wbg_globalThis_d1e6af4856ba331b() { return handleError(function () {
709
+ export function __wbg_globalThis_86b222e13bdf32ed() { return handleError(function () {
726
710
  const ret = globalThis.globalThis;
727
711
  return addHeapObject(ret);
728
712
  }, arguments) };
729
713
 
730
- export function __wbg_global_207b558942527489() { return handleError(function () {
714
+ export function __wbg_global_e5a3fe56f8be9485() { return handleError(function () {
731
715
  const ret = global.global;
732
716
  return addHeapObject(ret);
733
717
  }, arguments) };
734
718
 
735
- export function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {
719
+ export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) {
736
720
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
737
721
  };
738
722
 
739
- export function __wbg_isArray_2ab64d95e09ea0ae(arg0) {
723
+ export function __wbg_isArray_8364a5371e9737d8(arg0) {
740
724
  const ret = Array.isArray(getObject(arg0));
741
725
  return ret;
742
726
  };
743
727
 
744
- export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
728
+ export function __wbg_instanceof_ArrayBuffer_61dfc3198373c902(arg0) {
745
729
  let result;
746
730
  try {
747
731
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -752,56 +736,56 @@ export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
752
736
  return ret;
753
737
  };
754
738
 
755
- export function __wbg_call_b3ca7c6051f9bec1() { return handleError(function (arg0, arg1, arg2) {
739
+ export function __wbg_call_89af060b4e1523f2() { return handleError(function (arg0, arg1, arg2) {
756
740
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
757
741
  return addHeapObject(ret);
758
742
  }, arguments) };
759
743
 
760
- export function __wbg_set_8417257aaedc936b(arg0, arg1, arg2) {
744
+ export function __wbg_set_49185437f0ab06f8(arg0, arg1, arg2) {
761
745
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
762
746
  return addHeapObject(ret);
763
747
  };
764
748
 
765
- export function __wbg_isSafeInteger_f7b04ef02296c4d2(arg0) {
749
+ export function __wbg_isSafeInteger_7f1ed56200d90674(arg0) {
766
750
  const ret = Number.isSafeInteger(getObject(arg0));
767
751
  return ret;
768
752
  };
769
753
 
770
- export function __wbg_now_3014639a94423537() {
754
+ export function __wbg_now_b7a162010a9e75b4() {
771
755
  const ret = Date.now();
772
756
  return ret;
773
757
  };
774
758
 
775
- export function __wbg_entries_95cc2c823b285a09(arg0) {
759
+ export function __wbg_entries_7a0e06255456ebcd(arg0) {
776
760
  const ret = Object.entries(getObject(arg0));
777
761
  return addHeapObject(ret);
778
762
  };
779
763
 
780
- export function __wbg_buffer_12d079cc21e14bdb(arg0) {
764
+ export function __wbg_buffer_b7b08af79b0b0974(arg0) {
781
765
  const ret = getObject(arg0).buffer;
782
766
  return addHeapObject(ret);
783
767
  };
784
768
 
785
- export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(arg0, arg1, arg2) {
769
+ export function __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9(arg0, arg1, arg2) {
786
770
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
787
771
  return addHeapObject(ret);
788
772
  };
789
773
 
790
- export function __wbg_new_63b92bc8671ed464(arg0) {
774
+ export function __wbg_new_ea1883e1e5e86686(arg0) {
791
775
  const ret = new Uint8Array(getObject(arg0));
792
776
  return addHeapObject(ret);
793
777
  };
794
778
 
795
- export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
779
+ export function __wbg_set_d1e79e2388520f18(arg0, arg1, arg2) {
796
780
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
797
781
  };
798
782
 
799
- export function __wbg_length_c20a40f15020d68a(arg0) {
783
+ export function __wbg_length_8339fcf5d8ecd12e(arg0) {
800
784
  const ret = getObject(arg0).length;
801
785
  return ret;
802
786
  };
803
787
 
804
- export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
788
+ export function __wbg_instanceof_Uint8Array_247a91427532499e(arg0) {
805
789
  let result;
806
790
  try {
807
791
  result = getObject(arg0) instanceof Uint8Array;
@@ -812,12 +796,12 @@ export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
812
796
  return ret;
813
797
  };
814
798
 
815
- export function __wbg_newwithlength_e9b4878cebadb3d3(arg0) {
799
+ export function __wbg_newwithlength_ec548f448387c968(arg0) {
816
800
  const ret = new Uint8Array(arg0 >>> 0);
817
801
  return addHeapObject(ret);
818
802
  };
819
803
 
820
- export function __wbg_subarray_a1f73cd4b5b42fe1(arg0, arg1, arg2) {
804
+ export function __wbg_subarray_7c2e3576afe181d1(arg0, arg1, arg2) {
821
805
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
822
806
  return addHeapObject(ret);
823
807
  };
@@ -825,16 +809,16 @@ export function __wbg_subarray_a1f73cd4b5b42fe1(arg0, arg1, arg2) {
825
809
  export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
826
810
  const v = getObject(arg1);
827
811
  const ret = typeof(v) === 'bigint' ? v : undefined;
828
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
829
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
812
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
813
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
830
814
  };
831
815
 
832
816
  export function __wbindgen_debug_string(arg0, arg1) {
833
817
  const ret = debugString(getObject(arg1));
834
818
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
835
819
  const len1 = WASM_VECTOR_LEN;
836
- getInt32Memory0()[arg0 / 4 + 1] = len1;
837
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
820
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
821
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
838
822
  };
839
823
 
840
824
  export function __wbindgen_throw(arg0, arg1) {
package/ferrostar_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "Luke Seelenbinder <luke@stadiamaps.com>"
8
8
  ],
9
9
  "description": "The core of modern turn-by-turn navigation.",
10
- "version": "0.10.0",
10
+ "version": "0.11.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",