Update JSDoc and a minor documentation fix.

This commit is contained in:
Jürg Lehni 2017-01-11 14:45:52 +01:00
parent 9cb45157b9
commit 36f5b314d9
3 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit b6f36edba33690cee908cadcb24515ec5be97b1d Subproject commit 59faf79f13765dfd1fd8ec302d5627bbe548b2fa

View file

@ -38,26 +38,27 @@ var PathItem = Item.extend(/** @lends PathItem# */{
* sub-paths. * sub-paths.
* *
* @name PathItem.create * @name PathItem.create
* @function
* @param {String} pathData the SVG path-data to parse * @param {String} pathData the SVG path-data to parse
* @return {Path|CompoundPath} the newly created path item * @return {Path|CompoundPath} the newly created path item
*/ */
/** /**
* Creates a path item from the given segments array, determining if the * Creates a path item from the given segments array, determining if the
* array describes a plain path or a compound-path with multiple * array describes a plain path or a compound-path with multiple
* sub-paths. * sub-paths.
* *
* @name PathItem.create * @name PathItem.create
* @function
* @param {Number[][]} segments the segments array to parse * @param {Number[][]} segments the segments array to parse
* @return {Path|CompoundPath} the newly created path item * @return {Path|CompoundPath} the newly created path item
*/ */
/** /**
* Creates a path item from the given object, determining if the * Creates a path item from the given object, determining if the
* contained information describes a plain path or a compound-path with * contained information describes a plain path or a compound-path with
* multiple sub-paths. * multiple sub-paths.
* *
* @name PathItem.create * @name PathItem.create
* @function
* @param {Object} object an object containing the properties describing * @param {Object} object an object containing the properties describing
* the item to be created * the item to be created
* @return {Path|CompoundPath} the newly created path item * @return {Path|CompoundPath} the newly created path item

View file

@ -73,6 +73,7 @@ var Numerical = new function() {
} }
function getDiscriminant(a, b, c) { function getDiscriminant(a, b, c) {
// d = b^2 - a * c computed accurately enough by a tricky scheme.
// Ported from @hkrish's polysolve.c // Ported from @hkrish's polysolve.c
function split(v) { function split(v) {
var x = v * 134217729, var x = v * 134217729,