예제 #1
0
        public void Execute(Vector vector, Size controlSize)
        {
            var viewExtent = _messageBus.Execute(new GetViewExtentQuery());

            var scaledVector = _scaler.ScaleVector(vector, controlSize, viewExtent);

            _messageBus.Execute(new PanCommand(scaledVector));
        }
 public Vector ScaleVector(Vector vector, Size controlSize, Rect viewExtent)
 {
     return(_vectorScaler.ScaleVector(vector, controlSize, viewExtent));
 }