PavePave
Home
Guide
API
Sandbox
  • English
  • 日本語
GitHub
Home
Guide
API
Sandbox
  • English
  • 日本語
GitHub
  • Path

@baku89/pave v0.7.2


@baku89/pave / Path

Path

Functions for manipulating paths represented as Path.

For creating new paths, see Primitives. Getting intrinsic properties of paths, see Properties. Manipulating existing paths, such as transforming, styling, deforming, etc., see Modifiers.

Inputs are never mutated; returned paths are new objects unless noted otherwise.

Primitives

arc()

arc(center, radius, startAngle, endAngle, options): Path

Defined in: Path.ts:111

Creates an arc path.

Parameters

ParameterTypeDescription
centervec2The center of the arc
radiusnumberThe radius of the arc
startAnglenumberThe start angle in radians
endAnglenumberThe end angle in radians
optionsArcOptions-

Returns

Path

The newly created path

Example


arcByPoints()

arcByPoints(start, through, end): Path

Defined in: Path.ts:112

Creates an arc path from the given three points. If the points are collinear, it will create a straight line path.

Parameters

ParameterTypeDescription
startvec2The start point
throughvec2The point that the arc passes through
endvec2The end point

Returns

Path

The newly created path


arcByPointsAngle()

arcByPointsAngle(start, end, angle): Path

Defined in: Path.ts:114

Creates an arc path from two points and an angle.

Parameters

ParameterTypeDescription
startvec2The start point
endvec2The end point
anglenumberThe angle of arc in degrees. If the angle is positive, the arc will be drawn in the sweep direction (clockwise in Y-down coordinate system).

Returns

Path

The newly created path


arcByPointsTangent()

arcByPointsTangent(start, startTangent, end): Path

Defined in: Path.ts:113

Creates an arc path from start point, start tangent, and end point.

Parameters

ParameterTypeDescription
startvec2The start point
startTangentvec2The tangent at the start point
endvec2The end point

Returns

Path

A newly created open arc path


circle()

circle(center, radius): Path

Defined in: Path.ts:105

Creates a circle path from the given center and radius.

Parameters

ParameterTypeDescription
centervec2The center of the circle
radiusnumberThe radius of the circle

Returns

Path

The newly created path

Example


cubicBezier()

cubicBezier(start, control1, control2, point): Path

Defined in: Path.ts:123

Creates a path consisting of a single C command.

Parameters

ParameterTypeDescription
startvec2The start point
control1vec2The first control point
control2vec2The second control point
pointvec2The end point

Returns

Path

The newly created path


dot()

dot(point): PathL

Defined in: Path.ts:117

Creates a “dot“ path, which consists of only a M command to the specified point followed by Z command. This will be rendered only if the lineCap of the drawing context is set to 'round' or 'square'.

Parameters

ParameterTypeDescription
pointvec2The center point of the dot

Returns

PathL

The newly created paths

Example


ellipse()

ellipse(center, radius): Path

Defined in: Path.ts:110

Creates an ellipse path from the given center and radius.

Parameters

ParameterTypeDescription
centervec2The center of the ellipse
radiusvec2The radius of the ellipse

Returns

Path

The newly created path

Example


fan()

fan(center, innerRadius, outerRadius, startAngle, endAngle): Path

Defined in: Path.ts:115

Creates a fan path.

Parameters

ParameterTypeDescription
centervec2The center of the fan
innerRadiusnumberThe inner radius of the fan
outerRadiusnumberThe outer radius of the fan
startAnglenumberThe start angle in radians
endAnglenumberThe end angle in radians

Returns

Path

The newly created path

Example


fromSegment()

fromSegment(segment): Path

Defined in: Path.ts:128

Creates an open path consist of only a single command.

Parameters

ParameterTypeDescription
segmentSegmentThe segment to create

Returns

Path

The newly created path


grid()

grid(rect, divs): PathL

Defined in: Path.ts:122

Parameters

ParameterType
rectRect
divsvec2

Returns

PathL


halfLine()

halfLine(point, through, distance): Path

Defined in: Path.ts:108

Creates a half-line, infinite line in one direction from a starting point and a point that the line passes through. It is not actually an inifinite, but one with a very large length.

Parameters

ParameterTypeDefault valueDescription
pointvec2undefinedThe starting point
throughvec2undefinedThe point that the line passes through
distancenumber1e8The length of the half-line

