freeman-lab / control-panel

embeddable panel of inputs for parameter setting
MIT License
237 stars 17 forks source link

Add build process with browserify (closes #21) #26

Open marcofugaro opened 5 years ago

marcofugaro commented 5 years ago

This library is currently written in node. In this PR, browserify generates that code into a bundle that is usable from a browser and with other build tools that are not browserify.

Closes #21

marcofugaro commented 5 years ago

@freeman-lab @rreusser anyone?

rreusser commented 5 years ago

Thanks for the PR! It seems pretty straightforward and seems like the right move!

marcofugaro commented 5 years ago

Thank you! This plugin looks nicer and has a better api than dat.gui, it's a shame it was usable only with browserify. Happy to help

rreusser commented 5 years ago

Oh, whoopsie. I'm glad to help get this merged, but looks like I don't have permissions. /ping @freeman-lab 😄

Also, @marcofugaro It might be of interest that I've been working on a new version of this which you can find here: https://rreusser.github.io/control-panel-2/ https://github.com/rreusser/control-panel-2 It has the additional feature that the state behaves like a regular object. You can wrap it in a UI which connects to events so that modifications feed right back into the UI. It needs some work in order to get it over the line, but the primary goal was to address some recurring needs based on lots of usage of control-panel.

marcofugaro commented 5 years ago

@rreusser nice! really interesting approach! keep it up!

marcofugaro commented 5 years ago

@freeman-lab You don't want to merge this?