Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
curve: function() {
this.$line = new Polycurve();
const { points, lineAttrs } = this.attr();
let mergeLinkAttrs = newObj({ lineWidth: 1, color: '#eee' }, lineAttrs, { points: points });
this.$line.attr(mergeLinkAttrs);
this.append(this.$line)
},
polyline: function () { // 折线连接