diff --git a/src/graphics/station/StationDrawAssistant.ts b/src/graphics/station/StationDrawAssistant.ts index bfe8e5e..6002cf9 100644 --- a/src/graphics/station/StationDrawAssistant.ts +++ b/src/graphics/station/StationDrawAssistant.ts @@ -77,13 +77,13 @@ export class stationInteraction extends GraphicInteractionPlugin { g.cursor = 'pointer'; g.scalable = true; g.rotatable = true; - g.circleGraphic.eventMode = 'static'; - g.circleGraphic.cursor = 'pointer'; - g.circleGraphic.draggable = true; - g.circleGraphic.selectable = true; - g.circleGraphic.rotatable = true; - g.circleGraphic.scalable = true; - g.circleGraphic.transformSave = true; + if (g.datas.hasCircle) { + g.circleGraphic.eventMode = 'static'; + g.circleGraphic.cursor = 'pointer'; + g.circleGraphic.draggable = true; + g.circleGraphic.selectable = true; + g.circleGraphic.transformSave = true; + } } unbind(g: Station): void { g.eventMode = 'none'; @@ -92,8 +92,6 @@ export class stationInteraction extends GraphicInteractionPlugin { g.circleGraphic.eventMode = 'none'; g.circleGraphic.draggable = false; g.circleGraphic.selectable = false; - g.circleGraphic.rotatable = false; - g.circleGraphic.scalable = false; g.circleGraphic.transformSave = false; } }