mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Merge pull request #1210 from sapics/mini-patch
Replace nodejs version 5 to 6 in Travis
This commit is contained in:
commit
767a438286
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- stable
|
||||
- '5'
|
||||
- '6'
|
||||
- '4'
|
||||
sudo: false
|
||||
env:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue