Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clamp the value between 0 and 1 to avoid tinygradient errors. (#343)
* Clamp the value between 0 and 1 to avoid tinygradient errors. Previously, we could get a coefficient greater than 1, causing SquadJS to crash. One case is described [here](#342). Now we clamp the ratio between 0 and 1, which prevents an error related to tinygradient * Removed unnecessary indentation via lint
- Loading branch information