3d-force-graph 1.78.0 → 1.78.2

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 CHANGED
@@ -150,7 +150,7 @@ new ForceGraph3d(<domElement>, { configOptions })
150
150
  | <b>linkDirectionalParticleColor</b>([<i>str</i> or <i>fn</i>]) | Link object accessor function or attribute for the directional particles color. | `color` |
151
151
  | <b>linkDirectionalParticleResolution</b>([<i>num</i>]) | Getter/setter for the geometric resolution of each directional particle, expressed in how many slice segments to divide the circumference. Higher values yield smoother particles. | 4 |
152
152
  | <b>linkDirectionalParticleThreeObject</b>([<i>Object3d</i>, <i>str</i> or <i>fn</i>]) | Link object accessor function or attribute for a custom 3d object to use in the directional particles. Should return an instance of [ThreeJS Object3d](https://threejs.org/docs/index.html#api/core/Object3D). Activating this will ignore the set values for the particle's width, color and resolution. | |
153
- | <b>emitParticle</b>(<i>link</i>) | An alternative mechanism for generating particles, this method emits a non-cyclical single particle within a specific link. The emitted particle shares the styling (speed, width, color) of the regular particle props. A valid `link` object that is included in `graphData` should be passed as a single parameter. ||
153
+ | <b>emitParticle</b>(<i>link</i>) | An alternative mechanism for generating particles, this method emits a non-cyclical single particle within a specific link. The emitted particle shares the styling (speed, shape, color) of the regular particle props. A valid `link` object that is included in `graphData` should be passed as a single parameter. ||
154
154
 
155
155
  ### Render control
156
156
 
@@ -1,4 +1,4 @@
1
- // Version 1.78.0 3d-force-graph - https://github.com/vasturiano/3d-force-graph
1
+ // Version 1.78.2 3d-force-graph - https://github.com/vasturiano/3d-force-graph
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -133389,7 +133389,7 @@ var<${access}> ${ name } : ${ structName };`;
133389
133389
  }
133390
133390
  function setLookAt(lookAt) {
133391
133391
  var lookAtVect = new three$1.Vector3(lookAt.x, lookAt.y, lookAt.z);
133392
- if (state.controls.target) {
133392
+ if (state.controls.enabled && state.controls.target) {
133393
133393
  state.controls.target = lookAtVect;
133394
133394
  } else {
133395
133395
  // Fly controls doesn't have target attribute