Skip to content

pivotick v3.0.0


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? ​

optional enabled: boolean

Defined in: interfaces/Simplify.ts:75

Default ​

ts
true

kind ​

kind: "chains"

Defined in: interfaces/Simplify.ts:73


minSize? ​

optional minSize: number

Defined in: interfaces/Simplify.ts:80

Fewer matching nodes than this stay plain nodes. Between 2 and 50.

Default ​

ts
5

typeOf()? ​

optional typeOf: (node) => string | undefined

Defined in: interfaces/Simplify.ts:82

Overrides UI.simplify.typeOf and render.nodeTypeAccessor for this rule.

Parameters ​

node ​

Node

Returns ​

string | undefined