mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- stable
|
- stable
|
||||||
- '5'
|
- '6'
|
||||||
- '4'
|
- '4'
|
||||||
sudo: false
|
sudo: false
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -2848,7 +2848,7 @@ statics: {
|
||||||
if (style.getStrokeJoin() === 'miter')
|
if (style.getStrokeJoin() === 'miter')
|
||||||
joinRadius = strokeRadius * style.getMiterLimit();
|
joinRadius = strokeRadius * style.getMiterLimit();
|
||||||
if (style.getStrokeCap() === 'square')
|
if (style.getStrokeCap() === 'square')
|
||||||
joinRadius = Math.max(joinRadius, strokeRadius * Math.sqrt(2));
|
joinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);
|
||||||
strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);
|
strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);
|
||||||
joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);
|
joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);
|
||||||
}
|
}
|
||||||
|
|
|
@ -770,7 +770,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
* @function
|
* @function
|
||||||
*
|
*
|
||||||
* @param {PathItem} path the path to compare this path's geometry with
|
* @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) {
|
compare: function(path) {
|
||||||
var ok = false;
|
var ok = false;
|
||||||
|
|
Loading…
Reference in a new issue