UNPKG

pex-gui

Version:
46 lines (45 loc) 1.01 kB
export type GUIControlOptions = { min?: number; max?: number; /** * Interpret an array as color. */ type?: "color"; /** * Display a color as values of a pex-color color space. */ colorSpace?: string; /** * Add a 4th slider for colors. */ alpha?: boolean; /** * Draw a palette image as color picker. */ palette?: HTMLImageElement; /** * Should be 1 for dynamic cubemaps and -1 for cubemaps from file with X axis flipped. */ flipEnvMap?: boolean; /** * Flip texture 2D vertically. */ flipY?: boolean; /** * Level of detail for cube textures. */ level?: number; }; export type GUIOptions = { pixelRatio?: boolean; /** * See [theme file]{@link https://github.com/pex-gl/pex-gui/blob/main/theme.js} for all options. */ theme?: boolean; scale?: number; /** * Adapts to canvas dimension. */ responsive?: boolean; }; export type ctx = any;