g.bezier.curveThroughPoints(points)

Return the SVG path commands that define a cubic bezier curve going through the points. This method automatically computes the cubic bezier control points necessary to create a smooth curve crossing points.