fix: align text annotations in captures

This commit is contained in:
2026-07-08 14:46:57 +08:00
parent f90612976f
commit 7b290d9300
7 changed files with 533 additions and 130 deletions
+2
View File
@@ -19,6 +19,7 @@ export namespace application {
color: string;
points: Point[];
text?: string;
fontSize?: number;
static createFrom(source: any = {}) {
return new Annotation(source);
@@ -30,6 +31,7 @@ export namespace application {
this.color = source["color"];
this.points = this.convertValues(source["points"], Point);
this.text = source["text"];
this.fontSize = source["fontSize"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {