@stadiamaps/ferrostar 0.24.0 → 0.26.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 +24 -65
- package/ferrostar.js +2 -2
- package/ferrostar_bg.js +373 -467
- package/ferrostar_bg.wasm +0 -0
- package/package.json +1 -1
package/ferrostar.d.ts
CHANGED
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
5
|
-
|
|
6
|
-
* @param {number | undefined} resample_distance
|
|
7
|
-
* @param {LocationBias} bias
|
|
8
|
-
* @returns {any}
|
|
9
|
-
*/
|
|
4
|
+
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
5
|
+
*/
|
|
10
6
|
export function locationSimulationFromCoordinates(coordinates: any, resample_distance: number | undefined, bias: LocationBias): any;
|
|
11
7
|
/**
|
|
12
|
-
* JavaScript wrapper for `location_simulation_from_route`.
|
|
13
|
-
|
|
14
|
-
* @param {number | undefined} resample_distance
|
|
15
|
-
* @param {LocationBias} bias
|
|
16
|
-
* @returns {any}
|
|
17
|
-
*/
|
|
8
|
+
* JavaScript wrapper for `location_simulation_from_route`.
|
|
9
|
+
*/
|
|
18
10
|
export function locationSimulationFromRoute(route: any, resample_distance: number | undefined, bias: LocationBias): any;
|
|
19
11
|
/**
|
|
20
|
-
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
21
|
-
|
|
22
|
-
* @param {number} precision
|
|
23
|
-
* @param {number | undefined} resample_distance
|
|
24
|
-
* @param {LocationBias} bias
|
|
25
|
-
* @returns {any}
|
|
26
|
-
*/
|
|
12
|
+
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
13
|
+
*/
|
|
27
14
|
export function locationSimulationFromPolyline(polyline: string, precision: number, resample_distance: number | undefined, bias: LocationBias): any;
|
|
28
15
|
/**
|
|
29
|
-
* JavaScript wrapper for `advance_location_simulation`.
|
|
30
|
-
|
|
31
|
-
* @returns {any}
|
|
32
|
-
*/
|
|
16
|
+
* JavaScript wrapper for `advance_location_simulation`.
|
|
17
|
+
*/
|
|
33
18
|
export function advanceLocationSimulation(state: any): any;
|
|
34
19
|
export interface VisualInstruction {
|
|
35
20
|
primaryContent: VisualInstructionContent;
|
|
@@ -44,6 +29,7 @@ export interface VisualInstructionContent {
|
|
|
44
29
|
maneuverModifier: ManeuverModifier | undefined;
|
|
45
30
|
roundaboutExitDegrees: number | undefined;
|
|
46
31
|
laneInfo: LaneInfo[] | undefined;
|
|
32
|
+
exitNumbers: string[];
|
|
47
33
|
}
|
|
48
34
|
|
|
49
35
|
export interface LaneInfo {
|
|
@@ -151,6 +137,10 @@ export interface GeographicCoordinate {
|
|
|
151
137
|
lng: number;
|
|
152
138
|
}
|
|
153
139
|
|
|
140
|
+
export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
|
|
141
|
+
|
|
142
|
+
export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
|
|
143
|
+
|
|
154
144
|
export type SimulationError = { PolylineError: { error: string } } | "NotEnoughPoints";
|
|
155
145
|
|
|
156
146
|
export type LocationBias = { Left: number } | { Right: number } | { Random: number } | "None";
|
|
@@ -167,7 +157,9 @@ export interface NavigationControllerConfig {
|
|
|
167
157
|
snappedLocationCourseFiltering: CourseFiltering;
|
|
168
158
|
}
|
|
169
159
|
|
|
170
|
-
export type
|
|
160
|
+
export type SpecialAdvanceConditions = { AdvanceAtDistanceFromEnd: number } | { MinimumDistanceFromCurrentStepLine: number };
|
|
161
|
+
|
|
162
|
+
export type StepAdvanceMode = "Manual" | { DistanceToEndOfStep: { distance: number; minimumHorizontalAccuracy: number } } | { RelativeLineStringDistance: { minimumHorizontalAccuracy: number; specialAdvanceConditions: SpecialAdvanceConditions | undefined } };
|
|
171
163
|
|
|
172
164
|
export type CourseFiltering = "SnapToRoute" | "Raw";
|
|
173
165
|
|
|
@@ -179,59 +171,26 @@ export interface TripProgress {
|
|
|
179
171
|
durationRemaining: number;
|
|
180
172
|
}
|
|
181
173
|
|
|
182
|
-
export type RouteDeviation = "NoDeviation" | { OffRoute: { deviationFromRouteLine: number } };
|
|
183
|
-
|
|
184
|
-
export type RouteDeviationTracking = "None" | { StaticThreshold: { minimumHorizontalAccuracy: number; maxAcceptableDeviation: number } };
|
|
185
|
-
|
|
186
174
|
/**
|
|
187
|
-
* JavaScript wrapper for `NavigationController`.
|
|
188
|
-
*/
|
|
175
|
+
* JavaScript wrapper for `NavigationController`.
|
|
176
|
+
*/
|
|
189
177
|
export class NavigationController {
|
|
190
178
|
free(): void;
|
|
191
|
-
/**
|
|
192
|
-
* @param {any} route
|
|
193
|
-
* @param {any} config
|
|
194
|
-
*/
|
|
195
179
|
constructor(route: any, config: any);
|
|
196
|
-
/**
|
|
197
|
-
* @param {any} location
|
|
198
|
-
* @returns {any}
|
|
199
|
-
*/
|
|
200
180
|
getInitialState(location: any): any;
|
|
201
|
-
/**
|
|
202
|
-
* @param {any} state
|
|
203
|
-
* @returns {any}
|
|
204
|
-
*/
|
|
205
181
|
advance_to_next_step(state: any): any;
|
|
206
|
-
/**
|
|
207
|
-
* @param {any} location
|
|
208
|
-
* @param {any} state
|
|
209
|
-
* @returns {any}
|
|
210
|
-
*/
|
|
211
182
|
updateUserLocation(location: any, state: any): any;
|
|
212
183
|
}
|
|
213
184
|
/**
|
|
214
|
-
* JavaScript wrapper for `RouteAdapter`.
|
|
215
|
-
*/
|
|
185
|
+
* JavaScript wrapper for `RouteAdapter`.
|
|
186
|
+
*/
|
|
216
187
|
export class RouteAdapter {
|
|
217
188
|
free(): void;
|
|
218
|
-
/**
|
|
219
|
-
* Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
|
|
220
|
-
* At the moment, this is the only supported combination.
|
|
221
|
-
|
|
222
|
-
* @param {string} profile
|
|
223
|
-
* @param {string | undefined} [costing_options_json]
|
|
224
|
-
*/
|
|
189
|
+
/**
|
|
190
|
+
* Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
|
|
191
|
+
* At the moment, this is the only supported combination.
|
|
192
|
+
*/
|
|
225
193
|
constructor(endpoint_url: string, profile: string, costing_options_json?: string);
|
|
226
|
-
/**
|
|
227
|
-
* @param {any} user_location
|
|
228
|
-
* @param {any} waypoints
|
|
229
|
-
* @returns {any}
|
|
230
|
-
*/
|
|
231
194
|
generateRequest(user_location: any, waypoints: any): any;
|
|
232
|
-
/**
|
|
233
|
-
* @param {Uint8Array} response
|
|
234
|
-
* @returns {any}
|
|
235
|
-
*/
|
|
236
195
|
parseResponse(response: Uint8Array): any;
|
|
237
196
|
}
|
package/ferrostar.js
CHANGED
package/ferrostar_bg.js
CHANGED
|
@@ -4,48 +4,6 @@ export function __wbg_set_wasm(val) {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
const heap = new Array(128).fill(undefined);
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
10
|
-
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
|
-
let heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function dropObject(idx) {
|
|
16
|
-
if (idx < 132) return;
|
|
17
|
-
heap[idx] = heap_next;
|
|
18
|
-
heap_next = idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function takeObject(idx) {
|
|
22
|
-
const ret = getObject(idx);
|
|
23
|
-
dropObject(idx);
|
|
24
|
-
return ret;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function isLikeNone(x) {
|
|
28
|
-
return x === undefined || x === null;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let cachedDataViewMemory0 = null;
|
|
32
|
-
|
|
33
|
-
function getDataViewMemory0() {
|
|
34
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
35
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
36
|
-
}
|
|
37
|
-
return cachedDataViewMemory0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function addHeapObject(obj) {
|
|
41
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
42
|
-
const idx = heap_next;
|
|
43
|
-
heap_next = heap[idx];
|
|
44
|
-
|
|
45
|
-
heap[idx] = obj;
|
|
46
|
-
return idx;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
7
|
let WASM_VECTOR_LEN = 0;
|
|
50
8
|
|
|
51
9
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -113,6 +71,30 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
113
71
|
return ptr;
|
|
114
72
|
}
|
|
115
73
|
|
|
74
|
+
let cachedDataViewMemory0 = null;
|
|
75
|
+
|
|
76
|
+
function getDataViewMemory0() {
|
|
77
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
78
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
79
|
+
}
|
|
80
|
+
return cachedDataViewMemory0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function addToExternrefTable0(obj) {
|
|
84
|
+
const idx = wasm.__externref_table_alloc();
|
|
85
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
86
|
+
return idx;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function handleError(f, args) {
|
|
90
|
+
try {
|
|
91
|
+
return f.apply(this, args);
|
|
92
|
+
} catch (e) {
|
|
93
|
+
const idx = addToExternrefTable0(e);
|
|
94
|
+
wasm.__wbindgen_exn_store(idx);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
116
98
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
117
99
|
|
|
118
100
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -124,6 +106,10 @@ function getStringFromWasm0(ptr, len) {
|
|
|
124
106
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
125
107
|
}
|
|
126
108
|
|
|
109
|
+
function isLikeNone(x) {
|
|
110
|
+
return x === undefined || x === null;
|
|
111
|
+
}
|
|
112
|
+
|
|
127
113
|
function debugString(val) {
|
|
128
114
|
// primitive types
|
|
129
115
|
const type = typeof val;
|
|
@@ -165,7 +151,7 @@ function debugString(val) {
|
|
|
165
151
|
// Test for built-in
|
|
166
152
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
167
153
|
let className;
|
|
168
|
-
if (builtInMatches.length > 1) {
|
|
154
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
169
155
|
className = builtInMatches[1];
|
|
170
156
|
} else {
|
|
171
157
|
// Failed to match the standard '[object ClassName]'
|
|
@@ -189,6 +175,12 @@ function debugString(val) {
|
|
|
189
175
|
return className;
|
|
190
176
|
}
|
|
191
177
|
|
|
178
|
+
function takeFromExternrefTable0(idx) {
|
|
179
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
180
|
+
wasm.__externref_table_dealloc(idx);
|
|
181
|
+
return value;
|
|
182
|
+
}
|
|
183
|
+
|
|
192
184
|
function passArray8ToWasm0(arg, malloc) {
|
|
193
185
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
194
186
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -196,101 +188,69 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
196
188
|
return ptr;
|
|
197
189
|
}
|
|
198
190
|
/**
|
|
199
|
-
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
200
|
-
* @param {any} coordinates
|
|
201
|
-
* @param {number | undefined} resample_distance
|
|
202
|
-
* @param {LocationBias} bias
|
|
203
|
-
* @returns {any}
|
|
204
|
-
*/
|
|
191
|
+
* JavaScript wrapper for `location_simulation_from_coordinates`.
|
|
192
|
+
* @param {any} coordinates
|
|
193
|
+
* @param {number | undefined} resample_distance
|
|
194
|
+
* @param {LocationBias} bias
|
|
195
|
+
* @returns {any}
|
|
196
|
+
*/
|
|
205
197
|
export function locationSimulationFromCoordinates(coordinates, resample_distance, bias) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
210
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
211
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
212
|
-
if (r2) {
|
|
213
|
-
throw takeObject(r1);
|
|
214
|
-
}
|
|
215
|
-
return takeObject(r0);
|
|
216
|
-
} finally {
|
|
217
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
198
|
+
const ret = wasm.locationSimulationFromCoordinates(coordinates, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
199
|
+
if (ret[2]) {
|
|
200
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
218
201
|
}
|
|
202
|
+
return takeFromExternrefTable0(ret[0]);
|
|
219
203
|
}
|
|
220
204
|
|
|
221
205
|
/**
|
|
222
|
-
* JavaScript wrapper for `location_simulation_from_route`.
|
|
223
|
-
* @param {any} route
|
|
224
|
-
* @param {number | undefined} resample_distance
|
|
225
|
-
* @param {LocationBias} bias
|
|
226
|
-
* @returns {any}
|
|
227
|
-
*/
|
|
206
|
+
* JavaScript wrapper for `location_simulation_from_route`.
|
|
207
|
+
* @param {any} route
|
|
208
|
+
* @param {number | undefined} resample_distance
|
|
209
|
+
* @param {LocationBias} bias
|
|
210
|
+
* @returns {any}
|
|
211
|
+
*/
|
|
228
212
|
export function locationSimulationFromRoute(route, resample_distance, bias) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
233
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
234
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
235
|
-
if (r2) {
|
|
236
|
-
throw takeObject(r1);
|
|
237
|
-
}
|
|
238
|
-
return takeObject(r0);
|
|
239
|
-
} finally {
|
|
240
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
213
|
+
const ret = wasm.locationSimulationFromRoute(route, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
214
|
+
if (ret[2]) {
|
|
215
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
241
216
|
}
|
|
217
|
+
return takeFromExternrefTable0(ret[0]);
|
|
242
218
|
}
|
|
243
219
|
|
|
244
220
|
/**
|
|
245
|
-
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
246
|
-
* @param {string} polyline
|
|
247
|
-
* @param {number} precision
|
|
248
|
-
* @param {number | undefined} resample_distance
|
|
249
|
-
* @param {LocationBias} bias
|
|
250
|
-
* @returns {any}
|
|
251
|
-
*/
|
|
221
|
+
* JavaScript wrapper for `location_simulation_from_polyline`.
|
|
222
|
+
* @param {string} polyline
|
|
223
|
+
* @param {number} precision
|
|
224
|
+
* @param {number | undefined} resample_distance
|
|
225
|
+
* @param {LocationBias} bias
|
|
226
|
+
* @returns {any}
|
|
227
|
+
*/
|
|
252
228
|
export function locationSimulationFromPolyline(polyline, precision, resample_distance, bias) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
259
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
260
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
261
|
-
if (r2) {
|
|
262
|
-
throw takeObject(r1);
|
|
263
|
-
}
|
|
264
|
-
return takeObject(r0);
|
|
265
|
-
} finally {
|
|
266
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
229
|
+
const ptr0 = passStringToWasm0(polyline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
230
|
+
const len0 = WASM_VECTOR_LEN;
|
|
231
|
+
const ret = wasm.locationSimulationFromPolyline(ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance, bias);
|
|
232
|
+
if (ret[2]) {
|
|
233
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
267
234
|
}
|
|
235
|
+
return takeFromExternrefTable0(ret[0]);
|
|
268
236
|
}
|
|
269
237
|
|
|
270
238
|
/**
|
|
271
|
-
* JavaScript wrapper for `advance_location_simulation`.
|
|
272
|
-
* @param {any} state
|
|
273
|
-
* @returns {any}
|
|
274
|
-
*/
|
|
239
|
+
* JavaScript wrapper for `advance_location_simulation`.
|
|
240
|
+
* @param {any} state
|
|
241
|
+
* @returns {any}
|
|
242
|
+
*/
|
|
275
243
|
export function advanceLocationSimulation(state) {
|
|
276
|
-
const ret = wasm.advanceLocationSimulation(
|
|
277
|
-
return
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function handleError(f, args) {
|
|
281
|
-
try {
|
|
282
|
-
return f.apply(this, args);
|
|
283
|
-
} catch (e) {
|
|
284
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
285
|
-
}
|
|
244
|
+
const ret = wasm.advanceLocationSimulation(state);
|
|
245
|
+
return ret;
|
|
286
246
|
}
|
|
287
247
|
|
|
288
248
|
const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
289
249
|
? { register: () => {}, unregister: () => {} }
|
|
290
250
|
: new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0, 1));
|
|
291
251
|
/**
|
|
292
|
-
* JavaScript wrapper for `NavigationController`.
|
|
293
|
-
*/
|
|
252
|
+
* JavaScript wrapper for `NavigationController`.
|
|
253
|
+
*/
|
|
294
254
|
export class NavigationController {
|
|
295
255
|
|
|
296
256
|
__destroy_into_raw() {
|
|
@@ -305,83 +265,51 @@ export class NavigationController {
|
|
|
305
265
|
wasm.__wbg_navigationcontroller_free(ptr, 0);
|
|
306
266
|
}
|
|
307
267
|
/**
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
268
|
+
* @param {any} route
|
|
269
|
+
* @param {any} config
|
|
270
|
+
*/
|
|
311
271
|
constructor(route, config) {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
316
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
317
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
318
|
-
if (r2) {
|
|
319
|
-
throw takeObject(r1);
|
|
320
|
-
}
|
|
321
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
322
|
-
NavigationControllerFinalization.register(this, this.__wbg_ptr, this);
|
|
323
|
-
return this;
|
|
324
|
-
} finally {
|
|
325
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
272
|
+
const ret = wasm.navigationcontroller_new(route, config);
|
|
273
|
+
if (ret[2]) {
|
|
274
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
326
275
|
}
|
|
276
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
277
|
+
NavigationControllerFinalization.register(this, this.__wbg_ptr, this);
|
|
278
|
+
return this;
|
|
327
279
|
}
|
|
328
280
|
/**
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
281
|
+
* @param {any} location
|
|
282
|
+
* @returns {any}
|
|
283
|
+
*/
|
|
332
284
|
getInitialState(location) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
337
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
338
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
339
|
-
if (r2) {
|
|
340
|
-
throw takeObject(r1);
|
|
341
|
-
}
|
|
342
|
-
return takeObject(r0);
|
|
343
|
-
} finally {
|
|
344
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
285
|
+
const ret = wasm.navigationcontroller_getInitialState(this.__wbg_ptr, location);
|
|
286
|
+
if (ret[2]) {
|
|
287
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
345
288
|
}
|
|
289
|
+
return takeFromExternrefTable0(ret[0]);
|
|
346
290
|
}
|
|
347
291
|
/**
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
292
|
+
* @param {any} state
|
|
293
|
+
* @returns {any}
|
|
294
|
+
*/
|
|
351
295
|
advance_to_next_step(state) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
356
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
357
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
358
|
-
if (r2) {
|
|
359
|
-
throw takeObject(r1);
|
|
360
|
-
}
|
|
361
|
-
return takeObject(r0);
|
|
362
|
-
} finally {
|
|
363
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
296
|
+
const ret = wasm.navigationcontroller_advance_to_next_step(this.__wbg_ptr, state);
|
|
297
|
+
if (ret[2]) {
|
|
298
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
364
299
|
}
|
|
300
|
+
return takeFromExternrefTable0(ret[0]);
|
|
365
301
|
}
|
|
366
302
|
/**
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
303
|
+
* @param {any} location
|
|
304
|
+
* @param {any} state
|
|
305
|
+
* @returns {any}
|
|
306
|
+
*/
|
|
371
307
|
updateUserLocation(location, state) {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
376
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
377
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
378
|
-
if (r2) {
|
|
379
|
-
throw takeObject(r1);
|
|
380
|
-
}
|
|
381
|
-
return takeObject(r0);
|
|
382
|
-
} finally {
|
|
383
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
308
|
+
const ret = wasm.navigationcontroller_updateUserLocation(this.__wbg_ptr, location, state);
|
|
309
|
+
if (ret[2]) {
|
|
310
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
384
311
|
}
|
|
312
|
+
return takeFromExternrefTable0(ret[0]);
|
|
385
313
|
}
|
|
386
314
|
}
|
|
387
315
|
|
|
@@ -389,8 +317,8 @@ const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
389
317
|
? { register: () => {}, unregister: () => {} }
|
|
390
318
|
: new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0, 1));
|
|
391
319
|
/**
|
|
392
|
-
* JavaScript wrapper for `RouteAdapter`.
|
|
393
|
-
*/
|
|
320
|
+
* JavaScript wrapper for `RouteAdapter`.
|
|
321
|
+
*/
|
|
394
322
|
export class RouteAdapter {
|
|
395
323
|
|
|
396
324
|
__destroy_into_raw() {
|
|
@@ -405,439 +333,417 @@ export class RouteAdapter {
|
|
|
405
333
|
wasm.__wbg_routeadapter_free(ptr, 0);
|
|
406
334
|
}
|
|
407
335
|
/**
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
336
|
+
* Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
|
|
337
|
+
* At the moment, this is the only supported combination.
|
|
338
|
+
* @param {string} endpoint_url
|
|
339
|
+
* @param {string} profile
|
|
340
|
+
* @param {string | undefined} [costing_options_json]
|
|
341
|
+
*/
|
|
414
342
|
constructor(endpoint_url, profile, costing_options_json) {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
425
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
426
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
427
|
-
if (r2) {
|
|
428
|
-
throw takeObject(r1);
|
|
429
|
-
}
|
|
430
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
431
|
-
RouteAdapterFinalization.register(this, this.__wbg_ptr, this);
|
|
432
|
-
return this;
|
|
433
|
-
} finally {
|
|
434
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
343
|
+
const ptr0 = passStringToWasm0(endpoint_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
const len0 = WASM_VECTOR_LEN;
|
|
345
|
+
const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
346
|
+
const len1 = WASM_VECTOR_LEN;
|
|
347
|
+
var ptr2 = isLikeNone(costing_options_json) ? 0 : passStringToWasm0(costing_options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
348
|
+
var len2 = WASM_VECTOR_LEN;
|
|
349
|
+
const ret = wasm.routeadapter_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
350
|
+
if (ret[2]) {
|
|
351
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
435
352
|
}
|
|
353
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
354
|
+
RouteAdapterFinalization.register(this, this.__wbg_ptr, this);
|
|
355
|
+
return this;
|
|
436
356
|
}
|
|
437
357
|
/**
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
358
|
+
* @param {any} user_location
|
|
359
|
+
* @param {any} waypoints
|
|
360
|
+
* @returns {any}
|
|
361
|
+
*/
|
|
442
362
|
generateRequest(user_location, waypoints) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
447
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
448
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
449
|
-
if (r2) {
|
|
450
|
-
throw takeObject(r1);
|
|
451
|
-
}
|
|
452
|
-
return takeObject(r0);
|
|
453
|
-
} finally {
|
|
454
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
363
|
+
const ret = wasm.routeadapter_generateRequest(this.__wbg_ptr, user_location, waypoints);
|
|
364
|
+
if (ret[2]) {
|
|
365
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
455
366
|
}
|
|
367
|
+
return takeFromExternrefTable0(ret[0]);
|
|
456
368
|
}
|
|
457
369
|
/**
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
370
|
+
* @param {Uint8Array} response
|
|
371
|
+
* @returns {any}
|
|
372
|
+
*/
|
|
461
373
|
parseResponse(response) {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
468
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
469
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
470
|
-
if (r2) {
|
|
471
|
-
throw takeObject(r1);
|
|
472
|
-
}
|
|
473
|
-
return takeObject(r0);
|
|
474
|
-
} finally {
|
|
475
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
374
|
+
const ptr0 = passArray8ToWasm0(response, wasm.__wbindgen_malloc);
|
|
375
|
+
const len0 = WASM_VECTOR_LEN;
|
|
376
|
+
const ret = wasm.routeadapter_parseResponse(this.__wbg_ptr, ptr0, len0);
|
|
377
|
+
if (ret[2]) {
|
|
378
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
476
379
|
}
|
|
380
|
+
return takeFromExternrefTable0(ret[0]);
|
|
477
381
|
}
|
|
478
382
|
}
|
|
479
383
|
|
|
480
|
-
export function
|
|
481
|
-
|
|
384
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
385
|
+
const ret = String(arg1);
|
|
386
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len1 = WASM_VECTOR_LEN;
|
|
388
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
389
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
482
390
|
};
|
|
483
391
|
|
|
484
|
-
export function
|
|
485
|
-
const ret =
|
|
486
|
-
|
|
392
|
+
export function __wbg_String_eecc4a11987127d6(arg0, arg1) {
|
|
393
|
+
const ret = String(arg1);
|
|
394
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
+
const len1 = WASM_VECTOR_LEN;
|
|
396
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
397
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
487
398
|
};
|
|
488
399
|
|
|
489
|
-
export function
|
|
490
|
-
const ret =
|
|
400
|
+
export function __wbg_buffer_61b7ce01341d7f88(arg0) {
|
|
401
|
+
const ret = arg0.buffer;
|
|
491
402
|
return ret;
|
|
492
403
|
};
|
|
493
404
|
|
|
494
|
-
export function
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
499
|
-
};
|
|
405
|
+
export function __wbg_call_500db948e69c7330() { return handleError(function (arg0, arg1, arg2) {
|
|
406
|
+
const ret = arg0.call(arg1, arg2);
|
|
407
|
+
return ret;
|
|
408
|
+
}, arguments) };
|
|
500
409
|
|
|
501
|
-
export function
|
|
502
|
-
const ret =
|
|
410
|
+
export function __wbg_call_b0d8e36992d9900d() { return handleError(function (arg0, arg1) {
|
|
411
|
+
const ret = arg0.call(arg1);
|
|
503
412
|
return ret;
|
|
504
|
-
};
|
|
413
|
+
}, arguments) };
|
|
505
414
|
|
|
506
|
-
export function
|
|
507
|
-
const ret =
|
|
508
|
-
return
|
|
415
|
+
export function __wbg_crypto_ed58b8e10a292839(arg0) {
|
|
416
|
+
const ret = arg0.crypto;
|
|
417
|
+
return ret;
|
|
509
418
|
};
|
|
510
419
|
|
|
511
|
-
export function
|
|
512
|
-
const ret =
|
|
420
|
+
export function __wbg_done_f22c1561fa919baa(arg0) {
|
|
421
|
+
const ret = arg0.done;
|
|
513
422
|
return ret;
|
|
514
423
|
};
|
|
515
424
|
|
|
516
|
-
export function
|
|
517
|
-
const
|
|
518
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
425
|
+
export function __wbg_entries_4f2bb9b0d701c0f6(arg0) {
|
|
426
|
+
const ret = Object.entries(arg0);
|
|
519
427
|
return ret;
|
|
520
428
|
};
|
|
521
429
|
|
|
522
|
-
export function
|
|
523
|
-
|
|
430
|
+
export function __wbg_getRandomValues_bcb4912f16000dc4() { return handleError(function (arg0, arg1) {
|
|
431
|
+
arg0.getRandomValues(arg1);
|
|
432
|
+
}, arguments) };
|
|
433
|
+
|
|
434
|
+
export function __wbg_get_9aa3dff3f0266054(arg0, arg1) {
|
|
435
|
+
const ret = arg0[arg1 >>> 0];
|
|
524
436
|
return ret;
|
|
525
437
|
};
|
|
526
438
|
|
|
527
|
-
export function
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
var len1 = WASM_VECTOR_LEN;
|
|
532
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
533
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
534
|
-
};
|
|
439
|
+
export function __wbg_get_bbccf8970793c087() { return handleError(function (arg0, arg1) {
|
|
440
|
+
const ret = Reflect.get(arg0, arg1);
|
|
441
|
+
return ret;
|
|
442
|
+
}, arguments) };
|
|
535
443
|
|
|
536
|
-
export function
|
|
537
|
-
const
|
|
538
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
444
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
445
|
+
const ret = arg0[arg1];
|
|
539
446
|
return ret;
|
|
540
447
|
};
|
|
541
448
|
|
|
542
|
-
export function
|
|
543
|
-
|
|
544
|
-
|
|
449
|
+
export function __wbg_instanceof_ArrayBuffer_670ddde44cdb2602(arg0) {
|
|
450
|
+
let result;
|
|
451
|
+
try {
|
|
452
|
+
result = arg0 instanceof ArrayBuffer;
|
|
453
|
+
} catch (_) {
|
|
454
|
+
result = false;
|
|
455
|
+
}
|
|
456
|
+
const ret = result;
|
|
457
|
+
return ret;
|
|
545
458
|
};
|
|
546
459
|
|
|
547
|
-
export function
|
|
548
|
-
|
|
460
|
+
export function __wbg_instanceof_Uint8Array_28af5bc19d6acad8(arg0) {
|
|
461
|
+
let result;
|
|
462
|
+
try {
|
|
463
|
+
result = arg0 instanceof Uint8Array;
|
|
464
|
+
} catch (_) {
|
|
465
|
+
result = false;
|
|
466
|
+
}
|
|
467
|
+
const ret = result;
|
|
549
468
|
return ret;
|
|
550
469
|
};
|
|
551
470
|
|
|
552
|
-
export function
|
|
553
|
-
const ret =
|
|
554
|
-
return
|
|
471
|
+
export function __wbg_isArray_1ba11a930108ec51(arg0) {
|
|
472
|
+
const ret = Array.isArray(arg0);
|
|
473
|
+
return ret;
|
|
555
474
|
};
|
|
556
475
|
|
|
557
|
-
export function
|
|
558
|
-
const ret =
|
|
559
|
-
return
|
|
476
|
+
export function __wbg_isSafeInteger_12f5549b2fca23f4(arg0) {
|
|
477
|
+
const ret = Number.isSafeInteger(arg0);
|
|
478
|
+
return ret;
|
|
560
479
|
};
|
|
561
480
|
|
|
562
|
-
export function
|
|
563
|
-
const ret =
|
|
481
|
+
export function __wbg_iterator_23604bb983791576() {
|
|
482
|
+
const ret = Symbol.iterator;
|
|
564
483
|
return ret;
|
|
565
484
|
};
|
|
566
485
|
|
|
567
|
-
export function
|
|
568
|
-
const ret =
|
|
569
|
-
|
|
570
|
-
const len1 = WASM_VECTOR_LEN;
|
|
571
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
572
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
486
|
+
export function __wbg_length_65d1cd11729ced11(arg0) {
|
|
487
|
+
const ret = arg0.length;
|
|
488
|
+
return ret;
|
|
573
489
|
};
|
|
574
490
|
|
|
575
|
-
export function
|
|
576
|
-
const ret = arg0;
|
|
577
|
-
return
|
|
491
|
+
export function __wbg_length_d65cf0786bfc5739(arg0) {
|
|
492
|
+
const ret = arg0.length;
|
|
493
|
+
return ret;
|
|
578
494
|
};
|
|
579
495
|
|
|
580
|
-
export function
|
|
581
|
-
const ret = arg0;
|
|
582
|
-
return
|
|
496
|
+
export function __wbg_msCrypto_0a36e2ec3a343d26(arg0) {
|
|
497
|
+
const ret = arg0.msCrypto;
|
|
498
|
+
return ret;
|
|
583
499
|
};
|
|
584
500
|
|
|
585
|
-
export function
|
|
586
|
-
const ret =
|
|
587
|
-
return
|
|
501
|
+
export function __wbg_new_254fa9eac11932ae() {
|
|
502
|
+
const ret = new Array();
|
|
503
|
+
return ret;
|
|
588
504
|
};
|
|
589
505
|
|
|
590
|
-
export function
|
|
591
|
-
|
|
506
|
+
export function __wbg_new_3ff5b33b1ce712df(arg0) {
|
|
507
|
+
const ret = new Uint8Array(arg0);
|
|
508
|
+
return ret;
|
|
592
509
|
};
|
|
593
510
|
|
|
594
|
-
export function
|
|
595
|
-
const ret =
|
|
596
|
-
return
|
|
511
|
+
export function __wbg_new_688846f374351c92() {
|
|
512
|
+
const ret = new Object();
|
|
513
|
+
return ret;
|
|
597
514
|
};
|
|
598
515
|
|
|
599
|
-
export function
|
|
600
|
-
const ret =
|
|
601
|
-
return
|
|
516
|
+
export function __wbg_new_bc96c6a1c0786643() {
|
|
517
|
+
const ret = new Map();
|
|
518
|
+
return ret;
|
|
602
519
|
};
|
|
603
520
|
|
|
604
|
-
export function
|
|
605
|
-
const ret =
|
|
606
|
-
return
|
|
521
|
+
export function __wbg_newnoargs_fd9e4bf8be2bc16d(arg0, arg1) {
|
|
522
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
523
|
+
return ret;
|
|
607
524
|
};
|
|
608
525
|
|
|
609
|
-
export function
|
|
610
|
-
const ret =
|
|
611
|
-
return
|
|
526
|
+
export function __wbg_newwithbyteoffsetandlength_ba35896968751d91(arg0, arg1, arg2) {
|
|
527
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
528
|
+
return ret;
|
|
612
529
|
};
|
|
613
530
|
|
|
614
|
-
export function
|
|
615
|
-
const ret =
|
|
616
|
-
return
|
|
617
|
-
}, arguments) };
|
|
618
|
-
|
|
619
|
-
export function __wbg_msCrypto_eb05e62b530a1508(arg0) {
|
|
620
|
-
const ret = getObject(arg0).msCrypto;
|
|
621
|
-
return addHeapObject(ret);
|
|
531
|
+
export function __wbg_newwithlength_34ce8f1051e74449(arg0) {
|
|
532
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
533
|
+
return ret;
|
|
622
534
|
};
|
|
623
535
|
|
|
624
|
-
export function
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
export function __wbg_randomFillSync_5c9c955aa56b6049() { return handleError(function (arg0, arg1) {
|
|
629
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
536
|
+
export function __wbg_next_01dd9234a5bf6d05() { return handleError(function (arg0) {
|
|
537
|
+
const ret = arg0.next();
|
|
538
|
+
return ret;
|
|
630
539
|
}, arguments) };
|
|
631
540
|
|
|
632
|
-
export function
|
|
633
|
-
const ret =
|
|
634
|
-
|
|
635
|
-
const len1 = WASM_VECTOR_LEN;
|
|
636
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
637
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
541
|
+
export function __wbg_next_137428deb98342b0(arg0) {
|
|
542
|
+
const ret = arg0.next;
|
|
543
|
+
return ret;
|
|
638
544
|
};
|
|
639
545
|
|
|
640
|
-
export function
|
|
641
|
-
const ret =
|
|
642
|
-
return
|
|
546
|
+
export function __wbg_node_02999533c4ea02e3(arg0) {
|
|
547
|
+
const ret = arg0.node;
|
|
548
|
+
return ret;
|
|
643
549
|
};
|
|
644
550
|
|
|
645
|
-
export function
|
|
646
|
-
const ret =
|
|
551
|
+
export function __wbg_now_64d0bb151e5d3889() {
|
|
552
|
+
const ret = Date.now();
|
|
647
553
|
return ret;
|
|
648
554
|
};
|
|
649
555
|
|
|
650
|
-
export function
|
|
651
|
-
const ret =
|
|
652
|
-
return
|
|
556
|
+
export function __wbg_process_5c1d670bc53614b8(arg0) {
|
|
557
|
+
const ret = arg0.process;
|
|
558
|
+
return ret;
|
|
653
559
|
};
|
|
654
560
|
|
|
655
|
-
export function
|
|
656
|
-
|
|
561
|
+
export function __wbg_randomFillSync_ab2cfe79ebbf2740() { return handleError(function (arg0, arg1) {
|
|
562
|
+
arg0.randomFillSync(arg1);
|
|
563
|
+
}, arguments) };
|
|
564
|
+
|
|
565
|
+
export function __wbg_require_79b1e9274cde3c87() { return handleError(function () {
|
|
566
|
+
const ret = module.require;
|
|
657
567
|
return ret;
|
|
658
|
-
};
|
|
568
|
+
}, arguments) };
|
|
659
569
|
|
|
660
|
-
export function
|
|
661
|
-
|
|
662
|
-
return addHeapObject(ret);
|
|
570
|
+
export function __wbg_set_1d80752d0d5f0b21(arg0, arg1, arg2) {
|
|
571
|
+
arg0[arg1 >>> 0] = arg2;
|
|
663
572
|
};
|
|
664
573
|
|
|
665
|
-
export function
|
|
666
|
-
|
|
667
|
-
return addHeapObject(ret);
|
|
574
|
+
export function __wbg_set_23d69db4e5c66a6e(arg0, arg1, arg2) {
|
|
575
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
668
576
|
};
|
|
669
577
|
|
|
670
|
-
export function
|
|
671
|
-
|
|
672
|
-
return addHeapObject(ret);
|
|
578
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
579
|
+
arg0[arg1] = arg2;
|
|
673
580
|
};
|
|
674
581
|
|
|
675
|
-
export function
|
|
676
|
-
const ret =
|
|
677
|
-
return addHeapObject(ret);
|
|
678
|
-
}, arguments) };
|
|
679
|
-
|
|
680
|
-
export function __wbg_done_bfda7aa8f252b39f(arg0) {
|
|
681
|
-
const ret = getObject(arg0).done;
|
|
582
|
+
export function __wbg_set_76818dc3c59a63d5(arg0, arg1, arg2) {
|
|
583
|
+
const ret = arg0.set(arg1, arg2);
|
|
682
584
|
return ret;
|
|
683
585
|
};
|
|
684
586
|
|
|
685
|
-
export function
|
|
686
|
-
const ret =
|
|
687
|
-
return
|
|
587
|
+
export function __wbg_static_accessor_GLOBAL_0be7472e492ad3e3() {
|
|
588
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
589
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
688
590
|
};
|
|
689
591
|
|
|
690
|
-
export function
|
|
691
|
-
const ret =
|
|
692
|
-
return
|
|
592
|
+
export function __wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb() {
|
|
593
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
594
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
693
595
|
};
|
|
694
596
|
|
|
695
|
-
export function
|
|
696
|
-
const ret =
|
|
697
|
-
return
|
|
698
|
-
}, arguments) };
|
|
699
|
-
|
|
700
|
-
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) {
|
|
701
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
702
|
-
return addHeapObject(ret);
|
|
703
|
-
}, arguments) };
|
|
704
|
-
|
|
705
|
-
export function __wbg_new_525245e2b9901204() {
|
|
706
|
-
const ret = new Object();
|
|
707
|
-
return addHeapObject(ret);
|
|
597
|
+
export function __wbg_static_accessor_SELF_1dc398a895c82351() {
|
|
598
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
599
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
708
600
|
};
|
|
709
601
|
|
|
710
|
-
export function
|
|
711
|
-
const ret =
|
|
712
|
-
return
|
|
713
|
-
}
|
|
602
|
+
export function __wbg_static_accessor_WINDOW_ae1c80c7eea8d64a() {
|
|
603
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
604
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
605
|
+
};
|
|
714
606
|
|
|
715
|
-
export function
|
|
716
|
-
const ret =
|
|
717
|
-
return
|
|
718
|
-
}
|
|
607
|
+
export function __wbg_subarray_46adeb9b86949d12(arg0, arg1, arg2) {
|
|
608
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
609
|
+
return ret;
|
|
610
|
+
};
|
|
719
611
|
|
|
720
|
-
export function
|
|
721
|
-
const ret =
|
|
722
|
-
return
|
|
723
|
-
}
|
|
612
|
+
export function __wbg_value_4c32fd138a88eee2(arg0) {
|
|
613
|
+
const ret = arg0.value;
|
|
614
|
+
return ret;
|
|
615
|
+
};
|
|
724
616
|
|
|
725
|
-
export function
|
|
726
|
-
const ret =
|
|
727
|
-
return
|
|
728
|
-
}
|
|
617
|
+
export function __wbg_versions_c71aa1626a93e0a1(arg0) {
|
|
618
|
+
const ret = arg0.versions;
|
|
619
|
+
return ret;
|
|
620
|
+
};
|
|
729
621
|
|
|
730
|
-
export function
|
|
731
|
-
|
|
622
|
+
export function __wbindgen_as_number(arg0) {
|
|
623
|
+
const ret = +arg0;
|
|
624
|
+
return ret;
|
|
732
625
|
};
|
|
733
626
|
|
|
734
|
-
export function
|
|
735
|
-
const ret =
|
|
627
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
628
|
+
const ret = arg0;
|
|
736
629
|
return ret;
|
|
737
630
|
};
|
|
738
631
|
|
|
739
|
-
export function
|
|
740
|
-
|
|
741
|
-
try {
|
|
742
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
743
|
-
} catch (_) {
|
|
744
|
-
result = false;
|
|
745
|
-
}
|
|
746
|
-
const ret = result;
|
|
632
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
633
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
747
634
|
return ret;
|
|
748
635
|
};
|
|
749
636
|
|
|
750
|
-
export function
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
|
|
637
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
638
|
+
const v = arg1;
|
|
639
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
640
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
641
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
645
|
+
const v = arg0;
|
|
646
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
647
|
+
return ret;
|
|
648
|
+
};
|
|
754
649
|
|
|
755
|
-
export function
|
|
756
|
-
const ret =
|
|
757
|
-
|
|
650
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
651
|
+
const ret = debugString(arg1);
|
|
652
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
653
|
+
const len1 = WASM_VECTOR_LEN;
|
|
654
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
655
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
758
656
|
};
|
|
759
657
|
|
|
760
|
-
export function
|
|
761
|
-
const ret =
|
|
658
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
659
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
762
660
|
return ret;
|
|
763
661
|
};
|
|
764
662
|
|
|
765
|
-
export function
|
|
766
|
-
const ret =
|
|
663
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
664
|
+
const ret = arg0 in arg1;
|
|
767
665
|
return ret;
|
|
768
666
|
};
|
|
769
667
|
|
|
770
|
-
export function
|
|
771
|
-
const
|
|
772
|
-
|
|
668
|
+
export function __wbindgen_init_externref_table() {
|
|
669
|
+
const table = wasm.__wbindgen_export_4;
|
|
670
|
+
const offset = table.grow(4);
|
|
671
|
+
table.set(0, undefined);
|
|
672
|
+
table.set(offset + 0, undefined);
|
|
673
|
+
table.set(offset + 1, null);
|
|
674
|
+
table.set(offset + 2, true);
|
|
675
|
+
table.set(offset + 3, false);
|
|
676
|
+
;
|
|
773
677
|
};
|
|
774
678
|
|
|
775
|
-
export function
|
|
776
|
-
const ret =
|
|
777
|
-
return
|
|
679
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
680
|
+
const ret = typeof(arg0) === 'bigint';
|
|
681
|
+
return ret;
|
|
778
682
|
};
|
|
779
683
|
|
|
780
|
-
export function
|
|
781
|
-
const ret =
|
|
782
|
-
return
|
|
684
|
+
export function __wbindgen_is_function(arg0) {
|
|
685
|
+
const ret = typeof(arg0) === 'function';
|
|
686
|
+
return ret;
|
|
783
687
|
};
|
|
784
688
|
|
|
785
|
-
export function
|
|
786
|
-
const
|
|
787
|
-
|
|
689
|
+
export function __wbindgen_is_object(arg0) {
|
|
690
|
+
const val = arg0;
|
|
691
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
692
|
+
return ret;
|
|
788
693
|
};
|
|
789
694
|
|
|
790
|
-
export function
|
|
791
|
-
|
|
695
|
+
export function __wbindgen_is_string(arg0) {
|
|
696
|
+
const ret = typeof(arg0) === 'string';
|
|
697
|
+
return ret;
|
|
792
698
|
};
|
|
793
699
|
|
|
794
|
-
export function
|
|
795
|
-
const ret =
|
|
700
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
701
|
+
const ret = arg0 === undefined;
|
|
796
702
|
return ret;
|
|
797
703
|
};
|
|
798
704
|
|
|
799
|
-
export function
|
|
800
|
-
|
|
801
|
-
try {
|
|
802
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
803
|
-
} catch (_) {
|
|
804
|
-
result = false;
|
|
805
|
-
}
|
|
806
|
-
const ret = result;
|
|
705
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
706
|
+
const ret = arg0 === arg1;
|
|
807
707
|
return ret;
|
|
808
708
|
};
|
|
809
709
|
|
|
810
|
-
export function
|
|
811
|
-
const ret =
|
|
812
|
-
return
|
|
710
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
711
|
+
const ret = arg0 == arg1;
|
|
712
|
+
return ret;
|
|
813
713
|
};
|
|
814
714
|
|
|
815
|
-
export function
|
|
816
|
-
const ret =
|
|
817
|
-
return
|
|
715
|
+
export function __wbindgen_memory() {
|
|
716
|
+
const ret = wasm.memory;
|
|
717
|
+
return ret;
|
|
818
718
|
};
|
|
819
719
|
|
|
820
|
-
export function
|
|
821
|
-
const
|
|
822
|
-
const ret = typeof(
|
|
823
|
-
getDataViewMemory0().
|
|
720
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
721
|
+
const obj = arg1;
|
|
722
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
723
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
824
724
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
825
725
|
};
|
|
826
726
|
|
|
827
|
-
export function
|
|
828
|
-
const ret =
|
|
829
|
-
|
|
830
|
-
|
|
727
|
+
export function __wbindgen_number_new(arg0) {
|
|
728
|
+
const ret = arg0;
|
|
729
|
+
return ret;
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
733
|
+
const obj = arg1;
|
|
734
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
735
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
736
|
+
var len1 = WASM_VECTOR_LEN;
|
|
831
737
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
832
738
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
833
739
|
};
|
|
834
740
|
|
|
835
|
-
export function
|
|
836
|
-
|
|
741
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
742
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
743
|
+
return ret;
|
|
837
744
|
};
|
|
838
745
|
|
|
839
|
-
export function
|
|
840
|
-
|
|
841
|
-
return addHeapObject(ret);
|
|
746
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
747
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
842
748
|
};
|
|
843
749
|
|
package/ferrostar_bg.wasm
CHANGED
|
Binary file
|