Skip to content

BezierConnector overcompensates if its length is close to or less than its curviness #78

@Domiii

Description

@Domiii

Can you change the Bezier algorithm to use Straight instead once edge length gets close to or less than curviness? Maybe in form of some straightThreshold option?

Here are some examples of how Bezier gets really messy once edge length gets short.

In the first example, the two nodes have a distance of about 2 x curviness, second 1 x curviness, third .5 x curviness:

image image image

For reference: "Curved Connectors" in Google Slides straighten out when the connecting surfaces have a very low relative angle. That is also ok, but maybe harder to implement? (Also, it bugs out with non-rectangular shapes, where connectors come in at a too low angle.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions