Skip to content

GraphEngine

Unofficial

Engine of a graph view.

Import:

import type { GraphEngine } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface GraphEngine

Properties

PropertyTypeDescription
appAppReference to the Obsidian app instance.
colorGroupOptionsGraphColorGroupOptionsUI controls for configuring color group options.
controlsElHTMLDivElementContainer element for the graph settings controls panel.
currentFocusFilestringPath of the currently focused file in the local graph.
displayOptionsGraphDisplayOptionsUI controls for configuring display options.
fileFilterGraphFileFilterFilter determining which files are included in the graph.
filterOptionsGraphFilterOptionsUI controls for configuring filter options.
forceOptionsGraphForceOptionsUI controls for configuring force simulation options.
hasFilterbooleanWhether any search filter is currently active.
hoverPopoverunknownHover popover displayed when hovering over a node.
lastHoverLinkunknownLast link that was hovered over.
optionsGraphPluginInstanceOptionsCurrent graph plugin options applied to this engine.
progressionnumberCurrent animation progression value for graph transitions.
progressionSpeednumberSpeed of the animation progression.
rendererGraphRendererRenderer responsible for drawing the graph.
searchQueriesGraphColorGroup[]Active color group search queries for node coloring.
viewGraphView | LocalGraphViewThe view (local or global) that owns this engine.

Methods

MethodReturnsDescription
getOptions()GraphPluginInstanceOptionsGets the engine options.
render()voidRerenders the graph.
setOptions(options)voidSets the engine options.
updateSearch()voidUpdates the engine after the search filter has changed.

Links to this page: