Commit Graph

106 Commits

Author SHA1 Message Date
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
Jeff Nusz
13ceb7af00 Merge branch 'destroy' of https://github.com/firsara/dat.gui into firsara-destroy
# Conflicts:
#	build/dat.gui.js
#	build/dat.gui.min.js
#	src/dat/gui/GUI.js
2016-08-18 17:18:37 -07:00
Jeff Nusz
ac8dfb62d2 Debounce onResize to prevent issues when rotating on tablet #91 2016-08-18 16:27:15 -07:00
Jeff Nusz
420e0458ad Merge branch 'master' of https://github.com/Ucodia/dat.gui into Ucodia-master
# Conflicts:
#	src/dat/gui/GUI.js
2016-08-18 15:46:04 -07:00
Jeff Nusz
b91772c26b fire onFinishChange when doing a revert() #103 2016-08-18 15:26:07 -07:00
Jeff Nusz
ca19030081 Allow updates to OptionController while listening. fix #101 2016-08-18 14:54:52 -07:00
Jeff Nusz
f53cfa5215 color controller calls onFinishChange callback 2016-08-18 14:32:03 -07:00
Jeff Nusz
66aa8fe153 fix slider modifier function to return correct controller
onFinishChange(), onChange(), and step() were returning the NumberBoxController instead of NumberSliderController
2016-08-18 14:18:15 -07:00