ViewCanvas
Hierarchy
ViewCanvas
Index
Constructors
Properties
Methods
Constructors
constructor
+ new ViewCanvas(canvas
: Canvas): ViewCanvas
Parameters:
Returns: ViewCanvas
Properties
Protected
Readonly
canvas
Protected
Readonly
canvas• canvas: Canvas
Readonly
context
Readonly
context• context: CanvasRenderingContext2D
Methods
drawPath
▸ drawPath(paint
: Paint): void
Parameters:
Returns: void
drawRect
▸ drawRect(rect
: Rect, paint
: Paint, borders?
: Rect): void
Parameters:
Returns: void
drawText
▸ drawText(x
: number, y
: number, text
: string, paint
: Paint, paintOverrides?
: PaintOverrides, maxWidth
: number): void
Parameters:
Returns: void
line
▸ line(line
: Line): void
Parameters:
Returns: void
measureText
▸ measureText(text
: string, paint
: Paint): TextMetrics
Parameters:
Returns: TextMetrics
roundRect
▸ roundRect(x
: number, y
: number, w
: number, h
: number, r
: Radius): void
Parameters:
Returns: void
setPaint
▸ setPaint(paint
: Paint, paintOverrides?
: PaintOverrides): void
Parameters:
Returns: void
Last updated