Skip to content

Commit

Permalink
Removed an assigned value that's never used. Also fixed typos. (svg#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleston authored and GreLI committed Sep 14, 2017
1 parent 87796ac commit cd8a405
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/convertPathData.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,14 +892,14 @@ function findCircle(curve) {
}

/**
* Checks if a curve fits the given circe.
* Checks if a curve fits the given circle.
*
* @param {Object} circle
* @param {Array} curve
* @return {Boolean}
*/

function isArc(curve, circle) {
function isArc(curve, circle) {
var tolerance = Math.min(arcThreshold * error, arcTolerance * circle.radius / 100);

return [0, 1/4, 1/2, 3/4, 1].every(function(point) {
Expand All @@ -908,14 +908,14 @@ function isArc(curve, circle) {
}

/**
* Checks if a previos curve fits the given circe.
* Checks if a previous curve fits the given circle.
*
* @param {Object} circle
* @param {Array} curve
* @return {Boolean}
*/

function isArcPrev(curve, circle) {
function isArcPrev(curve, circle) {
return isArc(curve, {
center: [circle.center[0] + curve[4], circle.center[1] + curve[5]],
radius: circle.radius
Expand Down Expand Up @@ -952,6 +952,6 @@ function findArcAngle(curve, relCircle) {

function data2Path(params, pathData) {
return pathData.reduce(function(pathString, item) {
return pathString += item.instruction + (item.data ? cleanupOutData(roundData(item.data.slice()), params) : '');
return pathString + item.instruction + (item.data ? cleanupOutData(roundData(item.data.slice()), params) : '');
}, '');
}

0 comments on commit cd8a405

Please sign in to comment.