You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -157,11 +157,13 @@ Note that not all props listed below apply to all 3 components. The last 3 colum
157
157
### Interaction
158
158
| Prop | Type | Default | Description | 2D | 3D | VR |
159
159
| --- | :--: | :--: | --- | :--: | :--: | :--: |
160
-
| <b>onNodeClick</b> | <i>func</i> |*-*| Callback function for node clicks. The node object is included as single argument `onNodeClick(node)`. |:heavy_check_mark:|:heavy_check_mark:||
160
+
| <b>onNodeClick</b> | <i>func</i> |*-*| Callback function for node (left-button) clicks. The node object is included as single argument `onNodeClick(node)`. |:heavy_check_mark:|:heavy_check_mark:||
161
+
| <b>onNodeRightClick</b> | <i>func</i> |*-*| Callback function for node right-clicks. The node object is included as single argument `onNodeRightClick(node)`. |:heavy_check_mark:|:heavy_check_mark:||
161
162
| <b>onNodeHover</b> | <i>func</i> |*-*| Callback function for node mouse over events. The node object (or `null` if there's no node under the mouse line of sight) is included as the first argument, and the previous node object (or null) as second argument: `onNodeHover(node, prevNode)`. |:heavy_check_mark:|:heavy_check_mark:||
162
163
| <b>onNodeDrag</b> | <i>func</i> |*-*| Callback function for node drag interactions. This function is invoked repeatedly while dragging a node, every time its position is updated. The node object is included as single argument `onNodeDrag(node)`. |:heavy_check_mark:|:heavy_check_mark:||
163
164
| <b>onNodeDragEnd</b> | <i>func</i> |*-*| Callback function for the end of node drag interactions. This function is invoked when the node is released. The node object is included as single argument `onNodeDragEnd(node)`. |:heavy_check_mark:|:heavy_check_mark:||
164
-
| <b>onLinkClick</b> | <i>func</i> |*-*| Callback function for link clicks. The link object is included as single argument `onLinkClick(link)`. |:heavy_check_mark:|:heavy_check_mark:||
165
+
| <b>onLinkClick</b> | <i>func</i> |*-*| Callback function for link (left-button) clicks. The link object is included as single argument `onLinkClick(link)`. |:heavy_check_mark:|:heavy_check_mark:||
166
+
| <b>onLinkRightClick</b> | <i>func</i> |*-*| Callback function for link right-clicks. The link object is included as single argument `onLinkRightClick(link)`. |:heavy_check_mark:|:heavy_check_mark:||
165
167
| <b>onLinkHover</b> | <i>func</i> |*-*| Callback function for link mouse over events. The link object (or `null` if there's no link under the mouse line of sight) is included as the first argument, and the previous link object (or null) as second argument: `onLinkHover(link, prevLink)`. |:heavy_check_mark:|:heavy_check_mark:||
166
168
| <b>linkHoverPrecision</b> | <i>number</i> | 4 | Whether to display the link label when gazing the link closely (low value) or from far away (high value). |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
167
169
| <b>controlType</b> | <i>str</i> |`trackball`| Which type of control to use to control the camera on 3D mode. Choice between [trackball](https://threejs.org/examples/misc_controls_trackball.html), [orbit](https://threejs.org/examples/#misc_controls_orbit) or [fly](https://threejs.org/examples/misc_controls_fly.html). ||:heavy_check_mark:||
0 commit comments