import { BaseTexture } from '@pixi/core'; /** * Get the drawable source, such as HTMLCanvasElement or HTMLImageElement suitable * for rendering with CanvasRenderer. Provided by **@pixi/canvas-renderer** package. * @method getDrawableSource * @memberof PIXI.BaseTexture# * @return {CanvasImageSource} Source to render with CanvasRenderer */ BaseTexture.prototype.getDrawableSource = function getDrawableSource() { const resource = this.resource; return resource ? (resource.bitmap || resource.source) : this.source; };