three-forcegraph
Advanced tools
Comparing version 1.16.2 to 1.16.3
@@ -5,4 +5,2 @@ 'use strict'; | ||
var d3ScaleChromatic = require('d3-scale-chromatic'); | ||
var tinyColor = _interopDefault(require('tinycolor2')); | ||
var three = require('three'); | ||
@@ -15,2 +13,4 @@ var d3Force3d = require('d3-force-3d'); | ||
var accessorFn = _interopDefault(require('accessor-fn')); | ||
var d3ScaleChromatic = require('d3-scale-chromatic'); | ||
var tinyColor = _interopDefault(require('tinycolor2')); | ||
@@ -182,3 +182,3 @@ function _typeof(obj) { | ||
node.depth = currentDepth; | ||
traverse(node.out, _toConsumableArray(nodeStack).concat([node])); | ||
traverse(node.out, [].concat(_toConsumableArray(nodeStack), [node])); | ||
} | ||
@@ -1062,3 +1062,3 @@ } | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FromKapsule)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this.__kapsuleInstance = kapsule().apply(void 0, _toConsumableArray(initKapsuleWithSelf ? [_assertThisInitialized(_assertThisInitialized(_this))] : []).concat(args)); | ||
_this.__kapsuleInstance = kapsule().apply(void 0, [].concat(_toConsumableArray(initKapsuleWithSelf ? [_assertThisInitialized(_assertThisInitialized(_this))] : []), args)); | ||
return _this; | ||
@@ -1065,0 +1065,0 @@ } |
@@ -1,3 +0,1 @@ | ||
import { schemePaired } from 'd3-scale-chromatic'; | ||
import tinyColor from 'tinycolor2'; | ||
import { Mesh, MeshLambertMaterial, BufferGeometry, BufferAttribute, Matrix4, Vector3, SphereGeometry, CylinderGeometry, ConeGeometry, Line, LineBasicMaterial, QuadraticBezierCurve3, CubicBezierCurve3, Group } from 'three'; | ||
@@ -10,2 +8,4 @@ import { forceSimulation, forceLink, forceManyBody, forceCenter, forceRadial } from 'd3-force-3d'; | ||
import accessorFn from 'accessor-fn'; | ||
import { schemePaired } from 'd3-scale-chromatic'; | ||
import tinyColor from 'tinycolor2'; | ||
@@ -177,3 +177,3 @@ function _typeof(obj) { | ||
node.depth = currentDepth; | ||
traverse(node.out, _toConsumableArray(nodeStack).concat([node])); | ||
traverse(node.out, [].concat(_toConsumableArray(nodeStack), [node])); | ||
} | ||
@@ -1057,3 +1057,3 @@ } | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FromKapsule)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this.__kapsuleInstance = kapsule().apply(void 0, _toConsumableArray(initKapsuleWithSelf ? [_assertThisInitialized(_assertThisInitialized(_this))] : []).concat(args)); | ||
_this.__kapsuleInstance = kapsule().apply(void 0, [].concat(_toConsumableArray(initKapsuleWithSelf ? [_assertThisInitialized(_assertThisInitialized(_this))] : []), args)); | ||
return _this; | ||
@@ -1060,0 +1060,0 @@ } |
{ | ||
"name": "three-forcegraph", | ||
"version": "1.16.2", | ||
"version": "1.16.3", | ||
"description": "Force-directed graph as a ThreeJS 3d object", | ||
@@ -30,12 +30,17 @@ "unpkg": "dist/three-forcegraph.min.js", | ||
}, | ||
"files": [ | ||
"src/**/*", | ||
"dist/**/*", | ||
"example/**/*" | ||
], | ||
"scripts": { | ||
"build": "rimraf dist && rollup -c", | ||
"watch": "rollup -c -w", | ||
"minify": "uglifyjs dist/three-forcegraph.js -o dist/three-forcegraph.min.js -c -m --comments '/Version/'", | ||
"minify": "terser dist/three-forcegraph.js -o dist/three-forcegraph.min.js -c -m --comments '/Version/'", | ||
"build-module": "rollup -c rollup.config.module.js", | ||
"prepublishOnly": "npm run build && npm run minify && npm run build-module" | ||
"prepare": "npm run build && npm run minify && npm run build-module" | ||
}, | ||
"dependencies": { | ||
"accessor-fn": "^1.2.2", | ||
"d3-force-3d": "^1.1.2", | ||
"d3-force-3d": "^2.0.0", | ||
"d3-scale-chromatic": "^1.3.3", | ||
@@ -45,3 +50,3 @@ "kapsule": "^1.9.2", | ||
"ngraph.forcelayout3d": "^0.0.16", | ||
"ngraph.graph": "^0.0.14", | ||
"ngraph.graph": "^0.0.15", | ||
"tinycolor2": "^1.4.1" | ||
@@ -53,14 +58,14 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.1.2", | ||
"@babel/plugin-proposal-class-properties": "^7.1.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.2.1", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.66.6", | ||
"rollup-plugin-babel": "^4.0.3", | ||
"rollup": "^0.68.0", | ||
"rollup-plugin-babel": "^4.1.0", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-watch": "^4.3.1", | ||
"uglify-js": "^3.4.9" | ||
"terser": "^3.11.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1170984
15
11197
+ Addedd3-binarytree@0.2.2(transitive)
+ Addedd3-dispatch@2.0.0(transitive)
+ Addedd3-force-3d@2.3.2(transitive)
+ Addedd3-octree@0.2.2(transitive)
+ Addedd3-quadtree@2.0.0(transitive)
+ Addedd3-timer@2.0.0(transitive)
+ Addedngraph.graph@0.0.15(transitive)
- Removedd3-binarytree@0.1.8(transitive)
- Removedd3-collection@1.0.7(transitive)
- Removedd3-dispatch@1.0.6(transitive)
- Removedd3-force-3d@1.1.2(transitive)
- Removedd3-octree@0.1.8(transitive)
- Removedd3-quadtree@1.0.7(transitive)
- Removedd3-timer@1.0.10(transitive)
- Removedngraph.graph@0.0.14(transitive)
Updatedd3-force-3d@^2.0.0
Updatedngraph.graph@^0.0.15