mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
export
This commit is contained in:
parent
b0e7a8ec58
commit
6f2fdd8b23
@ -1920,14 +1920,14 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var _resizeHandler = function () {
|
this._resizeHandler = function () {
|
||||||
_this.onResize();
|
_this.onResize();
|
||||||
};
|
};
|
||||||
|
|
||||||
dom.bind(window, 'resize', _resizeHandler);
|
dom.bind(window, 'resize', this._resizeHandler);
|
||||||
dom.bind(this.__ul, 'webkitTransitionEnd', _resizeHandler);
|
dom.bind(this.__ul, 'webkitTransitionEnd', this._resizeHandler);
|
||||||
dom.bind(this.__ul, 'transitionend', _resizeHandler);
|
dom.bind(this.__ul, 'transitionend', this._resizeHandler);
|
||||||
dom.bind(this.__ul, 'oTransitionEnd', _resizeHandler);
|
dom.bind(this.__ul, 'oTransitionEnd', this._resizeHandler);
|
||||||
this.onResize();
|
this.onResize();
|
||||||
|
|
||||||
|
|
||||||
@ -1981,14 +1981,14 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
|
|||||||
GUI.TEXT_CLOSED = 'Close Controls';
|
GUI.TEXT_CLOSED = 'Close Controls';
|
||||||
GUI.TEXT_OPEN = 'Open Controls';
|
GUI.TEXT_OPEN = 'Open Controls';
|
||||||
|
|
||||||
var _keydownHandler = function(e) {
|
this._keydownHandler = function(e) {
|
||||||
if (document.activeElement.type !== 'text' &&
|
if (document.activeElement.type !== 'text' &&
|
||||||
(e.which === HIDE_KEY_CODE || e.keyCode == HIDE_KEY_CODE)) {
|
(e.which === HIDE_KEY_CODE || e.keyCode == HIDE_KEY_CODE)) {
|
||||||
GUI.toggleHide();
|
GUI.toggleHide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
dom.bind(window, 'keydown', _keydownHandler, false);
|
dom.bind(window, 'keydown', this._keydownHandler, false);
|
||||||
|
|
||||||
common.extend(
|
common.extend(
|
||||||
|
|
||||||
@ -2057,11 +2057,11 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
|
|||||||
auto_place_container.removeChild(this.domElement);
|
auto_place_container.removeChild(this.domElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
dom.unbind(window, 'keydown', _keydownHandler, false);
|
dom.unbind(window, 'keydown', this._keydownHandler, false);
|
||||||
dom.unbind(window, 'resize', _resizeHandler);
|
dom.unbind(window, 'resize', this._resizeHandler);
|
||||||
|
|
||||||
if (saveToLocalStorage) {
|
if (this.saveToLocalStorageIfPossible) {
|
||||||
dom.unbind(window, 'unload', saveToLocalStorage);
|
dom.unbind(window, 'unload', this.saveToLocalStorageIfPossible);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
23
build/dat.gui.min.js
vendored
23
build/dat.gui.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user