Skip to content

Commit 5a7e2d8

Browse files
authored
Merge pull request #58 from csvistool/bugsFix
realign data structures that were cutting off
2 parents a3259ce + b82edd3 commit 5a7e2d8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/algo/AVL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class AVL extends Algorithm {
3737

3838
this.first_print_pos_y = h - 2 * AVL.PRINT_VERTICAL_GAP;
3939
this.print_max = w - 10;
40-
this.startingX = w / 2;
40+
this.startingX = w / 2 + 200;
4141
this.addControls();
4242
this.nextIndex = 1;
4343
this.commands = [];

src/algo/BST.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class BST extends Algorithm {
4343

4444
this.first_print_pos_y = h - 2 * BST.PRINT_VERTICAL_GAP;
4545
this.print_max = w - 10;
46-
this.startingX = w / 2;
46+
this.startingX = w / 2 + 200;
4747
this.addControls();
4848
this.nextIndex = 1;
4949
this.commands = [];

src/algo/BTree.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { act } from '../anim/AnimationMain';
3636
const INFO_MSG_X = 25;
3737
const INFO_MSG_Y = 15;
3838

39-
const FIRST_PRINT_POS_X = 50;
39+
const FIRST_PRINT_POS_X = 100;
4040
const PRINT_VERTICAL_GAP = 20;
4141
const PRINT_MAX = 990;
4242
const PRINT_HORIZONTAL_GAP = 50;
@@ -61,7 +61,7 @@ export default class BTree extends Algorithm {
6161
super(am, w, h);
6262
this.nextIndex = 0;
6363

64-
this.starting_x = w / 2;
64+
this.starting_x = w / 2 + 200;
6565

6666
this.preemptiveSplit = false;
6767

0 commit comments

Comments
 (0)