mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

isPointInFill equivalent in the library #140

Open AntonioL opened 3 years ago

AntonioL commented 3 years ago

SVG provides the following function to perform query on a path: https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInFill .

Basically I would like to check whether a specific path contains a specific point.

Use case is to take existing SVG and run some queries on the top of that from Python.

Is that possible?

AntonioL commented 3 years ago

I believe I can do the test by creating a one point "Line".

I will try this.

Is the way to go?