Sfoglia il codice sorgente

Object3D types: missing readonly keyword on some properties

martinRenou 5 anni fa
parent
commit
79aa189f70
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      src/core/Object3D.d.ts

+ 6 - 6
src/core/Object3D.d.ts

@@ -59,26 +59,26 @@ export class Object3D extends EventDispatcher {
 	/**
 	/**
 	 * Object's local position.
 	 * Object's local position.
 	 */
 	 */
-	position: Vector3;
+	readonly position: Vector3;
 
 
 	/**
 	/**
 	 * Object's local rotation (Euler angles), in radians.
 	 * Object's local rotation (Euler angles), in radians.
 	 */
 	 */
-	rotation: Euler;
+	readonly rotation: Euler;
 
 
 	/**
 	/**
 	 * Global rotation.
 	 * Global rotation.
 	 */
 	 */
-	quaternion: Quaternion;
+	readonly quaternion: Quaternion;
 
 
 	/**
 	/**
 	 * Object's local scale.
 	 * Object's local scale.
 	 */
 	 */
-	scale: Vector3;
+	readonly scale: Vector3;
 
 
-	modelViewMatrix: Matrix4;
+	readonly modelViewMatrix: Matrix4;
 
 
-	normalMatrix: Matrix3;
+	readonly normalMatrix: Matrix3;
 
 
 	/**
 	/**
 	 * Local transform.
 	 * Local transform.