-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add angle
, angleref
and standoff
to marker
and add backoff
to line
as well as adding two new arrow symbols
#6297
Conversation
- add arrow and arrow-narrow symbols
I could introduce that functionality via |
That probably wouldn't be enough, as to get the effect above, we'd need circular (or square or diamond or...) markers and arrows and for the offset to be dynamic i.e. to match the marker size. |
Let's leave arrowheads+markers out of this PR. If we did want to do that, I suspect it'd be better to add a separate arrowhead option than to try and shoehorn it into the marker framework - and at that point it could automatically back off to the edge of the marker. Note for annotations, we called this "pull back from the target point" But again, not for this PR. |
@LiamConnors FYI - I pushed some commits after the discussion we had. |
@nicolaskruchten Good call. |
We'll need to back off the end of the line, when using You can see the problem a little bit in some of the existing mocks, for example This backoff should only happen at the end of a path; if the path continues through the point in question it should be unchanged. This might produce unexpected results when you add an extra marker-only trace like |
Co-authored-by: Alex Johnson <alex@plot.ly>
angle
, angleref
and standoff
to marker
as well as two new arrow symbolsangle
, angleref
and standoff
to marker
and add backoff
to line
as well as adding two new arrow symbols
Co-authored-by: Alex Johnson <alex@plot.ly>
1c0acf9
to
48a809a
Compare
Good catch! Addressed in b4ef2ab. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! All my comments have been addressed nicely. 💃
@plotly/plotly_js
cc: @chriddyp @LiamConnors