Skip to content
On this page

Interface: Node<Data, CustomEvents>

Type parameters

NameType
DataElementData
CustomEventsextends Record<string, CustomEvent> = any

Hierarchy

Table of contents

Properties

Properties

class

• Optional class: string | ClassFunc<GraphNode<Data, CustomEvents>>


connectable

• Optional connectable: HandleConnectable


data

• Optional data: Data


dragHandle

• Optional dragHandle: string


draggable

• Optional draggable: boolean


events

• Optional events: Partial<NodeEventsHandler<CustomEvents>>


expandParent

• Optional expandParent: boolean


extent

• Optional extent: "parent" | CoordinateExtent


height

• Optional height: string | number | HeightFunc


hidden

• Optional hidden: boolean


id

• id: string


isValidSourcePos

• Optional isValidSourcePos: ValidConnectionFunc


isValidTargetPos

• Optional isValidTargetPos: ValidConnectionFunc


label

• Optional label: string | Component<any, any, any, ComputedOptions, MethodOptions> | VNode<RendererNode, RendererElement, { [key: string]: any; }>


parentNode

• Optional parentNode: string


position

• position: XYPosition


selectable

• Optional selectable: boolean


snapGrid

• Optional snapGrid: SnapGrid


sourcePosition

• Optional sourcePosition: Position


style

• Optional style: Styles | StyleFunc<GraphNode<Data, CustomEvents>>


targetPosition

• Optional targetPosition: Position


template

• Optional template: NodeComponent


type

• Optional type: string


width

• Optional width: string | number | WidthFunc

Released under the MIT License.