svgdotjs / svgdom

Straightforward DOM implementation to make SVG.js run headless on Node.js
MIT License
269 stars 53 forks source link

Implement SVGGeometryElement #109

Open matthelliwell2 opened 1 year ago

matthelliwell2 commented 1 year ago

I need to test my calls various calls to the SVGGeometryElement methods, eg isPointInFill. It doesn't look like svgdom implements these methods. Are there any plans to implement them?

Fuzzyma commented 1 year ago

No, not yet. This library grows with it's requirements so feel free to implement the methods you need :).

pointInFill sounds like a bigger undertaking tho especially for complex shapes

matthelliwell2 commented 1 year ago

I did have a look at this but it's beyond me once you start with stroke widths and ends. Back to Karma is it I suppose.

Fuzzyma commented 1 year ago

well, isPointInFill does NOT include strokes. That would be way harder :D If you need isPointInStroke - well, yes, thats an undertaking on its own