aframe-forcegraph-component
Advanced tools
Comparing version 2.4.0 to 2.5.0
10
index.js
@@ -16,2 +16,4 @@ /* global AFRAME */ | ||
var parseAccessor = function(prop) { | ||
if (!isNaN(parseFloat(prop))) { return parseFloat(prop); } // parse numbers | ||
var geval = eval; // Avoid using eval directly https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval | ||
@@ -57,2 +59,6 @@ try { | ||
linkResolution: {type: 'number', default: 6}, // how many radial segments in each line cylinder's geometry | ||
linkDirectionalParticles: {parse: parseAccessor, default: 0}, // animate photons travelling in the link direction | ||
linkDirectionalParticleSpeed: {parse: parseAccessor, default: 0.01}, // in link length ratio per frame | ||
linkDirectionalParticleWidth: {parse: parseAccessor, default: 0.5}, | ||
linkDirectionalParticleResolution: {type: 'number', default: 4}, // how many slice segments in the particle sphere's circumference | ||
forceEngine: {type: 'string', default: 'd3'}, // 'd3' or 'ngraph' | ||
@@ -151,2 +157,6 @@ d3AlphaDecay: {type: 'number', default: 0.0228}, | ||
'linkResolution', | ||
'linkDirectionalParticles', | ||
'linkDirectionalParticleSpeed', | ||
'linkDirectionalParticleWidth', | ||
'linkDirectionalParticleResolution', | ||
'forceEngine', | ||
@@ -153,0 +163,0 @@ 'd3AlphaDecay', |
{ | ||
"name": "aframe-forcegraph-component", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "A 3D Force-Directed Graph component for A-Frame.", | ||
@@ -46,3 +46,3 @@ "main": "index.js", | ||
"accessor-fn": "^1.2.2", | ||
"three-forcegraph": "^1.5.0" | ||
"three-forcegraph": "^1.6.1" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
@@ -29,3 +29,3 @@ ## aframe-forcegraph-component | ||
| node-desc | Node object accessor function or attribute for description (shown under label). | desc | | ||
| node-val | Node object accessor function or attribute for the node numeric value (affects sphere volume). | val | | ||
| node-val | Node object accessor function, attribute or a numeric constant for the node numeric value (affects sphere volume). | val | | ||
| node-resolution | Geometric resolution of each node, expressed in how many slice segments to divide the circumference. Higher values yield smoother spheres. | 8 | | ||
@@ -44,4 +44,8 @@ | node-color | Node object accessor function or attribute for node color (affects sphere color). | color | | ||
| link-opacity | Line opacity of links, between [0,1]. | 0.2 | | ||
| link-width | Link object accessor function or attribute for the link line width. A value of zero will render a [ThreeJS Line](https://threejs.org/docs/#api/objects/Line) whose width is constant (`1px`) regardless of distance. Values are rounded to the nearest decimal for indexing purposes. | 0 | | ||
| link-resolution | Getter/setter for the geometric resolution of each link, expressed in how many radial segments to divide the cylinder. Higher values yield smoother cylinders. Applicable only to links with positive width. | 6 | | ||
| link-width | Link object accessor function, attribute or a numeric constant for the link line width. A value of zero will render a [ThreeJS Line](https://threejs.org/docs/#api/objects/Line) whose width is constant (`1px`) regardless of distance. Values are rounded to the nearest decimal for indexing purposes. | 0 | | ||
| link-resolution | Geometric resolution of each link, expressed in how many radial segments to divide the cylinder. Higher values yield smoother cylinders. Applicable only to links with positive width. | 6 | | ||
| link-directional-particles | Link object accessor function, attribute or a numeric constant for the number of particles (small spheres) to display over the link line. The particles are distributed equi-spaced along the line, travel in the direction `source` > `target`, and can be used to indicate link directionality. | 0 | | ||
| link-directional-particle-speed | Link object accessor function, attribute or a numeric constant for the directional particles speed, expressed as the ratio of the link length to travel per frame. Values above `0.5` are discouraged. | 0.01 | | ||
| link-directional-particle-width | Link object accessor function, attribute or a numeric constant for the directional particles width. Values are rounded to the nearest decimal for indexing purposes. | 0.5 | | ||
| link-directional-particle-resolution | Geometric resolution of each directional particle, expressed in how many slice segments to divide the circumference. Higher values yield smoother particles. | 4 | | ||
| force-engine | Which force-simulation engine to use ([*d3*](https://github.com/vasturiano/d3-force-3d) or [*ngraph*](https://github.com/anvaka/ngraph.forcelayout)). | d3 | | ||
@@ -48,0 +52,0 @@ | d3-alpha-decay | [Simulation intensity decay](https://github.com/vasturiano/d3-force-3d#simulation_alphaDecay) parameter, only applicable if using the d3 simulation engine. | 0.0228 | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1750334
10836
98
+ Addedthree@0.171.0(transitive)
- Removedthree@0.170.0(transitive)
Updatedthree-forcegraph@^1.6.1