فهرست منبع

CUSTOM_COLOR_MODE -> CUSTOM_COLOR

Garrett Johnson 4 سال پیش
والد
کامیت
cd768fc844
5فایلهای تغییر یافته به همراه11 افزوده شده و 11 حذف شده
  1. 3 3
      README.md
  2. 3 3
      example/index.js
  3. 2 2
      src/index.js
  4. 1 1
      src/three/DebugTilesRenderer.d.ts
  5. 2 2
      src/three/DebugTilesRenderer.js

+ 3 - 3
README.md

@@ -533,8 +533,8 @@ RANDOM_COLOR
 // Render every individual mesh in the scene with a random color.
 RANDOM_NODE_COLOR
 
-// Sets a custom color using the customColorCallback call back. 
-CUSTOM_COLOR_MODE
+// Sets a custom color using the customColorCallback call back.
+CUSTOM_COLOR
 ```
 ### .customColorCallback
 
@@ -542,7 +542,7 @@ CUSTOM_COLOR_MODE
 customColorCallback: (tile: Tile, child: Object3D) => void
 ```
 
-The callback used if `debugColor` is set to `CUSTOM_COLOR_MODE`. Value defaults to `null` and must be set explicitly.
+The callback used if `debugColor` is set to `CUSTOM_COLOR`. Value defaults to `null` and must be set explicitly.
 
 ### .displayBoxBounds
 

+ 3 - 3
example/index.js

@@ -9,7 +9,7 @@ import {
 	IS_LEAF,
 	RANDOM_COLOR,
 	RANDOM_NODE_COLOR,
-	CUSTOM_COLOR_MODE
+	CUSTOM_COLOR
 } from '../src/index.js';
 import {
 	Scene,
@@ -104,7 +104,7 @@ function reinstantiateTiles() {
 	tiles.manager.addHandler( /\.gltf$/, loader );
 	offsetParent.add( tiles.group );
 
-	// Used with CUSTOM_COLOR_MODE
+	// Used with CUSTOM_COLOR
 	tiles.customColorCallback = ( tile, object ) => {
 
 		const depthIsEven = tile.__depth % 2 === 0;
@@ -273,7 +273,7 @@ function init() {
 		IS_LEAF,
 		RANDOM_COLOR,
 		RANDOM_NODE_COLOR,
-		CUSTOM_COLOR_MODE
+		CUSTOM_COLOR
 
 	} );
 	debug.open();

+ 2 - 2
src/index.js

@@ -9,7 +9,7 @@ import {
 	IS_LEAF,
 	RANDOM_COLOR,
 	RANDOM_NODE_COLOR,
-	CUSTOM_COLOR_MODE,
+	CUSTOM_COLOR,
 } from './three/DebugTilesRenderer.js';
 import { TilesRenderer } from './three/TilesRenderer.js';
 import { B3DMLoader } from './three/B3DMLoader.js';
@@ -52,5 +52,5 @@ export {
 	IS_LEAF,
 	RANDOM_COLOR,
 	RANDOM_NODE_COLOR,
-	CUSTOM_COLOR_MODE,
+	CUSTOM_COLOR,
 };

+ 1 - 1
src/three/DebugTilesRenderer.d.ts

@@ -11,7 +11,7 @@ export const RELATIVE_DEPTH : ColorMode;
 export const IS_LEAF : ColorMode;
 export const RANDOM_COLOR : ColorMode;
 export const RANDOM_NODE_COLOR: ColorMode;
-export const CUSTOM_COLOR_MODE: ColorMode;
+export const CUSTOM_COLOR: ColorMode;
 export class DebugTilesRenderer extends TilesRenderer {
 
 	displayBoxBounds : Boolean;

+ 2 - 2
src/three/DebugTilesRenderer.js

@@ -18,7 +18,7 @@ export const RELATIVE_DEPTH = 5;
 export const IS_LEAF = 6;
 export const RANDOM_COLOR = 7;
 export const RANDOM_NODE_COLOR = 8;
-export const CUSTOM_COLOR_MODE = 9;
+export const CUSTOM_COLOR = 9;
 
 export class DebugTilesRenderer extends TilesRenderer {
 
@@ -353,7 +353,7 @@ export class DebugTilesRenderer extends TilesRenderer {
 							break;
 
 						}
-						case CUSTOM_COLOR_MODE: {
+						case CUSTOM_COLOR: {
 
 							if ( this.customColorCallback ) {