Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

three

Package Overview
Dependencies
Maintainers
1
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three - npm Package Compare versions

Comparing version 0.58.8 to 0.58.9

2

examples/js/controls/FlyControls.js

@@ -202,3 +202,3 @@ /**

// expose the rotation vector for convenience
this.object.rotation.setEulerFromQuaternion( this.object.quaternion, this.object.eulerOrder );
this.object.rotation.setFromQuaternion( this.object.quaternion, this.object.rotation.order );

@@ -205,0 +205,0 @@

@@ -382,7 +382,7 @@ /**

worldPosition.getPositionFromMatrix( this.object.matrixWorld );
worldRotation.setEulerFromRotationMatrix( tempMatrix.extractRotation(this.object.matrixWorld ));
worldRotation.setFromRotationMatrix( tempMatrix.extractRotation(this.object.matrixWorld ));
this.camera.updateMatrixWorld();
camPosition.getPositionFromMatrix( this.camera.matrixWorld );
camRotation.setEulerFromRotationMatrix( tempMatrix.extractRotation( this.camera.matrixWorld ));
camRotation.setFromRotationMatrix( tempMatrix.extractRotation( this.camera.matrixWorld ));

@@ -403,3 +403,3 @@ scale = worldPosition.distanceTo( camPosition ) / 6 * this.scale;

lookAtMatrix.lookAt( camPosition, worldPosition, tempVector.set( 0, 1, 0 ));
object.rotation.setEulerFromRotationMatrix( lookAtMatrix );
object.rotation.setFromRotationMatrix( lookAtMatrix );

@@ -436,3 +436,3 @@ } else {

object.rotation.setEulerFromQuaternion( tempQuaternion );
object.rotation.setFromQuaternion( tempQuaternion );

@@ -795,3 +795,3 @@ } else if ( this.space == 'world' ) {

scope.object.rotation.setEulerFromQuaternion( tempQuaternion );
scope.object.rotation.setFromQuaternion( tempQuaternion );

@@ -809,3 +809,3 @@ } else if ( scope.active == "RXYZE" ) {

scope.object.rotation.setEulerFromQuaternion( tempQuaternion );
scope.object.rotation.setFromQuaternion( tempQuaternion );

@@ -830,3 +830,3 @@ } else if ( scope.space == 'local' ) {

scope.object.rotation.setEulerFromQuaternion( quaternionXYZ );
scope.object.rotation.setFromQuaternion( quaternionXYZ );

@@ -851,3 +851,3 @@ } else if ( scope.space == 'world' ) {

scope.object.rotation.setEulerFromQuaternion( tempQuaternion );
scope.object.rotation.setFromQuaternion( tempQuaternion );

@@ -854,0 +854,0 @@ }

@@ -5,3 +5,3 @@ {

"version" : "0.58.8",
"version" : "0.58.9",

@@ -8,0 +8,0 @@ "description" : "JavaScript 3D library",

/**
* @author alteredq / http://alteredqualia.com/
* @author bhouston / http://exocortex.com
*/

@@ -18,23 +17,2 @@

THREE.Clock.now = (function() {
// is this a standard browser window with standard profiling tools?
if( self !== undefined && self.performance !== undefined && self.performance.now !== undefined ) {
return function() {
return self.performance.now();
};
}
return function() {
return Date.now();
};
})();
THREE.Clock.prototype = {

@@ -46,3 +24,5 @@

this.startTime = THREE.Clock.now();
this.startTime = self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();

@@ -79,3 +59,5 @@ this.oldTime = this.startTime;

var newTime = THREE.Clock.now();
var newTime = self.performance !== undefined && self.performance.now !== undefined
? self.performance.now()
: Date.now();

@@ -82,0 +64,0 @@ diff = 0.001 * ( newTime - this.oldTime );

@@ -623,3 +623,3 @@ /**

v = this.vertices[ i ];
key = [ Math.round( v.x * precision ), Math.round( v.y * precision ), Math.round( v.z * precision ) ].join( '_' );
key = Math.round( v.x * precision ) + '_' + Math.round( v.y * precision ) + '_' + Math.round( v.z * precision );

@@ -626,0 +626,0 @@ if ( verticesMap[ key ] === undefined ) {

@@ -32,3 +32,3 @@ /**

this.overdraw = false; // Boolean for fixing antialiasing gaps in CanvasRenderer
this.overdraw = 0; // Overdrawn pixels (typically between 0 and 1) for fixing antialiasing gaps in CanvasRenderer

@@ -77,2 +77,7 @@ this.visible = true;

} else if ( key == 'overdraw') {
// ensure overdraw is backwards-compatable with legacy boolean type
this[ key ] = Number(newValue);
} else {

@@ -79,0 +84,0 @@

@@ -325,7 +325,7 @@ /**

if ( material.overdraw === true ) {
if ( material.overdraw > 0 ) {
expand( _v1.positionScreen, _v2.positionScreen );
expand( _v2.positionScreen, _v3.positionScreen );
expand( _v3.positionScreen, _v1.positionScreen );
expand( _v1.positionScreen, _v2.positionScreen, material.overdraw );
expand( _v2.positionScreen, _v3.positionScreen, material.overdraw );
expand( _v3.positionScreen, _v1.positionScreen, material.overdraw );

@@ -363,10 +363,10 @@ }

if ( material.overdraw === true ) {
if ( material.overdraw > 0 ) {
expand( _v1.positionScreen, _v2.positionScreen );
expand( _v2.positionScreen, _v4.positionScreen );
expand( _v4.positionScreen, _v1.positionScreen );
expand( _v1.positionScreen, _v2.positionScreen, material.overdraw );
expand( _v2.positionScreen, _v4.positionScreen, material.overdraw );
expand( _v4.positionScreen, _v1.positionScreen, material.overdraw );
expand( _v3.positionScreen, _v5.positionScreen );
expand( _v3.positionScreen, _v6.positionScreen );
expand( _v3.positionScreen, _v5.positionScreen, material.overdraw );
expand( _v3.positionScreen, _v6.positionScreen, material.overdraw );

@@ -1201,3 +1201,3 @@ }

function expand( v1, v2 ) {
function expand( v1, v2, pixels ) {

@@ -1209,3 +1209,3 @@ var x = v2.x - v1.x, y = v2.y - v1.y,

idet = 1 / Math.sqrt( det );
idet = pixels / Math.sqrt( det );

@@ -1212,0 +1212,0 @@ x *= idet; y *= idet;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc