3d-force-graph 1.78.3 → 1.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/3d-force-graph.d.ts +2 -0
- package/dist/3d-force-graph.js +3934 -1615
- package/dist/3d-force-graph.js.map +1 -1
- package/dist/3d-force-graph.min.js +3 -3
- package/dist/3d-force-graph.mjs +9 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -205,6 +205,7 @@ new ForceGraph3d(<domElement>, { configOptions })
|
|
|
205
205
|
| <b>onBackgroundClick</b>(<i>fn</i>) | Callback function for click events on the empty space between the nodes and links. The event object is included as single argument `onBackgroundClick(event)`. | - |
|
|
206
206
|
| <b>onBackgroundRightClick</b>(<i>fn</i>) | Callback function for right-click events on the empty space between the nodes and links. The event object is included as single argument `onBackgroundRightClick(event)`. | - |
|
|
207
207
|
| <b>linkHoverPrecision</b>([<i>int</i>]) | Whether to display the link label when gazing the link closely (low value) or from far away (high value). | 1 |
|
|
208
|
+
| <b>showPointerCursor</b>(<i>boolean</i> or <i>fn</i>) | Whether to show a pointer cursor when hovering over clickable portions of the canvas. Accepts either a `boolean` constant or a callback function which receives the object currently under the cursor and is expected to return a `boolean` value. | `true` |
|
|
208
209
|
| <b>enablePointerInteraction</b>([<i>boolean</i>]) | Getter/setter for whether to enable the mouse tracking events. This activates an internal tracker of the canvas mouse position and enables the functionality of object hover/click and tooltip labels, at the cost of performance. If you're looking for maximum gain in your graph performance it's recommended to switch off this property. | `true` |
|
|
209
210
|
| <b>enableNodeDrag</b>([<i>boolean</i>]) | Getter/setter for whether to enable the user interaction to drag nodes by click-dragging. Only supported on the `d3` force engine. If enabled, every time a node is dragged the simulation is re-heated so the other nodes react to the changes. Only applicable if enablePointerInteraction is `true` and using the `d3` force engine. | `true` |
|
|
210
211
|
| <b>enableNavigationControls</b>([<i>boolean</i>]) | Getter/setter for whether to enable the trackball navigation controls used to move the camera using mouse interactions (rotate/zoom/pan). | `true` |
|
package/dist/3d-force-graph.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ interface ForceGraph3DGenericInstance<ChainableInstance, N extends NodeObject =
|
|
|
53
53
|
onBackgroundRightClick(callback: (event: MouseEvent) => void): ChainableInstance;
|
|
54
54
|
linkHoverPrecision(): number;
|
|
55
55
|
linkHoverPrecision(precision: number): ChainableInstance;
|
|
56
|
+
showPointerCursor(): ObjAccessor<boolean, N | L>;
|
|
57
|
+
showPointerCursor(objAccessor: ObjAccessor<boolean, N | L>): ChainableInstance;
|
|
56
58
|
enablePointerInteraction(): boolean;
|
|
57
59
|
enablePointerInteraction(enable: boolean): ChainableInstance;
|
|
58
60
|
enableNodeDrag(): boolean;
|