@mocanvas/mocanvas · constant

DEFAULT_GEO_CLICK_SIZE

declare const DEFAULT_GEO_CLICK_SIZE: {
    w: number;
    h: number;
}

The box a click places a built-in silhouette at.

A click is not a drag: there is no second point to size from, so the shape has to arrive at some size. This used to be whatever GeoShapeUtil's own default props said (100×100) because nothing read defaultSize at all — it was declared on the interface, documented, populated by nobody and consulted by nobody.

Mentioned here

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.