Returns

Path

The half-line path


infiniteLine()

infiniteLine(point0, point1, distance): Path

Defined in: Path.ts:107

Creates an infinite line path from the given two points. Unlike line, the line will be drawn nearly infinitely in both directions.

Parameters

ParameterTypeDefault valueDescription
point0vec2undefinedThe first point
point1vec2undefinedThe second point
distancenumber1e8The length of the infinite line for each direction

Returns

Path

The infinite line path


line()

line(start, end): PathL

Defined in: Path.ts:116

Creates a linear path from two points describing a line.

Parameters

ParameterTypeDescription
startvec2The line’s starting point
endvec2The line’s ending point

Returns

PathL

The newly created path

Example


nBezier()

nBezier(points): Path

Defined in: Path.ts:125

Create a path consisting of cubic Bézier curves approximating the arbitrary higher-order Bézier curve.

Parameters

ParameterTypeDescription
pointsvec2[]The control points of the Bézier curve

Returns

Path

The newly created path


ngon()

ngon(center, radius, sides): PathL

Defined in: Path.ts:121

Creates a regular polygon. The first vertex will be placed at the +X axis relative to the center.

Parameters

ParameterTypeDescription
centervec2The center of the polygon
radiusnumberThe radius of the circumcircle of the polygon
sidesnumberThe number o sides of the polygon

Returns

PathL

The newly created path

Example


polygon()

polygon(…points): PathL

Defined in: Path.ts:119

Creates a closed polyline from the given points.

Parameters

ParameterTypeDescription
…pointsvec2[]The points describing the polygon

Returns

PathL

The newly created path

Example


quadraticBezier()

quadraticBezier(start, control, point): Path

Defined in: Path.ts:124

Creates a quadratic Bézier curve path from the given points.

Parameters

ParameterTypeDescription
startvec2The start point
controlvec2The control point
pointvec2The end point

Returns

Path

THe newly created path


rect()

rect(start, end): Path

Defined in: Path.ts:102

Creates a rectangle path from the given two points.

Parameters

ParameterTypeDescription
startvec2The first point defining the rectangle
endvec2The second point defining the rectangle

Returns

Path

The newly created path

Example


rectangle()

rectangle(start, end): Path

Defined in: Path.ts:101

Creates a rectangle path from the given two points.

Parameters

ParameterTypeDescription
startvec2The first point defining the rectangle
endvec2The second point defining the rectangle

Returns

Path

The newly created path

Example


rectFromCenter()

rectFromCenter(center, size): Path

Defined in: Path.ts:103

Creates a rectangle path from the given center and size.

Parameters

ParameterTypeDescription
centervec2The center of the rectangle
sizevec2The size of the rectangle

Returns

Path

The newly created path


regularPolygon()

regularPolygon(center, radius, sides): PathL

Defined in: Path.ts:120

Creates a regular polygon. The first vertex will be placed at the +X axis relative to the center.

Parameters

ParameterTypeDescription
centervec2The center of the polygon
radiusnumberThe radius of the circumcircle of the polygon
sidesnumberThe number o sides of the polygon

Returns

PathL

The newly created path

Example


roundRect()

roundRect(start, end, radii): Path

Defined in: Path.ts:104

Creates a rounded rectangle. The arguments are almost the same as the CanvasRenderingContext2D’s roundRect method.

Parameters

ParameterType
startvec2
endvec2
radiinumber | [number] | [number, number] | [number, number, number] | [number, number, number, number]

Returns

Path

See

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect


semicircle()

semicircle(start, end, closed): Path

Defined in: Path.ts:106

Creates a semicircle path from the given start and end points.

Parameters

ParameterTypeDefault value
startvec2undefined
endvec2undefined
closedbooleantrue

Returns

Path

Properties

derivative()

derivative(path, loc): vec2

Defined in: Path.ts:141

Calculates the normalized tangent vector of the path at the given location.

Parameters

ParameterTypeDescription
pathPathThe path to calcuate
locPathLocationThe location on the path

Returns

vec2

The tangent vector


normal()

normal(path, loc): vec2

Defined in: Path.ts:143

Calculates the normalized tangent vector of the path at the given location.

Parameters

ParameterTypeDescription
pathPathThe path to calcuate
locPathLocationThe location on the path

