if(!this.shape) return; this.arrowheadGroup.remove(this.arrowhead); this.shape.remove(this.arrowheadGroup); this.shape.remove(this.pathShape); this.shape.remove(this.labelShape); this.figure.group.remove(this.shape); this.shape=this.pathShape=this.labelShape=this.arrowheadGroup=this.arrowhead=null;