cmap-core 0.0.2 → 0.0.3
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/index.es.d.ts +6 -6
- package/dist/index.es.js +1986 -1992
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +13 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ import { Source } from 'mapbox-gl';
|
|
|
14
14
|
import { SourceSpecification } from 'mapbox-gl';
|
|
15
15
|
|
|
16
16
|
export declare class AisShip extends BaseShip<IAisShipOptions> {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
readonly SOURCE: string;
|
|
18
|
+
readonly NAME: string;
|
|
19
19
|
tooltip: Tooltip | null;
|
|
20
20
|
constructor(map: Map_2, options: IAisShipOptions);
|
|
21
21
|
onAdd(): void;
|
|
@@ -29,7 +29,7 @@ export declare class AisShip extends BaseShip<IAisShipOptions> {
|
|
|
29
29
|
getShape(): Shape | null;
|
|
30
30
|
getFeature(): GeoJSON_2.Feature<GeoJSON_2.Polygon, IAisShipOptions> | GeoJSON_2.Feature<GeoJSON_2.Point, IAisShipOptions>;
|
|
31
31
|
remove(): void;
|
|
32
|
-
setTooltip(): void;
|
|
32
|
+
setTooltip(tooltip: Tooltip): void;
|
|
33
33
|
update(options: IAisShipOptions): void;
|
|
34
34
|
select(): void;
|
|
35
35
|
unselect(): void;
|
|
@@ -58,8 +58,8 @@ declare type Anchor = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left
|
|
|
58
58
|
|
|
59
59
|
export declare abstract class BaseShip<T extends IBaseShipOptions> extends Module {
|
|
60
60
|
options: T;
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
readonly SOURCE: string;
|
|
62
|
+
readonly NAME: string;
|
|
63
63
|
visible: boolean;
|
|
64
64
|
protected constructor(map: Map_2, options: T);
|
|
65
65
|
destroy(): void;
|
|
@@ -75,7 +75,7 @@ export declare abstract class BaseShip<T extends IBaseShipOptions> extends Modul
|
|
|
75
75
|
abstract getShape(): Shape | null;
|
|
76
76
|
abstract getFeature(): GeoJSON_2.Feature<GeoJSON_2.Polygon, T> | GeoJSON_2.Feature<GeoJSON_2.Point, T>;
|
|
77
77
|
abstract remove(): void;
|
|
78
|
-
abstract setTooltip(): void;
|
|
78
|
+
abstract setTooltip(tooltip: Tooltip): void;
|
|
79
79
|
abstract update(options: IAisShipOptions): void;
|
|
80
80
|
abstract select(): void;
|
|
81
81
|
abstract unselect(): void;
|