Returns

vec2

The tangent vector


orientation()

orientation(path, loc): mat2d

Defined in: Path.ts:144

Calculates the transformation matrix of the path at the given location. The x-axis of the matrix is the tangent vector and the y-axis is the normal vector, and the translation is the point on the path.

Parameters

ParameterTypeDescription
pathPathThe path to calculate
locPathLocationThe location on the path

Returns

mat2d

The transformation matrix at the given offset


point()

point(path, loc): vec2

Defined in: Path.ts:140

Calculates the position on the path at the given location.

Parameters

ParameterTypeDescription
pathPathThe path to calculate
locPathLocationThe location on the path

Returns

vec2

The position at the given offset


segment()

segment(path, curveIndex, segmentIndex?): Segment

Defined in: Path.ts:136

Returns the segment of the path by indices. If the segmentIndex is omitted, the curveIndex is treated as the linear segment index of the whole path. It also supports negative indices, which count from the end of the path or curve.

Parameters

ParameterTypeDescription
pathPathThe path that contains the segment
curveIndexnumberThe index of the curve.
segmentIndex?numberThe index of the segment in the curve.

Returns

Segment

The segment


tangent()

tangent(path, loc): vec2

Defined in: Path.ts:142

Calculates the normalized tangent vector of the path at the given location.

Parameters

ParameterTypeDescription
pathPathThe path to calcuate
locPathLocationThe location on the path

Returns

vec2

The tangent vector

Modifiers

chamfer()

chamfer(path, distance): Path

Defined in: Path.ts:163

Chamfers the given path.

Parameters

ParameterTypeDescription
pathPathThe path to chamfer
distancenumberThe distance of chamfer

Returns

Path

The newly created path


distort()

distort(path, transform, __namedParameters): Path<Vertex>

Defined in: Path.ts:162

Distorts path by the given transformation function. It assumes that the continuity of transformation is smooth in the spatial domain and has no singularities or cusps.

Parameters

ParameterTypeDescription
pathPathThe path to distort
transform(position) => mat2dThe distort function that maps a point coordinate to a transformation matrix. The translation component is absolute, and affects points of Bézier curves. The rotation, scaling, and skewing components affect the orientation of two handles.
__namedParametersDistortOptions-

Returns

Path<Vertex>

The newly created path

Example


fillet()

fillet(path, radius): Path

Defined in: Path.ts:164

Fillets the given path.

Parameters

ParameterTypeDescription
pathPathThe path to fillet
radiusnumberThe radius of fillet

Returns

Path

The newly created path


flatten()

flatten(path, flatness): Path

Defined in: Path.ts:158

Flattens the curves in path to straight lines (recursive midpoint split until chord / hull deviation ≤ flatness).

Parameters

ParameterTypeDefault valueDescription
pathPathundefinedThe path to flatten
flatnessnumber0.25The maximum distance between the path and the flattened path

Returns

Path

The flattened path consists of only M, L, and Z commands

Example


join()

join(paths): Path

Defined in: Path.ts:157

Joins the given paths into a single open paths.

Parameters

ParameterTypeDescription
pathsPath[]The paths to join

Returns

Path

The joined path


merge()

merge(pathOrCurves): Path

Defined in: Path.ts:129

Merges the given paths into a single path. Unlike join or unite, the vertices are not connected, and it simply returns compound path.

Parameters

ParameterType
pathOrCurves(Path | Curve)[]

Returns

Path


offset()

offset(path, offset, options?): Path

Defined in: Path.ts:155

Creates an offset path from the given path.

Parameters

ParameterTypeDescription
pathPathThe path to offset
offsetnumberThe width of offset
options?OffsetOptionsThe options

Returns

Path

The newly created path

Example


offsetStroke()

offsetStroke(path, width, options?): Path

Defined in: Path.ts:156

Creates an offset path from the given path.

Parameters

ParameterTypeDescription
pathPathThe path to offset
widthnumberThe width of stroke
options?OffsetStrokeOptionsThe options

Returns

Path

The newly created path

Example


reduce()

reduce(path, options): Path

Defined in: Path.ts:189

Cleans up the path by removing redundant vertices and

Parameters

ParameterTypeDescription
pathPath
optionsReduceOptions-

Returns

Path


reverse()

reverse(path, options:): Path

Defined in: Path.ts:150

