@plait/core 0.2.0-next.0 → 0.2.0-next.3

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,7 +6,7 @@ export interface RectangleClient {
6
6
  height: number;
7
7
  }
8
8
  export declare const RectangleClient: {
9
- isIntersect: (origin: RectangleClient, target: RectangleClient) => boolean;
9
+ isHit: (origin: RectangleClient, target: RectangleClient) => boolean;
10
10
  toRectangleClient: (points: [Point, Point]) => {
11
11
  x: number;
12
12
  y: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.2.0-next.0",
3
+ "version": "0.2.0-next.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"
@@ -20,7 +20,7 @@
20
20
  // https://stackoverflow.com/questions/51313873/svg-foreignobject-not-working-properly-on-safari
21
21
  .plait-richtext-container {
22
22
  // chrome show position is not correct, safari not working when don't assigned position property
23
- // can not assign absolute, because safari can not show correctly position
23
+ // can not assign absolute, because safari can not show correctly position
24
24
  position: initial;
25
25
  &[readonly='true'] {
26
26
  ::-moz-selection {
@@ -7,4 +7,5 @@ export declare const cacheSelectedElements: (board: PlaitBoard, selectedElements
7
7
  export declare const getSelectedElements: (board: PlaitBoard) => PlaitElement[];
8
8
  export declare const addSelectedElement: (board: PlaitBoard, element: PlaitElement) => void;
9
9
  export declare const removeSelectedElement: (board: PlaitBoard, element: PlaitElement) => void;
10
+ export declare const clearSelectedElement: (board: PlaitBoard) => void;
10
11
  export declare const isSelectedElement: (board: PlaitBoard, element: PlaitElement) => boolean;