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: 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); } 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;