We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
该方法与 SVG 同名方法保持一致,返回 Path 指定距离处的点: https://developer.mozilla.org/zh-CN/docs/Web/API/SVGGeometryElement/getPointAtLength
在计算 A / C / Q 这样的曲线时,使用分段逼近的方法,段数越多得到的点自然越精确,在计算总长度时也会越精确,但显然性能就会下降。
目前的实现有两个问题:
[ ["M", 968, 400], ["Q", 913, 400, 858, 400] ]
The text was updated successfully, but these errors were encountered:
fix: getPointAtLength should account for exact distance #87
df07c6d
fix: getPointAtLength should account for exact distance #87 (#88)
3bad6c4
Co-authored-by: yuqi.pyq <[email protected]>
xiaoiver
No branches or pull requests
该方法与 SVG 同名方法保持一致,返回 Path 指定距离处的点:
https://developer.mozilla.org/zh-CN/docs/Web/API/SVGGeometryElement/getPointAtLength
在计算 A / C / Q 这样的曲线时,使用分段逼近的方法,段数越多得到的点自然越精确,在计算总长度时也会越精确,但显然性能就会下降。
目前的实现有两个问题:
The text was updated successfully, but these errors were encountered: