mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
lint fixes and build
This commit is contained in:
@@ -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"],
|
||||
|
11
konva.js
11
konva.js
@@ -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);
|
||||
}
|
||||
},
|
||||
getSelfRect: function() {
|
||||
var points = [];
|
||||
|
6
konva.min.js
vendored
6
konva.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user