Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
bokeh / server / static / js / lib / models / textures / image_url_texture.js
Size: Mime:
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