Function: clipRect()
clipRect(
rect,width,height):Rect|undefined
Defined in: src/lib/brushes/StrokeEngine/index.ts:75
Snap a rectangle outwards to whole pixels and clip it to the canvas. Returns undefined if nothing is left.
Parameters
rect
width
number
height
number
Returns
Rect | undefined