feat(canvas): 节点连接 - 新增外置标题与跟随锚点快速连线

This commit is contained in:
ddCat
2026-07-31 17:17:01 +08:00
parent 98aad91d5f
commit 83fab5f136
10 changed files with 232 additions and 41 deletions

View File

@@ -276,6 +276,8 @@ export type CanvasConnection = {
toNodeId: string;
fromHandleId?: string;
toHandleId?: string;
fromAnchorRatio?: number;
toAnchorRatio?: number;
};
export type CanvasDisplayConnection = {
@@ -331,6 +333,7 @@ export type ConnectionHandle = {
nodeId: string;
handleType: "source" | "target";
handleId?: string;
anchorRatio?: number;
};
export type SelectionBox = {