Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Node<Data>

Type parameters

Hierarchy

Index

Properties

class?: string | ClassFunc<Data>
connectable?: boolean
data?: Data
dragHandle?: string
draggable?: boolean
expandParent?: boolean

expands parent area to fit child node

extent?: CoordinateExtent | "parent"

define node extent, i.e. area in which node can be moved

height?: string | number | HeightFunc

Fixed height of node, applied as style You can pass a number which will be used in pixel values (height: 300 -> height: 300px) or pass a string with units (height: 10rem -> height: 10rem)

hidden?: boolean
id: string
isValidSourcePos?: ValidConnectionFunc

called when used as source for new connection

isValidTargetPos?: ValidConnectionFunc

called when used as target for new connection

label?: string | VNode<RendererNode, RendererElement, {}> | Component<any, any, any, ComputedOptions, MethodOptions>
parentNode?: string

define node as a child node by setting a parent node id

position: XYPosition

initial node position x, y

selectable?: boolean
snapGrid?: SnapGrid

move on grid

sourcePosition?: Position

handle position

style?: Styles | StyleFunc<Data>
targetPosition?: Position

handle position

template?: NodeComponent<any>

overwrites current node type

type?: string

node type, can be a default type or a custom type

width?: string | number | WidthFunc

Fixed width of node, applied as style You can pass a number which will be used in pixel values (width: 300 -> width: 300px) or pass a string with units (width: 10rem -> width: 10rem)

Generated using TypeDoc