diff --git a/packages/editor/src/components/toolbar/index.tsx b/packages/editor/src/components/toolbar/index.tsx index 9a08ea4f..df27da4f 100644 --- a/packages/editor/src/components/toolbar/index.tsx +++ b/packages/editor/src/components/toolbar/index.tsx @@ -120,15 +120,13 @@ export default function Toolbar({ > - {(editorMode === 'edition-owner' || editorMode === 'edition-editor' || editorMode === 'edition-viewer') && ( - onAction('print')} - > - - - )} + onAction('print')} + > + + {editorMode === 'edition-owner' && ( <> )} {(editorMode === 'edition-owner' || editorMode === 'edition-editor') && ( - - - + + + )} {editorMode === 'edition-owner' && ( onAction('share')}> diff --git a/packages/mindplot/src/components/EditorRenderMode.ts b/packages/mindplot/src/components/EditorRenderMode.ts index 70696093..4986dae6 100644 --- a/packages/mindplot/src/components/EditorRenderMode.ts +++ b/packages/mindplot/src/components/EditorRenderMode.ts @@ -1,2 +1,2 @@ -type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'edition-viewer' | 'showcase'; +type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'showcase'; export default EditorRenderMode; diff --git a/packages/mindplot/src/components/Topic.ts b/packages/mindplot/src/components/Topic.ts index ce92d7b1..f646ce1d 100644 --- a/packages/mindplot/src/components/Topic.ts +++ b/packages/mindplot/src/components/Topic.ts @@ -707,11 +707,10 @@ abstract class Topic extends NodeGraph { // Do some fancy animation .... const elements = this._flatten2DElements(this); elements.forEach((elem) => { - elem.setVisibility(!value, 250) + elem.setVisibility(!value, 250); }); EventBus.instance.fireEvent('childShrinked', model); - } getShrinkConnector(): ShirinkConnector | undefined { @@ -903,7 +902,6 @@ abstract class Topic extends NodeGraph { current.setVisibility(value); } - /** */ setVisibility(value: boolean, fade = 0): void { this._setTopicVisibility(value, fade); @@ -960,8 +958,9 @@ abstract class Topic extends NodeGraph { relationship.setVisibility( value && (targetParent == null || !targetParent.areChildrenShrunken()) - && (sourceParent == null || !sourceParent.areChildrenShrunken()) - , fade); + && (sourceParent == null || !sourceParent.areChildrenShrunken()), + fade, + ); }); } diff --git a/packages/mindplot/src/components/layout/ChildrenSorterStrategy.ts b/packages/mindplot/src/components/layout/ChildrenSorterStrategy.ts index 34419adb..fbf2cb25 100644 --- a/packages/mindplot/src/components/layout/ChildrenSorterStrategy.ts +++ b/packages/mindplot/src/components/layout/ChildrenSorterStrategy.ts @@ -15,9 +15,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import RootedTreeSet from "./RootedTreeSet"; +import RootedTreeSet from './RootedTreeSet'; import Node from './Node'; -import PositionType from "../PositionType"; +import PositionType from '../PositionType'; abstract class ChildrenSorterStrategy { abstract computeChildrenIdByHeights(treeSet: RootedTreeSet, node: Node);