File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -533,16 +533,16 @@ RANDOM_COLOR
533533// Render every individual mesh in the scene with a random color.
534534RANDOM_NODE_COLOR
535535
536- // Sets a custom color using the customColorCallback call back.
537- CUSTOM_COLOR_MODE
536+ // Sets a custom color using the customColorCallback call back.
537+ CUSTOM_COLOR
538538```
539539### .customColorCallback
540540
541541```js
542542customColorCallback: (tile: Tile, child: Object3D) => void
543543```
544544
545- The callback used if `debugColor` is set to `CUSTOM_COLOR_MODE `. Value defaults to `null` and must be set explicitly.
545+ The callback used if `debugColor` is set to `CUSTOM_COLOR `. Value defaults to `null` and must be set explicitly.
546546
547547### .displayBoxBounds
548548
Original file line number Diff line number Diff line change 99 IS_LEAF ,
1010 RANDOM_COLOR ,
1111 RANDOM_NODE_COLOR ,
12- CUSTOM_COLOR_MODE
12+ CUSTOM_COLOR
1313} from '../src/index.js' ;
1414import {
1515 Scene ,
@@ -104,7 +104,7 @@ function reinstantiateTiles() {
104104 tiles . manager . addHandler ( / \. g l t f $ / , loader ) ;
105105 offsetParent . add ( tiles . group ) ;
106106
107- // Used with CUSTOM_COLOR_MODE
107+ // Used with CUSTOM_COLOR
108108 tiles . customColorCallback = ( tile , object ) => {
109109
110110 const depthIsEven = tile . __depth % 2 === 0 ;
@@ -273,7 +273,7 @@ function init() {
273273 IS_LEAF ,
274274 RANDOM_COLOR ,
275275 RANDOM_NODE_COLOR ,
276- CUSTOM_COLOR_MODE
276+ CUSTOM_COLOR
277277
278278 } ) ;
279279 debug . open ( ) ;
Original file line number Diff line number Diff line change 99 IS_LEAF ,
1010 RANDOM_COLOR ,
1111 RANDOM_NODE_COLOR ,
12- CUSTOM_COLOR_MODE ,
12+ CUSTOM_COLOR ,
1313} from './three/DebugTilesRenderer.js' ;
1414import { TilesRenderer } from './three/TilesRenderer.js' ;
1515import { B3DMLoader } from './three/B3DMLoader.js' ;
@@ -52,5 +52,5 @@ export {
5252 IS_LEAF ,
5353 RANDOM_COLOR ,
5454 RANDOM_NODE_COLOR ,
55- CUSTOM_COLOR_MODE ,
55+ CUSTOM_COLOR ,
5656} ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const RELATIVE_DEPTH : ColorMode;
1111export const IS_LEAF : ColorMode ;
1212export const RANDOM_COLOR : ColorMode ;
1313export const RANDOM_NODE_COLOR : ColorMode ;
14- export const CUSTOM_COLOR_MODE : ColorMode ;
14+ export const CUSTOM_COLOR : ColorMode ;
1515export class DebugTilesRenderer extends TilesRenderer {
1616
1717 displayBoxBounds : Boolean ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const RELATIVE_DEPTH = 5;
1818export const IS_LEAF = 6 ;
1919export const RANDOM_COLOR = 7 ;
2020export const RANDOM_NODE_COLOR = 8 ;
21- export const CUSTOM_COLOR_MODE = 9 ;
21+ export const CUSTOM_COLOR = 9 ;
2222
2323export class DebugTilesRenderer extends TilesRenderer {
2424
@@ -353,7 +353,7 @@ export class DebugTilesRenderer extends TilesRenderer {
353353 break ;
354354
355355 }
356- case CUSTOM_COLOR_MODE : {
356+ case CUSTOM_COLOR : {
357357
358358 if ( this . customColorCallback ) {
359359
You can’t perform that action at this time.
0 commit comments