Repository navigation
edge-distances: endpoints #3157
Description
Activity
@chrtannus, let me know what you think about this feature re. EM. Once we're satisfied with the specification, I can take a look at making a PR for this since you're already assigned on #3005.
This looks good. I guess this option will also work with Taxi edges, right?
Taxis already support the
edge-distancesproperty, so adding a new value foredge-distancesshould apply to all edge types that support the property (taxi, bezier, etc.).For taxis, we'd then have to test to confirm that no other new properties would be necessary if you want to use them like the use case in the diagram above.
This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.
- added a commit that references this issue
on Sep 12, 2023 PR up in #3163
This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.
Closed by merging #3163
Description of new feature
What should the new feature do? For visual features, include an image/mockup of the expected output.
Sometimes, you may want to set the control point of an edge relative to the endpoints of the edge rather than the positions (i.e. centre points) of the source and target nodes.
To support this, we could add to the existing
edge-distancesproperty. This property already modifies how control points are calculated. Here, we would add a new value,edge-distances: endpoints. When set this way, the control points, segment points, etc. are calculated relative to the endpoints of the edge.Edge cases to consider:
edge-distances: endpoints.edge-distances: endpoints, they would be undefined. We need to decide what the behaviour here should be.edge-distances: intersectioninstead.Motivation for new feature
Describe your use case for this new feature.
For instance:
If you want an even edge like the second case, then you need the control point to be relative to the endpoints.
For reviewers
Reviewers should ensure that the following tasks are carried out for incorporated issues:
unstablebranch via pull request. The corresponding pull request is cross-referenced.