Reverses the given path.

Parameters

ParameterTypeDescription
pathPathThe path to reverse
options:ReverseOptionsThe options

Returns

Path

The reversed path


spawn()

spawn(path, fn, __namedParameters): Path

Defined in: Path.ts:148

Maps each segments in the path to a path and create a new path concatinating those paths.

Parameters

ParameterType
pathPath
fn(seg, segmentIndex, curve) => Path
__namedParametersSpawnOptions

Returns

Path


spawnCurve()

spawnCurve<V1, V2>(path, fn): Path<V2>

Defined in: Path.ts:147

Maps each curves in the path to a single or array of curves and creates a new path concatinating those curves. Unlike spawnVertex, you can also change the number of curves, or open/close state of the curves.

Type Parameters

Type ParameterDefault type
V1 extends VertexVertex
V2 extends VertexVertex

Parameters

ParameterTypeDescription
pathPath<V1>The path to map
fn(curve, curveIndex) => Curve<V2> | Curve<V2>[]The curve mapping function.

Returns

Path<V2>

The newly created path


split()

split(path, locs): Path[]

Defined in: Path.ts:161

Splits the path into multiple paths at the given locations.

Parameters

ParameterTypeDescription
pathPathThe path to split
locsIterable<PathLocation>The locations to split

Returns

Path[]

The splitted paths


subdiv()

subdiv(path, division): Path

Defined in: Path.ts:160

Subdivides each segment in the path into specific number of sub-segments.

Parameters

ParameterTypeDescription
pathPathThe path to subdivide
divisionnumberThe number of division for each segment

Returns

Path

The newly created path


subdivide()

subdivide(path, division): Path

Defined in: Path.ts:159

Subdivides each segment in the path into specific number of sub-segments.

Parameters

ParameterTypeDescription
pathPathThe path to subdivide
divisionnumberThe number of division for each segment

Returns

Path

The newly created path


toC()

toC(path, unarcAngle): PathC

Defined in: Path.ts:154

Converts all commands in the path to cubic Bézier curve commands.

Parameters

ParameterTypeDefault valueDescription
pathPathundefinedThe path to convert
unarcAnglenumber90The angle step for approximating arc commands with cubic Béziers

Returns

PathC

The new path with only cubic Bézier curve commands


toCubicBezier()

toCubicBezier(path, unarcAngle): PathC

Defined in: Path.ts:153

Converts all commands in the path to cubic Bézier curve commands.

Parameters

ParameterTypeDefault valueDescription
pathPathundefinedThe path to convert
unarcAnglenumber90The angle step for approximating arc commands with cubic Béziers

Returns

PathC

The new path with only cubic Bézier curve commands


transform()

transform(path, matrix): Path

Defined in: Path.ts:149

Transforms the given path by the given matrix.

Parameters

ParameterTypeDescription
pathPathThe path to transform
matrixmat2dThe matrix to transform the path by

Returns

Path

The transformed path


trim()

trim(path, from, to, crossFirstPoint): Path

Defined in: Path.ts:151

Trims the path from the given location to the given location.

Parameters

ParameterTypeDefault valueDescription
pathPathundefinedThe path to trim
fromPathLocationundefinedThe start location
toPathLocationundefinedThe end location
crossFirstPointbooleantrue-

Returns

Path

The trimmed path


unarc()

unarc(path, angle): UnarcPath

Defined in: Path.ts:152

Parameters

ParameterTypeDefault valueDescription
pathPathundefined
anglenumber90

Returns

UnarcPath

Example

Boolean Operations

subtract()

subtract(subject, tools): Path

Defined in: Path.ts:167

Subtracts the tools from the subject.

Parameters

ParameterTypeDescription
subjectPathThe target path to be subtracted
toolsPath[]The paths to subtract

Returns

Path

The resulting path


unite()

unite(paths): Path

Defined in: Path.ts:166

Unites the given paths.

Parameters

ParameterTypeDescription
pathsPath[]The paths to unite

Returns

Path

The resulting path

Converters

drawToCanvas()

drawToCanvas(path, context): void

Defined in: Path.ts:176

Draws the given path to the context. It calls context.beginPath at the beginning, so please note that the sub-paths already stacked on the context are also cleared. Note that you also need to call context.stroke or context.fill to actually draw the path.

Parameters

