Skip to content

Commit cd768fc

Browse files
committed
CUSTOM_COLOR_MODE -> CUSTOM_COLOR
1 parent 938acb4 commit cd768fc

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,16 @@ RANDOM_COLOR
533533
// Render every individual mesh in the scene with a random color.
534534
RANDOM_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
542542
customColorCallback: (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

example/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
IS_LEAF,
1010
RANDOM_COLOR,
1111
RANDOM_NODE_COLOR,
12-
CUSTOM_COLOR_MODE
12+
CUSTOM_COLOR
1313
} from '../src/index.js';
1414
import {
1515
Scene,
@@ -104,7 +104,7 @@ function reinstantiateTiles() {
104104
tiles.manager.addHandler( /\.gltf$/, 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();

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
IS_LEAF,
1010
RANDOM_COLOR,
1111
RANDOM_NODE_COLOR,
12-
CUSTOM_COLOR_MODE,
12+
CUSTOM_COLOR,
1313
} from './three/DebugTilesRenderer.js';
1414
import { TilesRenderer } from './three/TilesRenderer.js';
1515
import { 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
};

src/three/DebugTilesRenderer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const RELATIVE_DEPTH : ColorMode;
1111
export const IS_LEAF : ColorMode;
1212
export const RANDOM_COLOR : ColorMode;
1313
export const RANDOM_NODE_COLOR: ColorMode;
14-
export const CUSTOM_COLOR_MODE: ColorMode;
14+
export const CUSTOM_COLOR: ColorMode;
1515
export class DebugTilesRenderer extends TilesRenderer {
1616

1717
displayBoxBounds : Boolean;

src/three/DebugTilesRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const RELATIVE_DEPTH = 5;
1818
export const IS_LEAF = 6;
1919
export const RANDOM_COLOR = 7;
2020
export const RANDOM_NODE_COLOR = 8;
21-
export const CUSTOM_COLOR_MODE = 9;
21+
export const CUSTOM_COLOR = 9;
2222

2323
export 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

0 commit comments

Comments
 (0)