filter.matchCount
matchCount(): FilterMatchCountCombined match-count preview across all active filters.
Returns: FilterMatchCount
Returns a FilterMatchCount record
describing how many nodes and edges currently pass / fail the cumulative
filter stack. Useful for live count badges next to the filter list.
Example
api.filter.nodes.range({ property: "age", min: 18 });
const counts = api.filter.matchCount();
console.log(
`${counts.nodesShown} of ${counts.nodesTotal} nodes visible`
);