Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatDeparted2061 committed Jan 28, 2025
1 parent 1e4199a commit 49b6ab6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/simulator/src/wire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ interface Scope {
export default class Wire {
objectType = 'Wire';
type = 'horizontal';
x1!: number;
y1!: number;
x2!: number;
y2!: number;
x1: number;
y1: number;
x2: number;
y2: number;

constructor(public node1: Node, public node2: Node, public scope: Scope) {
this.x1 = this.node1.absX();
this.y1 = this.node1.absY();
this.x2 = this.node2.absX();
this.y2 = this.node2.absY();
this.updateData();
this.scope.wires.push(this);
forceResetNodesSet(true);
Expand Down

0 comments on commit 49b6ab6

Please sign in to comment.