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.
*
* @name PathItem.create
* @function
* @param {String} pathData the SVG path-data to parse
* @return {Path|CompoundPath} the newly created path item
*/
/**
* Creates a path item from the given segments array, determining if the
* array describes a plain path or a compound-path with multiple
* sub-paths.
*
* @name PathItem.create
* @function
* @param {Number[][]} segments the segments array to parse
* @return {Path|CompoundPath} the newly created path item
*/
/**
* Creates a path item from the given object, determining if the
* contained information describes a plain path or a compound-path with
* multiple sub-paths.
*
* @name PathItem.create
* @function
* @param {Object} object an object containing the properties describing
* the item to be created
* @return {Path|CompoundPath} the newly created path item

View file

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