@stadiamaps/ferrostar 0.36.0 → 0.37.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 +17 -17
- package/ferrostar_bg.js +7 -7
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrostar.d.ts
CHANGED
|
@@ -415,6 +415,23 @@ export interface GeographicCoordinate {
|
|
|
415
415
|
lng: number;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
+
export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Controls how simulated locations deviate from the actual route line.
|
|
422
|
+
* This simulates real-world GPS behavior where readings often have systematic bias.
|
|
423
|
+
*/
|
|
424
|
+
export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The current state of the simulation.
|
|
428
|
+
*/
|
|
429
|
+
export interface LocationSimulationState {
|
|
430
|
+
current_location: UserLocation;
|
|
431
|
+
remaining_locations: GeographicCoordinate[];
|
|
432
|
+
bias: LocationBias;
|
|
433
|
+
}
|
|
434
|
+
|
|
418
435
|
export interface NavigationControllerConfig {
|
|
419
436
|
/**
|
|
420
437
|
* Configures when navigation advances to next waypoint in the route.
|
|
@@ -539,23 +556,6 @@ export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLin
|
|
|
539
556
|
*/
|
|
540
557
|
export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
|
|
541
558
|
|
|
542
|
-
export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Controls how simulated locations deviate from the actual route line.
|
|
546
|
-
* This simulates real-world GPS behavior where readings often have systematic bias.
|
|
547
|
-
*/
|
|
548
|
-
export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* The current state of the simulation.
|
|
552
|
-
*/
|
|
553
|
-
export interface LocationSimulationState {
|
|
554
|
-
current_location: UserLocation;
|
|
555
|
-
remaining_locations: GeographicCoordinate[];
|
|
556
|
-
bias: LocationBias;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
559
|
/**
|
|
560
560
|
* JavaScript wrapper for `NavigationController`.
|
|
561
561
|
*/
|
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));
|
package/ferrostar_bg.wasm
CHANGED
|
Binary file
|