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 = { ...@@ -12,6 +12,7 @@ export type SchemaSettings = {
connectionType: SchemaConnectionTypes; connectionType: SchemaConnectionTypes;
layoutName: AllLayoutAlgorithms; layoutName: AllLayoutAlgorithms;
animatedEdges: boolean; animatedEdges: boolean;
showMinimap: boolean;
}; };
type schemaSliceI = { type schemaSliceI = {
...@@ -37,6 +38,7 @@ export const initialState: schemaSliceI = { ...@@ -37,6 +38,7 @@ export const initialState: schemaSliceI = {
connectionType: 'connection', connectionType: 'connection',
layoutName: Layouts.DAGRE, layoutName: Layouts.DAGRE,
animatedEdges: false, animatedEdges: false,
showMinimap: true,
}, },
}; };
export const schemaSlice = createSlice({ export const schemaSlice = createSlice({
......
...@@ -19,6 +19,14 @@ export const SchemaSettings = () => { ...@@ -19,6 +19,14 @@ export const SchemaSettings = () => {
dispatch(setSchemaSettings({ ...settings, animatedEdges: value as any })); 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 <Input
type="dropdown" type="dropdown"
label="Type of Connection" 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