update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov 2023-06-02 15:31:27 -05:00
parent 3e7d5ce7af
commit adca6efe77

View File

@ -126,10 +126,10 @@ export class Image extends Shape<ImageConfig> {
context.fillStrokeShape(this); context.fillStrokeShape(this);
} }
getWidth() { getWidth() {
return this.attrs.width ?? this.image()?.width; return this.attrs.width ?? (this.image() as any)?.width;
} }
getHeight() { getHeight() {
return this.attrs.height ?? this.image()?.height; return this.attrs.height ?? (this.image() as any)?.height;
} }
/** /**
@ -146,7 +146,11 @@ export class Image extends Shape<ImageConfig> {
* layer.draw(); * layer.draw();
* }); * });
*/ */
static fromURL(url: string, callback: (img: Image) => void, onError: OnErrorEventHandler = null) { static fromURL(
url: string,
callback: (img: Image) => void,
onError: OnErrorEventHandler = null
) {
var img = Util.createImageElement(); var img = Util.createImageElement();
img.onload = function () { img.onload = function () {
var image = new Image({ var image = new Image({