-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
Customizable shape for the Line Arrowheads #380
Comments
I'd propose that you can pass another shape object as the Arrow Head. Because otherwise we would reimplement features that already exist. Additionally I think the existing Shape class would need to have an additional property, something like a "connecting point" such that the arrow head shape is aligned to the Line where the connecting point is on the end/start of the line |
Yeah I like that idea a lot more, actually. That also opens up a lot more possibilities for what you can do with Lines if you can pass in whatever shape you want |
Actually not a Shape but a Node in general, considering that right now triangles and other non 4-edged shapes are made with lines |
I propose extending the |
Sounds good!
I will be claiming this issue if that‘s okay for everyone!
|
The problem I'm seeing, is that the draw function on a Node is protected. Thus I can't call it from the drawShape function in Line for the respective ArrowHeads |
Description
Right now there seems to be no way to customize the appearance of the arrowheads (beyond the
arrowSize
property), so they are always drawn as the same right triangle shapeProposed solution
To have maybe 2 extra properties - one for 'sharpness' that controls the angle at the tip and one radius property for rounding the corners of the triangle. That way you could tweak those properties to get an arrowhead that could look like the one in the screenshot below
Additional context
The text was updated successfully, but these errors were encountered: