微调
This commit is contained in:
parent
d5ca7edfdf
commit
43566669a0
@ -130,20 +130,11 @@ export class SlopeInteraction extends GraphicInteractionPlugin<Slope> {
|
||||
return grahpics.filter((g) => g.type === Slope.Type).map((g) => g as Slope);
|
||||
}
|
||||
bind(g: Slope): 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 SlopeGraphicHitArea(g);
|
||||
}
|
||||
unbind(g: Slope): 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