@stadiamaps/ferrostar 0.32.0 → 0.33.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 +4 -4
- package/ferrostar_bg.js +9 -0
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
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";
|
|
@@ -174,6 +170,10 @@ export interface TripProgress {
|
|
|
174
170
|
durationRemaining: number;
|
|
175
171
|
}
|
|
176
172
|
|
|
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
|
@@ -95,6 +95,11 @@ function handleError(f, args) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
99
|
+
ptr = ptr >>> 0;
|
|
100
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
99
104
|
|
|
100
105
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -427,6 +432,10 @@ export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
|
427
432
|
return ret;
|
|
428
433
|
};
|
|
429
434
|
|
|
435
|
+
export function __wbg_getRandomValues_3d90134a348e46b3() { return handleError(function (arg0, arg1) {
|
|
436
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
437
|
+
}, arguments) };
|
|
438
|
+
|
|
430
439
|
export function __wbg_getRandomValues_bcb4912f16000dc4() { return handleError(function (arg0, arg1) {
|
|
431
440
|
arg0.getRandomValues(arg1);
|
|
432
441
|
}, arguments) };
|
package/ferrostar_bg.wasm
CHANGED
|
Binary file
|