Js acquires the coordinates of a point in svg path path

demand: as the screen slides, div moves according to a complex svg route, including rotate angle
question: can I get the coordinates and radians of a point on the svg path path as needed?
chase: ladies and gentlemen, if you have api, you will win an api, and if you don"t have api, you will have a follow.

Mar.01,2021

you can use the forming frame

getBBox () Native method

https://blog.csdn.net/NEWSEKA.


compare commonly used path.getTotalLength (); and path.getPointAtLength (Len);
radians calculate tangents by getting two points

Menu