How to use the spritejs.Ellipse 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 / stepExtendtion.js View on Github external
draw: function () {
      const { text, fillColor, textAttrs, shapeAttrs } = this.attr();
      this.$shape = new Ellipse();
      let mergeShapeAttr = newObj({
        fillColor,
        radiusX: 50,
        radiusY: 24,
        // anchor: [0.5, 0.5]
      }, shapeAttrs);
      this.attr({ shapeAttrs: mergeShapeAttr });
      this.$shape.attr(mergeShapeAttr)
      this.append(this.$shape);
      addLabel.call(this, text, textAttrs)
    }
  },