|
|
@ -227,10 +227,6 @@ class Node { |
|
|
|
this.shape.setOptions(this.options); |
|
|
|
} |
|
|
|
else { |
|
|
|
// clean up the shape if it is already made so the new shape can start clean.
|
|
|
|
if (this.shape) { |
|
|
|
this.shape.cleanup(); |
|
|
|
} |
|
|
|
// choose draw method depending on the shape
|
|
|
|
switch (this.options.shape) { |
|
|
|
case 'box': |
|
|
@ -438,14 +434,6 @@ class Node { |
|
|
|
this.shape.boundingBox.bottom > obj.top |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* clean all required things on delete. |
|
|
|
* @returns {*} |
|
|
|
*/ |
|
|
|
cleanup() { |
|
|
|
return this.shape.cleanup(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export default Node; |