fix(ui): fix scaled bbox sliders

Removed logic related to aspect ratio from the components.

When the main bbox changes, if the scale method is auto, the reducers will handle the scaled bbox size appropriately.

Somehow linking up the manual mode to the aspect ratio is tricky, and instead of adding complexity for a rarely-used mode, I'm leaving manual mode as fully manual.
This commit is contained in:
psychedelicious
2024-01-04 00:53:00 +11:00
committed by Kent Keirsey
parent 6c05818887
commit 31035b3e63
3 changed files with 33 additions and 83 deletions

View File

@ -597,9 +597,12 @@ export const canvasSlice = createSlice({
},
setScaledBoundingBoxDimensions: (
state,
action: PayloadAction<Dimensions>
action: PayloadAction<Partial<Dimensions>>
) => {
state.scaledBoundingBoxDimensions = action.payload;
state.scaledBoundingBoxDimensions = {
...state.scaledBoundingBoxDimensions,
...action.payload,
};
},
setBoundingBoxDimensions: {
reducer: (