Skip to content

PathBuilder

Builds a path in page space; every method returns the builder, so calls chain.

circle(center, radius): PathBuilder

A circle around center.

Point

number

PathBuilder


close(): PathBuilder

Closes the subpath.

PathBuilder


cubicTo(x1, y1, x2, y2, x, y): PathBuilder

A cubic Bézier curve through two control points to (x, y).

number

number

number

number

number

number

PathBuilder


ellipse(rect): PathBuilder

The ellipse inscribed in a rectangle.

Rect

PathBuilder


lineTo(x, y): PathBuilder

A straight line to (x, y).

number

number

PathBuilder


moveTo(x, y): PathBuilder

Starts a subpath at (x, y).

number

number

PathBuilder


quadTo(x1, y1, x, y): PathBuilder

A quadratic Bézier curve through one control point to (x, y).

number

number

number

number

PathBuilder


rect(rect): PathBuilder

A rectangle: left, top, width, height.

Rect

PathBuilder