Re: [svgwg] SVGGeometry.prototype.isPointInStroke vs. vector-effects

> So the question is: would it be burdensome for implementations to factor in `non-scaling-stroke` effects when calculating `isPointInStroke`?

I wouldn't think so in general.

> Not sure how you mean? In the sense that `pathLength` affects stroke dashing patterns...

Yes, exactly.

> Perhaps it would be more helpful if the method definition simply referenced the stroke-shape algorithm instead of trying to enumerate the properties that affect the stroke.

Yes, that would make sense. `non-scaling-stroke` would still need to be handled explicitly though I think, so it's not a silver bullet.

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

Received on Friday, 19 October 2018 18:25:54 UTC