Class: ViewPort
Constructors​
constructor​
• new ViewPort()
Properties​
DEFAULT_VIEWPORT_WIDTH​
â–ª Static
DEFAULT_VIEWPORT_WIDTH: number
= 800
Defined in​
DEFAULT_VIEWPORT_HEIGHT​
â–ª Static
DEFAULT_VIEWPORT_HEIGHT: number
= 600
Defined in​
viewPorts​
• viewPorts: IViewPortSize
[] = []
Defined in​
Accessors​
width​
• get
width(): number
Returns​
number
Defined in​
height​
• get
height(): number
Returns​
number
Defined in​
Methods​
clear​
â–¸ clear(): void
Returns​
void
Defined in​
setCurrent​
â–¸ setCurrent(width
, height
): void
Parameters​
Name | Type |
---|---|
width | number |
height | number |
Returns​
void
Defined in​
removeCurrent​
â–¸ removeCurrent(): void
Returns​
void
Defined in​
getRoot​
â–¸ getRoot(): IViewPortSize
Returns​
Defined in​
getCurrent​
â–¸ getCurrent(): IViewPortSize
Returns​
Defined in​
computeSize​
â–¸ computeSize(d?
): number
Parameters​
Name | Type |
---|---|
d? | number | Axis |
Returns​
number