Repository URL to install this package:
|
Version:
2.4.3 ▾
|
var _a;
import { Texture } from "./texture";
import { ImageLoader } from "../../core/util/image";
export class ImageURLTexture extends Texture {
constructor(attrs) {
super(attrs);
}
initialize() {
super.initialize();
this._loader = new ImageLoader(this.url);
}
get_pattern(_color, _scale, _weight) {
const { _loader } = this;
return this._loader.finished ? _loader.image : _loader.promise;
}
}
_a = ImageURLTexture;
ImageURLTexture.__name__ = "ImageURLTexture";
(() => {
_a.define(({ String }) => ({
url: [String],
}));
})();
//# sourceMappingURL=image_url_texture.js.map