Skip to content

Interface: IPathDrawer

Hierarchy

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

NameType
xnumber
ynumber

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:5


lineTo

lineTo(x, y): void

Parameters

NameType
xnumber
ynumber

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:6


bezierCurveTo

bezierCurveTo(x1, y1, x2, y2, x, y): void

Parameters

NameType
x1number
y1number
x2number
y2number
xnumber
ynumber

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:7


quadraticCurveTo

quadraticCurveTo(x1, y1, x, y): void

Parameters

NameType
x1number
y1number
xnumber
ynumber

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

NameType
xnumber
ynumber
radiusnumber
startAnglenumber
endAnglenumber
anticlockwise?boolean

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:11


arcTo

arcTo(x1, y1, x2, y2, radius): void

Parameters

NameType
x1number
y1number
x2number
y2number
radiusnumber

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:12


ellipse

ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise?): void

Parameters

NameType
xnumber
ynumber
radiusXnumber
radiusYnumber
rotationnumber
startAnglenumber
endAnglenumber
anticlockwise?boolean

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:13


rect

rect(x, y, width, height): void

Parameters

NameType
xnumber
ynumber
widthnumber
heightnumber

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:15


roundRect

roundRect(x, y, width, height, radius?): void

Parameters

NameType
xnumber
ynumber
widthnumber
heightnumber
radius?number | number[]

Returns

void

Defined in

leafer/packages/interface/src/path/IPathDrawer.ts:16

Released under the MIT License.