mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
use camelcase for layoutStore filename
This commit is contained in:
@@ -118,7 +118,7 @@ import { CORE_SETTINGS } from '@/constants/coreSettings'
|
|||||||
import { i18n, t } from '@/i18n'
|
import { i18n, t } from '@/i18n'
|
||||||
import type { LGraphCanvas, LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphCanvas, LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
|
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import { useLayoutSync } from '@/renderer/core/layout/sync/useLayoutSync'
|
import { useLayoutSync } from '@/renderer/core/layout/sync/useLayoutSync'
|
||||||
import { useLinkLayoutSync } from '@/renderer/core/layout/sync/useLinkLayoutSync'
|
import { useLinkLayoutSync } from '@/renderer/core/layout/sync/useLinkLayoutSync'
|
||||||
import { useSlotLayoutSync } from '@/renderer/core/layout/sync/useSlotLayoutSync'
|
import { useSlotLayoutSync } from '@/renderer/core/layout/sync/useSlotLayoutSync'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
type LinkRenderContext,
|
type LinkRenderContext,
|
||||||
LitegraphLinkAdapter
|
LitegraphLinkAdapter
|
||||||
} from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
} from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
|
|
||||||
import { CanvasPointer } from './CanvasPointer'
|
import { CanvasPointer } from './CanvasPointer'
|
||||||
import type { ContextMenu } from './ContextMenu'
|
import type { ContextMenu } from './ContextMenu'
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import {
|
|||||||
type Point,
|
type Point,
|
||||||
type RenderMode
|
type RenderMode
|
||||||
} from '@/renderer/core/canvas/pathRenderer'
|
} from '@/renderer/core/canvas/pathRenderer'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import type { Bounds } from '@/renderer/core/layout/types'
|
import type { Bounds } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
export interface LinkRenderContext {
|
export interface LinkRenderContext {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import type {
|
|||||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { isWidgetInputSlot } from '@/lib/litegraph/src/node/slotUtils'
|
import { isWidgetInputSlot } from '@/lib/litegraph/src/node/slotUtils'
|
||||||
import { getSlotKey } from '@/renderer/core/layout/slots/slotIdentifier'
|
import { getSlotKey } from '@/renderer/core/layout/slots/slotIdentifier'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
|
|
||||||
export interface SlotPositionContext {
|
export interface SlotPositionContext {
|
||||||
/** Node's X position in graph coordinates */
|
/** Node's X position in graph coordinates */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
import log from 'loglevel'
|
import log from 'loglevel'
|
||||||
|
|
||||||
import type { NodeId } from '@/lib/litegraph/src/LGraphNode'
|
import type { NodeId } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import {
|
import {
|
||||||
LayoutSource,
|
LayoutSource,
|
||||||
type LinkId,
|
type LinkId,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
calculateInputSlotPos,
|
calculateInputSlotPos,
|
||||||
calculateOutputSlotPos
|
calculateOutputSlotPos
|
||||||
} from '@/renderer/core/canvas/litegraph/slotCalculations'
|
} from '@/renderer/core/canvas/litegraph/slotCalculations'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import type { SlotLayout } from '@/renderer/core/layout/types'
|
import type { SlotLayout } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
import { getSlotKey } from './slotIdentifier'
|
import { getSlotKey } from './slotIdentifier'
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
} from 'vue'
|
} from 'vue'
|
||||||
|
|
||||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import type { Point as LayoutPoint } from '@/renderer/core/layout/types'
|
import type { Point as LayoutPoint } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
import { getSlotKey } from './slotIdentifier'
|
import { getSlotKey } from './slotIdentifier'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
import { onUnmounted } from 'vue'
|
import { onUnmounted } from 'vue'
|
||||||
|
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Composable for syncing LiteGraph with the Layout system
|
* Composable for syncing LiteGraph with the Layout system
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { LinkDirection } from '@/lib/litegraph/src/types/globalEnums'
|
|||||||
import { LitegraphLinkAdapter } from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
import { LitegraphLinkAdapter } from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
||||||
import type { LinkRenderContext } from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
import type { LinkRenderContext } from '@/renderer/core/canvas/litegraph/litegraphLinkAdapter'
|
||||||
import { getSlotPosition } from '@/renderer/core/canvas/litegraph/slotCalculations'
|
import { getSlotPosition } from '@/renderer/core/canvas/litegraph/slotCalculations'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import type { LayoutChange } from '@/renderer/core/layout/types'
|
import type { LayoutChange } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
const logger = log.getLogger('useLinkLayoutSync')
|
const logger = log.getLogger('useLinkLayoutSync')
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import type { LGraphCanvas } from '@/lib/litegraph/src/LGraphCanvas'
|
|||||||
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
import { type SlotPositionContext } from '@/renderer/core/canvas/litegraph/slotCalculations'
|
import { type SlotPositionContext } from '@/renderer/core/canvas/litegraph/slotCalculations'
|
||||||
import { registerNodeSlots } from '@/renderer/core/layout/slots/register'
|
import { registerNodeSlots } from '@/renderer/core/layout/slots/register'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute and register slot layouts for a node
|
* Compute and register slot layouts for a node
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
import { computed, inject } from 'vue'
|
import { computed, inject } from 'vue'
|
||||||
|
|
||||||
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
|
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import { LayoutSource, type Point } from '@/renderer/core/layout/types'
|
import { LayoutSource, type Point } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { beforeEach, describe, expect, it } from 'vitest'
|
import { beforeEach, describe, expect, it } from 'vitest'
|
||||||
|
|
||||||
import { layoutStore } from '@/renderer/core/layout/store/LayoutStore'
|
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||||
import { LayoutSource, type NodeLayout } from '@/renderer/core/layout/types'
|
import { LayoutSource, type NodeLayout } from '@/renderer/core/layout/types'
|
||||||
|
|
||||||
describe('layoutStore CRDT operations', () => {
|
describe('layoutStore CRDT operations', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user