Files
goldenChart/frontend/src/components/strategyEditor/strategyEditorCallbacks.ts
T
2026-05-24 12:25:17 +09:00

17 lines
580 B
TypeScript

import type { EdgeHandleBinding } from '../../utils/strategyFlowLayout';
/** 연결선 끊기 — 커스텀 엣지 컴포넌트에서 캔버스 핸들러 참조 */
export const edgeDisconnectRef = {
current: null as ((edgeId: string) => void) | null,
};
/** 연결선 핸들·경로 바인딩 갱신 */
export const edgeBindingUpdateRef = {
current: null as ((edgeId: string, patch: Partial<EdgeHandleBinding>) => void) | null,
};
/** 탭 전환 직전 — 현재 탭 레이아웃 즉시 저장 */
export const layoutFlushRef = {
current: null as (() => void) | null,
};