Skip to content

Commit

Permalink
removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarvey committed Nov 4, 2024
1 parent 9750dc6 commit ce177eb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/lineage.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ function Lineage() {
}

function treeTicked() {
console.time('tree');
context.clearRect(0, 0, width, height);
context.save();
context.translate(transform.x, transform.y);
Expand All @@ -448,20 +447,14 @@ function Lineage() {
context.lineWidth = 1;
links.forEach(drawLink);

console.timeLog('tree', 'after drawLink');

users.forEach((user) => {
context.beginPath();
drawNode(user[0]);
context.fillStyle = color(user[0].category);
context.fill();
});

console.timeLog('tree', 'after drawNodes');

context.restore();
console.timeLog('tree', 'after restore');
console.timeEnd('tree');
}

function timeTicked() {
Expand Down

0 comments on commit ce177eb

Please sign in to comment.