fix: setElement type definition

This commit is contained in:
codert
2019-03-25 13:56:37 +08:00
parent 549a324ea4
commit 6e9e2d4eaa
+2 -2
View File
@@ -2212,10 +2212,10 @@ export class Image {
* Sets image element for this instance to a specified one.
* If filters defined they are applied to new image.
* You might need to call `canvas.renderAll` and `object.setCoords` after replacing, to render new image and update controls area.
* @param [callback] Callback is invoked when all filters have been applied and new image is generated
* @param element image element
* @param [options] Options object
*/
setElement(element: HTMLImageElement, callback: Function, options: IImageOptions): Image;
setElement(element: HTMLImageElement, options?: IImageOptions): Image;
/**
* Delete a single texture if in webgl mode
*/