@stadiamaps/ferrostar 0.26.0 → 0.27.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 CHANGED
@@ -137,10 +137,6 @@ 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
-
144
140
  export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
145
141
 
146
142
  export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
@@ -171,6 +167,10 @@ export interface TripProgress {
171
167
  durationRemaining: number;
172
168
  }
173
169
 
170
+ export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
171
+
172
+ export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
173
+
174
174
  /**
175
175
  * JavaScript wrapper for `NavigationController`.
176
176
  */
package/ferrostar_bg.js CHANGED
@@ -180,13 +180,6 @@ function takeFromExternrefTable0(idx) {
180
180
  wasm.__externref_table_dealloc(idx);
181
181
  return value;
182
182
  }
183
-
184
- function passArray8ToWasm0(arg, malloc) {
185
- const ptr = malloc(arg.length * 1, 1) >>> 0;
186
- getUint8ArrayMemory0().set(arg, ptr / 1);
187
- WASM_VECTOR_LEN = arg.length;
188
- return ptr;
189
- }
190
183
  /**
191
184
  * JavaScript wrapper for `location_simulation_from_coordinates`.
192
185
  * @param {any} coordinates
@@ -245,6 +238,13 @@ export function advanceLocationSimulation(state) {
245
238
  return ret;
246
239
  }
247
240
 
241
+ function passArray8ToWasm0(arg, malloc) {
242
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
243
+ getUint8ArrayMemory0().set(arg, ptr / 1);
244
+ WASM_VECTOR_LEN = arg.length;
245
+ return ptr;
246
+ }
247
+
248
248
  const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
249
249
  ? { register: () => {}, unregister: () => {} }
250
250
  : new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
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.26.0",
10
+ "version": "0.27.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",