@stadiamaps/ferrostar 0.34.1 → 0.35.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 CHANGED
@@ -137,6 +137,10 @@ export interface GeographicCoordinate {
137
137
  lng: number;
138
138
  }
139
139
 
140
+ export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
141
+
142
+ export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
143
+
140
144
  export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
141
145
 
142
146
  export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
@@ -170,10 +174,6 @@ export interface TripProgress {
170
174
  durationRemaining: number;
171
175
  }
172
176
 
173
- export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
174
-
175
- export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
176
-
177
177
  /**
178
178
  * JavaScript wrapper for `NavigationController`.
179
179
  */
package/ferrostar_bg.js CHANGED
@@ -185,13 +185,6 @@ function takeFromExternrefTable0(idx) {
185
185
  wasm.__externref_table_dealloc(idx);
186
186
  return value;
187
187
  }
188
-
189
- function passArray8ToWasm0(arg, malloc) {
190
- const ptr = malloc(arg.length * 1, 1) >>> 0;
191
- getUint8ArrayMemory0().set(arg, ptr / 1);
192
- WASM_VECTOR_LEN = arg.length;
193
- return ptr;
194
- }
195
188
  /**
196
189
  * JavaScript wrapper for `location_simulation_from_coordinates`.
197
190
  * @param {any} coordinates
@@ -250,6 +243,13 @@ export function advanceLocationSimulation(state) {
250
243
  return ret;
251
244
  }
252
245
 
246
+ function passArray8ToWasm0(arg, malloc) {
247
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
248
+ getUint8ArrayMemory0().set(arg, ptr / 1);
249
+ WASM_VECTOR_LEN = arg.length;
250
+ return ptr;
251
+ }
252
+
253
253
  const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
254
254
  ? { register: () => {}, unregister: () => {} }
255
255
  : new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
@@ -432,7 +432,7 @@ export function __wbg_entries_3265d4158b33e5dc(arg0) {
432
432
  return ret;
433
433
  };
434
434
 
435
- export function __wbg_getRandomValues_3d90134a348e46b3() { return handleError(function (arg0, arg1) {
435
+ export function __wbg_getRandomValues_38097e921c2494c3() { return handleError(function (arg0, arg1) {
436
436
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
437
437
  }, arguments) };
438
438
 
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.34.1",
10
+ "version": "0.35.1",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",