Util
A collection of small utility functions and interfaces.
Rect
- class Rect()
Interface compatible with DOMRect and SVGRect.
interface
- Rect.height
type: number
The height of the rectangle. Must be
> 0!
- Rect.width
type: number
The width of the rectangle. Must be
> 0!
- Rect.x
type: number
- Rect.y
type: number
- calculateBoundingRect(...rectangles)
Calculate the bounding rectangle of a set of rectangles.
- Arguments:
rectangles (Rect[]) –
- Returns:
Rect –