feat(graph): focusOnHover (#954)
by default, globalGraph will enable focusOnHover, similar to Obsidian. --------- Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
		@@ -17,6 +17,7 @@ export interface D3Config {
 | 
			
		||||
  opacityScale: number
 | 
			
		||||
  removeTags: string[]
 | 
			
		||||
  showTags: boolean
 | 
			
		||||
  focusOnHover?: boolean
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface GraphOptions {
 | 
			
		||||
@@ -37,6 +38,7 @@ const defaultOptions: GraphOptions = {
 | 
			
		||||
    opacityScale: 1,
 | 
			
		||||
    showTags: true,
 | 
			
		||||
    removeTags: [],
 | 
			
		||||
    focusOnHover: false,
 | 
			
		||||
  },
 | 
			
		||||
  globalGraph: {
 | 
			
		||||
    drag: true,
 | 
			
		||||
@@ -50,6 +52,7 @@ const defaultOptions: GraphOptions = {
 | 
			
		||||
    opacityScale: 1,
 | 
			
		||||
    showTags: true,
 | 
			
		||||
    removeTags: [],
 | 
			
		||||
    focusOnHover: true,
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user