pivotick / Simplify / ChainsRule
Interface: ChainsRule
Defined in: interfaces/Simplify.ts:72
Fold chains that hang off a node alone: a node whose only link is from its parent, and so on down. Nodes leading chains of the same shape fold together, and so does each level of their chains. An event with thirty files, each holding its own hash, becomes one group of files linked to one group of hashes. Links count downstream only.
Properties
enabled?
optionalenabled:boolean
Defined in: interfaces/Simplify.ts:75
Default
truekind
kind:
"chains"
Defined in: interfaces/Simplify.ts:73
minSize?
optionalminSize:number
Defined in: interfaces/Simplify.ts:80
Fewer matching nodes than this stay plain nodes. Between 2 and 50.
Default
5typeOf()?
optionaltypeOf: (node) =>string|undefined
Defined in: interfaces/Simplify.ts:82
Overrides UI.simplify.typeOf and render.nodeTypeAccessor for this rule.
Parameters
node
Returns
string | undefined