跳转到内容

pivotick v3.0.0


拓展 / 简化 / SimplifyOptions

接口: SimplifyOptions ​

定义于:interfaces/Simplify.ts:205

UI.simplify:哪些规则折叠图,以及组如何命名。

属性 ​

colorOf()? ​

optional colorOf: (node) => string | undefined

定义于:interfaces/Simplify.ts:240

节点在组中代表的颜色:圆盘和环、开放式洗涤、工具提示的碎片、混合环的份额。对于节点不携带color的主机。返回 undefined 会退回到节点已解析的样式颜色。

参数 ​

node ​

Node

返回值 ​

string | undefined

默认值 ​

ts
the node's resolved style colour

enabled? ​

optional enabled: boolean

定义于:interfaces/Simplify.ts:210

false 删除了该功能:不运行规则并且简化轨道模式消失。

默认值 ​

ts
true

openConfirmAbove? ​

optional openConfirmAbove: number

定义于:interfaces/Simplify.ts:227

首先要创建一个成员数量超过此要求的群组。

默认值 ​

ts
100

rules? ​

optional rules: SimplifyRule[]

定义于:interfaces/Simplify.ts:216

规则,按照它们运行的顺序;每个人都可以看到它上面的人所组成的组。排除在外,full模式提供关闭的内置规则,而其他模式则不运行。


typeLabel()? ​

optional typeLabel: (type, count) => string

定义于:interfaces/Simplify.ts:222

组部分的名称,例如(type, count) => `${count} IPs` 。对于没有类型的节点,type 是 undefined。

参数 ​

type ​

string | undefined

count ​

number

返回值 ​

string

默认值 ​

${count} × ${type}


typeOf()? ​

optional typeOf: (node) => string | undefined

定义于:interfaces/Simplify.ts:233

每个规则分组依据的类型以及每个组计算其部分的依据。规则自己的 typeOf 仍然会赢得该规则。

参数 ​

node ​

Node

返回值 ​

string | undefined

默认值 ​

ts
render.nodeTypeAccessor