@plait/core 0.32.0 → 0.33.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.32.0",
3
+ "version": "0.33.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0",
package/utils/math.d.ts CHANGED
@@ -13,3 +13,4 @@ export declare const isPointInPolygon: (point: Point, points: Point[]) => boolea
13
13
  export declare const isPointInEllipse: (point: Point, center: Point, rx: number, ry: number, rotation?: number) => boolean;
14
14
  export declare const isPointInRoundRectangle: (point: Point, rectangle: RectangleClient, radius: number) => boolean;
15
15
  export declare const downScale: (number: number) => number;
16
+ export declare const catmullRomFitting: (points: Point[]) => Point[];
@@ -2,6 +2,7 @@ import { PlaitBoard } from '../interfaces/board';
2
2
  import { Selection } from '../interfaces/selection';
3
3
  import { PlaitElement } from '../interfaces/element';
4
4
  import { Point } from '../interfaces/point';
5
+ import { PlaitOptionsBoard } from '../public-api';
5
6
  export declare const getHitElementsBySelection: (board: PlaitBoard, selection?: Selection, match?: (element: PlaitElement) => boolean) => PlaitElement[];
6
7
  export declare const getHitElementByPoint: (board: PlaitBoard, point: Point, match?: (element: PlaitElement) => boolean) => undefined | PlaitElement;
7
8
  export declare const cacheSelectedElements: (board: PlaitBoard, selectedElements: PlaitElement[]) => void;
@@ -10,3 +11,4 @@ export declare const addSelectedElement: (board: PlaitBoard, element: PlaitEleme
10
11
  export declare const removeSelectedElement: (board: PlaitBoard, element: PlaitElement) => void;
11
12
  export declare const clearSelectedElement: (board: PlaitBoard) => void;
12
13
  export declare const isSelectedElement: (board: PlaitBoard, element: PlaitElement) => boolean;
14
+ export declare const temporaryDisableSelection: (board: PlaitOptionsBoard) => void;