コード例 #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));
        }
コード例 #2
0
 public Vector ScaleVector(Vector vector, Size controlSize, Rect viewExtent)
 {
     return(_vectorScaler.ScaleVector(vector, controlSize, viewExtent));
 }