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(); }