-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.js
23 lines (21 loc) · 1.01 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* @typedef {object} GUIControlOptions
* @property {number} [min=0]
* @property {number} [max=0]
* @property {"color"} [type] Interpret an array as color.
* @property {string} [colorSpace] Display a color as values of a pex-color color space.
* @property {boolean} [alpha] Add a 4th slider for colors.
* @property {HTMLImageElement} [palette] Draw a palette image as color picker.
* @property {boolean} [flipEnvMap] Should be 1 for dynamic cubemaps and -1 for cubemaps from file with X axis flipped.
* @property {boolean} [flipY] Flip texture 2D vertically.
* @property {number} [level] Level of detail for cube textures.
*/
/**
* @typedef {object} GUIOptions
* @property {boolean} [pixelRatio=window.devicePixelRatio]
* @property {boolean} [theme={}] See [theme file]{@link https://github.com/pex-gl/pex-gui/blob/main/theme.js} for all options.
* @property {number} [scale=1]
* @property {boolean} [responsive=true] Adapts to canvas dimension.
*/
/** @typedef {import("pex-context").ctx} ctx */
export {};