Path: { kind: | "compound" | "elliptical" | "circular" | "arc" | "bezier/cubic" | "bezier/quadratic" | "line"; bbox(): RectPositioned; distanceToPoint(point: Point): number; interpolate(t: number): Point; length(): number; nearest(point: Point): Point; relativePosition(point: Point,
intersectionThreshold: number): number; toString(): string; toSvgString(): readonly string[]; } Type declaration
Readonly
kind:
| "compound"
| "elliptical"
| "circular"
| "arc"
| "bezier/cubic"
| "bezier/quadratic"
| "line"
bbox:function
distanceToPoint:function
- distanceToPoint(point): number
Returns number
interpolate:function
- interpolate(t): Point
Point
length:function
- length(): number
Returns number
nearest:function
relativePosition:function
- relativePosition(point, intersectionThreshold): number
Parameters
- point: Point
- intersectionThreshold: number
Returns number
toString:function
- toString(): string
Returns string
toSvgString:function
- toSvgString(): readonly string[]
Returns readonly string[]
Well-known path kind