three-forcegraph
Advanced tools
Comparing version 1.39.5 to 1.39.6
@@ -493,6 +493,6 @@ 'use strict'; | ||
Vector3: three$2.Vector3, | ||
SphereBufferGeometry: three$2.SphereBufferGeometry, | ||
CylinderBufferGeometry: three$2.CylinderBufferGeometry, | ||
TubeBufferGeometry: three$2.TubeBufferGeometry, | ||
ConeBufferGeometry: three$2.ConeBufferGeometry, | ||
SphereGeometry: three$2.SphereGeometry, | ||
CylinderGeometry: three$2.CylinderGeometry, | ||
TubeGeometry: three$2.TubeGeometry, | ||
ConeGeometry: three$2.ConeGeometry, | ||
Line: three$2.Line, | ||
@@ -895,3 +895,3 @@ LineBasicMaterial: three$2.LineBasicMaterial, | ||
var r = linkWidth / 2; | ||
var geometry = new three$1.CylinderBufferGeometry(r, r, 1, state.linkResolution, 1, false); | ||
var geometry = new three$1.CylinderGeometry(r, r, 1, state.linkResolution, 1, false); | ||
geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); | ||
@@ -926,3 +926,3 @@ geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); | ||
var _geometry = new three$1.TubeBufferGeometry(curve, curveResolution, _r, state.linkResolution, false); | ||
var _geometry = new three$1.TubeGeometry(curve, curveResolution, _r, state.linkResolution, false); | ||
@@ -1100,3 +1100,3 @@ line.geometry.dispose(); | ||
var numSegments = state.linkDirectionalParticleResolution; | ||
var particleGeometry = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); | ||
var particleGeometry = new three$1.SphereGeometry(photonR, numSegments, numSegments); | ||
var linkColorAccessor = accessorFn__default["default"](state.linkColor); | ||
@@ -1235,3 +1235,3 @@ var particleColorAccessor = accessorFn__default["default"](state.linkDirectionalParticleColor); | ||
if (!sphereGeometries.hasOwnProperty(val)) { | ||
sphereGeometries[val] = new three$1.SphereBufferGeometry(radius, numSegments, numSegments); | ||
sphereGeometries[val] = new three$1.SphereGeometry(radius, numSegments, numSegments); | ||
} | ||
@@ -1356,3 +1356,3 @@ | ||
if (!cylinderGeometries.hasOwnProperty(linkWidth)) { | ||
var geometry = new three$1.CylinderBufferGeometry(r, r, 1, numSegments, 1, false); | ||
var geometry = new three$1.CylinderGeometry(r, r, 1, numSegments, 1, false); | ||
geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); | ||
@@ -1421,3 +1421,3 @@ geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); | ||
if (!obj.geometry.type.match(/^Cone(Buffer)?Geometry$/) || obj.geometry.parameters.height !== arrowLength || obj.geometry.parameters.radialSegments !== numSegments) { | ||
var coneGeometry = new three$1.ConeBufferGeometry(arrowLength * 0.25, arrowLength, numSegments); // Correct orientation | ||
var coneGeometry = new three$1.ConeGeometry(arrowLength * 0.25, arrowLength, numSegments); // Correct orientation | ||
@@ -1467,3 +1467,3 @@ coneGeometry.translate(0, arrowLength / 2, 0); | ||
if (!particleGeometries.hasOwnProperty(photonR)) { | ||
particleGeometries[photonR] = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); | ||
particleGeometries[photonR] = new three$1.SphereGeometry(photonR, numSegments, numSegments); | ||
} | ||
@@ -1470,0 +1470,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Group, Mesh, MeshLambertMaterial, Color, BufferGeometry, BufferAttribute, Matrix4, Vector3, SphereBufferGeometry, CylinderBufferGeometry, TubeBufferGeometry, ConeBufferGeometry, Line, LineBasicMaterial, QuadraticBezierCurve3, CubicBezierCurve3, Box3 } from 'three'; | ||
import { Group, Mesh, MeshLambertMaterial, Color, BufferGeometry, BufferAttribute, Matrix4, Vector3, SphereGeometry, CylinderGeometry, TubeGeometry, ConeGeometry, Line, LineBasicMaterial, QuadraticBezierCurve3, CubicBezierCurve3, Box3 } from 'three'; | ||
import { forceSimulation, forceLink, forceManyBody, forceCenter, forceRadial } from 'd3-force-3d'; | ||
@@ -482,6 +482,6 @@ import graph from 'ngraph.graph'; | ||
Vector3: Vector3, | ||
SphereBufferGeometry: SphereBufferGeometry, | ||
CylinderBufferGeometry: CylinderBufferGeometry, | ||
TubeBufferGeometry: TubeBufferGeometry, | ||
ConeBufferGeometry: ConeBufferGeometry, | ||
SphereGeometry: SphereGeometry, | ||
CylinderGeometry: CylinderGeometry, | ||
TubeGeometry: TubeGeometry, | ||
ConeGeometry: ConeGeometry, | ||
Line: Line, | ||
@@ -884,3 +884,3 @@ LineBasicMaterial: LineBasicMaterial, | ||
var r = linkWidth / 2; | ||
var geometry = new three$1.CylinderBufferGeometry(r, r, 1, state.linkResolution, 1, false); | ||
var geometry = new three$1.CylinderGeometry(r, r, 1, state.linkResolution, 1, false); | ||
geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); | ||
@@ -915,3 +915,3 @@ geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); | ||
var _geometry = new three$1.TubeBufferGeometry(curve, curveResolution, _r, state.linkResolution, false); | ||
var _geometry = new three$1.TubeGeometry(curve, curveResolution, _r, state.linkResolution, false); | ||
@@ -1089,3 +1089,3 @@ line.geometry.dispose(); | ||
var numSegments = state.linkDirectionalParticleResolution; | ||
var particleGeometry = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); | ||
var particleGeometry = new three$1.SphereGeometry(photonR, numSegments, numSegments); | ||
var linkColorAccessor = accessorFn(state.linkColor); | ||
@@ -1224,3 +1224,3 @@ var particleColorAccessor = accessorFn(state.linkDirectionalParticleColor); | ||
if (!sphereGeometries.hasOwnProperty(val)) { | ||
sphereGeometries[val] = new three$1.SphereBufferGeometry(radius, numSegments, numSegments); | ||
sphereGeometries[val] = new three$1.SphereGeometry(radius, numSegments, numSegments); | ||
} | ||
@@ -1345,3 +1345,3 @@ | ||
if (!cylinderGeometries.hasOwnProperty(linkWidth)) { | ||
var geometry = new three$1.CylinderBufferGeometry(r, r, 1, numSegments, 1, false); | ||
var geometry = new three$1.CylinderGeometry(r, r, 1, numSegments, 1, false); | ||
geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); | ||
@@ -1410,3 +1410,3 @@ geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); | ||
if (!obj.geometry.type.match(/^Cone(Buffer)?Geometry$/) || obj.geometry.parameters.height !== arrowLength || obj.geometry.parameters.radialSegments !== numSegments) { | ||
var coneGeometry = new three$1.ConeBufferGeometry(arrowLength * 0.25, arrowLength, numSegments); // Correct orientation | ||
var coneGeometry = new three$1.ConeGeometry(arrowLength * 0.25, arrowLength, numSegments); // Correct orientation | ||
@@ -1456,3 +1456,3 @@ coneGeometry.translate(0, arrowLength / 2, 0); | ||
if (!particleGeometries.hasOwnProperty(photonR)) { | ||
particleGeometries[photonR] = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); | ||
particleGeometries[photonR] = new three$1.SphereGeometry(photonR, numSegments, numSegments); | ||
} | ||
@@ -1459,0 +1459,0 @@ |
{ | ||
"name": "three-forcegraph", | ||
"version": "1.39.5", | ||
"version": "1.39.6", | ||
"description": "Force-directed graph as a ThreeJS 3d object", | ||
@@ -57,16 +57,16 @@ "unpkg": "dist/three-forcegraph.min.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.18.10", | ||
"@babel/core": "^7.19.1", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", | ||
"@babel/preset-env": "^7.18.10", | ||
"@babel/preset-env": "^7.19.1", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@types/three": ">=0.118.3", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.78.0", | ||
"rollup": "^2.79.1", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.8.3" | ||
} | ||
} |
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
1053247
10346