You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the SVG 2 draft says that the direction of a path at a segment boundary is based on the direction of the segment originating at that point. This is because the directionality algorithm is endpoint exclusive.
The relevant text is:
The direction of a path at a specified distance along the path is defined as follows:
If the given distance is zero, <snip>
Otherwise, if the given distance is the length of the path, <snip> Otherwise, if the given distance along the path occurs at a path segment boundary, then the direction of the path is the direction at the start of the segment at the given distance, considering each segment to be endpoint exclusive.
Otherwise, the given distance along the path occurs in the middle of a non-zero length path segment. <snip>
Source: https://svgwg.org/svg2-draft/paths.html#PathDirectionality
If I'm reading this correctly, this means that for caps (e.g. a round cap), an end cap may not be oriented correctly against a dash if the dash ends exactly on the boundary point.
What I think we want to do here, is to say:
for a start cap, direction should be based on the segment originating from the path segment boundary
for an end cap, direction should be based on the segment ending at the path segment boundary
Currently, the SVG 2 draft says that the direction of a path at a segment boundary is based on the direction of the segment originating at that point. This is because the directionality algorithm is endpoint exclusive.
The relevant text is:
The direction of a path at a specified distance along the path is defined as follows:
If the given distance is zero, <snip>
Otherwise, if the given distance is the length of the path, <snip>
Otherwise, if the given distance along the path occurs at a path segment boundary, then the direction of the path is the direction at the start of the segment at the given distance, considering each segment to be endpoint exclusive.
Otherwise, the given distance along the path occurs in the middle of a non-zero length path segment. <snip>
Source: https://svgwg.org/svg2-draft/paths.html#PathDirectionality
If I'm reading this correctly, this means that for caps (e.g. a round cap), an end cap may not be oriented correctly against a dash if the dash ends exactly on the boundary point.
What I think we want to do here, is to say:
Here's an example that shows current behaviour:
https://jsfiddle.net/dodgeyhack/ob3dr3p9/
This might apply to markers too, though markers may have some special text relevant to start and end markers.
The text was updated successfully, but these errors were encountered: