Properties
addArc
add
Arc: (oval: IRect, startAngle: number, sweepAngle: number) => void
Type declaration
-
- (oval: IRect, startAngle: number, sweepAngle: number): void
-
Parameters
-
-
startAngle: number
-
sweepAngle: number
Returns void
addOval
add
Oval: (oval: IRect) => void
addPolygon
add
Polygon: (points: IList<IOffset>, close: boolean) => void
addRRect
addRRect
: (rrect
: IRRect) => void
addRect
add
Rect: (rect: IRect) => void
arcTo
arc
To: (rect: IRect, startAngle: number, sweepAngle: number, forceMoveTo: boolean) => void
Type declaration
-
- (rect: IRect, startAngle: number, sweepAngle: number, forceMoveTo: boolean): void
-
Parameters
-
-
startAngle: number
-
sweepAngle: number
-
forceMoveTo: boolean
Returns void
arcToPoint
arc
ToPoint: (arcEnd: IOffset, props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }) => void
Type declaration
-
- (arcEnd: IOffset, props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }): void
-
Parameters
-
-
props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }
-
clockwise: boolean
-
largeArc: boolean
-
-
rotation: number
Returns void
computeMetrics
compute
Metrics: (props: { forceClosed: boolean }) => IPathMetrics
Type declaration
-
-
Parameters
-
props: { forceClosed: boolean }
conicTo
conicTo: (x1: number, y1: number, x2: number, y2: number, w: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number, w: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
w: number
Returns void
contains
contains
: (point
: IOffset) => boolean
Type declaration
-
-
Parameters
Returns boolean
cubicTo
cubicTo: (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
x3: number
-
y3: number
Returns void
lineTo
lineTo: (x: number, y: number) => void
Type declaration
-
- (x: number, y: number): void
moveTo
moveTo: (x: number, y: number) => void
Type declaration
-
- (x: number, y: number): void
quadraticBezierTo
quadraticBezierTo: (x1: number, y1: number, x2: number, y2: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
Returns void
relativeArcToPoint
relative
ArcToPoint: (arcEndDelta: IOffset, props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }) => void
Type declaration
-
- (arcEndDelta: IOffset, props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }): void
-
Parameters
-
-
props: { clockwise: boolean; largeArc: boolean; radius: IRadius; rotation: number }
-
clockwise: boolean
-
largeArc: boolean
-
-
rotation: number
Returns void
relativeConicTo
relativeConicTo: (x1: number, y1: number, x2: number, y2: number, w: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number, w: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
w: number
Returns void
relativeCubicTo
relativeCubicTo: (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
x3: number
-
y3: number
Returns void
relativeLineTo
relativeLineTo: (dx: number, dy: number) => void
Type declaration
-
- (dx: number, dy: number): void
relativeMoveTo
relativeMoveTo: (dx: number, dy: number) => void
Type declaration
-
- (dx: number, dy: number): void
relativeQuadraticBezierTo
relativeQuadraticBezierTo: (x1: number, y1: number, x2: number, y2: number) => void
Type declaration
-
- (x1: number, y1: number, x2: number, y2: number): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
Returns void