diff --git a/examples/SVG Import/MoreGradients.html b/examples/SVG Import/MoreGradients.html index a85c2c1d..2ec94052 100644 --- a/examples/SVG Import/MoreGradients.html +++ b/examples/SVG Import/MoreGradients.html @@ -12,93 +12,93 @@ - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + diff --git a/examples/SVG Import/Symbols.html b/examples/SVG Import/Symbols.html index 5d0da83e..51934e4f 100644 --- a/examples/SVG Import/Symbols.html +++ b/examples/SVG Import/Symbols.html @@ -12,7 +12,7 @@ - + diff --git a/src/item/Item.js b/src/item/Item.js index ee74725e..25c4c3c5 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1957,7 +1957,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ * examples. * * @param {Object|Function} match the criteria to match against - * @return {Item} the first descendant item matching the given criteria + * @return {Item} the first descendant item matching the given criteria * @see #getItems(match) */ getItem: function(match) { @@ -3107,7 +3107,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{ * * @name Item#skew * @function - * @param {Point} skew the horziontal and vertical skew angles in degrees + * @param {Point} skew the horziontal and vertical skew angles in degrees * @param {Point} [center={@link Item#position}] * @see Matrix#shear */ diff --git a/src/item/Shape.js b/src/item/Shape.js index 374d1bd0..8311fca1 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -265,7 +265,7 @@ var Shape = Item.extend(/** @lends Shape# */{ }, _canComposite: function() { - // A path with only a fill or a stroke can be directly blended, but if + // A path with only a fill or a stroke can be directly blended, but if // it has both, it needs to be drawn into a separate canvas first. return !(this.hasFill() && this.hasStroke()); }, diff --git a/src/path/Curve.js b/src/path/Curve.js index 612af078..e4e34a70 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -791,7 +791,7 @@ statics: { // in getStrokeBounds() tMin = /*#=*/Numerical.CURVETIME_EPSILON, tMax = 1 - tMin; - // Only add strokeWidth to bounds for points which lie within 0 < t < 1 + // Only add strokeWidth to bounds for points which lie within 0 < t < 1 // The corner cases for cap and join are handled in getStrokeBounds() add(v3, 0); for (var i = 0; i < count; i++) { diff --git a/src/path/CurveLocation.js b/src/path/CurveLocation.js index 2fc94616..c1cf2878 100644 --- a/src/path/CurveLocation.js +++ b/src/path/CurveLocation.js @@ -32,7 +32,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{ // See #getSegment() below. beans: true, - // DOCS: CurveLocation class description: add these back when the mentioned + // DOCS: CurveLocation class description: add these back when the mentioned // functioned have been added: {@link Path#split(location)} /** * Creates a new CurveLocation object. diff --git a/src/path/Path.js b/src/path/Path.js index 4cc57433..163cc613 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1460,7 +1460,7 @@ var Path = PathItem.extend(/** @lends Path# */{ } // See if actually have any curves in the path. Differentiate - // between straight objects (line, polyline, rect, and polygon) and + // between straight objects (line, polyline, rect, and polygon) and // objects with curves(circle, ellipse, roundedRectangle). if (!this.hasHandles() && segments.length === 4 && isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) { diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index cad76a08..8b80f945 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -518,7 +518,7 @@ PathItem.inject(new function() { * contours * @param {Function} the operator function that receives as argument the * winding number contribution of a curve and returns a boolean value - * indicating whether the curve should be included in the final contour or + * indicating whether the curve should be included in the final contour or * not * @return {Path[]} the contours traced */ @@ -911,7 +911,7 @@ Path.inject(/** @lends Path# */{ prevCurve = curve; } - // Handle bezier curves. We need to chop them into smaller curves with + // Handle bezier curves. We need to chop them into smaller curves with // defined orientation, by solving the derivative curve for y extrema. function handleCurve(v) { // Filter out curves of zero length. diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 12fc1fb8..4a3fc1f3 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -286,7 +286,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ }, _canComposite: function() { - // A path with only a fill or a stroke can be directly blended, but if + // A path with only a fill or a stroke can be directly blended, but if // it has both, it needs to be drawn into a separate canvas first. return !(this.hasFill() && this.hasStroke()); }, diff --git a/src/util/Numerical.js b/src/util/Numerical.js index 59153545..75cec64a 100644 --- a/src/util/Numerical.js +++ b/src/util/Numerical.js @@ -185,7 +185,7 @@ var Numerical = new function() { /** * Solve a quadratic equation in a numerically robust manner; - * given a quadratic equation ax² + bx + c = 0, find the values of x. + * given a quadratic equation ax² + bx + c = 0, find the values of x. * * References: * Kahan W. - "To Solve a Real Cubic Equation" diff --git a/src/view/CanvasView.js b/src/view/CanvasView.js index 20994a11..69596d82 100644 --- a/src/view/CanvasView.js +++ b/src/view/CanvasView.js @@ -90,7 +90,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{ var browser = paper.browser, pixels; if (browser && browser.firefox) { - // Firefox doesn't appear to convert context.font sizes to pixels, + // Firefox doesn't appear to convert context.font sizes to pixels, // while other browsers do. Workaround: var parent = this._element.parentNode, temp = document.createElement('div'); diff --git a/test/tests/HitResult.js b/test/tests/HitResult.js index 989992c6..d692e180 100644 --- a/test/tests/HitResult.js +++ b/test/tests/HitResult.js @@ -672,7 +672,7 @@ test('hit-testing compound-paths', function() { children: [path1, path2], fillColor: 'blue' }); - // When hit-testing a side, we should get a result on the torus + // When hit-testing a side, we should get a result on the torus equals(function() { var result = paper.project.hitTest(center.add([75, 0]), { fill: true