@labelbee/lb-annotation 1.7.1 → 1.7.2-alpha.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.
|
@@ -13,5 +13,6 @@ export declare enum EMessage {
|
|
|
13
13
|
LowerLimitPoint = "LowerLimitPoint",
|
|
14
14
|
NoRotateInDependence = "noRotateInDependence",
|
|
15
15
|
UnableToReannotation = "unableToReannotation",
|
|
16
|
-
ForbiddenCreationOutsideBoundary = "ForbiddenCreationOutsideBoundary"
|
|
16
|
+
ForbiddenCreationOutsideBoundary = "ForbiddenCreationOutsideBoundary",
|
|
17
|
+
SuccessfulEdgeAdsorption = "SuccessfulEdgeAdsorption"
|
|
17
18
|
}
|
|
@@ -99,7 +99,24 @@ export default class DrawUtils {
|
|
|
99
99
|
lineCap: CanvasLineCap;
|
|
100
100
|
isClose: boolean;
|
|
101
101
|
lineType: ELineTypes;
|
|
102
|
-
}>):
|
|
102
|
+
}>): IPolygonPoint[];
|
|
103
|
+
/**
|
|
104
|
+
* 绘制多边形带有关键点的多边形
|
|
105
|
+
* @param canvas
|
|
106
|
+
* @param pointList
|
|
107
|
+
* @param options
|
|
108
|
+
* @returns
|
|
109
|
+
*/
|
|
110
|
+
static drawPolygonWithKeyPoint(canvas: HTMLCanvasElement, pointList: IPolygonPoint[], options?: Partial<{
|
|
111
|
+
strokeColor: string;
|
|
112
|
+
fillColor: string;
|
|
113
|
+
pointColor: string;
|
|
114
|
+
thickness: number;
|
|
115
|
+
lineCap: CanvasLineCap;
|
|
116
|
+
isClose: boolean;
|
|
117
|
+
lineType: ELineTypes;
|
|
118
|
+
isFill: boolean;
|
|
119
|
+
}>): IPolygonPoint[];
|
|
103
120
|
static drawSelectedPolygonWithFillAndLine(canvas: HTMLCanvasElement, pointList: IPolygonPoint[], options?: Partial<{
|
|
104
121
|
strokeColor: string;
|
|
105
122
|
fillColor: string;
|
|
@@ -108,7 +125,7 @@ export default class DrawUtils {
|
|
|
108
125
|
lineCap: CanvasLineCap;
|
|
109
126
|
isClose: boolean;
|
|
110
127
|
lineType: ELineTypes;
|
|
111
|
-
}>):
|
|
128
|
+
}>): IPolygonPoint[];
|
|
112
129
|
static drawText(canvas: HTMLCanvasElement, startPoint: IPoint | IPolygonPoint, text: string, options?: Partial<{
|
|
113
130
|
color: string;
|
|
114
131
|
font: string;
|