@mocanvas/mocanvas · function

readPoint

declare function readPoint(props: unknown, key: string, fallback: {
    x: number;
    y: number;
}): {
    x: number;
    y: number;
}

A { x, y } prop, with each coordinate falling back independently.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.