The properties that can be passed to the InteractiveNvlWrapper component.

interface InteractiveNvlWrapperProps {
    interactionOptions?: InteractionOptions;
    layout?: Layout;
    layoutOptions?: LayoutOptions;
    mouseEventCallbacks?: MouseEventCallbacks;
    nodes: Node[];
    nvlCallbacks?: ExternalCallbacks;
    nvlOptions?: NvlOptions;
    onInitializationError?: ((error: unknown) => void);
    pan?: {
        x: number;
        y: number;
    };
    positions?: Node[];
    rels: Relationship[];
    zoom?: number;
}

Hierarchy (view full)

Properties

interactionOptions?: InteractionOptions

InteractionOptions for the underlying interaction handlers

layout?: Layout

The layout, can be 'forceDirected' or 'hierarchical'

layoutOptions?: LayoutOptions

Options for the current layout

mouseEventCallbacks?: MouseEventCallbacks

MouseEventCallbacks containing functions for callbacks on certain actions

nodes: Node[]

The nodes of the graph of type Node[]

nvlCallbacks?: ExternalCallbacks

an Object containing functions for callbacks on certain actions

nvlOptions?: NvlOptions

An object containing options for the Nvl instance

onInitializationError?: ((error: unknown) => void)

A callback to handle any errors that happen during NVL initialization

pan?: {
    x: number;
    y: number;
}

Sets the pan coordinates of the viewport using the setPan method.

Type declaration

  • x: number

    The x coordinate of the pan.

  • y: number

    The y coordinate of the pan.

If both zoom and pan are provided, the setZoomAndPan method will be used.

positions?: Node[]

Sets the positions of the nodes in the graph using the setNodePositions method.

rels: Relationship[]

The rels of the graph of type Relationship[]

zoom?: number

Sets the zoom level of the viewport using the setZoom method.

If both zoom and pan are provided, the setZoomAndPan method will be used.