feat: add text annotation tool

This commit is contained in:
2026-07-07 23:49:24 +08:00
parent a15f5b2b78
commit f90612976f
6 changed files with 396 additions and 16 deletions
+2
View File
@@ -18,6 +18,7 @@ export namespace application {
tool: string;
color: string;
points: Point[];
text?: string;
static createFrom(source: any = {}) {
return new Annotation(source);
@@ -28,6 +29,7 @@ export namespace application {
this.tool = source["tool"];
this.color = source["color"];
this.points = this.convertValues(source["points"], Point);
this.text = source["text"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {