Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Jun 30, 2021
1 parent 56eaa5d commit e432721
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions demo/src/demos/PointOctreeDemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ export class PointOctreeDemo extends Demo {

}

dispose() {
dispose(): void {

this.renderer.domElement.removeEventListener("mousemove", this.octreeRaycaster);
const domElement = this.renderer.domElement;
domElement.removeEventListener("mousemove", this.octreeRaycaster);

}

Expand Down
2 changes: 1 addition & 1 deletion src/core/CubicOctant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class CubicOctant<T> implements Node, DataContainer<T> {
* Splits this octant into eight smaller ones.
*/

split() {
split(): void {

const min = this.min;
const mid = this.getCenter(c);
Expand Down
2 changes: 1 addition & 1 deletion src/core/Octant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Octant<T> implements Node, DataContainer<T> {
* Splits this octant into eight smaller ones.
*/

split() {
split(): void {

const min = this.min;
const max = this.max;
Expand Down
4 changes: 2 additions & 2 deletions src/core/Octree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ export class Octree implements Tree, Iterable<Node> {

}

get min() {
get min(): Vector3 {

return this.root.min;

}

get max() {
get max(): Vector3 {

return this.root.max;

Expand Down
2 changes: 1 addition & 1 deletion src/points/PointContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class PointContainer<T> implements DataContainer<T> {
* @param distance - A distance.
*/

constructor(point: Vector3 = null, data: T = null, distance: number = 0.0) {
constructor(point: Vector3 = null, data: T = null, distance = 0.0) {

this.point = point;
this.data = data;
Expand Down
4 changes: 2 additions & 2 deletions src/points/PointOctant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class PointOctant<T> extends Octant<PointData<T>> {
* @param bias - A proximity threshold.
*/

redistribute(bias: number) {
redistribute(bias: number): void {

const children = this.children;
const pointData = this.data;
Expand Down Expand Up @@ -141,7 +141,7 @@ export class PointOctant<T> extends Octant<PointData<T>> {
* Deletes all child nodes and collects their points.
*/

merge() {
merge(): void {

const children = this.children;

Expand Down

0 comments on commit e432721

Please sign in to comment.