diff --git a/src/graphics/separator/Separator.ts b/src/graphics/separator/Separator.ts index 5a7e27d..032ee1e 100644 --- a/src/graphics/separator/Separator.ts +++ b/src/graphics/separator/Separator.ts @@ -38,9 +38,13 @@ export class Separator extends JlGraphic { get datas(): ISeparatorData { return this.getDatas(); } + clear() { + this.rectGraphic.clear(); + this.circleGraphic.clear(); + } doRepaint(): void { + this.clear(); const rectGraphic = this.rectGraphic; - rectGraphic.clear(); if (!this.datas.separatorType) { this.datas.separatorType = separatorTypeEnum.endA; }