Function: unionRect()
unionRect(
a,b):Rect
Defined in: src/lib/brushes/StrokeEngine/index.ts:60
Grow a rectangle to include another (the first may be empty).
Parameters
a
Rect | undefined
b
Returns
Example
unionRect({ x: 0, y: 0, width: 10, height: 10 }, { x: 20, y: 5, width: 5, height: 5 });
// { x: 0, y: 0, width: 25, height: 10 }