车站圆圈微调

This commit is contained in:
joylink_zhaoerwei 2023-06-08 17:47:30 +08:00
parent ecb3b39be1
commit ae1efa309e

View File

@ -77,14 +77,14 @@ export class stationInteraction extends GraphicInteractionPlugin<Station> {
g.cursor = 'pointer';
g.scalable = true;
g.rotatable = true;
if (g.datas.hasCircle) {
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;
}
}
unbind(g: Station): void {
g.eventMode = 'none';
g.scalable = false;
@ -92,8 +92,6 @@ export class stationInteraction extends GraphicInteractionPlugin<Station> {
g.circleGraphic.eventMode = 'none';
g.circleGraphic.draggable = false;
g.circleGraphic.selectable = false;
g.circleGraphic.rotatable = false;
g.circleGraphic.scalable = false;
g.circleGraphic.transformSave = false;
}
}