nhanh-pure-function 4.2.0 → 4.2.2

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.
@@ -6,6 +6,8 @@ type ConstructorOption = ConstructorParameters<typeof EventController>[0];
6
6
  export default class LayerGroup extends EventController {
7
7
  /** 图层群组 */
8
8
  layers: Map<string, Layer>;
9
+ private oldLlayersSize;
10
+ private get layersSizeChange();
9
11
  constructor(option: ConstructorOption);
10
12
  /** 地图的事件触发不需要传递 */
11
13
  defaultContextmenu: EventHandler<"contextmenu">;
@@ -27,6 +27,8 @@ export default class Layer extends EventController {
27
27
  /** 是否需要重新绘制 */
28
28
  private isReload;
29
29
  groups: Map<string, OverlayGroup>;
30
+ private oldGroupsSize;
31
+ private get groupsSizeChange();
30
32
  constructor(option: ConstructorOption);
31
33
  setMainCanvas(mainCanvas?: _Canvas_Axis): void;
32
34
  setNotifyReload(notifyReload?: () => void): void;
@@ -24,14 +24,12 @@ export default class OverlayCreator {
24
24
  */
25
25
  axisValueLimiter?: (value: [number, number]) => [number, number];
26
26
  constructor(canvas: _Canvas_Axis);
27
- /** 按类型开始创建:多边形或线 */
28
- create(type: "polygon" | "line"): Line | Polygon | undefined;
29
27
  /** 禁用除创建层外的其他图层群组交互,并记录原始 isInteractive 以便复原 */
30
28
  private disableOtherLayerGroups;
31
29
  /** 复原此前禁用的图层群组的 isInteractive */
32
30
  private restoreLayerGroupsInteractive;
33
- createLine(): Line;
34
- createPolygon(): Polygon;
31
+ createLine(options?: ConstructorParameters<typeof _Canvas_Axis.Line>[0]): Line;
32
+ createPolygon(options?: ConstructorParameters<typeof _Canvas_Axis.Polygon>[0]): Polygon;
35
33
  finish?: (overlay?: Polygon | Line) => void;
36
34
  /** 从创建层中移除指定覆盖物,不传则清空该层全部 */
37
35
  removeOverlay(overlay?: Polygon | Line): void;
@@ -13,6 +13,8 @@ export type OverlayType = Text | Point | Line | Arc | ArcTo | Polygon | Billboar
13
13
  export default class OverlayGroup extends EventController {
14
14
  /** 覆盖物集合 */
15
15
  overlays: Set<OverlayType>;
16
+ private oldOverlaysSize;
17
+ private get overlaysSizeChange();
16
18
  constructor(option: ConstructorOption);
17
19
  /** 设置主画布 */
18
20
  setMainCanvas(mainCanvas?: _Canvas_Axis): void;