public override object Copy(IDictionary <object, object>?shared) { var copy = new PathSizeViewModel(ServiceProvider) { Width = _width, Height = _height }; return(copy); }
public void ArcTo(PointShapeViewModel point, PathSizeViewModel size, double rotationAngle = 0.0, bool isLargeArc = false, SweepDirection sweepDirection = SweepDirection.Clockwise) { if (_currentFigure is not null) { var segment = _viewModelFactory.CreateArcSegment( point, size, rotationAngle, isLargeArc, sweepDirection); _currentFigure.Segments = _currentFigure.Segments.Add(segment); } }