@fabwcie/free-drawing / utils/hit / isInsideOutline
Function: isInsideOutline()
isInsideOutline(
shape,point):boolean
Defined in: packages/free-drawing/src/utils/hit.ts:266
Point (absolute position) is inside outline of a rectangle, an ellipse or a path shape, filled or not, whatever its transform
Parameters
shape
Shape<ShapeConfig>
rectangle, ellipse or path shape (other shapes checked by their box)
point
Vector2d
absolute position (pointer)
Returns
boolean
true when inside, edges included