PathBuilder
See source codeTable of contents
class PathBuilder {}Constructor
Constructs a new instance of the PathBuilder class
Methods
cubicSplineThroughPoints( )
static
static cubicSplineThroughPoints(
  points: VecLike[],
  opts?: PathBuilderLineOpts & {
    endOffsets?: number
  }
): PathBuilderParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
Returns
lineThroughPoints( )
static
static lineThroughPoints(
  points: VecLike[],
  opts?: PathBuilderLineOpts & {
    endOffsets?: number
  }
): PathBuilderParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
Returns
arcTo( )
arcTo(
  rx: number,
  ry: number,
  largeArcFlag: boolean,
  sweepFlag: boolean,
  xAxisRotationRadians: number,
  x2: number,
  y2: number,
  opts?: PathBuilderCommandOpts
): thisParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  | 
Returns
thiscircularArcTo( )
circularArcTo(
  radius: number,
  largeArcFlag: boolean,
  sweepFlag: boolean,
  x2: number,
  y2: number,
  opts?: PathBuilderCommandOpts
): thisParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  | 
Returns
thisclose( )
close(): thiscubicBezierTo( )
cubicBezierTo(
  x: number,
  y: number,
  cp1X: number,
  cp1Y: number,
  cp2X: number,
  cp2Y: number,
  opts?: PathBuilderCommandOpts
): thisParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  |  | 
  | 
Returns
thislineTo( )
lineTo(x: number, y: number, opts?: PathBuilderCommandOpts): thisParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  | 
Returns
thismoveTo( )
moveTo(x: number, y: number, opts?: PathBuilderLineOpts): thisParameters
| Name | Description | 
|---|---|
  |  | 
  |  | 
  | 
Returns
thistoD( )
toD(opts?: PathBuilderToDOpts): stringParameters
| Name | Description | 
|---|---|
  | 
Returns
stringtoDrawD( )
toDrawD(opts: DrawPathBuilderDOpts): stringParameters
| Name | Description | 
|---|---|
  | 
Returns
stringtoGeometry( )
toGeometry(): Group2d | PathBuilderGeometry2dtoSvg( )
toSvg(opts: PathBuilderOpts): import('react/jsx-runtime').JSX.ElementParameters
| Name | Description | 
|---|---|
  | 
Returns
import('react/jsx-runtime').JSX.ElementPrev
NoteShapeUtilNext
PathBuilderGeometry2d