Field Notes
    Preparing search index...

    Interface CanvasElementProps

    Props for CanvasElement.

    interface CanvasElementProps {
        position: { x: number; y: number };
        size?: { h: number; w: number };
    }
    Index
    position: { x: number; y: number }

    Canvas-space position of the element's top-left corner.

    size?: { h: number; w: number }

    Optional fixed size; omit to let the element size to its content.