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.
This commit is contained in:
Paul Price
2018-06-27 15:23:48 -06:00
committed by GitHub
parent 80d50f06cf
commit 750fa2973b
+1 -1
View File
@@ -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