Commit e6027333 authored by Themousaillon's avatar Themousaillon

edge hidden check

parent 1b8aaff3
......@@ -231,7 +231,11 @@ export class Graph2d {
f("node", node.toObj())
this._currentNodes.add(id)
})
edges.forEach(edge => f("edge", edge.toObj()))
edges.forEach(edge => {
if (this.isEdgeHidden(edge))
f("edge", edge.toObj())
}
)
//fetch childrens N+2
return this._queryEngine.fetchComponents(params, this.addComponents(f))
......@@ -259,7 +263,11 @@ export class Graph2d {
f("node", node.toObj())
this._currentNodes.add(id)
})
edges.forEach(edge => f("edge", edge.toObj()))
edges.forEach(edge => {
if (this.isEdgeHidden(edge))
f("edge", edge.toObj())
})
// fetch parents N+2
return this._queryEngine.fetchComponents(params, this.addComponents(f))
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment