Bounds
Class Bounds
constructor (xMin: number, xMax: number, yMin: number, yMax: number, errorHandling: swap|center): Bounds
Use the errorHandling
option to decide how to deal with cases where the min and max values are in the wrong order.
Name | Type | Default | Description | |
---|---|---|---|---|
xMin | number | |||
xMax | number | |||
yMin | number | |||
yMax | number | |||
errorHandling | swap | center |
Method .extend (top: number, right: number, bottom: number, left: number): Bounds
Name | Type | Default | Description |
---|---|---|---|
top | number | ||
right | number | … | |
bottom | number | … | |
left | number | … |