|
@ -227,10 +227,6 @@ class Node { |
|
|
this.shape.setOptions(this.options); |
|
|
this.shape.setOptions(this.options); |
|
|
} |
|
|
} |
|
|
else { |
|
|
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
|
|
|
// choose draw method depending on the shape
|
|
|
switch (this.options.shape) { |
|
|
switch (this.options.shape) { |
|
|
case 'box': |
|
|
case 'box': |
|
@ -438,14 +434,6 @@ class Node { |
|
|
this.shape.boundingBox.bottom > obj.top |
|
|
this.shape.boundingBox.bottom > obj.top |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* clean all required things on delete. |
|
|
|
|
|
* @returns {*} |
|
|
|
|
|
*/ |
|
|
|
|
|
cleanup() { |
|
|
|
|
|
return this.shape.cleanup(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default Node; |
|
|
export default Node; |