How to use the spritejs.Polycurve function in spritejs

To help you get started, we’ve selected a few spritejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spritejs / sprite-workflow / src / linkExtendtion.js View on Github external
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 () { // 折线连接