@plait/draw 0.64.0 → 0.64.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.
- package/esm2022/plugins/with-arrow-line-text.mjs +4 -6
- package/esm2022/utils/hit.mjs +15 -6
- package/fesm2022/plait-draw.mjs +15 -8
- package/fesm2022/plait-draw.mjs.map +1 -1
- package/package.json +1 -1
- package/transforms/index.d.ts +1 -1
- package/utils/clipboard.d.ts +1 -1
- package/utils/geometry.d.ts +17 -17
- package/utils/hit.d.ts +1 -1
- package/utils/shape.d.ts +1 -1
package/package.json
CHANGED
package/transforms/index.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export declare const DrawTransforms: {
|
|
|
21
21
|
removeSwimlaneColumn: (board: import("@plait/core").PlaitBoard, swimlane: import("@plait/draw").PlaitSwimlane, index: number, count?: number) => void;
|
|
22
22
|
updateSwimlaneCount: (board: import("@plait/core").PlaitBoard, swimlane: import("@plait/draw").PlaitSwimlane, count: number) => void;
|
|
23
23
|
setTableFill: (board: import("@plait/core").PlaitBoard, element: import("@plait/draw").PlaitBaseTable, fill: string, path: import("@plait/core").Path) => void;
|
|
24
|
-
insertDrawByVector: (board: import("@plait/core").PlaitBoard, point: import("@plait/core").Point, shape: import("@plait/draw").
|
|
24
|
+
insertDrawByVector: (board: import("@plait/core").PlaitBoard, point: import("@plait/core").Point, shape: import("@plait/draw").GeometryShapes | import("@plait/draw").SwimlaneDrawSymbols, vector: import("@plait/core").Vector) => import("@plait/draw").PlaitCommonGeometry | import("@plait/draw").PlaitSwimlane | null;
|
|
25
25
|
};
|
package/utils/clipboard.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlaitBoard, Point } from '@plait/core';
|
|
2
2
|
import { PlaitArrowLine, PlaitDrawElement, PlaitGeometry, PlaitShapeElement } from '../interfaces';
|
|
3
3
|
import { PlaitTable } from '../interfaces/table';
|
|
4
|
-
export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (
|
|
4
|
+
export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitGeometry | import("../interfaces").PlaitBaseTable | PlaitArrowLine | import("../interfaces").PlaitVectorLine)[];
|
|
5
5
|
export declare const insertClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => void;
|
|
6
6
|
export declare const insertClipboardTableData: (board: PlaitBoard, elements: PlaitTable[], startPoint: Point, lines: PlaitArrowLine[]) => void;
|
|
7
7
|
export declare const updateBoundArrowLinesId: (element: PlaitShapeElement, lines: PlaitArrowLine[], newId: string) => void;
|
package/utils/geometry.d.ts
CHANGED
|
@@ -67,9 +67,6 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
67
67
|
} | {
|
|
68
68
|
width: number;
|
|
69
69
|
height: number;
|
|
70
|
-
} | {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
70
|
} | {
|
|
74
71
|
width: number;
|
|
75
72
|
height: number;
|
|
@@ -81,25 +78,12 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
81
78
|
} | {
|
|
82
79
|
width: number;
|
|
83
80
|
height: number;
|
|
84
|
-
texts: {
|
|
85
|
-
key: import("../interfaces").MultipleTextGeometryCommonTextKeys;
|
|
86
|
-
text: string;
|
|
87
|
-
align: Alignment;
|
|
88
|
-
}[];
|
|
89
81
|
} | {
|
|
90
82
|
width: number;
|
|
91
83
|
height: number;
|
|
92
|
-
texts: {
|
|
93
|
-
text: string;
|
|
94
|
-
align: Alignment;
|
|
95
|
-
}[];
|
|
96
84
|
} | {
|
|
97
85
|
width: number;
|
|
98
86
|
height: number;
|
|
99
|
-
texts: {
|
|
100
|
-
text: string;
|
|
101
|
-
align: Alignment;
|
|
102
|
-
}[];
|
|
103
87
|
} | {
|
|
104
88
|
width: number;
|
|
105
89
|
height: number;
|
|
@@ -118,11 +102,27 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
118
102
|
} | {
|
|
119
103
|
width: number;
|
|
120
104
|
height: number;
|
|
105
|
+
texts: {
|
|
106
|
+
key: import("../interfaces").MultipleTextGeometryCommonTextKeys;
|
|
107
|
+
text: string;
|
|
108
|
+
align: Alignment;
|
|
109
|
+
}[];
|
|
110
|
+
} | {
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
texts: {
|
|
114
|
+
text: string;
|
|
115
|
+
align: Alignment;
|
|
116
|
+
}[];
|
|
121
117
|
} | {
|
|
122
118
|
width: number;
|
|
123
119
|
height: number;
|
|
120
|
+
texts: {
|
|
121
|
+
text: string;
|
|
122
|
+
align: Alignment;
|
|
123
|
+
}[];
|
|
124
124
|
};
|
|
125
|
-
export declare const createDefaultFlowchart: (point: Point) => (import("../interfaces").PlaitArrowLine
|
|
125
|
+
export declare const createDefaultFlowchart: (point: Point) => (PlaitGeometry | import("../interfaces").PlaitArrowLine)[];
|
|
126
126
|
export declare const getAutoCompletePoints: (element: PlaitShapeElement) => [Point, Point, Point, Point];
|
|
127
127
|
export declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
|
|
128
128
|
export declare const getDrawDefaultStrokeColor: (theme: ThemeColorMode) => string;
|
package/utils/hit.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const isHitElementText: (element: PlaitCommonGeometry, point: Poi
|
|
|
10
10
|
export declare const isRectangleHitDrawElement: (board: PlaitBoard, element: PlaitElement, selection: Selection) => boolean | null;
|
|
11
11
|
export declare const getDrawHitElement: (board: PlaitBoard, elements: PlaitDrawElement[]) => PlaitElement;
|
|
12
12
|
export declare const getFirstFilledDrawElement: (board: PlaitBoard, elements: PlaitDrawElement[]) => PlaitGeometry | null;
|
|
13
|
-
export declare const getFirstTextOrLineElement: (elements: PlaitDrawElement[]) =>
|
|
13
|
+
export declare const getFirstTextOrLineElement: (elements: PlaitDrawElement[]) => PlaitGeometry | import("../interfaces").PlaitBaseTable | import("../interfaces/image").PlaitImage | PlaitArrowLine | PlaitVectorLine | null;
|
|
14
14
|
export declare const isHitDrawElement: (board: PlaitBoard, element: PlaitElement, point: Point) => boolean | null;
|
|
15
15
|
export declare const isHitEdgeOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
|
16
16
|
export declare const isInsideOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
package/utils/shape.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PlaitShapeElement, TableSymbols } from '../interfaces';
|
|
2
|
-
export declare const getElementShape: (value: PlaitShapeElement) =>
|
|
2
|
+
export declare const getElementShape: (value: PlaitShapeElement) => import("../interfaces").GeometryShapes | TableSymbols.table | import("../interfaces").SwimlaneSymbols;
|