mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Rename toggleBoundingBoxDimension to flipBoundingBoxAxes
This commit is contained in:
parent
b7a4f3c2cb
commit
bc7c0f75a0
@ -240,7 +240,7 @@ export const canvasSlice = createSlice({
|
|||||||
state.scaledBoundingBoxDimensions = scaledDimensions;
|
state.scaledBoundingBoxDimensions = scaledDimensions;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toggleBoundingBoxDimensions: (state) => {
|
flipBoundingBoxAxes: (state) => {
|
||||||
const [currWidth, currHeight] = [
|
const [currWidth, currHeight] = [
|
||||||
state.boundingBoxDimensions.width,
|
state.boundingBoxDimensions.width,
|
||||||
state.boundingBoxDimensions.height,
|
state.boundingBoxDimensions.height,
|
||||||
@ -931,7 +931,7 @@ export const {
|
|||||||
setBoundingBoxDimensions,
|
setBoundingBoxDimensions,
|
||||||
setBoundingBoxPreviewFill,
|
setBoundingBoxPreviewFill,
|
||||||
setBoundingBoxScaleMethod,
|
setBoundingBoxScaleMethod,
|
||||||
toggleBoundingBoxDimensions,
|
flipBoundingBoxAxes,
|
||||||
setBrushColor,
|
setBrushColor,
|
||||||
setBrushSize,
|
setBrushSize,
|
||||||
setCanvasContainerDimensions,
|
setCanvasContainerDimensions,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Flex, Spacer, Text } from '@chakra-ui/react';
|
import { Flex, Spacer, Text } from '@chakra-ui/react';
|
||||||
import { useAppDispatch } from 'app/store/storeHooks';
|
import { useAppDispatch } from 'app/store/storeHooks';
|
||||||
import IAIIconButton from 'common/components/IAIIconButton';
|
import IAIIconButton from 'common/components/IAIIconButton';
|
||||||
import { toggleBoundingBoxDimensions } from 'features/canvas/store/canvasSlice';
|
import { flipBoundingBoxAxes } from 'features/canvas/store/canvasSlice';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { MdOutlineSwapVert } from 'react-icons/md';
|
import { MdOutlineSwapVert } from 'react-icons/md';
|
||||||
import ParamAspectRatio from '../../Core/ParamAspectRatio';
|
import ParamAspectRatio from '../../Core/ParamAspectRatio';
|
||||||
@ -47,7 +47,7 @@ export default function ParamBoundingBoxSize() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
icon={<MdOutlineSwapVert />}
|
icon={<MdOutlineSwapVert />}
|
||||||
fontSize={20}
|
fontSize={20}
|
||||||
onClick={() => dispatch(toggleBoundingBoxDimensions())}
|
onClick={() => dispatch(flipBoundingBoxAxes())}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
<ParamBoundingBoxWidth />
|
<ParamBoundingBoxWidth />
|
||||||
|
Loading…
Reference in New Issue
Block a user