Number fields drop trailing zeros: formatNumber still rounds to at most 3 decimals and then removes zeros at the end, so 100.000 reads 100 and 0.500 reads 0.5, everywhere (inspector, graph and shader nodes, duration and fps in the animation and tile tabs); a field's own decimals is now an upper limit, stored values are unchanged, -0 still shows as 0, and the graph's separate integer rule is gone (#172)
game-maker / gate (push) Successful in 1m55s
game-maker / suite (push) Successful in 6m50s

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5 committed 2026-09-19 14:29:00 +02:00
1 parent 47eea2f6e4
commit 4f546c0e08
6 files changed
+36 -17

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ export interface NumberFieldOptions extends Omit<TextFieldOptions, 'onInput' | '
/** Increment per scrubbed pixel and per arrow key, and the grid a scrub snaps to. */
step?: number;
/**
* Decimal places the value is kept *and* shown at (default `NUMBER_DECIMALS`) – the field rounds
* to it, so lowering it drops precision rather than hiding it.
* Decimal places the value is kept at and shown with at most (default `NUMBER_DECIMALS`) – the
* field rounds to it, so lowering it drops precision rather than hiding it.
*/
decimals?: number;
/** Fires continuously while scrubbing or typing a valid number. */