mirror of
https://github.com/konvajs/konva.git
synced 2025-09-23 04:36:47 +08:00
Tabs -> spaces
This commit is contained in:
@@ -34,11 +34,11 @@ Konva.Util.createImageElement = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Konva.Util._urlToImage = (url, callback) => {
|
Konva.Util._urlToImage = (url, callback) => {
|
||||||
const imageObj = Konva.Util.createImageElement();
|
const imageObj = Konva.Util.createImageElement();
|
||||||
imageObj.onload = function () {
|
imageObj.onload = function () {
|
||||||
callback(imageObj);
|
callback(imageObj);
|
||||||
};
|
};
|
||||||
imageObj.src = url;
|
imageObj.src = url;
|
||||||
};
|
};
|
||||||
|
|
||||||
// _checkVisibility use dom element, in node we can skip it
|
// _checkVisibility use dom element, in node we can skip it
|
||||||
|
Reference in New Issue
Block a user