This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
Allow setting of "deg(n)" in numerical attributes #31
Labels
enhancement
New feature or request
Milestone
What? eg.
rotation.x="deg(180)"
Why? Because manually typing out half a PI in 100% static three-elements HTML is a bit meh. (It's not a problem when using frameworks, because those will let you use JavaScript's
Math.PI
.)How? We already try to parseFloat the value and then use either that or the string itself. Before using the string, we'll insert another step where we check for a
deg(...)
value using a regexp.The text was updated successfully, but these errors were encountered: