PathBuilder
Table of contents
class PathBuilder {}Constructor
Constructs a new instance of the PathBuilder class
Methods
cubicSplineThroughPoints( )
static
static cubicSplineThroughPoints(
points: VecLike[],
opts?: PathBuilderLineOpts & {
endOffsets?: number;
},
): PathBuilder;Parameters
| Name | Description |
|---|---|
| |
| |
Returns
lineThroughPoints( )
static
static lineThroughPoints(
points: VecLike[],
opts?: PathBuilderLineOpts & {
endOffsets?: number;
},
): PathBuilder;Parameters
| Name | Description |
|---|---|
| |
| |
Returns
arcTo( )
arcTo(
rx: number,
ry: number,
largeArcFlag: boolean,
sweepFlag: boolean,
xAxisRotationRadians: number,
x2: number,
y2: number,
opts?: PathBuilderCommandOpts,
): this;Parameters
| Name | Description |
|---|---|
| |
| |
| |
| |
| |
| |
| |
|
Returns
this;circularArcTo( )
circularArcTo(
radius: number,
largeArcFlag: boolean,
sweepFlag: boolean,
x2: number,
y2: number,
opts?: PathBuilderCommandOpts,
): this;Parameters
| Name | Description |
|---|---|
| |
| |
| |
| |
| |
|
Returns
this;close( )
close(): this;cubicBezierTo( )
cubicBezierTo(
x: number,
y: number,
cp1X: number,
cp1Y: number,
cp2X: number,
cp2Y: number,
opts?: PathBuilderCommandOpts,
): this;Parameters
| Name | Description |
|---|---|
| |
| |
| |
| |
| |
| |
|
Returns
this;lineTo( )
lineTo(x: number, y: number, opts?: PathBuilderCommandOpts): this;Parameters
| Name | Description |
|---|---|
| |
| |
|
Returns
this;moveTo( )
moveTo(x: number, y: number, opts?: PathBuilderLineOpts): this;Parameters
| Name | Description |
|---|---|
| |
| |
|
Returns
this;toD( )
toD(opts?: PathBuilderToDOpts): string;Parameters
| Name | Description |
|---|---|
|
Returns
string;toDrawD( )
toDrawD(opts: DrawPathBuilderDOpts): string;Parameters
| Name | Description |
|---|---|
|
Returns
string;toGeometry( )
toGeometry(): Group2d | PathBuilderGeometry2d;toPath2D( )
toPath2D(opts: PathBuilderOpts): Path2D;Parameters
| Name | Description |
|---|---|
|
Returns
Path2D;toSvg( )
toSvg(opts: PathBuilderOpts): import("react/jsx-runtime").JSX.Element;Parameters
| Name | Description |
|---|---|
|
Returns
import("react/jsx-runtime").JSX.Element;Prev
NoteShapeUtilNext
PathBuilderGeometry2d