From 8e5b804d6e35bff084b97c3cad58002a586b5948 Mon Sep 17 00:00:00 2001 From: sapics Date: Sat, 3 Dec 2016 17:31:27 +0900 Subject: [PATCH 1/3] Fix typo in comment --- src/path/PathItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 1de2b798..557c36af 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -770,7 +770,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ * @function * * @param {PathItem} path the path to compare this path's geometry with - * @return {Boolean} {@true if two paths describe the shame shape} + * @return {Boolean} {@true if two paths describe the same shape} */ compare: function(path) { var ok = false; From 523251a288ff37f0e934d5f983b3c2b10db2b6ba Mon Sep 17 00:00:00 2001 From: sapics Date: Sat, 3 Dec 2016 17:32:50 +0900 Subject: [PATCH 2/3] Use Math.SQRT2 instead of Math.sqrt(2) --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index 348d0572..ce9b5099 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -2848,7 +2848,7 @@ statics: { if (style.getStrokeJoin() === 'miter') joinRadius = strokeRadius * style.getMiterLimit(); if (style.getStrokeCap() === 'square') - joinRadius = Math.max(joinRadius, strokeRadius * Math.sqrt(2)); + joinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2); strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix); joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix); } From 01b62bc3349ef89259d05c94c2b8cd2b135508b7 Mon Sep 17 00:00:00 2001 From: sapics Date: Sat, 3 Dec 2016 17:43:36 +0900 Subject: [PATCH 3/3] Replace nodejs version 5 to 6 in Travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 694e742f..c54b3bd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - stable -- '5' +- '6' - '4' sudo: false env: