#
Class: Rectangle#
HierarchyHandle<rect>
↳ Rectangle
#
Constructors#
constructornew Rectangle(minX: number, minY: number, maxX: number, maxY: number): Rectangle
#
Parameters:Name | Type |
---|---|
minX | number |
minY | number |
maxX | number |
maxY | number |
Returns: Rectangle
Defined in: handles/rect.ts:6
#
Properties#
handle• Readonly
handle: rect
Defined in: handles/handle.ts:6
#
Accessors#
centerXcenterX(): number
Returns: number
Defined in: handles/rect.ts:16
#
centerYcenterY(): number
Returns: number
Defined in: handles/rect.ts:20
#
idid(): number
Get the unique ID of the handle. The ID is recycled once you destroy the object.
Returns: number
The unique ID of a handle object.
Defined in: handles/handle.ts:18
#
maxXmaxX(): number
Returns: number
Defined in: handles/rect.ts:24
#
maxYmaxY(): number
Returns: number
Defined in: handles/rect.ts:28
#
minXminX(): number
Returns: number
Defined in: handles/rect.ts:32
#
minYminY(): number
Returns: number
Defined in: handles/rect.ts:36
#
Methods#
destroydestroy(): void
Returns: void
Defined in: handles/rect.ts:40
#
enumDestructablesenumDestructables(filter: boolexpr | function, actionFunc: function): void
#
Parameters:Name | Type |
---|---|
filter | boolexpr | () => boolean |
actionFunc | () => void |
Returns: void
Defined in: handles/rect.ts:44
#
enumItemsenumItems(filter: boolexpr | function, actionFunc: function): void
#
Parameters:Name | Type |
---|---|
filter | boolexpr | () => boolean |
actionFunc | () => void |
Returns: void
Defined in: handles/rect.ts:48
#
movemove(newCenterX: number, newCenterY: number): void
#
Parameters:Name | Type |
---|---|
newCenterX | number |
newCenterY | number |
Returns: void
Defined in: handles/rect.ts:52
#
movePointmovePoint(newCenterPoint: Point): void
#
Parameters:Name | Type |
---|---|
newCenterPoint | Point |
Returns: void
Defined in: handles/rect.ts:56
#
setRectsetRect(minX: number, minY: number, maxX: number, maxY: number): void
#
Parameters:Name | Type |
---|---|
minX | number |
minY | number |
maxX | number |
maxY | number |
Returns: void
Defined in: handles/rect.ts:60
#
setRectFromPointsetRectFromPoint(min: Point, max: Point): void
#
Parameters:Name | Type |
---|---|
min | Point |
max | Point |
Returns: void
Defined in: handles/rect.ts:64
#
fromHandlestatic fromHandle(handle: rect): Rectangle
#
Parameters:Name | Type |
---|---|
handle | rect |
Returns: Rectangle
Defined in: handles/rect.ts:68
#
fromPointstatic fromPoint(min: Point, max: Point): Rectangle
#
Parameters:Name | Type |
---|---|
min | Point |
max | Point |
Returns: Rectangle
Defined in: handles/rect.ts:72
#
getWorldBoundsstatic getWorldBounds(): Rectangle
Returns: Rectangle
Defined in: handles/rect.ts:77