mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
code formatting: tabs to spaces
This commit is contained in:
parent
9d44834148
commit
ef2f658b48
36
src/Stage.js
36
src/Stage.js
@ -163,11 +163,11 @@ Kinetic.Stage.prototype = {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Creates a composite data URL and passes it to a callback. If MIME type is not
|
* Creates a composite data URL and passes it to a callback. If MIME type is not
|
||||||
* specified, then "image/png" will result. For "image/jpeg", specify a quality
|
* specified, then "image/png" will result. For "image/jpeg", specify a quality
|
||||||
* level as arg2 (range 0.0 - 1.0)
|
* level as arg2 (range 0.0 - 1.0)
|
||||||
* @param {function} callback
|
* @param {function} callback
|
||||||
* @param {String} mimeType (optional)
|
* @param {String} mimeType (optional)
|
||||||
* @param {Number} arg2 (optional)
|
* @param {Number} arg2 (optional)
|
||||||
*/
|
*/
|
||||||
toDataURL: function(callback, mimeType, arg2) {
|
toDataURL: function(callback, mimeType, arg2) {
|
||||||
var bufferLayer = this.bufferLayer;
|
var bufferLayer = this.bufferLayer;
|
||||||
@ -421,20 +421,20 @@ Kinetic.Stage.prototype = {
|
|||||||
// propapgate backwards through children
|
// propapgate backwards through children
|
||||||
for(var i = children.length - 1; i >= 0; i--) {
|
for(var i = children.length - 1; i >= 0; i--) {
|
||||||
var child = children[i];
|
var child = children[i];
|
||||||
if (child.isListening) {
|
if (child.isListening) {
|
||||||
if(child.className === 'Shape') {
|
if(child.className === 'Shape') {
|
||||||
var exit = this._detectEvent(child, evt);
|
var exit = this._detectEvent(child, evt);
|
||||||
if(exit) {
|
if(exit) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var exit = this._traverseChildren(child, evt);
|
var exit = this._traverseChildren(child, evt);
|
||||||
if(exit) {
|
if(exit) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user