{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/svgwg/issues/79","repository_url":"https://api.github.com/repos/w3c/svgwg","labels_url":"https://api.github.com/repos/w3c/svgwg/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/w3c/svgwg/issues/79/comments","events_url":"https://api.github.com/repos/w3c/svgwg/issues/79/events","html_url":"https://github.com/w3c/svgwg/issues/79","id":146179170,"number":79,"title":"Direction of markers and line caps on segment boundaries","user":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/svgwg/labels/London%202016","name":"London 2016","color":"f9d0c4"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/Needs%20editing","name":"Needs editing","color":"006b75"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/Paths%20chapter","name":"Paths chapter","color":"009800"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/Resolved","name":"Resolved","color":"fbca04"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/SVG%202","name":"SVG 2","color":"5319e7"},{"url":"https://api.github.com/repos/w3c/svgwg/labels/SVG%20Markers","name":"SVG Markers","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/w3c/svgwg/milestones/1","html_url":"https://github.com/w3c/svgwg/milestones/CR","labels_url":"https://api.github.com/repos/w3c/svgwg/milestones/1/labels","id":1737671,"number":1,"title":"CR","description":"","creator":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":8,"state":"open","created_at":"2016-04-29T00:11:55Z","updated_at":"2016-05-31T05:00:04Z","due_on":"2016-06-16T14:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-06T03:47:26Z","updated_at":"2016-05-31T05:00:04Z","closed_at":"2016-05-31T05:00:04Z","body":"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.\r\n\r\nThe relevant text is:\r\n\r\nThe direction of a path at a specified distance along the path is defined as follows:\r\nIf the given distance is zero, &lt;snip>\r\nOtherwise, if the given distance is the length of the path, &lt;snip>\r\n**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.**\r\nOtherwise, the given distance along the path occurs in the middle of a non-zero length path segment. &lt;snip>\r\nSource: https://svgwg.org/svg2-draft/paths.html#PathDirectionality\r\n\r\nIf 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.\r\n\r\nWhat I think we want to do here, is to say:\r\n- for a start cap, direction should be based on the segment originating from the path segment boundary\r\n- for an end cap, direction should be based on the segment ending at the path segment boundary\r\n\r\nHere's an example that shows current behaviour:\r\nhttps://jsfiddle.net/dodgeyhack/ob3dr3p9/\r\n\r\nThis might apply to markers too, though markers may have some special text relevant to start and end markers."},"comment":{"url":"https://api.github.com/repos/w3c/svgwg/issues/comments/222592752","html_url":"https://github.com/w3c/svgwg/issues/79#issuecomment-222592752","issue_url":"https://api.github.com/repos/w3c/svgwg/issues/79","id":222592752,"user":{"login":"nikosandronikos","id":4891471,"avatar_url":"https://avatars.githubusercontent.com/u/4891471?v=3","gravatar_id":"","url":"https://api.github.com/users/nikosandronikos","html_url":"https://github.com/nikosandronikos","followers_url":"https://api.github.com/users/nikosandronikos/followers","following_url":"https://api.github.com/users/nikosandronikos/following{/other_user}","gists_url":"https://api.github.com/users/nikosandronikos/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosandronikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosandronikos/subscriptions","organizations_url":"https://api.github.com/users/nikosandronikos/orgs","repos_url":"https://api.github.com/users/nikosandronikos/repos","events_url":"https://api.github.com/users/nikosandronikos/events{/privacy}","received_events_url":"https://api.github.com/users/nikosandronikos/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T05:00:04Z","updated_at":"2016-05-31T05:00:04Z","body":"Addressed in 996076ae7431ebda47e949c809d3fae4ce0cd38f"}}
{"actor":{"display_login":"nikosandronikos"}}