Canvaslike
type Canvaslike = { clientHeight?: number; clientWidth?: number; height: number; style?: any; width: number; getContext: CanvaslikeRenderingContext2D;};Any Canvas-like interface. We’ve typed it minimally so that server based canvas implementations don’t complain.
Properties
Section titled “Properties”| Property | Type |
|---|---|
clientHeight? | number |
clientWidth? | number |
height | number |
style? | any |
width | number |
Methods
Section titled “Methods”getContext()
Section titled “getContext()”getContext(type: "2d", options?: any): CanvaslikeRenderingContext2D;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type | "2d" |
options? | any |