@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
31 lines (30 loc) • 885 B
TypeScript
/**
* @author NHN Ent. FE Development Team <dl_javascript@nhn.com>
* @fileoverview Image loader
*/
import Component from "../interface/component";
/**
* ImageLoader components
* @extends {Component}
* @class ImageLoader
* @param {Graphics} graphics - Graphics instance
* @ignore
*/
declare class ImageLoader extends Component {
constructor(graphics: any);
/**
* Load image from url
* @param {?string} imageName - File name
* @param {?(fabric.Image|string)} img - fabric.Image instance or URL of an image
* @returns {Promise}
*/
load(imageName: any, img: any): any;
/**
* Set background image
* @param {?(fabric.Image|String)} img fabric.Image instance or URL of an image to set background to
* @returns {Promise}
* @private
*/
_setBackgroundImage(img: any): Promise<unknown>;
}
export default ImageLoader;