@plait/draw 0.77.0 → 0.77.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/package.json +1 -1
- package/utils/geometry.d.ts +16 -16
package/package.json
CHANGED
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
|
-
id: import("../interfaces").GeometryCommonTextKeys;
|
|
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,9 +102,25 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
|
|
|
118
102
|
} | {
|
|
119
103
|
width: number;
|
|
120
104
|
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
|
+
}[];
|
|
121
117
|
} | {
|
|
122
118
|
width: number;
|
|
123
119
|
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;
|