@plait/draw 0.78.2 → 0.79.1
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 +1 -1
- package/utils/geometry.d.ts +16 -16
package/package.json
CHANGED
package/utils/geometry.d.ts
CHANGED
|
@@ -67,6 +67,9 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
67
67
|
} | {
|
|
68
68
|
width: number;
|
|
69
69
|
height: number;
|
|
70
|
+
} | {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
70
73
|
} | {
|
|
71
74
|
width: number;
|
|
72
75
|
height: number;
|
|
@@ -78,12 +81,25 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
78
81
|
} | {
|
|
79
82
|
width: number;
|
|
80
83
|
height: number;
|
|
84
|
+
texts: {
|
|
85
|
+
id: import("../interfaces").GeometryCommonTextKeys;
|
|
86
|
+
text: string;
|
|
87
|
+
align: Alignment;
|
|
88
|
+
}[];
|
|
81
89
|
} | {
|
|
82
90
|
width: number;
|
|
83
91
|
height: number;
|
|
92
|
+
texts: {
|
|
93
|
+
text: string;
|
|
94
|
+
align: Alignment;
|
|
95
|
+
}[];
|
|
84
96
|
} | {
|
|
85
97
|
width: number;
|
|
86
98
|
height: number;
|
|
99
|
+
texts: {
|
|
100
|
+
text: string;
|
|
101
|
+
align: Alignment;
|
|
102
|
+
}[];
|
|
87
103
|
} | {
|
|
88
104
|
width: number;
|
|
89
105
|
height: number;
|
|
@@ -102,25 +118,9 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
102
118
|
} | {
|
|
103
119
|
width: number;
|
|
104
120
|
height: number;
|
|
105
|
-
texts: {
|
|
106
|
-
id: import("../interfaces").GeometryCommonTextKeys;
|
|
107
|
-
text: string;
|
|
108
|
-
align: Alignment;
|
|
109
|
-
}[];
|
|
110
|
-
} | {
|
|
111
|
-
width: number;
|
|
112
|
-
height: number;
|
|
113
|
-
texts: {
|
|
114
|
-
text: string;
|
|
115
|
-
align: Alignment;
|
|
116
|
-
}[];
|
|
117
121
|
} | {
|
|
118
122
|
width: number;
|
|
119
123
|
height: number;
|
|
120
|
-
texts: {
|
|
121
|
-
text: string;
|
|
122
|
-
align: Alignment;
|
|
123
|
-
}[];
|
|
124
124
|
};
|
|
125
125
|
export declare const getAutoCompletePoints: (board: PlaitBoard, element: PlaitShapeElement, isToActive?: boolean) => [Point, Point, Point, Point];
|
|
126
126
|
export declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
|