pivotick / Simplify / NeighboursRule
Interface: NeighboursRule
Defined in: interfaces/Simplify.ts:53
Fold nodes of one type that link to exactly the same nodes, the same way round. The leaves of a hub are the simplest case: they all have the hub as their only neighbour.
Properties
enabled?
optionalenabled:boolean
Defined in: interfaces/Simplify.ts:56
Default
ts
truekind
kind:
"neighbours"
Defined in: interfaces/Simplify.ts:54
minSize?
optionalminSize:number
Defined in: interfaces/Simplify.ts:61
Fewer matching nodes than this stay plain nodes. Between 2 and 50.
Default
ts
5typeOf()?
optionaltypeOf: (node) =>string|undefined
Defined in: interfaces/Simplify.ts:63
Overrides UI.simplify.typeOf and render.nodeTypeAccessor for this rule.
Parameters
node
Returns
string | undefined