feat: Add legend components and toggle buttons
This commit is contained in:
@@ -16,6 +16,8 @@ interface SettingsState {
|
||||
// Graph viewer settings
|
||||
showPropertyPanel: boolean
|
||||
showNodeSearchBar: boolean
|
||||
showLegend: boolean
|
||||
setShowLegend: (show: boolean) => void
|
||||
|
||||
showNodeLabel: boolean
|
||||
enableNodeDrag: boolean
|
||||
@@ -68,6 +70,7 @@ const useSettingsStoreBase = create<SettingsState>()(
|
||||
language: 'en',
|
||||
showPropertyPanel: true,
|
||||
showNodeSearchBar: true,
|
||||
showLegend: false,
|
||||
|
||||
showNodeLabel: true,
|
||||
enableNodeDrag: true,
|
||||
@@ -145,7 +148,8 @@ const useSettingsStoreBase = create<SettingsState>()(
|
||||
querySettings: { ...state.querySettings, ...settings }
|
||||
})),
|
||||
|
||||
setShowFileName: (show: boolean) => set({ showFileName: show })
|
||||
setShowFileName: (show: boolean) => set({ showFileName: show }),
|
||||
setShowLegend: (show: boolean) => set({ showLegend: show })
|
||||
}),
|
||||
{
|
||||
name: 'settings-storage',
|
||||
|
Reference in New Issue
Block a user