Interface: IPath2D
Hierarchy
CanvasPath
↳
IPath2D
Table of contents
Methods
Methods
addPath
▸ addPath(path
, transform?
): void
Parameters
Name | Type |
---|---|
path | IPath2D |
transform? | DOMMatrix2DInit |
Returns
void
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:14
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
Inherited from
CanvasPath.arc
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:88
arcTo
▸ arcTo(x1
, y1
, x2
, y2
, radius
): void
Parameters
Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
radius | number |
Returns
void
Inherited from
CanvasPath.arcTo
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:89
bezierCurveTo
▸ bezierCurveTo(cp1x
, cp1y
, cp2x
, cp2y
, x
, y
): void
Parameters
Name | Type |
---|---|
cp1x | number |
cp1y | number |
cp2x | number |
cp2y | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasPath.bezierCurveTo
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:90
closePath
▸ closePath(): void
Returns
void
Inherited from
CanvasPath.closePath
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:91
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
Inherited from
CanvasPath.ellipse
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:92
lineTo
▸ lineTo(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasPath.lineTo
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:93
moveTo
▸ moveTo(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
CanvasPath.moveTo
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:94
quadraticCurveTo
▸ quadraticCurveTo(cpx
, cpy
, x
, y
): void
Parameters
Name | Type |
---|---|
cpx | number |
cpy | number |
x | number |
y | number |
Returns
void
Inherited from
CanvasPath.quadraticCurveTo
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:95
rect
▸ rect(x
, y
, w
, h
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
w | number |
h | number |
Returns
void
Inherited from
CanvasPath.rect
Defined in
leafer/packages/interface/src/canvas/ICanvas.ts:96
roundRect
▸ roundRect(x
, y
, width
, height
, radius?
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
width | number |
height | number |
radius? | number | number [] |
Returns
void
Inherited from
CanvasPath.roundRect