Re: [svgwg] stroke-linecap and markers (#798)

I'm not sure that it is the specs job to cater for all the possible use cases that might occur.  If you are trying to do something unique and special, then it is expected that the generator (either a person of a piece of software) is supposed to do some of the work.

> Calculating the length of the path doesn't really work if the width of the line is changes with the style. That means the dash-offset must also change.

The calculated line length doesn't shange when you change the stroke width.  And the dash lengths also remain the same if you change the width.

Are you using `markerUnits="strokeWidth"` markers?  If so, that would require a recaculation of the dash pattern.

>  And what happens if the user wants to make a dashed line with a marker. Now the user must solve some simultaneous equations.

I don't think that is correct either.

---

It is quite simple to use a mask to carve out a chunk of the stroked path near the endpoints.  I've seen other people do that.  Have you tried that?


-- 
GitHub Notification of comment by BigBadaboom
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/798#issuecomment-631819566 using your GitHub account

Received on Thursday, 21 May 2020 01:11:55 UTC