소스 검색

Lint and better comments.

duncan law 6 년 전
부모
커밋
cb1ea3cc87
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Cameras/Inputs/BaseCameraPointersInput.ts
  2. 5 0
      tests/unit/babylon/src/Cameras/babylon.pointerInput.tests.ts

+ 1 - 1
src/Cameras/Inputs/BaseCameraPointersInput.ts

@@ -46,7 +46,7 @@ export abstract class BaseCameraPointersInput implements ICameraInput<Camera> {
         var engine = this.camera.getEngine();
         var previousPinchSquaredDistance = 0;
         var previousMultiTouchPanPosition: Nullable<PointerTouch> = null;
-      
+
         this.pointA = null;
         this.pointB = null;
 

+ 5 - 0
tests/unit/babylon/src/Cameras/babylon.pointerInput.tests.ts

@@ -167,6 +167,7 @@ function StubCameraInput() {
 
 /**
  * Test the things.
+ * The BaseCameraPointersInput class first.
  */
 describe('BaseCameraPointersInput', function() {
   /**
@@ -629,6 +630,10 @@ describe('BaseCameraPointersInput', function() {
   });
 });
 
+/**
+ * Test the things.
+ * The ArcRotateCameraInput class.
+ */
 describe('ArcRotateCameraInput', function() {
   /**
    * Sets the timeout of all the tests to 10 seconds.