Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 151 additions & 62 deletions build/three.cjs

Large diffs are not rendered by default.

138 changes: 79 additions & 59 deletions build/three.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3027,13 +3027,7 @@ const MathUtils = {
*/
class Vector2 {

/**
* Constructs a new 2D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
*/
constructor( x = 0, y = 0 ) {
static {

/**
* This flag can be used for type testing.
Expand All @@ -3044,6 +3038,16 @@ class Vector2 {
*/
Vector2.prototype.isVector2 = true;

}

/**
* Constructs a new 2D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
*/
constructor( x = 0, y = 0 ) {

/**
* The x value of this vector.
*
Expand Down Expand Up @@ -4804,14 +4808,7 @@ class Quaternion {
*/
class Vector3 {

/**
* Constructs a new 3D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
* @param {number} [z=0] - The z value of this vector.
*/
constructor( x = 0, y = 0, z = 0 ) {
static {

/**
* This flag can be used for type testing.
Expand All @@ -4822,6 +4819,17 @@ class Vector3 {
*/
Vector3.prototype.isVector3 = true;

}

/**
* Constructs a new 3D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
* @param {number} [z=0] - The z value of this vector.
*/
constructor( x = 0, y = 0, z = 0 ) {

/**
* The x value of this vector.
*
Expand Down Expand Up @@ -6062,6 +6070,19 @@ const _quaternion$5 = /*@__PURE__*/ new Quaternion();
*/
class Matrix3 {

static {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix3.prototype.isMatrix3 = true;

}

/**
* Constructs a new 3x3 matrix. The arguments are supposed to be
* in row-major order. If no arguments are provided, the constructor
Expand All @@ -6079,15 +6100,6 @@ class Matrix3 {
*/
constructor( n11, n12, n13, n21, n22, n23, n31, n32, n33 ) {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix3.prototype.isMatrix3 = true;

/**
* A column-major list of matrix values.
*
Expand Down Expand Up @@ -8021,15 +8033,7 @@ Texture.DEFAULT_ANISOTROPY = 1;
*/
class Vector4 {

/**
* Constructs a new 4D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
* @param {number} [z=0] - The z value of this vector.
* @param {number} [w=1] - The w value of this vector.
*/
constructor( x = 0, y = 0, z = 0, w = 1 ) {
static {

/**
* This flag can be used for type testing.
Expand All @@ -8040,6 +8044,18 @@ class Vector4 {
*/
Vector4.prototype.isVector4 = true;

}

/**
* Constructs a new 4D vector.
*
* @param {number} [x=0] - The x value of this vector.
* @param {number} [y=0] - The y value of this vector.
* @param {number} [z=0] - The z value of this vector.
* @param {number} [w=1] - The w value of this vector.
*/
constructor( x = 0, y = 0, z = 0, w = 1 ) {

/**
* The x value of this vector.
*
Expand Down Expand Up @@ -9836,6 +9852,19 @@ class WebGL3DRenderTarget extends WebGLRenderTarget {
*/
class Matrix4 {

static {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix4.prototype.isMatrix4 = true;

}

/**
* Constructs a new 4x4 matrix. The arguments are supposed to be
* in row-major order. If no arguments are provided, the constructor
Expand All @@ -9860,15 +9889,6 @@ class Matrix4 {
*/
constructor( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix4.prototype.isMatrix4 = true;

/**
* A column-major list of matrix values.
*
Expand Down Expand Up @@ -13248,11 +13268,7 @@ class Object3D extends EventDispatcher {
this.quaternion.copy( source.quaternion );
this.scale.copy( source.scale );

if ( source.pivot !== null ) {

this.pivot = source.pivot.clone();

}
this.pivot = ( source.pivot !== null ) ? source.pivot.clone() : null;

this.matrix.copy( source.matrix );
this.matrixWorld.copy( source.matrixWorld );
Expand Down Expand Up @@ -44802,15 +44818,15 @@ class DataTextureLoader extends Loader {

texData = scope.parse( buffer );

} catch ( error ) {
} catch ( e ) {

if ( onError !== undefined ) {

onError( error );
onError( e );

} else {

error( error );
error( e );
return;

}
Expand Down Expand Up @@ -56189,6 +56205,19 @@ class Cylindrical {
*/
class Matrix2 {

static {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix2.prototype.isMatrix2 = true;

}

/**
* Constructs a new 2x2 matrix. The arguments are supposed to be
* in row-major order. If no arguments are provided, the constructor
Expand All @@ -56201,15 +56230,6 @@ class Matrix2 {
*/
constructor( n11, n12, n21, n22 ) {

/**
* This flag can be used for type testing.
*
* @type {boolean}
* @readonly
* @default true
*/
Matrix2.prototype.isMatrix2 = true;

/**
* A column-major list of matrix values.
*
Expand Down
2 changes: 1 addition & 1 deletion build/three.core.min.js

Large diffs are not rendered by default.

Loading
Loading