Skip to content

pivotick v3.0.0


pivotick / Simplify / CustomRule

Interface: CustomRule ​

Defined in: interfaces/Simplify.ts:179

A rule of the app's own.

Properties ​

description? ​

optional description: string

Defined in: interfaces/Simplify.ts:186

One line on its card saying what it folds.


enabled? ​

optional enabled: boolean

Defined in: interfaces/Simplify.ts:188

Default ​

ts
true

id ​

id: string

Defined in: interfaces/Simplify.ts:182

Unique among the rules; also GroupInfo.rule.


kind ​

kind: "custom"

Defined in: interfaces/Simplify.ts:180


label? ​

optional label: string

Defined in: interfaces/Simplify.ts:184

The name on its card in the Simplify flyout.

Default ​

ts
the id

minSize? ​

optional minSize: number

Defined in: interfaces/Simplify.ts:193

Fewer nodes sharing a key than this stay plain nodes.

Default ​

ts
2

partition() ​

partition: (view) => Map<string, string>

Defined in: interfaces/Simplify.ts:199

Give each node to group a key; nodes sharing a key become one group. A node left out stays itself, and ids that are not in view.nodes are ignored. A rule that throws is switched off and the others still run.

Parameters ​

view ​

GraphView

Returns ​

Map<string, string>