提交 d7deaa95 编写于 作者: O Ovilia

add comment

上级 1e56c30a
......@@ -19,6 +19,11 @@ module.exports = echarts.graphic.extendShape({
},
buildPath: function (ctx, shape) {
/**
* We define a sine wave having 4 waves, and make sure at least 8 curves
* is drawn. Otherwise, it may cause blank area for some waves when
* wave length is large enough.
*/
var curves = Math.max(
Math.ceil(2 * shape.radius / shape.waveLength * 4) * 2,
8
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册