@mocanvas/editor · class
declare class CubicSpline2d extends Geometry2dA chain of cubic bézier segments, serialized natively rather than flattened.
Give it segments when you already have control points — an arc decomposition,
a fitted stadium — or points when you have a run of points to smooth, in
which case a Catmull-Rom spline through them is converted to béziers for you.
Methods · 3
constructor(config: Flags & {getVertices(): Vec[]toPathWords(): number[]Properties · 1
readonly segments: CubicBezier2d[]mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.