@stadiamaps/ferrostar 0.26.0 → 0.28.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";
@@ -152,11 +148,14 @@ export interface LocationSimulationState {
152
148
  }
153
149
 
154
150
  export interface NavigationControllerConfig {
151
+ waypointAdvance: WaypointAdvanceMode;
155
152
  stepAdvance: StepAdvanceMode;
156
153
  routeDeviationTracking: RouteDeviationTracking;
157
154
  snappedLocationCourseFiltering: CourseFiltering;
158
155
  }
159
156
 
157
+ export type WaypointAdvanceMode = { WaypointWithinRange: number };
158
+
160
159
  export type SpecialAdvanceConditions = { AdvanceAtDistanceFromEnd: number } | { MinimumDistanceFromCurrentStepLine: number };
161
160
 
162
161
  export type StepAdvanceMode = "Manual" | { DistanceToEndOfStep: { distance: number; minimumHorizontalAccuracy: number } } | { RelativeLineStringDistance: { minimumHorizontalAccuracy: number; specialAdvanceConditions: SpecialAdvanceConditions | undefined } };
@@ -171,6 +170,10 @@ export interface TripProgress {
171
170
  durationRemaining: number;
172
171
  }
173
172
 
173
+ export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
174
+
175
+ export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
176
+
174
177
  /**
175
178
  * JavaScript wrapper for `NavigationController`.
176
179
  */
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.28.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",