Skip to content

@graphty/graphty-element / session / TopFactCode

Type Alias: TopFactCode ​

TopFactCode = "top.exact" | "top.tiesLeftOut" | "top.tiesTaken" | "top.fewerMeasured"

Defined in: graphty-element/src/session/styles/explain.ts:351

What a "top N" took, as the code of a StyleCounts.tops fact. Every code's params carry path (the value ranked), n (how many were asked for), taken (how many it took) and ties ("fewer" or "all"); the two tie codes add value (the value the group ties at) and count (how many tie there).

CodeMeaning
top.exactIt took exactly n.
top.tiesLeftOutA tie group at the cut was left out, so it took fewer than n.
top.tiesTakenA tie group at the cut was taken whole, so it took more than n.
top.fewerMeasuredFewer than n elements carry a number for path, and it took them all.

New codes may be added in a minor release: word an unknown one generically.

Since ​

3.26.0