MCPcopy Index your code
hub / github.com/PixelsCommander/HTML-GL / GUI

Function GUI

page/js/dat.gui.js:1585–1958  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

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

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