fix(ui): scaled bounding box uses canvas aspect ratio

This commit is contained in:
psychedelicious 2024-01-03 17:15:23 +11:00 committed by Kent Keirsey
parent 00297716d6
commit 4ce9f9dc36
2 changed files with 6 additions and 4 deletions

View File

@ -11,8 +11,9 @@ import { useTranslation } from 'react-i18next';
const selector = createMemoizedSelector(
[stateSelector],
({ generation, canvas }) => {
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod } = canvas;
const { model, aspectRatio } = generation;
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod, aspectRatio } =
canvas;
const { model } = generation;
return {
model,

View File

@ -11,8 +11,9 @@ import { useTranslation } from 'react-i18next';
const selector = createMemoizedSelector(
[stateSelector],
({ canvas, generation }) => {
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions } = canvas;
const { model, aspectRatio } = generation;
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions, aspectRatio } =
canvas;
const { model } = generation;
return {
model,