cmap-core 0.0.7 → 0.0.8
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 -2
- package/dist/index.es.js +241 -221
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ declare enum EventStatus {
|
|
|
242
242
|
declare class Focus extends default_3 {
|
|
243
243
|
private readonly map;
|
|
244
244
|
focusItems: FocusItem[];
|
|
245
|
+
private register;
|
|
245
246
|
zoomendFunc: () => void;
|
|
246
247
|
constructor(map: Map_2);
|
|
247
248
|
get features(): FocusItem['feature'][];
|
|
@@ -309,6 +310,9 @@ declare interface IBaseShipOptions {
|
|
|
309
310
|
right?: number;
|
|
310
311
|
bottom?: number;
|
|
311
312
|
icon?: string;
|
|
313
|
+
minIconSize?: number;
|
|
314
|
+
maxIconSize?: number;
|
|
315
|
+
props?: Record<string, any>;
|
|
312
316
|
}
|
|
313
317
|
|
|
314
318
|
declare interface ICMapOptions extends MapOptions {
|
|
@@ -393,7 +397,7 @@ export declare abstract class Module {
|
|
|
393
397
|
declare type Orientation = 'static' | 'left' | 'right' | 'straight';
|
|
394
398
|
|
|
395
399
|
declare class ResidentEvent extends EventState {
|
|
396
|
-
|
|
400
|
+
private ships;
|
|
397
401
|
protected hoverId: IAisShipOptions['id'] | null | undefined;
|
|
398
402
|
protected _click: OmitThisParameter<(e: MapMouseEvent) => void>;
|
|
399
403
|
protected _move: OmitThisParameter<(e: MapMouseEvent) => void>;
|
|
@@ -406,6 +410,7 @@ declare class ResidentEvent extends EventState {
|
|
|
406
410
|
onRemove(): void;
|
|
407
411
|
add(ship: AisShip): void;
|
|
408
412
|
remove(id: IAisShipOptions['id']): void;
|
|
413
|
+
removeAll(): void;
|
|
409
414
|
onZoomEnd(): void;
|
|
410
415
|
onMove(e: MapMouseEvent): void;
|
|
411
416
|
onLeave(): void;
|
|
@@ -434,7 +439,7 @@ declare class ResourceRegister {
|
|
|
434
439
|
/**
|
|
435
440
|
* 安全更新 Source 数据 (针对 GeoJSON)
|
|
436
441
|
*/
|
|
437
|
-
updateGeoJSONData(id: string, feature: GeoJSON_2.
|
|
442
|
+
updateGeoJSONData(id: string, feature: GeoJSON_2.GeoJSON<null | GeoJSON_2.Geometry>): void;
|
|
438
443
|
}
|
|
439
444
|
|
|
440
445
|
declare interface result {
|