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

Callback params #16

Open
GoogleCodeExporter opened this issue May 19, 2015 · 0 comments
Open

Callback params #16

GoogleCodeExporter opened this issue May 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi there,

Firstly - awesome job on this tool, I really love it! Secondly, this is not an 
issue, but rather a feature request.

FEATURE REQUEST:

I would like to be able to add arguments to the onChange and onFinishChange 
callback functions so that I can reduce the amount of code I need to write in 
order to manipulate my objects via 'multi-argument methods' rather than 
properties. More specifically, I have a '3D' object with 3 methods:

translate(x, y, z)
rotate(x, y, z)
scale(x, y, z)

...there is some internal logic within these methods that requires that the 
object is manipulated using them rather than modifying x, y, z, rotationX, Y, 
Z, scaleX, Y, Z directly.

Currently, I have a 'slave' object with these 9 properties on it, which I am 
passing to dat-gui and then calling the respective methods on my '3D' object 
from within the onChange callback.

It would be awesome if you could add the ability to pass additional arguments 
to the onChange and onFinishChange callbacks so that in cases like mine, more 
elegant logic could be performed inside of the callback using these arguments.

My apologies if this should have been posted somewhere else, but I am not 
familiar with the process for feature requests on Google Code.

Many thanks in advance,

Matthew Wagerfield

Original issue reported on code.google.com by mattheww...@gmail.com on 12 May 2012 at 7:52

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

No branches or pull requests

1 participant