Ver código fonte

Fix example enums

Garrett Johnson 5 anos atrás
pai
commit
ecd95eb8a7
4 arquivos alterados com 22 adições e 23 exclusões
  1. 2 2
      example/index.js
  2. 2 2
      src/index.js
  3. 3 4
      src/three/DebugTilesRenderer.d.ts
  4. 15 15
      src/three/DebugTilesRenderer.js

+ 2 - 2
example/index.js

@@ -1,6 +1,6 @@
 import {
 	DebugTilesRenderer as TilesRenderer,
-	DEFAULT,
+	NONE,
 	SCREEN_ERROR,
 	GEOMETRIC_ERROR,
 	DISTANCE,
@@ -218,7 +218,7 @@ function init() {
 	debug.add( params, 'displayBoxBounds' );
 	debug.add( params, 'colorMode', {
 
-		DEFAULT,
+		NONE,
 		SCREEN_ERROR,
 		GEOMETRIC_ERROR,
 		DISTANCE,

+ 2 - 2
src/index.js

@@ -1,6 +1,6 @@
 import {
 	DebugTilesRenderer,
-	DEFAULT,
+	NONE,
 	SCREEN_ERROR,
 	GEOMETRIC_ERROR,
 	DISTANCE,
@@ -29,7 +29,7 @@ export {
 	LRUCache,
 	PriorityQueue,
 
-	DEFAULT,
+	NONE,
 	SCREEN_ERROR,
 	GEOMETRIC_ERROR,
 	DISTANCE,

+ 3 - 4
src/three/DebugTilesRenderer.d.ts

@@ -10,15 +10,14 @@ export const RELATIVE_DEPTH : ColorMode;
 export const IS_LEAF : ColorMode;
 export const RANDOM_COLOR : ColorMode;
 
-
 export class DebugTilesRenderer extends TilesRenderer {
 
 	displayBoxBounds : Boolean;
 	displaySphereBounds : Boolean;
 	colorMode : ColorMode;
 
-	maxDepth : Number;
-	maxDistance : Number;
-	maxError : Number;
+	maxDebugDepth : Number;
+	maxDebugDistance : Number;
+	maxDebugError : Number;
 
 }

+ 15 - 15
src/three/DebugTilesRenderer.js

@@ -33,12 +33,12 @@ export class DebugTilesRenderer extends TilesRenderer {
 		this.colorMode = NONE;
 		this.boxGroup = boxGroup;
 		this.sphereGroup = sphereGroup;
-		this.maxDepth = - 1;
-		this.maxDistance = - 1;
-		this.maxError = - 1;
+		this.maxDebugDepth = - 1;
+		this.maxDebugDistance = - 1;
+		this.maxDebugError = - 1;
 
-		this.extremeDepth = - 1;
-		this.extremeError = - 1;
+		this.extremeDebugDepth = - 1;
+		this.extremeDebugError = - 1;
 
 	}
 
@@ -58,8 +58,8 @@ export class DebugTilesRenderer extends TilesRenderer {
 
 		} );
 
-		this.extremeDepth = maxDepth;
-		this.extremeError = maxError;
+		this.extremeDebugDepth = maxDepth;
+		this.extremeDebugError = maxError;
 
 	}
 
@@ -135,35 +135,35 @@ export class DebugTilesRenderer extends TilesRenderer {
 		this.sphereGroup.visible = this.displaySphereBounds;
 
 		let maxDepth = - 1;
-		if ( this.maxDepth === - 1 ) {
+		if ( this.maxDebugDepth === - 1 ) {
 
-			maxDepth = this.extremeDepth;
+			maxDepth = this.extremeDebugDepth;
 
 		} else {
 
-			maxDepth = this.maxDepth;
+			maxDepth = this.maxDebugDepth;
 
 		}
 
 		let maxError = - 1;
-		if ( this.maxError === - 1 ) {
+		if ( this.maxDebugError === - 1 ) {
 
-			maxError = this.extremeError;
+			maxError = this.extremeDebugError;
 
 		} else {
 
-			maxError = this.maxError;
+			maxError = this.maxDebugError;
 
 		}
 
 		let maxDistance = - 1;
-		if ( this.maxDistance === - 1 ) {
+		if ( this.maxDebugDistance === - 1 ) {
 
 			maxDistance = this.root.cached.sphere.radius;
 
 		} else {
 
-			maxDistance = this.maxDistance;
+			maxDistance = this.maxDebugDistance;
 
 		}