mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
tidy(ui): organise files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import type { CanvasV2State, Size } from 'features/controlLayers/store/types';
|
||||
import type { Graph } from 'features/nodes/util/graph/generation/Graph';
|
||||
import { isEqual, pick } from 'lodash-es';
|
||||
@@ -6,7 +6,7 @@ import type { Invocation } from 'services/api/types';
|
||||
|
||||
export const addImageToImage = async (
|
||||
g: Graph,
|
||||
manager: KonvaNodeManager,
|
||||
manager: CanvasManager,
|
||||
l2i: Invocation<'l2i'>,
|
||||
denoise: Invocation<'denoise_latents'>,
|
||||
vaeSource: Invocation<'main_model_loader' | 'sdxl_model_loader' | 'seamless' | 'vae_loader'>,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import type { CanvasV2State, Size } from 'features/controlLayers/store/types';
|
||||
import type { Graph } from 'features/nodes/util/graph/generation/Graph';
|
||||
import type { ParameterPrecision } from 'features/parameters/types/parameterSchemas';
|
||||
@@ -7,7 +7,7 @@ import type { Invocation } from 'services/api/types';
|
||||
|
||||
export const addInpaint = async (
|
||||
g: Graph,
|
||||
manager: KonvaNodeManager,
|
||||
manager: CanvasManager,
|
||||
l2i: Invocation<'l2i'>,
|
||||
denoise: Invocation<'denoise_latents'>,
|
||||
vaeSource: Invocation<'main_model_loader' | 'sdxl_model_loader' | 'seamless' | 'vae_loader'>,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import type { CanvasV2State, Size } from 'features/controlLayers/store/types';
|
||||
import type { Graph } from 'features/nodes/util/graph/generation/Graph';
|
||||
import { getInfill } from 'features/nodes/util/graph/graphBuilderUtils';
|
||||
@@ -8,7 +8,7 @@ import type { Invocation } from 'services/api/types';
|
||||
|
||||
export const addOutpaint = async (
|
||||
g: Graph,
|
||||
manager: KonvaNodeManager,
|
||||
manager: CanvasManager,
|
||||
l2i: Invocation<'l2i'>,
|
||||
denoise: Invocation<'denoise_latents'>,
|
||||
vaeSource: Invocation<'main_model_loader' | 'sdxl_model_loader' | 'seamless' | 'vae_loader'>,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { deepClone } from 'common/util/deepClone';
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import type { IPAdapterEntity, Rect, RegionEntity } from 'features/controlLayers/store/types';
|
||||
import {
|
||||
PROMPT_REGION_INVERT_TENSOR_MASK_PREFIX,
|
||||
@@ -27,7 +27,7 @@ import { assert } from 'tsafe';
|
||||
*/
|
||||
|
||||
export const addRegions = async (
|
||||
manager: KonvaNodeManager,
|
||||
manager: CanvasManager,
|
||||
regions: RegionEntity[],
|
||||
g: Graph,
|
||||
bbox: Rect,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RootState } from 'app/store/store';
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { fetchModelConfigWithTypeGuard } from 'features/metadata/util/modelFetchingHelpers';
|
||||
import {
|
||||
LATENTS_TO_IMAGE,
|
||||
@@ -30,7 +30,7 @@ import { addRegions } from './addRegions';
|
||||
|
||||
export const buildImageToImageSDXLGraph = async (
|
||||
state: RootState,
|
||||
manager: KonvaNodeManager
|
||||
manager: CanvasManager
|
||||
): Promise<NonNullableGraph> => {
|
||||
const { bbox, params } = state.canvasV2;
|
||||
const {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RootState } from 'app/store/store';
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { fetchModelConfigWithTypeGuard } from 'features/metadata/util/modelFetchingHelpers';
|
||||
import {
|
||||
CANVAS_OUTPUT,
|
||||
@@ -34,7 +34,7 @@ import { assert } from 'tsafe';
|
||||
|
||||
import { addRegions } from './addRegions';
|
||||
|
||||
export const buildSD1Graph = async (state: RootState, manager: KonvaNodeManager): Promise<Graph> => {
|
||||
export const buildSD1Graph = async (state: RootState, manager: CanvasManager): Promise<Graph> => {
|
||||
const generationMode = manager.getGenerationMode();
|
||||
|
||||
const { bbox, params } = state.canvasV2;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RootState } from 'app/store/store';
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { fetchModelConfigWithTypeGuard } from 'features/metadata/util/modelFetchingHelpers';
|
||||
import {
|
||||
CANVAS_OUTPUT,
|
||||
@@ -33,7 +33,7 @@ import { assert } from 'tsafe';
|
||||
|
||||
import { addRegions } from './addRegions';
|
||||
|
||||
export const buildSDXLGraph = async (state: RootState, manager: KonvaNodeManager): Promise<Graph> => {
|
||||
export const buildSDXLGraph = async (state: RootState, manager: CanvasManager): Promise<Graph> => {
|
||||
const generationMode = manager.getGenerationMode();
|
||||
|
||||
const { bbox, params } = state.canvasV2;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RootState } from 'app/store/store';
|
||||
import type { KonvaNodeManager } from 'features/controlLayers/konva/KonvaNodeManager';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { fetchModelConfigWithTypeGuard } from 'features/metadata/util/modelFetchingHelpers';
|
||||
import {
|
||||
CLIP_SKIP,
|
||||
@@ -31,7 +31,7 @@ import { assert } from 'tsafe';
|
||||
|
||||
import { addRegions } from './addRegions';
|
||||
|
||||
export const buildTextToImageSD1SD2Graph = async (state: RootState, manager: KonvaNodeManager): Promise<GraphType> => {
|
||||
export const buildTextToImageSD1SD2Graph = async (state: RootState, manager: CanvasManager): Promise<GraphType> => {
|
||||
const { bbox, params } = state.canvasV2;
|
||||
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user