﻿using System.Runtime.Serialization;

namespace Draw2D.ViewModels.Decorators
{
    [DataContract(IsReference = true)]
    public class PointDecorator : CommonDecorator
    {
        public void Draw(object dc, IShapeRenderer renderer, IPointShape pointShape, double dx, double dy, double scale)
        {
            DrawRectangle(dc, renderer, pointShape, 10, dx, dy, scale);
        }

        public override void Draw(object dc, IBaseShape shape, IShapeRenderer renderer, ISelectionState selectionState, double dx, double dy, double scale)
        {
            // TODO:
            //if (shape is IPointShape pointShape)
            //{
            //    Draw(dc, renderer, pointShape, dx, dy, scale);
            //}
        }
    }
}
