Commit Graph

113 Commits

Author SHA1 Message Date
AARON WELLES
096993eb6e Teach utils that async functions are still functions 2019-06-24 19:51:38 -07:00
gero3
743a16b398 Just make hex work too here
[LGTM](450a6bfa93/files/examples/jsm/libs/dat.gui.module.js (x3162d59f298337c1):1)
2019-06-17 10:30:57 -07:00
David Wakelin
d979883423 Added hide/show functions to GUI instances to complement open/close 2019-03-29 21:33:55 -07:00
Don McCurdy
d88f3bc8af Clean up. 2019-01-08 10:21:00 -08:00
Teoxoy
e17b91970c Updated params.closed logic 2019-01-08 10:18:48 -08:00
Teoxoy
e67269a3f7 Fixed closed param (fixes #202) 2019-01-08 10:18:48 -08:00
Teoxoy
0027fd73e0 update min and max on the NumberControllerBox instance too
min and max were not being updated on the NumberControllerBox when using NumberControllerSlider
2019-01-04 18:15:53 -06:00
Don McCurdy
df80c663f8 Fix folder renaming. (fixes #196) 2018-10-06 21:46:07 -07:00
efokschaner
fdcd266249 Add named exports.
`import dat from 'dat.gui'` is now interchangeable with
`import * as dat from 'dat.gui'`
2018-05-05 14:48:56 -07:00
Don McCurdy
4a08249e30 Shorten localStorage check. 2018-04-28 14:11:28 -07:00
Cyrille Faucheux
194983fa7d Properly test localstorage availability
LocalStorage is not supposed to be available when browsing files
served from the filesystem (without any webserver). IE reports
window.localstorage as undefined in that case.
Source: http://caniuse.com/#search=localstorage
2018-04-28 14:06:53 -07:00
Don McCurdy
10d5a55040 Add docs for 'hideable' option. 2018-03-11 15:23:23 -07:00
Don McCurdy
7bb7f8e746 Fix cleanup of event listeners in .destroy() and .removeFolder(). 2018-02-16 20:03:24 -08:00
Don McCurdy
4718fe4366 Fix lint errors. 2018-01-20 21:18:58 -08:00
Don McCurdy
1cf95b490f Use Rollup for UMD and ES6 builds. 2018-01-20 21:08:15 -08:00
Don McCurdy
14dd9a9f22 Add touch support. 2018-01-20 18:28:43 -08:00
Don McCurdy
c83d4ce46a Add some missing methods to API docs. 2017-12-24 00:03:52 -05:00
Don McCurdy
af282f908c Fix removeFolder() JSDoc. 2017-12-23 12:04:38 -05:00
Don McCurdy
59f685b018 Test .removeFolder(). 2017-12-23 11:59:44 -05:00
Don McCurdy
76c80858c3 Add JSDoc for .removeFolder(). 2017-12-23 11:48:35 -05:00
Cyrille Faucheux
60033b6b1d add a way to remove a folder 2017-12-23 11:48:05 -05:00
Don McCurdy
05c85ecf7d add documentation generator, update JSDoc. 2017-12-09 16:03:11 -08:00
Jeff Nusz
006bec026e Merge pull request #135 from postor/master
use import and module.export together!
2017-04-07 15:10:37 -07:00
Jeff Nusz
af7f9c35d1 Fix #133, spacing between rows 2017-04-07 14:16:58 -07:00
Jeff Nusz
4cd09b3ca0 Fix #136, overflow of color selector at bottom of gui 2017-04-07 14:04:04 -07:00
林彦君
b927350970 处理混用问题 2017-04-07 19:16:57 +08:00
Jeff Nusz
54bdcf2951 Merge branch 'bruno-quintela-feature/close-on-top' into develop 2017-03-17 16:14:27 -07:00
Jeff Nusz
aaa5c3e3d0 fix layout when ‘close on top’ + GUI save dialog 2017-03-17 16:13:33 -07:00
Jeff Nusz
b6fd94dfc1 fix eslint errors 2017-03-17 12:42:26 -07:00
Jeff Nusz
15be652664 Fix checkbox while listening. Fixes #40 2017-03-17 12:41:05 -07:00
Jeff Nusz
c9c310f13b fix color selector to stay in place on gui scroll 2017-03-15 16:59:40 -07:00
Jeff Nusz
dc6b6a388a fix issue that caused delayed and broken resizing 2017-03-14 16:29:17 -07:00
Bruno Quintela
351165a2bc added missing space 2016-12-09 11:34:41 +00:00
Bruno Quintela
9540dd1c2f Add property to specify if open/close button shows on top or bottom of the menu
Adds the 'closeOnTop'  property to the GUI constructor params to specify if open/close button shows on top or bottom of the menu (bottom by default)
2016-12-07 16:42:55 +00:00
Jeff Nusz
dd5d0fc908 fix NumControlBox to not firing onFinish with keyboard 2016-11-14 13:14:27 -08:00
Jeff Nusz
8060842569 resize immediately, except for browser resize event. Fix #111 2016-11-14 11:24:29 -08:00
Jeff Nusz
08a3e8f670 onFinish no longer fires during mouse drag of number control. fixes #112 2016-11-14 11:13:28 -08:00
Jeff Nusz
a88a2461d8 diplay string of color to matches input, fix #117 2016-11-14 10:53:50 -08:00
Jeff Nusz
1d17cb0497 onFinish color returns correct format: fixes #117 2016-11-14 09:13:18 -08:00
Jeff Nusz
6f0fcb64f5 fixed issue with color controllers on scrolling pages. Fixes #37 2016-10-05 12:15:50 -07:00
Jeff Nusz
0aec885446 sliders created with min()/max() remember name & listening. fixes #107 2016-10-05 11:51:31 -07:00
Jeff Nusz
46c2a883fc upgrade to Babel 6, fix dependancies 2016-09-22 15:51:47 -07:00
Jeff Nusz
85ee981be4 cleaner ForEach loops in common.js 2016-09-02 12:55:21 -07:00
Jeff Nusz
9c8b0cf118 clear up for..in loop eslint errors 2016-09-01 16:06:25 -07:00
Jeff Nusz
3f6f66d09c fix eslint issues 2016-09-01 14:04:35 -07:00
Jeff Nusz
4fb2646502 remove webpack loader syntax from js 2016-09-01 13:35:40 -07:00
Jeff Nusz
986494ac80 tidy up how optional CSS file is built 2016-09-01 12:50:55 -07:00
Jeff Nusz
dbd80251f3 Create external CSS file to work around CSP unsafe-inline 2016-08-30 15:48:51 -07:00
Jeff Nusz
f51e99beb0 remove unused rounded style from numberControlSlider 2016-08-30 13:40:16 -07:00
Jeff Nusz
867c5bd37e remove unused GUI.scss 2016-08-30 13:22:50 -07:00