ParameterTypeDescription
pathPathThe path to draw
contextCanvasRenderingContext2D | OffscreenCanvasRenderingContext2DThe Canvas context

Returns

void


drawToP5()

drawToP5(path, p5Instance): void

Defined in: Path.ts:177

Draws the given path to the context. It calls beginShape at the beginning, drawing the path with vertex and bezierVertex commands, then calls endShape at the end if the curve is closed.

Parameters

ParameterTypeDefault valueDescription
pathPathundefinedThe path to draw
p5Instance__module | WindowwindowThe p5.js instance. Pass the instance only if you are using p5.js in instance mode.

Returns

void


fromD()

fromD(d): Path

Defined in: Path.ts:170

Parses the given d attribute of an SVG path and creates a new path. Internally uses svgpath library.

Parameters

ParameterTypeDescription
dstringThe d attribute of an SVG path

Returns

Path

The newly created path


fromSVG()

fromSVG(commands): Path

Defined in: Path.ts:173

Converts an array of SVG commands to a Path.

Parameters

ParameterTypeDescription
commandsSVGCommand[]The array of SVG commands

Returns

Path

The newly created path


fromSVGString()

fromSVGString(d): Path

Defined in: Path.ts:169

Parses the given d attribute of an SVG path and creates a new path. Internally uses svgpath library.

Parameters

ParameterTypeDescription
dstringThe d attribute of an SVG path

Returns

Path

The newly created path


toD()

toD(path): string

Defined in: Path.ts:172

Converts the given path to a string that can be used as the d attribute of an SVG path element.

Parameters

ParameterTypeDescription
pathPathThe path to convert

Returns

string

The string for the d attribute of the SVG path element


toPaperPath()

toPaperPath(path): Path | CompoundPath

Defined in: Path.ts:179

Converts the given path to paper.Path

Parameters

ParameterTypeDescription
pathPathThe path to convert

Returns

Path | CompoundPath

The newly created paper.Path instance

See

http://paperjs.org/reference/pathitem/


toSVGString()

toSVGString(path): string

Defined in: Path.ts:171

Converts the given path to a string that can be used as the d attribute of an SVG path element.

Parameters

ParameterTypeDescription
pathPathThe path to convert

Returns

string

The string for the d attribute of the SVG path element

Draw Functions

addVertex()

addVertex(path, vertex): Path

Defined in: Path.ts:183

Appends the given command to the end of the path.

Parameters

ParameterTypeDescription
pathPathThe base path
vertexVertexThe vertex to append

Returns

Path

The newely created path


arcTo()

arcTo(path, radii, xAxisRotation, largeArcFlag, sweepFlag, point): Path

Defined in: Path.ts:187

Returns the new path with the new A (arc) command at the end.

Parameters

ParameterTypeDescription
pathPathThe base path
radiivec2The radii of the ellipse used to draw the arc
xAxisRotationnumberThe rotation angle of the ellipse’s x-axis relative to the x-axis of the current coordinate system, expressed in degrees
largeArcFlagbooleanThe large arc flag. If true, then draw the arc spanning greather than 180 degrees. Otherwise, draw the arc spanning less than 180 degrees.
sweepFlagbooleanThe sweep flag. If true, then draw the arc in a “positive-angle” direction in the current coordinate system. Otherwise, draw it in a “negative-angle” direction.
pointvec2The end point of the arc

Returns

Path

The newely created path


cubicBezierTo()

cubicBezierTo(path, control1, control2, point): Path

Defined in: Path.ts:185

Returns the new path with the new C (cubic Bézier curve) command at the end.

Parameters

ParameterTypeDescription
pathPathThe base path
control1vec2The first control point
control2vec2The second control point
pointvec2The end point

Returns

Path

The newely created path


lineTo()

lineTo(path, point): Path

Defined in: Path.ts:184

Returns the new path with the new L (line-to) command at the end.

Parameters

ParameterTypeDescription
pathPathThe base path
pointvec2The point to draw a line to

Returns

Path

The newely created path


pen()

pen(): Pen

Defined in: Path.ts:190

Creates a new Path instance to begin drawing a path.

Returns

Pen


quadraticBezierTo()

quadraticBezierTo(path, control, point): Path

Defined in: Path.ts:186

Returns the new path with the new Q (quadratic Bézier curve) command at the end.

Parameters

