Skip to content

Is there a way to offset/move the arrowhead mark along the line? #161

Answered by Andrew15-5
Andrew15-5 asked this question in Q&A
Discussion options

You must be logged in to vote

If I set arrow's stroke to none, then the line beneath the arrow will be seen near the tip:


cap style doesn't change anything, but join does. If I set join to "round", then given the same thickness, it now doesn't show up from the other side:


If I instead use default join: "miter" and change the value of miter-limit to 2 (from default 4.0) then it will cut out the tip of the arrow:


With miter-limit: 1 the effect will be equal to join: "bevel" (all 3 corners are cut/clipped):


I've checked: the cap only changes style of the non-fill arrow (join & miter-limit will work).

Note: this isn't a 100% perfect solution, because the arrow tip itself is never seen with thickness more than ~0.1pt.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andrew15-5
Comment options

Answer selected by Andrew15-5
@johannes-wolf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants