Slightly improve documentation for #1235

This commit is contained in:
Jürg Lehni 2017-01-11 15:16:22 +01:00
parent e7b53c8a22
commit fa43e28b7a

View file

@ -162,7 +162,7 @@ var Curve = Base.extend(/** @lends Curve# */{
* @return {Object} the curve classification information as an object, see
* options
* @result info.type {String} the type of Bézier curve, possible values are:
* {@values 'line', 'quadratic', 'serpentine', 'cusp', 'loop'}
* {@values 'line', 'quadratic', 'serpentine', 'cusp', 'loop', 'arch'}
* @result info.roots {Number[]} the curve-time parameters of the
* associated points of inflection for serpentine curves, loops, cusps,
etc
@ -1526,6 +1526,11 @@ new function() { // Scope for methods that require private functions
// 'serpentine' (d > 0)
// 'cusp' (d == 0)
// 'loop' (d < 0)
// 'arch' (serpentine, cusp or loop with roots outside 0..1)
//
// NOTE: Roots for serpentine, cusp and loop curves are only
// considered if they are within 0..1. If the roots are outside,
// then we degrade the type of curve down to an 'arch'.
var x1 = v[0], y1 = v[1],
x2 = v[2], y2 = v[3],