ParameterTypeDescription
pathPathThe base path
controlvec2The control point
pointvec2The end point

Returns

Path

The newely created path

Utilities

toTime()

toTime(path, location): Required<TimePathLocation> & object

Defined in: Path.ts:138

Retrieves the segment location information from the given path and path-based signed location.

Parameters

ParameterTypeDescription
pathPathThe path to retrieve the segment location
locationPathLocationThe path-based location

Returns

Required<TimePathLocation> & object

The information of the segment location


unlinearSegmentIndex()

unlinearSegmentIndex(path, linearSegmentIndex): object

Defined in: Path.ts:139

Converts a signed linear segment index to a pair of curve and unsgined segment index.

Parameters

ParameterType
pathPath
linearSegmentIndexnumber

Returns

object

NameType
curveIndexnumber
segmentIndexnumber

Other

ArcOptions

ArcOptions: NT_ArcOptions

Defined in: Path.ts:89


area()

area(arg): number

Defined in: Path.ts:133

Parameters

ParameterType
argPath

Returns

number


bounds()

bounds(arg): Rect

Defined in: Path.ts:132

Parameters

ParameterType
argPath

Returns

Rect


circleFromPoints()

circleFromPoints(p1, p2?, p3?, __namedParameters?): Path

Defined in: Path.ts:109

Parameters

ParameterType
p1vec2
p2?null | vec2
p3?null | vec2
__namedParameters?CircleFromPointsOptions

Returns

Path


CircleFromPointsOptions

CircleFromPointsOptions: NT_CircleFromPointsOptions

Defined in: Path.ts:90


close()

close(path, __namedParameters): Path

Defined in: Path.ts:188

Parameters

ParameterType
pathPath
__namedParametersPathCloseOptions

Returns

Path


DistortOptions

DistortOptions: NT_DistortOptions

Defined in: Path.ts:91


empty

const empty: Path = PPrimitives.empty

Defined in: Path.ts:100


formula()

formula(f, iter, __namedParameters): Path

Defined in: Path.ts:126

Parameters

ParameterType
f(t) => vec2
iterIterable<number>
__namedParametersFormulaOptions

Returns

Path


FormulaOptions

FormulaOptions: NT_FormulaOptions

Defined in: Path.ts:92


fromPaperPath()

fromPaperPath(arg): Path

Defined in: Path.ts:180

Parameters

ParameterType
argPathItem

Returns

Path


length()

length(arg): number

Defined in: Path.ts:131

Parameters

ParameterType
argPath

Returns

number


moveTo()

moveTo(path, point): Path

Defined in: Path.ts:182

Parameters

ParameterType
pathPath
pointvec2

Returns

Path


OffsetOptions

OffsetOptions: NT_OffsetOptions

Defined in: Path.ts:93


OffsetStrokeOptions

OffsetStrokeOptions: NT_OffsetStrokeOptions

Defined in: Path.ts:94


PathCloseOptions

PathCloseOptions: NT_PathCloseOptions

Defined in: Path.ts:95


Pen

const Pen: typeof Pen = PDraw.Pen

Defined in: Path.ts:191


polyline()

polyline(…points): PathL

Defined in: Path.ts:118

Parameters

ParameterType
…pointsvec2[]

Returns

PathL


ReduceOptions

ReduceOptions: NT_ReduceOptions

Defined in: Path.ts:96


ReverseOptions

ReverseOptions: NT_ReverseOptions

Defined in: Path.ts:97


segmentCount()

segmentCount(arg): number

Defined in: Path.ts:134

Parameters

ParameterType
argPath

Returns

number


segments()

segments(arg): Segment[]

Defined in: Path.ts:135

Parameters

ParameterType
argPath

Returns

Segment[]


SpawnOptions

SpawnOptions: NT_SpawnOptions

Defined in: Path.ts:98


spawnVertex()

spawnVertex<V1, V2>(path, fn): Path<V2>

Defined in: Path.ts:146

Type Parameters

Type ParameterDefault type
V1 extends VertexVertex
V2 extends VertexVertex

Parameters

ParameterType
pathPath<V1>
fn(segment, segmentIndex, curve) => V2 | V2[]

Returns

Path<V2>


toPath2D()

toPath2D(arg): Path2D

Defined in: Path.ts:175

Parameters

ParameterType
argPath

Returns

Path2D

Edit this page