Add linting

This commit is contained in:
schmelczerandras 2020-08-18 16:52:11 +02:00
parent 76282a4cf7
commit 40a660b7cb
49 changed files with 237 additions and 334 deletions

View file

@ -4,6 +4,7 @@ import { ImmutableBoundingBox } from '../../shapes/immutable-bounding-box';
class Node {
public left?: Node = null;
public right?: Node = null;
constructor(public rectangle: ImmutableBoundingBox, public parent: Node) {}
@ -63,9 +64,7 @@ export class BoundingBoxTree {
}
}
public findIntersecting(
box: ImmutableBoundingBox
): Array<ImmutableBoundingBox> {
public findIntersecting(box: ImmutableBoundingBox): Array<ImmutableBoundingBox> {
const maybeResults = this.findMaybeIntersecting(box, this.root, 0);
const results = maybeResults.filter((b) => b.intersects(box));
return results;