if(this._cshape){ this._cshape.setShape(rect); } else { this._cshape=this.figure.surface.createRect(rect) .setStroke({color:"#999", width:1, style:"ShortDot"}) .setFill([255,255,255,0.7]); this._cshape.getEventSource().setAttribute("shape-rendering","crispEdges"); }