cmap-core 0.0.5 → 0.0.6
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 +7 -7
- package/dist/index.es.js +1092 -1090
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { SourceSpecification } from 'mapbox-gl';
|
|
|
15
15
|
|
|
16
16
|
export declare class AisShip extends BaseShip<IAisShipOptions> {
|
|
17
17
|
readonly SOURCE: string;
|
|
18
|
-
|
|
18
|
+
static NAME: string;
|
|
19
19
|
constructor(map: Map_2, options: IAisShipOptions);
|
|
20
20
|
onAdd(): void;
|
|
21
21
|
onRemove(): void;
|
|
@@ -58,7 +58,7 @@ declare type Anchor = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left
|
|
|
58
58
|
export declare abstract class BaseShip<T extends IBaseShipOptions> extends Module {
|
|
59
59
|
options: T;
|
|
60
60
|
readonly SOURCE: string;
|
|
61
|
-
|
|
61
|
+
static NAME: string;
|
|
62
62
|
tooltip: Tooltip | null;
|
|
63
63
|
visible: boolean;
|
|
64
64
|
protected constructor(map: Map_2, options: T);
|
|
@@ -487,14 +487,14 @@ export declare class Ship extends Module {
|
|
|
487
487
|
private registerPlugins;
|
|
488
488
|
private createCollisions;
|
|
489
489
|
private collisionTooltip;
|
|
490
|
-
add(data:
|
|
491
|
-
load(list:
|
|
492
|
-
remove(id:
|
|
490
|
+
add(data: IBaseShipOptions): BaseShip<any> | undefined;
|
|
491
|
+
load(list: IBaseShipOptions[]): BaseShip<any>[];
|
|
492
|
+
remove(id: IBaseShipOptions['id']): void;
|
|
493
493
|
removeAll(): void;
|
|
494
494
|
render(): void;
|
|
495
495
|
get(id: string | number): BaseShip<any> | undefined;
|
|
496
|
-
select(id:
|
|
497
|
-
unselect(id:
|
|
496
|
+
select(id: IBaseShipOptions['id']): void;
|
|
497
|
+
unselect(id: IBaseShipOptions['id']): void;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
declare interface StyleImageMetadata {
|