@stadiamaps/ferrostar-webcomponents 0.40.0 → 0.42.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/dist/ferrostar-core.d.ts +3 -3
- package/dist/ferrostar-core.d.ts.map +1 -1
- package/dist/ferrostar-map.d.ts +7 -9
- package/dist/ferrostar-map.d.ts.map +1 -1
- package/dist/ferrostar-webcomponents.js +29 -34
- package/dist/ferrostar-webcomponents.js.map +1 -1
- package/dist/ferrostar-webcomponents.umd.cjs +17 -17
- package/dist/ferrostar-webcomponents.umd.cjs.map +1 -1
- package/dist/instructions-view.d.ts +2 -1
- package/dist/instructions-view.d.ts.map +1 -1
- package/dist/location.d.ts +2 -1
- package/dist/location.d.ts.map +1 -1
- package/dist/maneuver-image.d.ts +4 -3
- package/dist/maneuver-image.d.ts.map +1 -1
- package/dist/replay-controller.d.ts +19 -4
- package/dist/replay-controller.d.ts.map +1 -1
- package/dist/trip-progress-view.d.ts +2 -1
- package/dist/trip-progress-view.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { TripState } from '@stadiamaps/ferrostar';
|
|
2
3
|
export declare class InstructionsView extends LitElement {
|
|
3
|
-
tripState:
|
|
4
|
+
tripState: TripState | null;
|
|
4
5
|
static styles: import('lit').CSSResult[];
|
|
5
6
|
render(): import('lit-html').TemplateResult<1> | undefined;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions-view.d.ts","sourceRoot":"","sources":["../src/instructions-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"instructions-view.d.ts","sourceRoot":"","sources":["../src/instructions-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIlD,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,SAAS,EAAE,SAAS,GAAG,IAAI,CAAQ;IAEnC,MAAM,CAAC,MAAM,4BAqCX;IAEF,MAAM;CAqBP"}
|
package/dist/location.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Route } from '@stadiamaps/ferrostar';
|
|
1
2
|
/**
|
|
2
3
|
* Transforms a `GeolocationPosition` (from standard web location APIs)
|
|
3
4
|
* into the standard format expected by the Ferrostar APIs.
|
|
@@ -12,7 +13,7 @@ export declare class SimulatedLocationProvider {
|
|
|
12
13
|
lastHeading: null;
|
|
13
14
|
warpFactor: number;
|
|
14
15
|
updateCallback: () => void;
|
|
15
|
-
setSimulatedRoute(route:
|
|
16
|
+
setSimulatedRoute(route: Route): void;
|
|
16
17
|
start(): Promise<void>;
|
|
17
18
|
stop(): void;
|
|
18
19
|
}
|
package/dist/location.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../src/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EACN,MAAM,uBAAuB,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAoB3E;AAED,qBAAa,yBAAyB;IACpC,OAAO,CAAC,eAAe,CAAoB;IAC3C,OAAO,CAAC,SAAS,CAAS;IAE1B,YAAY,OAAQ;IACpB,WAAW,OAAQ;IACnB,UAAU,SAAK;IAEf,cAAc,EAAE,MAAM,IAAI,CAAY;IAEtC,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAMxB,KAAK;IA8BX,IAAI;CAKL;AAED,qBAAa,uBAAuB;IAClC,OAAO,CAAC,kBAAkB,CAAuB;IACjD,YAAY,EAAE,GAAG,CAAQ;IACzB,WAAW,OAAQ;IAEnB,cAAc,EAAE,MAAM,IAAI,CAAY;IAEtC;;;;;;;OAOG;IACH,KAAK;IAuBL;;;;;;OAMG;IACH,kBAAkB,CAAC,0BAA0B,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAwBvE;;OAEG;IACH,IAAI;CAOL"}
|
package/dist/maneuver-image.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { VisualInstruction } from '@stadiamaps/ferrostar';
|
|
2
3
|
export declare class ManeuverImage extends LitElement {
|
|
3
|
-
visualInstruction:
|
|
4
|
+
visualInstruction: VisualInstruction | undefined;
|
|
4
5
|
static styles: import('lit').CSSResult[];
|
|
5
|
-
getManeuverType():
|
|
6
|
-
getManeuverModifier():
|
|
6
|
+
getManeuverType(): import('@stadiamaps/ferrostar').ManeuverType | undefined;
|
|
7
|
+
getManeuverModifier(): import('@stadiamaps/ferrostar').ManeuverModifier | undefined;
|
|
7
8
|
getImageUrl(): any;
|
|
8
9
|
render(): import('lit-html').TemplateResult<1>;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maneuver-image.d.ts","sourceRoot":"","sources":["../src/maneuver-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"maneuver-image.d.ts","sourceRoot":"","sources":["../src/maneuver-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,qBACa,aAAc,SAAQ,UAAU;IAE3C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAEjD,MAAM,CAAC,MAAM,4BAOX;IAEF,eAAe;IAIf,mBAAmB;IAInB,WAAW;IAOX,MAAM;CAMP"}
|
|
@@ -3,17 +3,32 @@ import { StateProvider } from './types';
|
|
|
3
3
|
import { ReactiveElement } from 'lit';
|
|
4
4
|
export declare class ReplayController extends ReactiveElement implements StateProvider {
|
|
5
5
|
private replay;
|
|
6
|
-
private
|
|
7
|
-
private current_event_index;
|
|
8
|
-
private current_timestamp;
|
|
6
|
+
private current_event;
|
|
9
7
|
private route;
|
|
8
|
+
private hasStarted;
|
|
9
|
+
private isPlaying;
|
|
10
|
+
private playbackSpeed;
|
|
11
|
+
private currentProgress;
|
|
12
|
+
private current_event_index;
|
|
13
|
+
private prev_timestamp;
|
|
14
|
+
private total_duration;
|
|
15
|
+
private allEvents;
|
|
10
16
|
onNavigationStart?: () => void;
|
|
11
17
|
onNavigationStop?: () => void;
|
|
12
18
|
constructor(json_str: string);
|
|
13
|
-
private
|
|
19
|
+
private applyDelay;
|
|
14
20
|
startReplay(): Promise<void>;
|
|
21
|
+
play(): Promise<void>;
|
|
22
|
+
pause(): void;
|
|
23
|
+
setPlaybackSpeed(speed: number): void;
|
|
24
|
+
seekToIndex(index: number): void;
|
|
25
|
+
seekToProgress(progress: number): void;
|
|
15
26
|
provideState(tripState: TripState): void;
|
|
16
27
|
provideRoute(route: Route): void;
|
|
17
28
|
stopNavigation(): Promise<void>;
|
|
29
|
+
get progress(): number;
|
|
30
|
+
get speed(): number;
|
|
31
|
+
get playing(): boolean;
|
|
32
|
+
get duration(): number;
|
|
18
33
|
}
|
|
19
34
|
//# sourceMappingURL=replay-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-controller.d.ts","sourceRoot":"","sources":["../src/replay-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EACL,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE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AEX;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { TripState } from '@stadiamaps/ferrostar';
|
|
2
3
|
export declare class TripProgressView extends LitElement {
|
|
3
|
-
tripState:
|
|
4
|
+
tripState: TripState | null;
|
|
4
5
|
static styles: import('lit').CSSResult[];
|
|
5
6
|
getEstimatedArrival(durationRemaining: number): Date;
|
|
6
7
|
render(): import('lit-html').TemplateResult<1> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trip-progress-view.d.ts","sourceRoot":"","sources":["../src/trip-progress-view.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"trip-progress-view.d.ts","sourceRoot":"","sources":["../src/trip-progress-view.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKlD,qBACa,gBAAiB,SAAQ,UAAU;IAE9C,SAAS,EAAE,SAAS,GAAG,IAAI,CAAQ;IAEnC,MAAM,CAAC,MAAM,4BA4BX;IAEF,mBAAmB,CAAC,iBAAiB,EAAE,MAAM;IAI7C,MAAM;CAwBP"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"CatMe0w <CatMe0w@live.cn> (https://github.com/CatMe0w)",
|
|
7
7
|
"Luke Seelenbinder <luke@stadiamaps.com>"
|
|
8
8
|
],
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.42.0",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "./dist/ferrostar-webcomponents.js",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"pack:core": "wasm-pack pack ../common/ferrostar/pkg",
|
|
31
31
|
"pack:all": "npm run pack:core && npm pack",
|
|
32
32
|
"publish:core": "wasm-pack publish --access public ../common/ferrostar/pkg",
|
|
33
|
-
"lint": "eslint --cache --ext .js,.ts,.html src",
|
|
34
|
-
"lint:fix": "
|
|
33
|
+
"lint": "eslint --cache --ext .js,.ts,.html src --max-warnings 11",
|
|
34
|
+
"lint:fix": "npm run lint -- --fix"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@maptimy/platform-formatters": "^0.6.0",
|
|
38
|
-
"@stadiamaps/ferrostar": "^0.
|
|
38
|
+
"@stadiamaps/ferrostar": "^0.42.0",
|
|
39
39
|
"lit": "^3.2.1",
|
|
40
40
|
"maplibre-gl": "^4.5.0 || ^5"
|
|
41
41
|
},
|