How to determine whether a point is in a closed path of svg?
How to know the coordinates of a point on a web page to know whether the point is within a closed area of an irregular path in the entire page
光阴似箭催人老,日月如移越少年。
Can it be calculated based on the coordinates of the point and the coordinates of the svg?
You need to map the global coordinates of the points to the relative coordinates of the svg, then turn the svg polygon into a set of points, and then use a method similar to this to make a judgment: https://github.com/substack/p...
Can it be calculated based on the coordinates of the point and the coordinates of the svg?
You need to map the global coordinates of the points to the relative coordinates of the svg, then turn the svg polygon into a set of points, and then use a method similar to this to make a judgment: https://github.com/substack/p...