You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contrary to the README: A template can only have 3 point/control pairs. The startPair, endPair and a single, optional tangentPair in between.
In other words: 4 or 6 relevant coordinates: See Converter.js:
// points is an array of point. Each point has an .x and a .y numeric attribute.
// The values are taken directly from the "d" attribute of an SVG "path" element.
function getPointPairs(points)
{
let pointPairs = {};
pointPairs.startPair = {};
pointPairs.startPair.point = points[0];
pointPairs.startPair.control = points[1];
pointPairs.endPair = {};
pointPairs.endPair.point = points[points.length - 1];
pointPairs.endPair.control = points[points.length - 2];
if(points.length === 6)
{
pointPairs.tangentPair = {};
pointPairs.tangentPair.control = points[2];
pointPairs.tangentPair.point = points[3];
}
return pointPairs;
}
The text was updated successfully, but these errors were encountered:
Contrary to the README: A template can only have 3 point/control pairs. The startPair, endPair and a single, optional tangentPair in between.
In other words: 4 or 6 relevant coordinates: See Converter.js:
The text was updated successfully, but these errors were encountered: