@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
16 lines (15 loc) • 454 B
JavaScript
;
export class BaseProgressBar {
constructor(templatesFunctions) {
this._templateCSSFunction = templatesFunctions.CSS;
this._templateHTMLFunction = templatesFunctions.HTML;
this._templateJSFunction = templatesFunctions.JS;
}
templates(options) {
return {
CSS: this._templateCSSFunction(options.CSS),
JS: this._templateJSFunction(options.JS),
HTML: this._templateHTMLFunction(options.HTML)
};
}
}