English
@eightkk/vue-weave / core / graphPathEndpoints
Function: graphPathEndpoints()
graphPathEndpoints(
path): {end:GraphPoint;start:GraphPoint; } |undefined
Defined in: src/core/graphView.ts:77
First and last point of an SVG path string: the point of its first moveto, and the current point after its last segment (the subpath start after a closing Z). Returns undefined when the path has no coordinates. Throws like graphPathBounds for malformed data.
Parameters
path
string
Returns
{ end: GraphPoint; start: GraphPoint; } | undefined