if(!this.shape) return; this.shape.remove(this.rectShape); this.shape.remove(this.labelShape); this.figure.group.remove(this.shape); this.shape=this.rectShape=this.labelShape=null;