Skip to main content

Function: drawPointsInterpolation()

function drawPointsInterpolation(
points,
approximationConfig,
options): Drawing;

Defined in: draw.ts:382

Creates the Drawing by interpolating points as a curve

The drawing will be a spline approximating the points. Note that the degree should be at maximum 3 if you need to export the drawing as an SVG.

Parameters

points

Point2D[]

approximationConfig

BSplineApproximationConfig = {}

options

closeShape?

boolean

Returns

Drawing