ngraph.forcelayout3d
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -8,5 +8,5 @@ /** | ||
module.exports = createLayout; | ||
createLayout.get2dLayout = require('ngraph.forcelayout'); | ||
function createLayout(graph, physicsSettings) { | ||
var createForceLayout = require('ngraph.forcelayout'); | ||
var merge = require('ngraph.merge'); | ||
@@ -22,5 +22,3 @@ physicsSettings = merge(physicsSettings, { | ||
var layout = createForceLayout(graph, physicsSettings); | ||
return layout; | ||
return createLayout.get2dLayout(graph, physicsSettings); | ||
} |
{ | ||
"name": "ngraph.forcelayout3d", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Force directed graph layout in 3d", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
var test = require('tap').test, | ||
createBody = require('../lib/createBody'), | ||
createGraph = require('ngraph.graph'), | ||
createLayout = require('..'); | ||
test('it exposes 2d layout', function(t) { | ||
t.ok(typeof createLayout.get2dLayout === 'function', '2d layout constructor is exposed'); | ||
t.end(); | ||
}); | ||
test('does not tolerate bad input', function (t) { | ||
@@ -7,0 +11,0 @@ t.throws(missingGraph); |
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
109363
2747