This commit is contained in:
Benjamin Lu
2025-09-17 15:39:01 -07:00
parent 777e419a50
commit f91dc82c94
4 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -41,7 +41,7 @@ function flushScheduledSlotLayoutSync() {
}
}
export function syncNodeSlotLayoutsFromDOM(
function syncNodeSlotLayoutsFromDOM(
nodeId: string,
conv?: ReturnType<typeof useSharedCanvasPositionConversion>
) {