break_eternity

This commit is contained in:
azykov@mail.ru
2026-08-31 22:21:53 +03:00
parent 90501176ef
commit b9c0c0ee28
6 changed files with 34 additions and 22 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
import type Decimal from 'break_eternity.js';
interface Props {
time: number;
time: Decimal;
onTick: () => void;
onReset: () => void;
onInitialize: () => void;
@@ -13,7 +15,7 @@ export default function Topbar({ time, onTick, onReset, onInitialize }: Props) {
<span>детерминированная тиковая симуляция</span>
</h1>
<div className="tick-counter">
Время <b>{time}</b>
Время <b>{time.toStringWithDecimalPlaces(4)}</b>
</div>
<div className="spacer" />
<button className="btn" onClick={onInitialize}>