Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom controller #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Custom controller #1

wants to merge 1 commit into from

Conversation

anhr
Copy link
Owner

@anhr anhr commented Apr 22, 2019

For resolving of issue, described in dataarts#4 .

@anhr
Copy link
Owner Author

anhr commented Apr 23, 2019

Using:

var gui = new dat.GUI();
gui.addCustomController(object, [property], [min], [max], [step]);

For more details see gui.add
and add some features:
Param object.constructor = function ( controller ) {
//Add your custom elements into controller.domElement
}
See an example of using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant