From 77c1e1bb9ce82bcbb13ce8d3481cab2d695c089f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 4 Apr 2026 19:31:44 +0200 Subject: [PATCH] Add rotation input fields to App component --- src/app/App.tsx | 78 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index f328df1f..4747b821 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6712,7 +6712,7 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-center-x" className="text-input" type="number" - step={DEFAULT_GRID_SIZE} + step={whiteboxVectorInputStep} value={positionDraft.x} onChange={(event) => { const nextValue = event.currentTarget.value; @@ -6730,7 +6730,7 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-center-y" className="text-input" type="number" - step={DEFAULT_GRID_SIZE} + step={whiteboxVectorInputStep} value={positionDraft.y} onChange={(event) => { const nextValue = event.currentTarget.value; @@ -6748,7 +6748,7 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-center-z" className="text-input" type="number" - step={DEFAULT_GRID_SIZE} + step={whiteboxVectorInputStep} value={positionDraft.z} onChange={(event) => { const nextValue = event.currentTarget.value; @@ -6763,6 +6763,66 @@ export function App({ store, initialStatusMessage }: AppProps) { +
+
Rotation
+
+ + + +
+
+
Size
@@ -6772,8 +6832,8 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-size-x" className="text-input" type="number" - min={DEFAULT_GRID_SIZE} - step={DEFAULT_GRID_SIZE} + min="0.01" + step={whiteboxVectorInputStep} value={sizeDraft.x} onChange={(event) => { const nextValue = event.currentTarget.value; @@ -6791,8 +6851,8 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-size-y" className="text-input" type="number" - min={DEFAULT_GRID_SIZE} - step={DEFAULT_GRID_SIZE} + min="0.01" + step={whiteboxVectorInputStep} value={sizeDraft.y} onChange={(event) => { const nextValue = event.currentTarget.value; @@ -6810,8 +6870,8 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="brush-size-z" className="text-input" type="number" - min={DEFAULT_GRID_SIZE} - step={DEFAULT_GRID_SIZE} + min="0.01" + step={whiteboxVectorInputStep} value={sizeDraft.z} onChange={(event) => { const nextValue = event.currentTarget.value;