3d-force-graph 1.78.4 → 1.79.1
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 +2 -0
- package/dist/3d-force-graph.d.ts +2 -0
- package/dist/3d-force-graph.js +3930 -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 +5 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[![NPM package][npm-img]][npm-url]
|
|
5
5
|
[![Build Size][build-size-img]][build-size-url]
|
|
6
6
|
[![NPM Downloads][npm-downloads-img]][npm-downloads-url]
|
|
7
|
+
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=L398E7PKP47E8¤cy_code=USD&source=url)
|
|
7
8
|
|
|
8
9
|
<p align="center">
|
|
9
10
|
<a href="https://vasturiano.github.io/3d-force-graph/example/large-graph/"><img width="80%" src="https://vasturiano.github.io/3d-force-graph/example/preview.png"></a>
|
|
@@ -205,6 +206,7 @@ new ForceGraph3d(<domElement>, { configOptions })
|
|
|
205
206
|
| <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
207
|
| <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
208
|
| <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 |
|
|
209
|
+
| <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
210
|
| <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
211
|
| <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
212
|
| <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;
|