mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
var imageObj = Util.createImageElement();
This commit is contained in:
parent
597e3d5eb7
commit
c4fba7b3fe
@ -666,7 +666,7 @@ export const Util = {
|
|||||||
*/
|
*/
|
||||||
_urlToImage(url: string, callback: Function) {
|
_urlToImage(url: string, callback: Function) {
|
||||||
// if arg is a string, then it's a data url
|
// if arg is a string, then it's a data url
|
||||||
var imageObj = new glob.Image();
|
var imageObj = Util.createImageElement();
|
||||||
imageObj.onload = function () {
|
imageObj.onload = function () {
|
||||||
callback(imageObj);
|
callback(imageObj);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user