pivotick / Simplify / CustomRule
Interface: CustomRule
Defined in: interfaces/Simplify.ts:179
A rule of the app's own.
Properties
description?
optionaldescription:string
Defined in: interfaces/Simplify.ts:186
One line on its card saying what it folds.
enabled?
optionalenabled:boolean
Defined in: interfaces/Simplify.ts:188
Default
trueid
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?
optionallabel:string
Defined in: interfaces/Simplify.ts:184
The name on its card in the Simplify flyout.
Default
the idminSize?
optionalminSize:number
Defined in: interfaces/Simplify.ts:193
Fewer nodes sharing a key than this stay plain nodes.
Default
2partition()
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
Returns
Map<string, string>