Skip to content

Commit

Permalink
fixed some issues with filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarvey committed Nov 11, 2024
1 parent e092bd2 commit ba22d56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/lineage.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function Lineage() {

function getTreeSimulation() {
simulation
.force('charge', d3.forceManyBody().strength(-50))
.force('charge', d3.forceManyBody().strength(-45))
.force('centering', d3.forceCenter(0, 0))
.force('link', d3.forceLink(links).distance(30).strength(0.2))
.force('x', d3.forceX())
Expand Down Expand Up @@ -406,7 +406,8 @@ function Lineage() {
let regex = null;
for (let i = 0; i < filterItems.length; i += 1) {
regex = new RegExp(filterItems[i], 'ig');
if (node.name.match(regex)) {
debugger;
if (node.description != null && node.description.match(regex)) {
return true;
}
}
Expand Down

0 comments on commit ba22d56

Please sign in to comment.