Comments (3)
I plan to introduce input
option for number parameters.
typeof input | condition | output |
---|---|---|
number | {input: 'color'} |
color (number) |
number | - | number |
string | can be parsed as a color | color (string) |
string | - | string |
object | has keys: r , g , b |
color (object) |
Related to this change, {type: 'graph'}
option should be renamed to avoid users' confusion (it's too versatile for the feature, I think view
is better)
from tweakpane.
Considering to add support an alpha component in the future update, ... is {input: 'color.rgb'}
better?
Other candidates:
RGB | RGBA |
---|---|
{input: 'color.rgb'} |
{input: 'color.rgba'} |
{input: 'color-rgb'} |
{input: 'color-rgba'} |
{input: 'rgbColor'} |
{input: 'rgbaColor'} |
{input: 'rgb'} |
{input: 'rgba'} |
{input: {type: 'color', mode: 'rgb'}} |
{input: {type: 'color', mode: 'rgba'}} |
from tweakpane.
Released in 1.2.0.
from tweakpane.
Related Issues (20)
- `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
- Theme builder HOT 8
- SVGs Not Scaling Correctly HOT 4
- color as array of values 0-255 HOT 1
- [feature request] tabs: html elements in title HOT 2
- [feature request] tabs: vertical layout HOT 4
- Considering sponsorship for sustainable OSS development
- Please add a UMD library version again. HOT 5
- export folder -> import folder not working as expected HOT 3
- Numerical values passed as list of strings incorrectly treated as colors HOT 2
- Ability to manually select the binding view type HOT 4
- support for React, Vue, Svelte, Solid, Angular, etc, by making Custom Elements
- Readonly `point2d`, `point3d`, `point4d` throws an error HOT 3
- Feat: support custom passing a custom BindingTarget
- Type problem when calling addBinding dynamically HOT 4
- Receiving NaN values while disposing
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.