javascript - How to determine if a point is in a closed path in svg?
大家讲道理
大家讲道理 2017-06-26 10:53:59
0
2
1030

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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
習慣沉默

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...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template