chore(ui): lint

This commit is contained in:
psychedelicious 2024-01-09 22:53:38 +11:00 committed by Kent Keirsey
parent f19def5f7b
commit 80ec9f4131
6 changed files with 26 additions and 10 deletions

View File

@ -10,11 +10,14 @@ import useCanvasMouseOut from 'features/canvas/hooks/useCanvasMouseOut';
import useCanvasMouseUp from 'features/canvas/hooks/useCanvasMouseUp';
import useCanvasWheel from 'features/canvas/hooks/useCanvasZoom';
import {
$canvasBaseLayer, $canvasStage,$isModifyingBoundingBox,
$canvasBaseLayer,
$canvasStage,
$isModifyingBoundingBox,
$isMouseOverBoundingBox,
$isMovingStage,
$isTransformingBoundingBox,
$tool } from 'features/canvas/store/canvasNanostore';
$tool,
} from 'features/canvas/store/canvasNanostore';
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
import {
canvasResized,

View File

@ -1,9 +1,11 @@
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import {
$canvasStage, $tool,
$canvasStage,
$tool,
$toolStash,
resetCanvasInteractionState,
resetToolInteractionState } from 'features/canvas/store/canvasNanostore';
resetToolInteractionState,
} from 'features/canvas/store/canvasNanostore';
import { isStagingSelector } from 'features/canvas/store/canvasSelectors';
import {
clearMask,

View File

@ -1,5 +1,9 @@
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 {
commitColorPickerColor,
setColorPickerColor,

View File

@ -1,5 +1,5 @@
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 { atom, computed } from 'nanostores';
@ -39,6 +39,6 @@ export const resetToolInteractionState = () => {
export const setCanvasInteractionStateMouseOut = () => {
$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);

View File

@ -1,5 +1,8 @@
import { logger } from 'app/logging/logger';
import { $canvasBaseLayer , $canvasStage } from 'features/canvas/store/canvasNanostore';
import {
$canvasBaseLayer,
$canvasStage,
} from 'features/canvas/store/canvasNanostore';
import type {
CanvasLayerState,
Dimensions,

View File

@ -76,7 +76,11 @@ export const AspectRatioPreview = () => {
exit={MOTION_ICON_EXIT}
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>
)}
</AnimatePresence>