Re: [svgwg] 'Path' (entire path) vs. 'subpath' for markers on a start/end vertex of an open subpaths (#759)

Just copying here what I wrote in #753 , since it applies to marker orientation as well and is very relevant to this thread too.

we could add the following style attribute to control whether the orientation of markers should take into account the "invisible segment" (= "imaginary straight line between subpaths") or not, as well as control the presence or absence of markers.

```
marker-policy = openpath (default) | closedpath | subpaths
```

openpath: the whole path is treated as one open path for marker positioning, regardless of whether there are several subpaths, and whether these subpaths are open or closed. There is one marker-start at the first vertex of the path, one marker-end at the last vertex of the path, and one marker-mid on every other vertex. The orientation of a marker-mid at the start/end of a subpath takes into account the imaginary straight line between subpaths.

closedpath: the whole path is treated as one closed path for marker positioning, regardless of whether there are several subpaths, and whether these subpaths are open or closed. There are no marker-start or marker-end. There is one marker-mid at the first vertex of the path, no marker at all at the last vertex of the path, and one marker-mid on every other vertex. The orientation of a marker-mid at the start/end of a subpath takes into account the imaginary straight line between subpaths.

subpaths: markers are positioned on a per-subpath basis, taking into account whether each subpath is open or closed. That is, open subpaths are individually marked as per the openpath policy, and closed subpaths are individually marked as per the closedpath policy. The orientation of a marker at the start/end of a subpath ignores other subpaths.

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

Received on Friday, 6 December 2019 16:02:04 UTC