Interface: IPathCreator
Hierarchy
↳
IPathCreator
↳↳
IPen
Implemented by
Table of contents
Properties
Methods
- beginPath
- moveTo
- lineTo
- bezierCurveTo
- quadraticCurveTo
- closePath
- arc
- arcTo
- ellipse
- rect
- roundRect
- drawEllipse
- drawArc
- drawPoints
- clearPath
Properties
path
• path: IPathCommandData
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:20
__path
• __path: IPathCommandData
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:21
Methods
beginPath
▸ beginPath(): IPathCreator
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:23
moveTo
▸ moveTo(x
, y
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:25
lineTo
▸ lineTo(x
, y
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:26
bezierCurveTo
▸ bezierCurveTo(x1
, y1
, x2
, y2
, x
, y
): IPathCreator
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
x | number |
y | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:27
quadraticCurveTo
▸ quadraticCurveTo(x1
, y1
, x
, y
): IPathCreator
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x | number |
y | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:28
closePath
▸ closePath(): IPathCreator
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:29
arc
▸ arc(x
, y
, radius
, startAngle?
, endAngle?
, anticlockwise?
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle? | number |
endAngle? | number |
anticlockwise? | boolean |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:31
arcTo
▸ arcTo(x1
, y1
, x2
, y2
, radius
): IPathCreator
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:32
ellipse
▸ ellipse(x
, y
, radiusX
, radiusY
, rotation?
, startAngle?
, endAngle?
, anticlockwise?
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation? | number |
startAngle? | number |
endAngle? | number |
anticlockwise? | boolean |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:33
rect
▸ rect(x
, y
, width
, height
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:35
roundRect
▸ roundRect(x
, y
, width
, height
, radius?
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
radius? | number | number [] |
Returns
Overrides
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:36
drawEllipse
▸ drawEllipse(x
, y
, radiusX
, radiusY
, rotation?
, startAngle?
, endAngle?
, anticlockwise?
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
radiusX | number |
radiusY | number |
rotation? | number |
startAngle? | number |
endAngle? | number |
anticlockwise? | boolean |
Returns
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:39
drawArc
▸ drawArc(x
, y
, radius
, startAngle?
, endAngle?
, anticlockwise?
): IPathCreator
Parameters
Name | Type |
---|---|
x | number |
y | number |
radius | number |
startAngle? | number |
endAngle? | number |
anticlockwise? | boolean |
Returns
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:40
drawPoints
▸ drawPoints(points
, curve?
, close?
): IPathCreator
Parameters
Name | Type |
---|---|
points | number [] |
curve? | number | boolean |
close? | boolean |
Returns
Defined in
leafer/packages/interface/src/path/IPathDrawer.ts:41
clearPath
▸ clearPath(): IPathCreator