mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Fix #1084
This commit is contained in:
parent
2328fb06d4
commit
79d8fe48a9
@ -33,6 +33,14 @@ Konva.Util.createImageElement = () => {
|
|||||||
return node;
|
return node;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Konva.Util._urlToImage = (url, callback) => {
|
||||||
|
const imageObj = Konva.Util.createImageElement();
|
||||||
|
imageObj.onload = function () {
|
||||||
|
callback(imageObj);
|
||||||
|
};
|
||||||
|
imageObj.src = url;
|
||||||
|
};
|
||||||
|
|
||||||
// _checkVisibility use dom element, in node we can skip it
|
// _checkVisibility use dom element, in node we can skip it
|
||||||
Konva.Stage.prototype._checkVisibility = () => {};
|
Konva.Stage.prototype._checkVisibility = () => {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user