mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 07:50:15 +00:00
[API] Add customisation of reroute bezier controls (#846)
Allows globally setting the bezier control point offset from the reroute centre point. This can be increased to allow larger curves on longer links, or set to 0 to completely disable the spline on inter-reroute link segments.
This commit is contained in:
@@ -4757,7 +4757,7 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
} else {
|
||||
// Calculate start control for the next iter control point
|
||||
const nextPos = reroutes[j + 1]?.pos ?? endPos
|
||||
const dist = Math.min(80, distance(reroute.pos, nextPos) * 0.25)
|
||||
const dist = Math.min(Reroute.maxSplineOffset, distance(reroute.pos, nextPos) * 0.25)
|
||||
startControl = [dist * reroute.cos, dist * reroute.sin]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user