diff --git a/packages/mindplot/src/components/Topic.js b/packages/mindplot/src/components/Topic.js index f36fd9df..77c947a6 100644 --- a/packages/mindplot/src/components/Topic.js +++ b/packages/mindplot/src/components/Topic.js @@ -972,9 +972,10 @@ class Topic extends NodeGraph { const targetParent = targetTopic.getModel().getParent(); const sourceParent = sourceTopic.getModel().getParent(); - relationship.setVisibility(value && - (targetParent == null || !targetParent.areChildrenShrunken()) && - (sourceParent == null || !sourceParent.areChildrenShrunken()), + relationship.setVisibility( + value + && (targetParent == null || !targetParent.areChildrenShrunken()) + && (sourceParent == null || !sourceParent.areChildrenShrunken()), ); }); } @@ -1042,8 +1043,8 @@ class Topic extends NodeGraph { }; const oldSize = this.getSize(); - const hasSizeChanged = oldSize.width !== roundedSize.width || - oldSize.height !== roundedSize.height; + const hasSizeChanged = oldSize.width !== roundedSize.width + || oldSize.height !== roundedSize.height; if (hasSizeChanged || force) { NodeGraph.prototype.setSize.call(this, roundedSize); @@ -1340,4 +1341,4 @@ class Topic extends NodeGraph { } } -export default Topic; \ No newline at end of file +export default Topic;