Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: edge control point offsets/anchors #203

Open
petrmanek opened this issue Mar 3, 2023 · 4 comments
Open

Feature request: edge control point offsets/anchors #203

petrmanek opened this issue Mar 3, 2023 · 4 comments

Comments

@petrmanek
Copy link

I am implementing my own node, port and edge items and discovered a feature that I am missing in the library. Perhaps I am have just overlooked it -- in that case please feel free to point it out.

I would like to be able to specify anchors for edge control points. This is useful when ports use more complex shapes than just circles. Here is an example from my app (WIP):

20230303_16h38m04s_grim

You can see that by default, control points are placed in the center of a port. This works for circles but not for my lines + "half-diamonds". Ideally, I would like to be able to specify some sort of anchor point within the port, from which control points are derived. To maintain compatibility, the default implementation can place this anchor in the center of the port item, however the convenient part would then be that components like mine could override this behavior.

Here is a reference to the code which I think is responsible for placing anchors in the center of the port item. Of course this is just one case of edge types (there are multiple variants of the same logic in similar functions in this file).

@petrmanek
Copy link
Author

Ping @cneben

@petrmanek
Copy link
Author

Anyone here?

@petrmanek
Copy link
Author

This issue is now over a month old, and still has no response. I am more than happy to lend my time & energy in an effort to implement this feature, however this will be much more difficult for me to do without pointers and feedback from the maintainers. Please respond.

@petrmanek
Copy link
Author

Ping @cneben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant