antvis / G

💥 A flexible rendering engine for visualization.

Home Page:https://g.antv.antgroup.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[g-plugin-device-renderer] Path 渲染有误

xiaoiver opened this issue · comments

antvis/G2#5818

有问题的路径如下:

M 356.37480026152645,56.68941288616037 Q 175.87317171217347 171.6466314112769,48.07084808243172 1.4210854715202004e-14 A 213.99999999999997 213.99999999999997 0 0 0 0 49.72605286975126 Q 175.87317171217347 171.6466314112769,383.6126929339904 120.2628662462923 A 213.99999999999997 213.99999999999997 0 0 0 356.37480026152645 56.68941288616044 Z

左侧为 Canvas / SVG 渲染效果,右侧为 WebGL
image
image

原因是遇到 Q 命令采样点的时候,起始点 Y 坐标选错了