@plait/draw 0.48.0 → 0.49.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/draw",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.0.0",
6
6
  "@angular/core": "^16.0.0",
@@ -7,7 +7,8 @@ export declare const DrawTransforms: {
7
7
  resizeLine: (board: import("@plait/core").PlaitBoard, options: Partial<import("@plait/draw").PlaitLine>, path: import("@plait/core").Path) => void;
8
8
  setLineTexts: (board: import("@plait/core").PlaitBoard, element: import("@plait/draw").PlaitLine, texts: import("@plait/draw").LineText[]) => void;
9
9
  removeLineText: (board: import("@plait/core").PlaitBoard, element: import("@plait/draw").PlaitLine, index: number) => void;
10
- setLineMark: (board: import("@plait/core").PlaitBoard, element: import("@plait/draw").PlaitLine, handleKey: import("@plait/draw").LineHandleKey, marker: import("@plait/draw").LineMarkerType) => void;
10
+ setLineMark: (board: import("@plait/core").PlaitBoard, handleKey: import("@plait/draw").LineHandleKey, marker: import("@plait/draw").LineMarkerType) => void;
11
+ setLineShape: (board: import("@plait/core").PlaitBoard, newProperties: Partial<import("@plait/draw").PlaitLine>) => void;
11
12
  insertImage: (board: import("@plait/core").PlaitBoard, imageItem: import("@plait/common").CommonImageItem, startPoint?: import("@plait/core").Point | undefined) => void;
12
13
  switchGeometryShape: (board: import("@plait/core").PlaitBoard, shape: import("@plait/draw").GeometryShapes) => void;
13
14
  connectLineToGeometry: (board: import("@plait/core").PlaitBoard, lineElement: import("@plait/draw").PlaitLine, handle: import("@plait/draw").LineHandleKey, geometryElement: import("@plait/draw").PlaitGeometry) => void;
@@ -3,7 +3,8 @@ import { LineHandleKey, LineMarkerType, LineText, PlaitGeometry, PlaitLine } fro
3
3
  export declare const resizeLine: (board: PlaitBoard, options: Partial<PlaitLine>, path: Path) => void;
4
4
  export declare const setLineTexts: (board: PlaitBoard, element: PlaitLine, texts: LineText[]) => void;
5
5
  export declare const removeLineText: (board: PlaitBoard, element: PlaitLine, index: number) => void;
6
- export declare const setLineMark: (board: PlaitBoard, element: PlaitLine, handleKey: LineHandleKey, marker: LineMarkerType) => void;
6
+ export declare const setLineMark: (board: PlaitBoard, handleKey: LineHandleKey, marker: LineMarkerType) => void;
7
+ export declare const setLineShape: (board: PlaitBoard, newProperties: Partial<PlaitLine>) => void;
7
8
  export declare const collectLineUpdatedRefsByGeometry: (board: PlaitBoard, geometry: PlaitGeometry, refs: {
8
9
  property: Partial<PlaitLine>;
9
10
  path: Path;
@@ -1,4 +1,4 @@
1
1
  import { PlaitBoard, Point } from '@plait/core';
2
2
  import { PlaitDrawElement, PlaitGeometry, PlaitLine } from '../interfaces';
3
- export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitLine | PlaitGeometry)[];
3
+ export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitGeometry | PlaitLine)[];
4
4
  export declare const insertClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => void;
@@ -42,7 +42,7 @@ export declare const getDefaultFlowchartProperty: (symbol: FlowchartSymbols) =>
42
42
  width: number;
43
43
  height: number;
44
44
  };
45
- export declare const createDefaultFlowchart: (point: Point) => (import("../interfaces").PlaitLine | PlaitGeometry)[];
45
+ export declare const createDefaultFlowchart: (point: Point) => (PlaitGeometry | import("../interfaces").PlaitLine)[];
46
46
  export declare const getAutoCompletePoints: (element: PlaitShape) => [Point, Point, Point, Point];
47
47
  export declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
48
48
  export declare const getDrawDefaultStrokeColor: (theme: ThemeColorMode) => string;