This commit is contained in:
fan 2023-07-31 09:22:25 +08:00
commit 4a0d42f97e
2 changed files with 9 additions and 2 deletions

View File

@ -89,6 +89,8 @@ export class SeparatorTemplate extends JlGraphicTemplate<Separator> {
});
}
new(): Separator {
return new Separator();
const separator = new Separator();
separator.loadData(this.datas);
return separator;
}
}

View File

@ -105,6 +105,9 @@ export class Transponder extends JlGraphic {
get datas(): ITransponderData {
return this.getDatas<ITransponderData>();
}
get code(): string {
return this.datas.index + '';
}
clear() {
this.polygonGraphic.clear();
this.labelGraphic.clear();
@ -159,6 +162,8 @@ export class TransponderTemplate extends JlGraphicTemplate<Transponder> {
});
}
new(): Transponder {
return new Transponder();
const transponder = new Transponder();
transponder.loadData(this.datas);
return transponder;
}
}