@@ -131,7 +131,11 @@ These node types include `default`, `input` and `output`.
### Default Node
-
+
+
+
+
+
A default node comes with two handles.
It represents a branching point in your map.
@@ -151,14 +155,23 @@ const nodes = [
### Input Node
-
+
+
+
+
+
+
An input node has a single handle, located at the bottom by default.
It represents a starting point of your map.
### Output Node
-
+
+
+
+
+
An output node has a single handle, located at the top by default.
It represents an ending point of your map.
@@ -311,25 +324,25 @@ Your custom nodes are wrapped so that the basic functions like dragging or selec
But you might want to extend on that functionality or implement your own business logic inside of nodes, therefore
your nodes receive the following props:
-| Name | Definition | Type | Optional |
-|------------------|--------------------------------------------------|------------------------------------------------------------|----------|
-| id | Node id | string | false |
-| type | Node type | string | false |
-| selected | Is node selected | boolean | false |
-| dragging | Is node dragging | boolean | false |
-| connectable | Is node connectable | boolean | false |
-| position | Relative position of a node | [XYPosition](/typedocs/interfaces/XYPosition) | false |
-| zIndex | Node z-index | number | false |
-| dimensions | Node size | [Dimensions](/typedocs/interfaces/Dimensions) | false |
-| data | Custom data object | Any object | true |
-| events | Node events and custom events | [NodeEventsOn](/typedocs/types/NodeEventsOn) | true |
-| label | Node label | string, Component | true |
-| isValidTargetPos | Called when target handle is used for connection | [ValidConnectionFunc](/typedocs/types/ValidConnectionFunc) | true |
-| isValidSourcePos | Called when source handle is used for connection | [ValidConnectionFunc](/typedocs/types/ValidConnectionFunc) | true |
-| parentNode | Parent node id | string | true |
-| targetPosition | Target handle position | [Position](/typedocs/enums/Position) | true |
-| sourcePosition | Source handle position | [Position](/typedocs/enums/Position) | true |
-| dragHandle | Node drag handle class | string | true |
+| Name | Definition | Type | Optional |
+|------------------|--------------------------------------------------|------------------------------------------------------------|--------------------------------------------|
+| id | Node id | string |
|
+| type | Node type | string |
|
+| selected | Is node selected | boolean |
|
+| dragging | Is node dragging | boolean |
|
+| connectable | Is node connectable | boolean |
|
+| position | Relative position of a node | [XYPosition](/typedocs/interfaces/XYPosition) |
|
+| zIndex | Node z-index | number |
|
+| dimensions | Node size | [Dimensions](/typedocs/interfaces/Dimensions) |
|
+| data | Custom data object | Any object |
|
+| events | Node events and custom events | [NodeEventsOn](/typedocs/types/NodeEventsOn) |
|
+| label | Node label | string, Component |
|
+| isValidTargetPos | Called when target handle is used for connection | [ValidConnectionFunc](/typedocs/types/ValidConnectionFunc) |
|
+| isValidSourcePos | Called when source handle is used for connection | [ValidConnectionFunc](/typedocs/types/ValidConnectionFunc) |
|
+| parentNode | Parent node id | string |
|
+| targetPosition | Target handle position | [Position](/typedocs/enums/Position) |
|
+| sourcePosition | Source handle position | [Position](/typedocs/enums/Position) |
|
+| dragHandle | Node drag handle class | string |
|
### (Custom) Node Events
@@ -339,7 +352,7 @@ you can also pass in event handlers in your initial node definition, or you can
the `events` prop passed
to your node components.
-```vue{9-13}
+```vue{10-17}