Skip to content

Commit

Permalink
fixed a merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Wicenec committed Nov 14, 2023
1 parent ee3ff7c commit 177b2a2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@ export class Eagle {
return;
}

<<<<<<< Updated upstream
// iterate over all nodes in graph and record minimum and maximum extents in X and Y
let minX : number = Number.MAX_VALUE;
let minY : number = Number.MAX_VALUE;
Expand All @@ -501,10 +500,6 @@ export class Eagle {
const centroidX = minX + ((maxX - minX) / 2);
const centroidY = minY + ((maxY - minY) / 2);

=======
// reset scale to center the graph correctly
this.globalScale(1)
>>>>>>> Stashed changes

//calculating scale multipliers needed for each, height and width in order to fit the graph
const containerHeight = $('#logicalGraphParent').height()
Expand Down Expand Up @@ -565,21 +560,7 @@ export class Eagle {
},200)
},200)

<<<<<<< Updated upstream
},500)
=======
//determening which is the smaller scale multiplier to fit the graph and setting it
if(graphYScale>graphXScale){
this.globalScale(graphXScale);
}else if(graphYScale<graphXScale){
this.globalScale(graphYScale)
}else{
this.globalScale(1)
}
this.globalOffsetX(this.globalOffsetX()-$('#logicalGraphD3Div').width()/this.globalScale())
this.globalOffsetY(this.globalOffsetY()-$('#logicalGraphD3Div').height()/this.globalScale())

>>>>>>> Stashed changes
}

getSelectedText = () : string => {
Expand Down

0 comments on commit 177b2a2

Please sign in to comment.