Open xiaoiver opened 2 years ago
lineCap 支持以下三个值:
其中 'butt' 不需要做额外处理,'round' 'square' 需要延伸。
但最困难的点是当存在虚线时,lineCap 也需要生效。下图为 Canvas 原生渲染的效果:
G2 中 lineCap 设置为 'round',未生效:
'round'
lineCap 支持以下三个值:
其中 'butt' 不需要做额外处理,'round' 'square' 需要延伸。
但最困难的点是当存在虚线时,lineCap 也需要生效。下图为 Canvas 原生渲染的效果: