@mocanvas/editor · interface

TLPointInShapeOptions

interface TLPointInShapeOptions

Options for isPointInShape.


Properties · 2

hitInside?: boolean

Count a point inside a shape's *outline* as a hit. Defaults to false.

margin?: number

Extra tolerance in page units. Defaults to 0 — an exact test.

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.