Skip to content
Snippets Groups Projects
Commit 982d7e7c authored by Marcos Pieras's avatar Marcos Pieras
Browse files

feat: add showMinimap configuration option

parent dcaab15d
No related branches found
No related tags found
1 merge request!204feat: schema panel tooltips, redesigned tooltip, minimap configuration option
......@@ -12,6 +12,7 @@ export type SchemaSettings = {
connectionType: SchemaConnectionTypes;
layoutName: AllLayoutAlgorithms;
animatedEdges: boolean;
showMinimap: boolean;
};
type schemaSliceI = {
......@@ -37,6 +38,7 @@ export const initialState: schemaSliceI = {
connectionType: 'connection',
layoutName: Layouts.DAGRE,
animatedEdges: false,
showMinimap: true,
},
};
export const schemaSlice = createSlice({
......
......@@ -19,6 +19,14 @@ export const SchemaSettings = () => {
dispatch(setSchemaSettings({ ...settings, animatedEdges: value as any }));
}}
/>
<Input
type="boolean"
value={settings.showMinimap}
label="Show Minimap"
onChange={(value: boolean) => {
dispatch(setSchemaSettings({ ...settings, showMinimap: value as any }));
}}
/>
<Input
type="dropdown"
label="Type of Connection"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment