three.meshline
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "three.meshline", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Mesh replacement for THREE.Line", | ||
@@ -5,0 +5,0 @@ "main": "src/THREE.MeshLine.js", |
@@ -87,2 +87,3 @@ ;(function() { | ||
var precisionSq = precision * precision; | ||
var interRay = new THREE.Vector3(); | ||
@@ -98,3 +99,3 @@ var geometry = this.geometry; | ||
if ( raycaster.ray.intersectSphere( sphere ) === false ) { | ||
if ( raycaster.ray.intersectSphere( sphere, interRay ) === false ) { | ||
@@ -111,3 +112,2 @@ return; | ||
var interSegment = new THREE.Vector3(); | ||
var interRay = new THREE.Vector3(); | ||
var step = this instanceof THREE.LineSegments ? 2 : 1; | ||
@@ -340,9 +340,9 @@ | ||
this.geometry.addAttribute( 'position', this.attributes.position ); | ||
this.geometry.addAttribute( 'previous', this.attributes.previous ); | ||
this.geometry.addAttribute( 'next', this.attributes.next ); | ||
this.geometry.addAttribute( 'side', this.attributes.side ); | ||
this.geometry.addAttribute( 'width', this.attributes.width ); | ||
this.geometry.addAttribute( 'uv', this.attributes.uv ); | ||
this.geometry.addAttribute( 'counters', this.attributes.counters ); | ||
this.geometry.setAttribute( 'position', this.attributes.position ); | ||
this.geometry.setAttribute( 'previous', this.attributes.previous ); | ||
this.geometry.setAttribute( 'next', this.attributes.next ); | ||
this.geometry.setAttribute( 'side', this.attributes.side ); | ||
this.geometry.setAttribute( 'width', this.attributes.width ); | ||
this.geometry.setAttribute( 'uv', this.attributes.uv ); | ||
this.geometry.setAttribute( 'counters', this.attributes.counters ); | ||
@@ -349,0 +349,0 @@ this.geometry.setIndex( this.attributes.index ); |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
28146
1
1