From 750fa2973ba1b9849e061b6a085e6e7e6cbc848a Mon Sep 17 00:00:00 2001 From: Paul Price Date: Wed, 27 Jun 2018 15:23:48 -0600 Subject: [PATCH] Fixed typos in params for Image.fromUrl() Documentation and implementation didn't match up and I was unable to pass {crossOrigin: 'Anonymous' } as the 3rd argument. --- types/fabric/fabric-impl.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fabric/fabric-impl.d.ts b/types/fabric/fabric-impl.d.ts index 07c1227706..4d01868b59 100644 --- a/types/fabric/fabric-impl.d.ts +++ b/types/fabric/fabric-impl.d.ts @@ -1867,7 +1867,7 @@ export class Image { * @param [callback] Callback to invoke when image is created (newly created image is passed as a first argument) * @param [imgOptions] Options object */ - static fromURL(url: string, callback?: (image: Image) => void, objObjects?: IObjectOptions): Image; + static fromURL(url: string, callback?: (image: Image) => void, imgOptions?: IImageOptions): Image; /** * Creates an instance of fabric.Image from its object representation * @param object Object to create an instance from