cmap-core 0.0.4 → 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 +8 -9
- 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);
|
|
@@ -283,7 +283,6 @@ declare interface FocusItem {
|
|
|
283
283
|
|
|
284
284
|
declare interface IAisShipOptions extends IBaseShipOptions {
|
|
285
285
|
outLine?: boolean;
|
|
286
|
-
readonly type: 'Ais';
|
|
287
286
|
updateStatus?: UPDATE_STATUS;
|
|
288
287
|
}
|
|
289
288
|
|
|
@@ -298,7 +297,7 @@ declare interface IBaseShipOptions {
|
|
|
298
297
|
hdg: number;
|
|
299
298
|
cog: number;
|
|
300
299
|
rot: number;
|
|
301
|
-
|
|
300
|
+
type: string;
|
|
302
301
|
statusId?: number;
|
|
303
302
|
status?: string;
|
|
304
303
|
time: Date;
|
|
@@ -488,14 +487,14 @@ export declare class Ship extends Module {
|
|
|
488
487
|
private registerPlugins;
|
|
489
488
|
private createCollisions;
|
|
490
489
|
private collisionTooltip;
|
|
491
|
-
add(data:
|
|
492
|
-
load(list:
|
|
493
|
-
remove(id:
|
|
490
|
+
add(data: IBaseShipOptions): BaseShip<any> | undefined;
|
|
491
|
+
load(list: IBaseShipOptions[]): BaseShip<any>[];
|
|
492
|
+
remove(id: IBaseShipOptions['id']): void;
|
|
494
493
|
removeAll(): void;
|
|
495
494
|
render(): void;
|
|
496
495
|
get(id: string | number): BaseShip<any> | undefined;
|
|
497
|
-
select(id:
|
|
498
|
-
unselect(id:
|
|
496
|
+
select(id: IBaseShipOptions['id']): void;
|
|
497
|
+
unselect(id: IBaseShipOptions['id']): void;
|
|
499
498
|
}
|
|
500
499
|
|
|
501
500
|
declare interface StyleImageMetadata {
|