车站圆圈微调
This commit is contained in:
parent
ecb3b39be1
commit
ae1efa309e
@ -77,13 +77,13 @@ export class stationInteraction extends GraphicInteractionPlugin<Station> {
|
||||
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<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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user