ViewCanvas
+ new ViewCanvas(canvas
: Canvas): ViewCanvas
Parameters:
Returns: ViewCanvas
Protected
Readonly
canvas• canvas: Canvas
Readonly
context• context: CanvasRenderingContext2D
▸ drawPath(paint
: Paint): void
Parameters:
Returns: void
▸ drawRect(rect
: Rect, paint
: Paint, borders?
: Rect): void
Parameters:
Returns: void
▸ drawText(x
: number, y
: number, text
: string, paint
: Paint, paintOverrides?
: PaintOverrides, maxWidth
: number): void
Parameters:
Returns: void
▸ line(line
: Line): void
Parameters:
Returns: void
▸ measureText(text
: string, paint
: Paint): TextMetrics
Parameters:
Returns: TextMetrics
▸ roundRect(x
: number, y
: number, w
: number, h
: number, r
: Radius): void
Parameters:
Returns: void
▸ setPaint(paint
: Paint, paintOverrides?
: PaintOverrides): void
Parameters:
Returns: void
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type | Default |
---|---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
canvas
paint
rect
paint
borders?
x
number
-
y
number
-
text
string
-
paint
-
paintOverrides?
-
maxWidth
number
0
line
text
string
paint
x
number
y
number
w
number
h
number
r
paint
paintOverrides?