@stadiamaps/ferrostar 0.31.0 → 0.31.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 +4 -4
- package/ferrostar_bg.js +7 -7
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
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
|
@@ -180,6 +180,13 @@ 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
|
+
}
|
|
183
190
|
/**
|
|
184
191
|
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
185
192
|
* @param {any} coordinates
|
|
@@ -238,13 +245,6 @@ export function advanceLocationSimulation(state) {
|
|
|
238
245
|
return ret;
|
|
239
246
|
}
|
|
240
247
|
|
|
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
|