@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
34 lines (33 loc) • 850 B
TypeScript
export interface CSSOptions {
posterUrl: string;
}
type CSSFunction = (options: CSSOptions) => string;
export interface HTMLOptions {
}
type HTMLFunction = (options: HTMLOptions) => string;
export interface JSOptions {
}
type JSFunction = (options: JSOptions) => string;
interface TemplatesFunctions {
CSS: CSSFunction;
HTML: HTMLFunction;
JS: JSFunction;
}
export interface TemplatesOptions {
CSS: CSSOptions;
HTML: HTMLOptions;
JS: JSOptions;
}
export type OnProgress = (ratio: number) => void;
export declare class BaseProgressBar {
private _templateHTMLFunction;
private _templateCSSFunction;
private _templateJSFunction;
constructor(templatesFunctions: TemplatesFunctions);
templates(options: TemplatesOptions): {
CSS: string;
JS: string;
HTML: string;
};
}
export {};