Rect
Utils to compute intersection, union and area of bouding rectangles.
Functions
area()
Returns the area of a rectangle.
Parameters
• rect: Rect
Returns
number
Defined in
tmp/commons/src/lib/utils/html.svelte.ts:125
intersection()
Returns the intersection of multiple bouding rectangles.
Parameters
Returns
Defined in
tmp/commons/src/lib/utils/html.svelte.ts:81
pos()
Parameters
• rect: Rect
Returns
Defined in
tmp/commons/src/lib/utils/html.svelte.ts:129
union()
Return the union of multiple bounding rectangles.
Parameters
• rect: Rect
• …rects: Rect
[]