Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Show visible/hidden nodes count #169

Open
ungentilgarcon opened this issue Apr 23, 2018 · 1 comment
Open

Show visible/hidden nodes count #169

ungentilgarcon opened this issue Apr 23, 2018 · 1 comment

Comments

@ungentilgarcon
Copy link
Contributor

it would be great to have a debug mode window showing:
the amount of nodes visible on graph (in realtime so that each change or find affects it)
the amount of nodes visible on graph in realtime

@clemsos clemsos changed the title need debug mode Show visible/hidden nodes count Apr 27, 2018
@clemsos
Copy link
Member

clemsos commented Apr 27, 2018

The main filtering of nodes and edges is happening on client-side here.

const edges = this.props.edges
.filter(e =>
nodeIds.includes(e.data.source) && nodeIds.includes(e.data.target)
)

The best idea will be to get the length of the array as a totalNodesCount and totalEdgesCount and pass it down to the < SidePanel /> component so it can be shown in the description panel

<PanelDescription
topogram={topogram}
nodesCount={nodes.length}
edgesCount={edges.length}
/>

The best will be to show sth like 10 (on 12) nodes, 13 (on 15) edges in the UI of <PanelDescription />

subtitle={`${nodesCount} nodes, ${edgesCount} edges`}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants