Skip to content

Commit 9181e8a

Browse files
committed
docs(RoadKit.js): comments update
1 parent 4f1802c commit 9181e8a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/scripts/roadkits/RoadKit.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ export default class RoadKit {
455455
window.removeEventListener('keydown', this._handleKeydownBound);
456456
}
457457

458+
/**
459+
* Add a colour overlay to a given tile
460+
* @param {THREE.Group} tile The tile to overlay
461+
* @protected
462+
*/
458463
_addColourOverlay(tile) {
459464
tile.children.forEach((child) => {
460465
// Store the original material to restore later
@@ -468,6 +473,11 @@ export default class RoadKit {
468473
this.hoveredTile = tile;
469474
}
470475

476+
/**
477+
* Remove a colour overlay from a given tile
478+
* @param {THREE.Group} tile The tile to overlay
479+
* @protected
480+
*/
471481
_removeColourOverlay(tile) {
472482
tile.children.forEach((child, i) => {
473483
// For each child, remove its new material and restore the original

0 commit comments

Comments
 (0)