Skip to content

pivotick v3.0.0


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

optional enabled: boolean

Defined in: interfaces/Simplify.ts:56

Default ​

ts
true

kind ​

kind: "neighbours"

Defined in: interfaces/Simplify.ts:54


minSize? ​

optional minSize: number

Defined in: interfaces/Simplify.ts:61

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:63

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

Parameters ​

node ​

Node

Returns ​

string | undefined