Skip to main content

Class: ViewPort

Constructors​

constructor​

• new ViewPort()

Properties​

DEFAULT_VIEWPORT_WIDTH​

â–ª Static DEFAULT_VIEWPORT_WIDTH: number = 800

Defined in​

src/ViewPort.ts:10


DEFAULT_VIEWPORT_HEIGHT​

â–ª Static DEFAULT_VIEWPORT_HEIGHT: number = 600

Defined in​

src/ViewPort.ts:11


viewPorts​

• viewPorts: IViewPortSize[] = []

Defined in​

src/ViewPort.ts:13

Accessors​

width​

• get width(): number

Returns​

number

Defined in​

src/ViewPort.ts:51


height​

• get height(): number

Returns​

number

Defined in​

src/ViewPort.ts:55

Methods​

clear​

â–¸ clear(): void

Returns​

void

Defined in​

src/ViewPort.ts:15


setCurrent​

â–¸ setCurrent(width, height): void

Parameters​

NameType
widthnumber
heightnumber

Returns​

void

Defined in​

src/ViewPort.ts:19


removeCurrent​

â–¸ removeCurrent(): void

Returns​

void

Defined in​

src/ViewPort.ts:26


getRoot​

â–¸ getRoot(): IViewPortSize

Returns​

IViewPortSize

Defined in​

src/ViewPort.ts:30


getCurrent​

â–¸ getCurrent(): IViewPortSize

Returns​

IViewPortSize

Defined in​

src/ViewPort.ts:40


computeSize​

â–¸ computeSize(d?): number

Parameters​

NameType
d?number | Axis

Returns​

number

Defined in​

src/ViewPort.ts:59