This commit is contained in:
Benjamin Lu
2025-09-17 18:26:35 -07:00
parent f26d1e71d5
commit 1e0bb7567c
3 changed files with 3 additions and 9 deletions

View File

@@ -4721,22 +4721,16 @@ export class LGraphCanvas
// the connection being dragged by the mouse
if (this.linkRenderer) {
this.linkRenderer.renderLinkDirect(
this.linkRenderer.renderDraggingLink(
ctx,
pos,
highlightPos,
null,
false,
null,
colour,
fromDirection,
dragDirection,
{
...this.buildLinkRenderContext(),
linkMarkerShape: LinkMarkerShape.None
},
{
disabled: false
}
)
}

View File

@@ -498,7 +498,7 @@ export class LitegraphLinkAdapter {
}
}
renderDragPreview(
renderDraggingLink(
ctx: CanvasRenderingContext2D,
from: ReadOnlyPoint,
to: ReadOnlyPoint,

View File

@@ -61,7 +61,7 @@ export function attachSlotLinkPreviewRenderer(canvas: LGraphCanvas) {
ctx.save()
canvas.ds.toCanvasContext(ctx)
linkRenderer.renderDragPreview(
linkRenderer.renderDraggingLink(
ctx,
from,
to,