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,
|
"accessor-pairs": 0,
|
||||||
"block-scoped-var": 0,
|
"block-scoped-var": 0,
|
||||||
"brace-style": [0, "1tbs"],
|
"brace-style": [0, "1tbs"],
|
||||||
"camelcase": 1,
|
"camelcase": 0,
|
||||||
"comma-spacing": 2,
|
"comma-spacing": 2,
|
||||||
"comma-style": 0,
|
"comma-style": 0,
|
||||||
"complexity": [1, 11],
|
"complexity": [1, 11],
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
"space-in-brackets": [0, "never"],
|
"space-in-brackets": [0, "never"],
|
||||||
"space-in-parens": [0, "never"],
|
"space-in-parens": [0, "never"],
|
||||||
"space-infix-ops": 2,
|
"space-infix-ops": 2,
|
||||||
"keyword-spacing": 1,
|
"keyword-spacing": 0,
|
||||||
"space-unary-ops": [2, { "words": true, "nonwords": false }],
|
"space-unary-ops": [2, { "words": true, "nonwords": false }],
|
||||||
"spaced-comment": 0,
|
"spaced-comment": 0,
|
||||||
"spaced-line-comment": [0, "always"],
|
"spaced-line-comment": [0, "always"],
|
||||||
|
13
konva.js
13
konva.js
@@ -3,7 +3,7 @@
|
|||||||
* Konva JavaScript Framework v0.12.4
|
* Konva JavaScript Framework v0.12.4
|
||||||
* http://konvajs.github.io/
|
* http://konvajs.github.io/
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* 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)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
|
||||||
@@ -14180,8 +14180,7 @@
|
|||||||
this.sceneFunc(this._sceneFunc);
|
this.sceneFunc(this._sceneFunc);
|
||||||
},
|
},
|
||||||
_sceneFunc: function(context) {
|
_sceneFunc: function(context) {
|
||||||
var ca = this.dataArray,
|
var ca = this.dataArray;
|
||||||
closedPath = false;
|
|
||||||
|
|
||||||
// context position
|
// context position
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
@@ -14219,17 +14218,11 @@
|
|||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
context.closePath();
|
context.closePath();
|
||||||
closedPath = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (closedPath) {
|
context.fillStrokeShape(this);
|
||||||
context.fillStrokeShape(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
context.strokeShape(this);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getSelfRect: function() {
|
getSelfRect: function() {
|
||||||
var points = [];
|
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);
|
this.sceneFunc(this._sceneFunc);
|
||||||
},
|
},
|
||||||
_sceneFunc: function(context) {
|
_sceneFunc: function(context) {
|
||||||
var ca = this.dataArray,
|
var ca = this.dataArray;
|
||||||
closedPath = false;
|
|
||||||
|
|
||||||
// context position
|
// context position
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
@@ -80,7 +79,6 @@
|
|||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
context.closePath();
|
context.closePath();
|
||||||
closedPath = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user