interface InlineAPI { canBreak(): boolean; canDraw(): boolean; color(): | null | string | CanvasGradient | CanvasPattern; draw(opt: any): void; font(): null | string; onReady(callback: AnyFunction): void; width(arg: { ctx: CanvasRenderingContext2D; }): number; } Methods
canBreak
- canBreak(): boolean
Returns boolean
canDraw
- canDraw(): boolean
Returns boolean
color
- color():
| null
| string
| CanvasGradient
| CanvasPattern Returns
| null
| string
| CanvasGradient
| CanvasPattern
draw
- draw(opt): void
Returns void
font
- font(): null | string
Returns null | string
onReady
- onReady(callback): void
Returns void
width
- width(arg): number
Parameters
- arg: {
ctx: CanvasRenderingContext2D;
}ctx: CanvasRenderingContext2D
Returns number