Snap - Path Methods

Snap provides substantial methods applied to paths:
path.getPointAtLength, Snap.path.getPointAtLength, path.getSubpath, Snap.path.getSubpath, path.getTotalLength, Snap.path.getTotalLength, path.getBBox, Snap.path.getBBox, Snap.parsePathString, Snap.path.bezierBBox, Snap.path.findDotsAtSegment, Snap.path.intersection, Snap.path.isBBoxIntersect, Snap.path.isPointInside, Snap.path.isPointInsideBBox, Snap.path.map, Snap.path.toAbsolute, Snap.path.toCubic, and Snap.path.toRelative .
This shows examples of the various methods.
Various methods are shared between the path element and Snap.path object: getPointAtLength, getSubpath, getTotalLength, and getBBox.

Note: path1(green) is transformed. See utility function screenPath(), used to remove transfrom and re-compute points


SVG Source:
Javascript:

OK in: IE11/Edge/CH55/FF52