Add math expression evaluation to NumberInput boxes (#1472)

* Add math expression parsing to NumberInput boxes

* Prevent NaN results

* Add support for implicit multiplication in expressions
This commit is contained in:
Keavon Chambers
2023-11-25 22:37:54 +00:00
committed by GitHub
parent ab3410cffe
commit 2515620a77
4 changed files with 116 additions and 16 deletions
+1
View File
@@ -37,6 +37,7 @@ ron = { version = "0.8", optional = true }
bezier-rs = { path = "../../libraries/bezier-rs" }
# We don't have wgpu on multiple threads (yet) https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELOG.md#wgpu-types-now-send-sync-on-wasm
wgpu = { version = "0.17", features = ["fragile-send-sync-non-atomic-wasm"] }
meval = "0.2.0"
[dependencies.web-sys]
version = "0.3.4"