Skip to content

Commit

Permalink
Part 2 because idk how to do this right Im sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
DawnTheWitch authored Sep 30, 2023
1 parent 269c29e commit d7839fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/AEG/AtomNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class AtomNode {
* @param rect The rectangle to be set as the boundary box of this node.
* @param val The value of the proposition represented by this node.
*/
public constructor(val: string, origin: Point, rect?: Rectangle) {
this.rect = rect ?? new Rectangle();
public constructor(val: string, origin: Point, rect: Rectangle) {
this.rect = rect;
this.identifier = val;
this.origin = origin;
}
Expand Down
8 changes: 4 additions & 4 deletions src/AEG/Rectangle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export class Rectangle {
* @param w The width of the rectangle.
* @param h The height of the rectangle.
*/
public constructor(vertex?: Point, w?: number, h?: number) {
this.startVertex = vertex ?? new Point();
this.width = w ?? 0;
this.height = h ?? 0;
public constructor(vertex: Point, w: number, h: number) {
this.startVertex = vertex;
this.width = w;
this.height = h;
}

/**
Expand Down

0 comments on commit d7839fb

Please sign in to comment.