Add angle, angleref and standoff to marker and add backoff to line as well as adding two new arrow symbols#6297
Add angle, angleref and standoff to marker and add backoff to line as well as adding two new arrow symbols#6297
angle, angleref and standoff to marker and add backoff to line as well as adding two new arrow symbols#6297Conversation
- 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. |
alexcjohnson
left a comment
There was a problem hiding this comment.
Great work! All my comments have been addressed nicely. 💃







@plotly/plotly_js
cc: @chriddyp @LiamConnors