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

Support simple dynamic code for number and string props #254

Open
itsdouges opened this issue Dec 11, 2024 · 0 comments
Open

Support simple dynamic code for number and string props #254

itsdouges opened this issue Dec 11, 2024 · 0 comments
Labels

Comments

@itsdouges
Copy link
Collaborator

Common methods of declaring some props are to use simple math, for example rotation and using Math.PI. To make using these kinds of prop declarations easier Triplex needs to support:

  1. Updating props with "code"
  2. Declaring the code in the prop controls

For (1) currently you'll find Triplex only supports updating primitive values / arrays. It should also support arbitrarily setting "code". We may already be able to do this with no changes, need to explore.

For (2) declaring the code in prop controls will need a more advanced input to be built that can switch between "primitive" and "code" view. And ideally the code side also needs to "on-rails" so it can't be given invalid options.

@itsdouges itsdouges added New feature New feature or request Triplex for VS Code labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant