Skip to content

Documentation / @ripl/core / getPathLength

Function: getPathLength()

getPathLength(pathData): number

Defined in: packages/core/src/math/geometry.ts:191

Computes the total length of an SVG path from its d attribute string.

Parameters

ParameterType
pathDatastring

Returns

number