Skip to content

Conversation

@benjamincloquet
Copy link

@benjamincloquet benjamincloquet commented Oct 26, 2025

Experimenting on this issue #254

This PR aims to improve the regular number input (as seen for the position, rotation, scale props) by adding a toggle to allow the user to input simple code expressions.
In this context, a valid expression is an expression that can be resolved in isolation, eg. 2 + 2, Math.PI / 2, Math.sqrt(2) and so on. If a prop contains an identifier from an external variable (myVariable * 2), it then falls under the standard unhandled category.

Recommended review path:

To be improved : there is no visible validation as of now, if an incorrect expression is saved, the prop value is silently replaced with undefined

@vercel
Copy link

vercel bot commented Oct 26, 2025

@benjamincloquet is attempting to deploy a commit to the Triplex Team on Vercel.

A member of the Team first needs to authorize it.

@benjamincloquet benjamincloquet marked this pull request as ready for review October 26, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant