Interface: Resizable
Defined in: common/types/Resizable.ts:5
Represents an object with a resizable surface, such as a RenderContext's
canvas.
Properties
height
height:
number
Defined in: common/types/Resizable.ts:14
The current height, in pixels.
width
width:
number
Defined in: common/types/Resizable.ts:9
The current width, in pixels.
Methods
resize()
resize(
width,height):void
Defined in: common/types/Resizable.ts:21
Resizes the object.
Parameters
width
number
The new width, in pixels.
height
number
The new height, in pixels.
Returns
void