MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / GUI

Function GUI

MathBox/dat.gui.js:1583–1956  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

1581 * @param {Boolean} [params.closed] If true, starts closed
1582 */
1583 var GUI = function(params) {
1584
1585 var _this = this;
1586
1587 /**
1588 * Outermost DOM Element
1589 * @type DOMElement
1590 */
1591 this.domElement = document.createElement('div');
1592 this.__ul = document.createElement('ul');
1593 this.domElement.appendChild(this.__ul);
1594
1595 dom.addClass(this.domElement, CSS_NAMESPACE);
1596
1597 /**
1598 * Nested GUI's by name
1599 * @ignore
1600 */
1601 this.__folders = {};
1602
1603 this.__controllers = [];
1604
1605 /**
1606 * List of objects I'm remembering for save, only used in top level GUI
1607 * @ignore
1608 */
1609 this.__rememberedObjects = [];
1610
1611 /**
1612 * Maps the index of remembered objects to a map of controllers, only used
1613 * in top level GUI.
1614 *
1615 * @private
1616 * @ignore
1617 *
1618 * @example
1619 * [
1620 * {
1621 * propertyName: Controller,
1622 * anotherPropertyName: Controller
1623 * },
1624 * {
1625 * propertyName: Controller
1626 * }
1627 * ]
1628 */
1629 this.__rememberedObjectIndecesToControllers = [];
1630
1631 this.__listening = [];
1632
1633 params = params || {};
1634
1635 // Default parameters
1636 params = common.defaults(params, {
1637 autoPlace: true,
1638 width: GUI.DEFAULT_WIDTH
1639 });
1640

Callers

nothing calls this directly

Calls 6

getLocalStorageHashFunction · 0.85
setPresetSelectIndexFunction · 0.85
setWidthFunction · 0.85
addRowFunction · 0.85
addResizeHandleFunction · 0.85
resetWidthFunction · 0.85

Tested by

no test coverage detected