if(!an.shape) return; an.figure._add(this); rect={ x:an[id].x-size, y:an[id].y-size, width:size*2, height:size*2 }; this.shape=an.shape.createRect(rect) .setStroke({ color:"black", width:1 }) .setFill([255,255,255,0.35]); this.shape.getEventSource().setAttribute("id", self._key); this.shape.getEventSource().setAttribute("shape-rendering", "crispEdges");