@stadiamaps/ferrostar-webcomponents 0.1.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.
@@ -0,0 +1,10 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class ArrivalView extends LitElement {
3
+ tripState: any;
4
+ static styles: import('lit').CSSResult[];
5
+ getArrivalTime(seconds: number): string;
6
+ getDistanceRemaining(meters: number): string;
7
+ getDurationRemaining(seconds: number): string;
8
+ render(): import('lit-html').TemplateResult<1> | undefined;
9
+ }
10
+ //# sourceMappingURL=arrival-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrival-view.d.ts","sourceRoot":"","sources":["../src/arrival-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,WAAY,SAAQ,UAAU;IAEzC,SAAS,EAAE,GAAG,CAAQ;IAEtB,MAAM,CAAC,MAAM,4BAkBX;IAEF,cAAc,CAAC,OAAO,EAAE,MAAM;IAS9B,oBAAoB,CAAC,MAAM,EAAE,MAAM;IAInC,oBAAoB,CAAC,OAAO,EAAE,MAAM;IAMpC,MAAM;CAWP"}
@@ -0,0 +1,33 @@
1
+ import { LitElement } from 'lit';
2
+ import { default as maplibregl } from 'maplibre-gl';
3
+ import { MapLibreSearchControl } from '@stadiamaps/maplibre-search-box';
4
+ import { NavigationController, RouteAdapter } from '@stadiamaps/ferrostar';
5
+ export declare class FerrostarCore extends LitElement {
6
+ valhallaEndpointUrl: string;
7
+ styleUrl: string;
8
+ profile: string;
9
+ httpClient?: Function;
10
+ locationProvider: any;
11
+ costingOptions: any;
12
+ tripState: any;
13
+ useIntegratedSearchBox: boolean;
14
+ useVoiceGuidance: boolean;
15
+ routeAdapter: RouteAdapter | null;
16
+ map: maplibregl.Map | null;
17
+ searchBox: MapLibreSearchControl | null;
18
+ navigationController: NavigationController | null;
19
+ currentLocationMapMarker: maplibregl.Marker | null;
20
+ lastSpokenInstructionText: string | null;
21
+ static styles: import('lit').CSSResult[];
22
+ constructor();
23
+ updated(changedProperties: any): void;
24
+ firstUpdated(): void;
25
+ getRoutes(initialLocation: any, waypoints: any): Promise<any>;
26
+ startNavigation(route: any, config: any): void;
27
+ startNavigationFromSearch(coordinates: any): Promise<void>;
28
+ stopNavigation(): Promise<void>;
29
+ private onLocationUpdated;
30
+ private clearMap;
31
+ render(): import('lit-html').TemplateResult<1>;
32
+ }
33
+ //# sourceMappingURL=ferrostar-core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ferrostar-core.d.ts","sourceRoot":"","sources":["../src/ferrostar-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAY,MAAM,KAAK,CAAC;AAErD,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAC,qBAAqB,EAAC,MAAM,iCAAiC,CAAC;AAGtE,OAAa,EAAC,oBAAoB,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAC/E,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AAIxB,qBACa,aAAc,SAAQ,UAAU;IAE3C,mBAAmB,EAAE,MAAM,CAAM;IAGjC,QAAQ,EAAE,MAAM,CAAM;IAGtB,OAAO,EAAE,MAAM,CAAM;IAGrB,UAAU,CAAC,EAAE,QAAQ,CAAS;IAI9B,gBAAgB,EAAG,GAAG,CAAC;IAIvB,cAAc,EAAG,GAAG,CAAC;IAIrB,SAAS,EAAE,GAAG,CAAQ;IAGtB,sBAAsB,EAAE,OAAO,CAAS;IAGxC,gBAAgB,EAAE,OAAO,CAAS;IAElC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IACzC,GAAG,EAAE,UAAU,CAAC,GAAG,GAAG,IAAI,CAAQ;IAClC,SAAS,EAAE,qBAAqB,GAAG,IAAI,CAAQ;IAC/C,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAQ;IACzD,wBAAwB,EAAE,UA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