From a0b868c1bac5715db181c82458b7ba3908f40ce1 Mon Sep 17 00:00:00 2001 From: sapics Date: Tue, 14 Jun 2016 12:26:28 +0900 Subject: [PATCH] Fix indentations --- src/core/PaperScript.js | 2 +- src/item/Item.js | 2 +- src/path/PathFitter.js | 4 ++-- src/path/Segment.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index d0d8e5bb..bf29a2e2 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -318,7 +318,7 @@ Base.exports.PaperScript = (function() { agent.firefox && version >= 40 || agent.node); var mappings = ['AA' + encodeVLQ(offsetCode ? 0 : offset) + 'A']; - // Create empty entries by the amount of lines + 1, so join can be + // Create empty entries by the amount of lines + 1, so join can be // used below to produce the actual instructions that many times. mappings.length = (code.match(lineBreaks) || []).length + 1 + (offsetCode ? offset : 0); diff --git a/src/item/Item.js b/src/item/Item.js index 112d737c..ca880bd2 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -4106,7 +4106,7 @@ new function() { // Injection scope for hit-test functions shared with project // Transform the blur value as a vector and use its new length: blur = mx.transform(new Point(style.getShadowBlur(), 0)), offset = mx.transform(this.getShadowOffset()); - ctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx); + ctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx); ctx.shadowBlur = blur.getLength(); ctx.shadowOffsetX = offset.x; ctx.shadowOffsetY = offset.y; diff --git a/src/path/PathFitter.js b/src/path/PathFitter.js index b7b4cd78..34d456c8 100644 --- a/src/path/PathFitter.js +++ b/src/path/PathFitter.js @@ -148,8 +148,8 @@ var PathFitter = Base.extend({ alpha1, alpha2; if (abs(detC0C1) > epsilon) { // Kramer's rule - var detC0X = C[0][0] * X[1] - C[1][0] * X[0], - detXC1 = X[0] * C[1][1] - X[1] * C[0][1]; + var detC0X = C[0][0] * X[1] - C[1][0] * X[0], + detXC1 = X[0] * C[1][1] - X[1] * C[0][1]; // Derive alpha values alpha1 = detXC1 / detC0C1; alpha2 = detC0X / detC0C1; diff --git a/src/path/Segment.js b/src/path/Segment.js index 835dee51..70b8b923 100644 --- a/src/path/Segment.js +++ b/src/path/Segment.js @@ -655,7 +655,7 @@ var Segment = Base.extend(/** @lends Segment# */{ // If change is true, we need to set the new values back point._x = x; point._y = y; - i = 2; + i = 2; if (handleIn) { handleIn._x = coords[i++] - x; handleIn._y = coords[i++] - y;