mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
f19def5f7b
commit
80ec9f4131
@ -10,11 +10,14 @@ import useCanvasMouseOut from 'features/canvas/hooks/useCanvasMouseOut';
|
|||||||
import useCanvasMouseUp from 'features/canvas/hooks/useCanvasMouseUp';
|
import useCanvasMouseUp from 'features/canvas/hooks/useCanvasMouseUp';
|
||||||
import useCanvasWheel from 'features/canvas/hooks/useCanvasZoom';
|
import useCanvasWheel from 'features/canvas/hooks/useCanvasZoom';
|
||||||
import {
|
import {
|
||||||
$canvasBaseLayer, $canvasStage,$isModifyingBoundingBox,
|
$canvasBaseLayer,
|
||||||
|
$canvasStage,
|
||||||
|
$isModifyingBoundingBox,
|
||||||
$isMouseOverBoundingBox,
|
$isMouseOverBoundingBox,
|
||||||
$isMovingStage,
|
$isMovingStage,
|
||||||
$isTransformingBoundingBox,
|
$isTransformingBoundingBox,
|
||||||
$tool } from 'features/canvas/store/canvasNanostore';
|
$tool,
|
||||||
|
} from 'features/canvas/store/canvasNanostore';
|
||||||
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
|
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
|
||||||
import {
|
import {
|
||||||
canvasResized,
|
canvasResized,
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import {
|
import {
|
||||||
$canvasStage, $tool,
|
$canvasStage,
|
||||||
|
$tool,
|
||||||
$toolStash,
|
$toolStash,
|
||||||
resetCanvasInteractionState,
|
resetCanvasInteractionState,
|
||||||
resetToolInteractionState } from 'features/canvas/store/canvasNanostore';
|
resetToolInteractionState,
|
||||||
|
} from 'features/canvas/store/canvasNanostore';
|
||||||
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
|
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
|
||||||
import {
|
import {
|
||||||
clearMask,
|
clearMask,
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
import { useAppDispatch } from 'app/store/storeHooks';
|
import { useAppDispatch } from 'app/store/storeHooks';
|
||||||
import { $canvasBaseLayer,$canvasStage,$tool } from 'features/canvas/store/canvasNanostore';
|
import {
|
||||||
|
$canvasBaseLayer,
|
||||||
|
$canvasStage,
|
||||||
|
$tool,
|
||||||
|
} from 'features/canvas/store/canvasNanostore';
|
||||||
import {
|
import {
|
||||||
commitColorPickerColor,
|
commitColorPickerColor,
|
||||||
setColorPickerColor,
|
setColorPickerColor,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { CanvasTool } from 'features/canvas/store/canvasTypes';
|
import type { CanvasTool } from 'features/canvas/store/canvasTypes';
|
||||||
import type Konva from "konva";
|
import type Konva from 'konva';
|
||||||
import type { Vector2d } from 'konva/lib/types';
|
import type { Vector2d } from 'konva/lib/types';
|
||||||
import { atom, computed } from 'nanostores';
|
import { atom, computed } from 'nanostores';
|
||||||
|
|
||||||
@ -39,6 +39,6 @@ export const resetToolInteractionState = () => {
|
|||||||
|
|
||||||
export const setCanvasInteractionStateMouseOut = () => {
|
export const setCanvasInteractionStateMouseOut = () => {
|
||||||
$cursorPosition.set(null);
|
$cursorPosition.set(null);
|
||||||
};export const $canvasBaseLayer = atom<Konva.Layer | null>(null);
|
};
|
||||||
|
export const $canvasBaseLayer = atom<Konva.Layer | null>(null);
|
||||||
export const $canvasStage = atom<Konva.Stage | null>(null);
|
export const $canvasStage = atom<Konva.Stage | null>(null);
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import { logger } from 'app/logging/logger';
|
import { logger } from 'app/logging/logger';
|
||||||
import { $canvasBaseLayer , $canvasStage } from 'features/canvas/store/canvasNanostore';
|
import {
|
||||||
|
$canvasBaseLayer,
|
||||||
|
$canvasStage,
|
||||||
|
} from 'features/canvas/store/canvasNanostore';
|
||||||
import type {
|
import type {
|
||||||
CanvasLayerState,
|
CanvasLayerState,
|
||||||
Dimensions,
|
Dimensions,
|
||||||
|
@ -76,7 +76,11 @@ export const AspectRatioPreview = () => {
|
|||||||
exit={MOTION_ICON_EXIT}
|
exit={MOTION_ICON_EXIT}
|
||||||
style={ICON_CONTAINER_STYLES}
|
style={ICON_CONTAINER_STYLES}
|
||||||
>
|
>
|
||||||
<Icon as={PiFrameCorners} color="base.700" boxSize={BOX_SIZE_CSS_CALC} />
|
<Icon
|
||||||
|
as={PiFrameCorners}
|
||||||
|
color="base.700"
|
||||||
|
boxSize={BOX_SIZE_CSS_CALC}
|
||||||
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user