From d13da1478a8fe129cd7eed208cd5d3fa4e026cb6 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 30 Jun 2023 13:40:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=9A=94=E7=AC=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/separator/Separator.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }