mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 18:10:08 +00:00
nit
This commit is contained in:
@@ -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
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ export class LitegraphLinkAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
renderDragPreview(
|
||||
renderDraggingLink(
|
||||
ctx: CanvasRenderingContext2D,
|
||||
from: ReadOnlyPoint,
|
||||
to: ReadOnlyPoint,
|
||||
|
||||
@@ -61,7 +61,7 @@ export function attachSlotLinkPreviewRenderer(canvas: LGraphCanvas) {
|
||||
ctx.save()
|
||||
canvas.ds.toCanvasContext(ctx)
|
||||
|
||||
linkRenderer.renderDragPreview(
|
||||
linkRenderer.renderDraggingLink(
|
||||
ctx,
|
||||
from,
|
||||
to,
|
||||
|
||||
Reference in New Issue
Block a user