Comments (3)
This isn't such a bad idea. It makes you explicitly force the context.
The only issue is that you need to keep references to the InputBindings after addInput calls if you wish to use them later.
Would you consider allowing bindings to be added with a 'key'. Then extending the API to include a getBinding(key) call?
addInput(menu, 'value', {key:'myid',....});
Later on I can then just call tweakpane.getBinding('myid');
Chris
from tweakpane.
I don't have a plan to add key
because it is not natural, but the first idea (binding handlers to appropriate APIs) looks good.
from tweakpane.
Fixed in #69. Please wait for the next release.
from tweakpane.
Related Issues (20)
- [bug] `ListApi` doesn't update consistently HOT 10
- Hyperlink to v4 release notes results into a 404 error HOT 1
- Feat: Description per input HOT 2
- [bug] [feature-request] Respect `step` precision for floats. HOT 4
- Allow only numeric values for numeric sliders input areas HOT 2
- Group bindings under a subpane/group
- Update plugin-essentials to use new 4.x api HOT 1
- Add plugin compatibility to documents HOT 1
- v4 - refresh no longer working HOT 4
- TabApi should be refreshable HOT 2
- Panel doesn't collapse HOT 13
- Visiting v3.x documentation is showing 404 page not found HOT 2
- Having a hard time with plugin development in vanilla js HOT 4
- Soft min/max values.
- Pointer lock when dragging.
- `view` string autocomplete. HOT 2
- How to remove event listeners? HOT 3
- color panel is displaying incorrectly HOT 4
- Bug with Tab when we have controls after the Tab HOT 2
- Cannot read properties of undefined (reading 'valueController') HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tweakpane.