Interface: Node<Data, CustomEvents>
Type parameters
Name | Type |
---|---|
Data | ElementData |
CustomEvents | extends Record <string , CustomEvent > = any |
Hierarchy
Node
↳
GraphNode
Table of contents
Properties
- class
- connectable
- data
- dragHandle
- draggable
- events
- expandParent
- extent
- height
- hidden
- id
- isValidSourcePos
- isValidTargetPos
- label
- parentNode
- position
- selectable
- snapGrid
- sourcePosition
- style
- targetPosition
- template
- type
- width
Properties
class
• Optional
class: string
| ClassFunc
<GraphNode
<Data
, CustomEvents
>>
connectable
• Optional
connectable: boolean
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
| VNode
<RendererNode
, RendererElement
, { [key: string]
: any
; }> | Component
<any
, any
, any
, ComputedOptions
, MethodOptions
>
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