public DragRectangleInputLock(IUndoRedoService undoRedo, IRectangleComponent nodeRectAspect, IPlacementSurface space, Vector2 anchorPointOnRect) { this.undoRedo = undoRedo; this.nodeRectAspect = nodeRectAspect; this.space = space; this.anchorPointOnRect = anchorPointOnRect; originalRect = nodeRectAspect.Rectangle; }
public ResizeRectangleInputLock(IRectangleComponent nodeRectAspect, IUndoRedoService undoRedo, IPlacementSurface space, ResizeRectangleGizmoPlace place) { this.nodeRectAspect = nodeRectAspect; this.undoRedo = undoRedo; this.space = space; this.place = place; originalRect = nodeRectAspect.Rectangle; }