OptionalallowWhether or not to dynamically allow decreasing minimum zoom value
if current graph does not fit on screen at minimum zoom.
When set to true, zoom and fit operations will allow zooming out
further than minZoom if the graph does not fit on screen.
minZoom is lowered to the new zoom level, so later zoom operations can go that low too.
When set to false, zoom and fit operations will stop at the minimum zoom value,
even if the full graph does not fit on screen at that zoom level.
OptionalcallbacksCallbacks for various events in the NVL instance.
OptionaldisableDisables ARIA attributes on the graph.
By default, NVL adds ARIA attributes to the graph container to make it more accessible.
Attributes include role="image", aria-label="Graph visualization"
and aria-describedby="nvl-${instanceId}-description".
The description element is a live region that will announce changes to the graph.
OptionaldisableDisables tracking of library usage
OptionaldisableDisables the use of web workers for the layout calculations.
OptionalinitialZoom value of the current viewport
OptionalinstanceId for uniquely identifying the instance of Nvl
OptionallayoutThe graph layout algorithm to be used
OptionallayoutConfiguration for the current layout
OptionalmaxTarget maximum presentation fps while layout is active; extra time in the tick goes to layout stabilization. Budgets layout steps only. Actual fps may undershoot when rendering is expensive.
OptionalmaxThe maximum zoom level allowed
OptionalminTarget minimum presentation fps while layout is active, at the cost of stabilization speed when set higher. Budgets layout steps only. Actual fps may undershoot when rendering is expensive.
OptionalminimapThe DOM container in which to render the minimap.
OptionalminThe minimum zoom level allowed
OptionalpanX-coordinate for panning of the current viewport
OptionalpanY-coordinate for panning of the current viewport
OptionalrendererWhat rendering method to use for the visualization. WebGL renderer uses the GPU and has better performance. Captions are only displayed when using the canvas or svg renderer.
OptionalstylingStyling options for the NVL instance.
OptionaldefaultNodeColor?: stringThe default color for nodes.
OptionaldefaultRelationshipColor?: stringThe default color for relationships.
OptionaldisabledItemColor?: stringThe color to use for the disabled nodes and relationships
OptionaldisabledItemFontColor?: stringThe color to use for the labels of the disabled nodes and relationships
OptionaldropShadowColor?: stringThe color to use for the drop shadow of selected/hovered nodes and relationships
OptionalminimapViewportBoxColor?: stringThe color to use for the viewport box in the minimap.
OptionalnodeDefaultBorderColor?: stringThe color to use for the default border of nodes
OptionaloverlayLineColor?: stringStroke color for overlay UI lines (e.g. minimap viewport box). Use a dark color on light backgrounds and a light color on dark backgrounds.
OptionalselectedBorderColor?: stringThe color to use for the selected border of nodes and relationships
OptionalselectedInnerBorderColor?: stringThe color to use for the selected inner border of nodes and relationships
Configurations for a NVL instance