lint fixes and build

This commit is contained in:
Anton Lavrenov 2016-05-14 21:30:27 +07:00
parent bfc5009290
commit 630f60cdb7
4 changed files with 9 additions and 18 deletions

View File

@ -104,7 +104,7 @@
"accessor-pairs": 0,
"block-scoped-var": 0,
"brace-style": [0, "1tbs"],
"camelcase": 1,
"camelcase": 0,
"comma-spacing": 2,
"comma-style": 0,
"complexity": [1, 11],
@ -154,7 +154,7 @@
"space-in-brackets": [0, "never"],
"space-in-parens": [0, "never"],
"space-infix-ops": 2,
"keyword-spacing": 1,
"keyword-spacing": 0,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": 0,
"spaced-line-comment": [0, "always"],

View File

@ -3,7 +3,7 @@
* Konva JavaScript Framework v0.12.4
* http://konvajs.github.io/
* Licensed under the MIT or GPL Version 2 licenses.
* Date: Fri May 06 2016
* Date: Sat May 14 2016
*
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
* Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
@ -14180,8 +14180,7 @@
this.sceneFunc(this._sceneFunc);
},
_sceneFunc: function(context) {
var ca = this.dataArray,
closedPath = false;
var ca = this.dataArray;
// context position
context.beginPath();
@ -14219,17 +14218,11 @@
break;
case 'z':
context.closePath();
closedPath = true;
break;
}
}
if (closedPath) {
context.fillStrokeShape(this);
}
else {
context.strokeShape(this);
}
context.fillStrokeShape(this);
},
getSelfRect: function() {
var points = [];

6
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -41,8 +41,7 @@
this.sceneFunc(this._sceneFunc);
},
_sceneFunc: function(context) {
var ca = this.dataArray,
closedPath = false;
var ca = this.dataArray;
// context position
context.beginPath();
@ -80,7 +79,6 @@
break;
case 'z':
context.closePath();
closedPath = true;
break;
}
}