跳转到内容

pivotick v3.0.0


拓展 / LayoutOptions / EgoTreeLayoutOptions

接口: EgoTreeLayoutOptions ​

定义于:interfaces/LayoutOptions.ts:107

延伸 ​

属性 ​

horizontal? ​

optional horizontal: boolean

定义于:interfaces/LayoutOptions.ts:72

节点应该水平放置而不是垂直放置

默认值 ​

ts
false

继承自 ​

TreeLayoutOptions.horizontal


levelSpacing? ​

optional levelSpacing: number

定义于:interfaces/LayoutOptions.ts:98

乘以连续级别之间的距离 - 树的深度轴,或 radial 模式下环之间的间隙。在 1 处,树被缩放以填充画布。

默认值 ​

ts
1

继承自 ​

TreeLayoutOptions.levelSpacing


radial? ​

optional radial: boolean

定义于:interfaces/LayoutOptions.ts:67

节点是否应该径向放置而不是垂直放置

默认值 ​

ts
false

继承自 ​

TreeLayoutOptions.radial


radialGap ​

radialGap: number

定义于:interfaces/LayoutOptions.ts:82

径向模式中使用的各层之间的抓地力

默认值 ​

ts
750

继承自 ​

TreeLayoutOptions.radialGap


rootId ​

rootId: string

定义于:interfaces/LayoutOptions.ts:110


rootIdAlgorithmFinder ​

rootIdAlgorithmFinder: TreeLayoutAlgorithm

定义于:interfaces/LayoutOptions.ts:77

用于查找树根的算法

默认值 ​

ts
'MaxReachability'

继承自 ​

TreeLayoutOptions.rootIdAlgorithmFinder


siblingSpacing? ​

optional siblingSpacing: number

定义于:interfaces/LayoutOptions.ts:104

将级别内的节点之间的距离相乘 - 宽度轴。在 radial 模式下被忽略,其中关卡始终跨越整个圆圈。

默认值 ​

ts
1

继承自 ​

TreeLayoutOptions.siblingSpacing


spacing? ​

optional spacing: "manual" | "auto"

定义于:interfaces/LayoutOptions.ts:92

两个间距乘数是否根据节点的大小和树的形状进行调整,或者保持在它们放置的位置。

'auto' 是默认值——除了显式设置 levelSpacing 或 siblingSpacing 的树,这被视为已经下定决心。之后用手转动任一乘数也会永久退出自动。

默认值 ​

ts
'auto'

继承自 ​

TreeLayoutOptions.spacing


strength? ​

optional strength: number

定义于:interfaces/LayoutOptions.ts:62

将节点保持在适当位置以形成树的力的强度

默认值 ​

ts
0.1

继承自 ​

TreeLayoutOptions.strength


type ​

type: "egoTree"

定义于:interfaces/LayoutOptions.ts:109