@plait/core 0.37.0 → 0.39.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.37.0",
3
+ "version": "0.39.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0",
@@ -1,5 +1,6 @@
1
1
  import { PlaitBoard, PlaitElement } from '../interfaces';
2
2
  export declare const getMovingElements: (board: PlaitBoard) => PlaitElement[];
3
+ export declare const isMovingElements: (board: PlaitBoard) => boolean;
3
4
  export declare const addMovingElements: (board: PlaitBoard, elements: PlaitElement[]) => void;
4
5
  export declare const removeMovingElements: (board: PlaitBoard) => void;
5
6
  export declare const cacheMovingElements: (board: PlaitBoard, elements: PlaitElement[]) => void;
@@ -7,7 +7,7 @@ export declare const getHitElementsBySelection: (board: PlaitBoard, selection?:
7
7
  export declare const getHitElementByPoint: (board: PlaitBoard, point: Point, match?: (element: PlaitElement) => boolean) => undefined | PlaitElement;
8
8
  export declare const cacheSelectedElements: (board: PlaitBoard, selectedElements: PlaitElement[]) => void;
9
9
  export declare const getSelectedElements: (board: PlaitBoard) => PlaitElement[];
10
- export declare const addSelectedElement: (board: PlaitBoard, element: PlaitElement) => void;
10
+ export declare const addSelectedElement: (board: PlaitBoard, element: PlaitElement | PlaitElement[]) => void;
11
11
  export declare const removeSelectedElement: (board: PlaitBoard, element: PlaitElement) => void;
12
12
  export declare const clearSelectedElement: (board: PlaitBoard) => void;
13
13
  export declare const isSelectedElement: (board: PlaitBoard, element: PlaitElement) => boolean;