Skip to content

GraphLink

Unofficial

Represents a link in a graph view.

Import:

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

Signature:

export interface GraphLink

Properties

PropertyTypeDescription
arrowGraphics | nullPixiJS element for the arrow, child of GraphRenderer.hanger.
linenull | SpritePixiJS element for the line.
pxContainer | nullParent of GraphLink.line, child of GraphRenderer.hanger.
renderedbooleanWhether the link graphics have been rendered.
rendererGraphRendererGraphRenderer managing this node.
sourceGraphNodeSource node of the link.
targetGraphNodeTarget node of the link.

Methods

MethodReturnsDescription
clearGraphics()voidDestroy the graphics and its children, and remove them from the scene.
initGraphics()voidInitialize the link (line and arrow), and add them to the scene.
render()voidRender the link.

Links to this page: