From 72f5f915c663312f1ba826dff0a33ac073aa8c43 Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 6 Nov 2023 10:35:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E6=AE=B5=E6=95=85=E9=9A=9C=E5=8D=A0?= =?UTF-8?q?=E7=94=A8=E7=BA=A2=E8=89=B2=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/section/Section.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphics/section/Section.ts b/src/graphics/section/Section.ts index 19a081e..f540f58 100644 --- a/src/graphics/section/Section.ts +++ b/src/graphics/section/Section.ts @@ -72,6 +72,7 @@ export interface ISectionState extends GraphicState { export const SectionConsts = { lineColor: '#5578b6', + occupiedColor: '#f00', lineWidth: 5, }; @@ -112,7 +113,9 @@ export class Section extends JlGraphic implements ILineGraphic { this.lineGraphic.points = this.datas.points; this.lineGraphic.lineStyle( SectionConsts.lineWidth, - SectionConsts.lineColor + this.states.occupied + ? SectionConsts.occupiedColor + : SectionConsts.lineColor ); this.lineGraphic.paint(); }