mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 23:04:06 +00:00
knip
This commit is contained in:
@@ -70,7 +70,7 @@ export interface RenderContext {
|
||||
highlightedIds?: Set<string>
|
||||
}
|
||||
|
||||
export interface DragLinkData {
|
||||
interface DragLinkData {
|
||||
/** Fixed end - the slot being dragged from */
|
||||
fixedPoint: Point
|
||||
fixedDirection: Direction
|
||||
|
||||
@@ -9,7 +9,7 @@ import type {
|
||||
} from '@/renderer/core/linkInteractions/slotLinkDragState'
|
||||
import { app } from '@/scripts/app'
|
||||
|
||||
export interface CompatibilityResult {
|
||||
interface CompatibilityResult {
|
||||
allowable: boolean
|
||||
targetNode?: LGraphNode
|
||||
targetSlot?: INodeInputSlot | INodeOutputSlot
|
||||
|
||||
@@ -5,7 +5,7 @@ import { getSlotKey } from '@/renderer/core/layout/slots/slotIdentifier'
|
||||
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||
import type { SlotLayout } from '@/renderer/core/layout/types'
|
||||
|
||||
export type SlotDragType = 'input' | 'output'
|
||||
type SlotDragType = 'input' | 'output'
|
||||
|
||||
export interface SlotDragSource {
|
||||
nodeId: string
|
||||
@@ -20,12 +20,12 @@ export interface SlotDropCandidate {
|
||||
compatible: boolean
|
||||
}
|
||||
|
||||
export interface PointerPosition {
|
||||
interface PointerPosition {
|
||||
client: Readonly<{ x: number; y: number }>
|
||||
canvas: Readonly<{ x: number; y: number }>
|
||||
}
|
||||
|
||||
export interface SlotDragState {
|
||||
interface SlotDragState {
|
||||
active: boolean
|
||||
pointerId: number | null
|
||||
source: SlotDragSource | null
|
||||
|
||||
@@ -41,7 +41,7 @@ function flushScheduledSlotLayoutSync() {
|
||||
}
|
||||
}
|
||||
|
||||
export function syncNodeSlotLayoutsFromDOM(
|
||||
function syncNodeSlotLayoutsFromDOM(
|
||||
nodeId: string,
|
||||
conv?: ReturnType<typeof useSharedCanvasPositionConversion>
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user