currrent Path2D just contain the point infomation about shap. when call draw(path2D), the borwser must generate new geometry data according lineWidth and other attribuite in context.
if the path2D includs all the infomation about generate geometry, the geometry data can cache, give the chance to browser optimization the drawcall.
currrent Path2D just contain the point infomation about shap. when call draw(path2D), the borwser must generate new geometry data according lineWidth and other attribuite in context.
if the path2D includs all the infomation about generate geometry, the geometry data can cache, give the chance to browser optimization the drawcall.