Wrote space editor component and test.

This commit is contained in:
Jay
2025-08-08 11:17:21 -04:00
parent f47d46f382
commit 0d08d805a3
9 changed files with 310 additions and 16 deletions
+5
View File
@@ -89,3 +89,8 @@ export function chooseValueByDirection(
) {
return direction === Direction.HORIZONTAL ? xValue : yValue;
}
export function roundTo(value: number, decimals: number = 0) {
const factor = Math.pow(10, decimals);
return Math.round(value * factor) / factor;
}