@stadiamaps/ferrostar 0.20.0 → 0.20.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 +11 -11
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrostar.d.ts
CHANGED
|
@@ -117,10 +117,6 @@ export interface GeographicCoordinate {
|
|
|
117
117
|
lng: number;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
|
|
121
|
-
|
|
122
|
-
export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
|
|
123
|
-
|
|
124
120
|
export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
|
|
125
121
|
|
|
126
122
|
export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
|
|
@@ -149,6 +145,10 @@ export interface TripProgress {
|
|
|
149
145
|
durationRemaining: number;
|
|
150
146
|
}
|
|
151
147
|
|
|
148
|
+
export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
|
|
149
|
+
|
|
150
|
+
export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
|
|
151
|
+
|
|
152
152
|
/**
|
|
153
153
|
* JavaScript wrapper for `NavigationController`.
|
|
154
154
|
*/
|
package/ferrostar_bg.js
CHANGED
|
@@ -188,6 +188,13 @@ function debugString(val) {
|
|
|
188
188
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
189
189
|
return className;
|
|
190
190
|
}
|
|
191
|
+
|
|
192
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
193
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
194
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
195
|
+
WASM_VECTOR_LEN = arg.length;
|
|
196
|
+
return ptr;
|
|
197
|
+
}
|
|
191
198
|
/**
|
|
192
199
|
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
193
200
|
* @param {any} coordinates
|
|
@@ -270,13 +277,6 @@ export function advanceLocationSimulation(state) {
|
|
|
270
277
|
return takeObject(ret);
|
|
271
278
|
}
|
|
272
279
|
|
|
273
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
274
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
275
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
276
|
-
WASM_VECTOR_LEN = arg.length;
|
|
277
|
-
return ptr;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
280
|
function handleError(f, args) {
|
|
281
281
|
try {
|
|
282
282
|
return f.apply(this, args);
|
|
@@ -539,8 +539,8 @@ export function __wbindgen_is_object(arg0) {
|
|
|
539
539
|
return ret;
|
|
540
540
|
};
|
|
541
541
|
|
|
542
|
-
export function
|
|
543
|
-
const ret =
|
|
542
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
543
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
544
544
|
return addHeapObject(ret);
|
|
545
545
|
};
|
|
546
546
|
|
|
@@ -554,8 +554,8 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
554
554
|
return addHeapObject(ret);
|
|
555
555
|
};
|
|
556
556
|
|
|
557
|
-
export function
|
|
558
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
557
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
558
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
559
559
|
return addHeapObject(ret);
|
|
560
560
|
};
|
|
561
561
|
|
package/ferrostar_bg.wasm
CHANGED
|
Binary file
|