Interface: IPathDrawer
Hierarchy
IPathDrawer
Table of contents
Methods
Methods
beginPath
▸ beginPath(): void
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:3
moveTo
▸ moveTo(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:5
lineTo
▸ lineTo(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:6
bezierCurveTo
▸ bezierCurveTo(x1
, y1
, x2
, y2
, x
, y
): void
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
x | number |
y | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:7
quadraticCurveTo
▸ quadraticCurveTo(x1
, y1
, x
, y
): void
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x | number |
y | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:8
closePath
▸ closePath(): void
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:9
arc
▸ arc(x
, y
, radius
, startAngle
, endAngle
, anticlockwise?
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle | number |
endAngle | number |
anticlockwise? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:11
arcTo
▸ arcTo(x1
, y1
, x2
, y2
, radius
): void
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:12
ellipse
▸ ellipse(x
, y
, radiusX
, radiusY
, rotation
, startAngle
, endAngle
, anticlockwise?
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation | number |
startAngle | number |
endAngle | number |
anticlockwise? | boolean |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:13
rect
▸ rect(x
, y
, width
, height
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
void
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:15
roundRect
▸ roundRect(x
, y
, width
, height
, radius?
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
radius? | number | number [] |
Returns
void