

namespace Hawkeye.VisionBuilder.Workflow.Datatypes.Elements.ArrayHorizontal;

public class ArrayHorizontalAnchorNode:INode
{
    private readonly ArrayHorizontalElement _parent;

    public ArrayHorizontalAnchorNode(ArrayHorizontalElement parent)
    {
        _parent = parent;
    }

    public void SetPosition(Vector2 position)
    {
        _parent.Location = position - _parent.Offset;
    }
}