Skip to content

Commit

Permalink
[4356] Add a minimap to diagrams
Browse files Browse the repository at this point in the history
Bug: #4356
Signed-off-by: Guillaume Coutable <[email protected]>
Signed-off-by: Pierre-Charles David <[email protected]>
  • Loading branch information
gcoutable authored and pcdavid committed Jan 3, 2025
1 parent d440b6a commit a7c6b22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ The `start` task used in our turbo configuration is now marked as `persistent` a

=== New Features

- https://github.com/eclipse-sirius/sirius-web/issues/4356[#4356] [diagram] Add a minimap to diagram.
+ Added by default to all sirius-web diagrams


=== Improvements

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2023, 2024 Obeo.
* Copyright (c) 2023, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand All @@ -19,6 +19,7 @@ import {
ConnectionMode,
Edge,
EdgeChange,
MiniMap,
Node,
NodeChange,
OnEdgesChange,
Expand Down Expand Up @@ -444,6 +445,7 @@ export const DiagramRenderer = memo(({ diagramRefreshedEventPayload }: DiagramRe
{diagramDescription.debug ? <DebugPanel reactFlowWrapper={ref} /> : null}
<ConnectorContextualMenu />
{helperLinesEnabled ? <HelperLines horizontal={horizontalHelperLine} vertical={verticalHelperLine} /> : null}
<MiniMap pannable zoomable zoomStep={2} />
</>
),
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2024 Obeo.
* Copyright (c) 2024, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -43,7 +43,7 @@ export const PapayaDiagramInformationPanel = memo(() => {
return null;
}
return (
<Panel position="bottom-right">
<Panel position="bottom-center">
<Paper className={classes.papayaDiagramInformationPanel}>
<Typography variant="subtitle2">Learn more</Typography>
<Typography variant="body2">
Expand Down

0 comments on commit a7c6b22

Please sign in to comment.