source: [view]
this.apply(obj);
this._pos();
// create either from scratch or based on the passed node
this.shape=this.figure.group.createGroup();
this.shape.getEventSource().setAttribute("id", this.id);
//if(this.transform.dx || this.transform.dy){ this.shape.setTransform(this.transform); }
this.rectShape=this.shape.createRect({
x:this.start.x,
y: this.start.y,
width: this.end.x-this.start.x,
height:this.end.y-this.start.y,
r:this.radius
})
//.setStroke({color:this.property('fill'), width:1})
.setFill([255,255,255,0.1]);
this.rectShape.getEventSource().setAttribute("shape-rendering","crispEdges");
this.labelShape=this.shape.createText({
x:this.textPosition.x,
y:this.textPosition.y,
text:this.property('label'),
align:this.textAlign
})
//.setFont(font)
.setFill(this.property('fill'));
this.labelShape.getEventSource().setAttribute('id',this.id+"-labelShape");
this.draw();