-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): lint (circular dependency)
Had to shuffle around the canvas right panel tabs state.
- Loading branch information
1 parent
95675c0
commit fdcd26f
Showing
11 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ontend/web/src/features/controlLayers/components/Toolbar/CanvasToolbarResetViewButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
invokeai/frontend/web/src/features/controlLayers/contexts/CanvasManagerProviderGate.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
invokeai/frontend/web/src/features/controlLayers/hooks/useCanvasDeleteLayerHotkey.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
invokeai/frontend/web/src/features/controlLayers/store/ephemeral.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager'; | ||
import { atom, computed } from 'nanostores'; | ||
|
||
// Ephemeral state for canvas - not persisted across sessions. | ||
|
||
/** | ||
* The global canvas manager instance. | ||
*/ | ||
export const $canvasManager = atom<CanvasManager | null>(null); | ||
|
||
/** | ||
* The index of the active tab in the canvas right panel. | ||
*/ | ||
export const $canvasRightPanelTabIndex = atom(0); | ||
/** | ||
* The name of the active tab in the canvas right panel. | ||
*/ | ||
export const $canvasRightPanelTab = computed($canvasRightPanelTabIndex, (index) => | ||
index === 0 ? 'layers' : 'gallery' | ||
); | ||
export const selectCanvasRightPanelLayersTab = () => $canvasRightPanelTabIndex.set(0); | ||
export const selectCanvasRightPanelGalleryTab = () => $canvasRightPanelTabIndex.set(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters