Przeglądaj źródła

Merge pull request #18078 from martinRenou/object3d_readonly_attribute

Object3D types: missing readonly keyword on some properties
Mr.doob 5 lat temu
rodzic
commit
7ec225459c
1 zmienionych plików z 6 dodań i 6 usunięć
  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.
 	 */
-	position: Vector3;
+	readonly position: Vector3;
 
 	/**
 	 * Object's local rotation (Euler angles), in radians.
 	 */
-	rotation: Euler;
+	readonly rotation: Euler;
 
 	/**
 	 * Global rotation.
 	 */
-	quaternion: Quaternion;
+	readonly quaternion: Quaternion;
 
 	/**
 	 * Object's local scale.
 	 */
-	scale: Vector3;
+	readonly scale: Vector3;
 
-	modelViewMatrix: Matrix4;
+	readonly modelViewMatrix: Matrix4;
 
-	normalMatrix: Matrix3;
+	readonly normalMatrix: Matrix3;
 
 	/**
 	 * Local transform.