代码调整
This commit is contained in:
parent
43566669a0
commit
325efdac92
@ -140,18 +140,10 @@ export class CurvatureInteraction extends GraphicInteractionPlugin<Curvature> {
|
||||
bind(g: Curvature): void {
|
||||
g.eventMode = 'static';
|
||||
g.cursor = 'pointer';
|
||||
g.scalable = true;
|
||||
g.draggable = false;
|
||||
g.transformSave = true;
|
||||
g.lineGraphic.eventMode = 'static';
|
||||
g.lineGraphic.cursor = 'pointer';
|
||||
g.lineGraphic.hitArea = new CurvatureGraphicHitArea(g);
|
||||
g.hitArea = new CurvatureGraphicHitArea(g);
|
||||
}
|
||||
unbind(g: Curvature): void {
|
||||
g.eventMode = 'none';
|
||||
g.lineGraphic.eventMode = 'none';
|
||||
g.lineGraphic.draggable = false;
|
||||
g.lineGraphic.selectable = false;
|
||||
g.lineGraphic.transformSave = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user