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
https://l7.antv.antgroup.com/zh/examples/line/animate/#plane_animate2 请教各位大佬,官网这个例子,如何给线段中间加数据标注?
The text was updated successfully, but these errors were encountered:
计算中心点,单独标注
Sorry, something went wrong.
好的,两个点的中心点,应该就是用经纬度计算一下吧,再请问一下,那这个是有贝塞尔曲线的,如何计算偏移量呢?有方法吗?
float bezier3(vec3 arr, float t) { float ut = 1. - t; return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; }
https://github.com/antvis/L7/blob/master/packages/layers/src/line/shaders/line_arc_vert.glsl#L60 参考这里
float bezier3(vec3 arr, float t) { float ut = 1. - t; return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; } https://github.com/antvis/L7/blob/master/packages/layers/src/line/shaders/line_arc_vert.glsl#L60 参考这里
谢谢,arr应该是坐标,参数t是什么?
No branches or pull requests
https://l7.antv.antgroup.com/zh/examples/line/animate/#plane_animate2
请教各位大佬,官网这个例子,如何给线段中间加数据标注?
The text was updated successfully, but these errors were encountered: