接口: SimplifyOptions
定义于:interfaces/Simplify.ts:205
UI.simplify:哪些规则折叠图,以及组如何命名。
属性
colorOf()?
optionalcolorOf: (node) =>string|undefined
定义于:interfaces/Simplify.ts:240
节点在组中代表的颜色:圆盘和环、开放式洗涤、工具提示的碎片、混合环的份额。对于节点不携带color的主机。返回 undefined 会退回到节点已解析的样式颜色。
参数
node
返回值
string | undefined
默认值
the node's resolved style colourenabled?
optionalenabled:boolean
定义于:interfaces/Simplify.ts:210
false 删除了该功能:不运行规则并且简化轨道模式消失。
默认值
trueopenConfirmAbove?
optionalopenConfirmAbove:number
定义于:interfaces/Simplify.ts:227
首先要创建一个成员数量超过此要求的群组。
默认值
100rules?
optionalrules:SimplifyRule[]
定义于:interfaces/Simplify.ts:216
规则,按照它们运行的顺序;每个人都可以看到它上面的人所组成的组。排除在外,full模式提供关闭的内置规则,而其他模式则不运行。
typeLabel()?
optionaltypeLabel: (type,count) =>string
定义于:interfaces/Simplify.ts:222
组部分的名称,例如(type, count) => `${count} IPs` 。对于没有类型的节点,type 是 undefined。
参数
type
string | undefined
count
number
返回值
string
默认值
${count} × ${type}
typeOf()?
optionaltypeOf: (node) =>string|undefined
定义于:interfaces/Simplify.ts:233
每个规则分组依据的类型以及每个组计算其部分的依据。规则自己的 typeOf 仍然会赢得该规则。
参数
node
返回值
string | undefined
默认值
render.nodeTypeAccessor