Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
}
},