Class: Region#

Hierarchy#

Constructors#

constructor#

new Region(): Region

Returns: Region

Defined in: handles/region.ts:8

Properties#

handle#

• Readonly handle: region

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

id#

id(): 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

Methods#

addCell#

addCell(x: number, y: number): void

Parameters:#

NameType
xnumber
ynumber

Returns: void

Defined in: handles/region.ts:18


addCellPoint#

addCellPoint(whichPoint: Point): void

Parameters:#

NameType
whichPointPoint

Returns: void

Defined in: handles/region.ts:22


addRect#

addRect(r: Rectangle): void

Parameters:#

NameType
rRectangle

Returns: void

Defined in: handles/region.ts:26


clearCell#

clearCell(x: number, y: number): void

Parameters:#

NameType
xnumber
ynumber

Returns: void

Defined in: handles/region.ts:30


clearCellPoint#

clearCellPoint(whichPoint: Point): void

Parameters:#

NameType
whichPointPoint

Returns: void

Defined in: handles/region.ts:34


clearRect#

clearRect(r: Rectangle): void

Parameters:#

NameType
rRectangle

Returns: void

Defined in: handles/region.ts:38


containsCoords#

containsCoords(x: number, y: number): boolean

Parameters:#

NameType
xnumber
ynumber

Returns: boolean

Defined in: handles/region.ts:42


containsPoint#

containsPoint(whichPoint: Point): void

Parameters:#

NameType
whichPointPoint

Returns: void

Defined in: handles/region.ts:46


containsUnit#

containsUnit(whichUnit: Unit): boolean

Parameters:#

NameType
whichUnitUnit

Returns: boolean

Defined in: handles/region.ts:50


destroy#

destroy(): void

Returns: void

Defined in: handles/region.ts:54


fromHandle#

static fromHandle(handle: region): Region

Parameters:#

NameType
handleregion

Returns: Region

Defined in: handles/region.ts:58