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

is this svglib support line arrow? #1

Open
w8w8w8 opened this issue Mar 9, 2019 · 2 comments
Open

is this svglib support line arrow? #1

w8w8w8 opened this issue Mar 9, 2019 · 2 comments

Comments

@w8w8w8
Copy link

w8w8w8 commented Mar 9, 2019

I want to draw arrow, is it support ? if fupport ,how to do ? tell me please ,thanks

@huysentruitw
Copy link
Owner

Do you have an example of how the arrow should look like?

@w8w8w8
Copy link
Author

w8w8w8 commented Mar 9, 2019

Do you have an example of how the arrow should look like?

I think maybe we can use marker

the code like this :
<svg width="600px" height="100px"> <defs> <marker id="arrow" markerWidth="10" markerHeight="10" refx="0" refy="3" orient="auto" markerUnits="strokeWidth"> <path d="M0,0 L0,6 L9,3 z" fill="#f00" /> </marker> </defs> <line x1="50" y1="50" x2="250" y2="50" stroke="#000" stroke-width="5" marker-end="url(#arrow)" /> </svg>

but , I am try do it :(

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

2 participants