拓展 / LayoutOptions / EgoTreeLayoutOptions
接口: EgoTreeLayoutOptions
定义于:interfaces/LayoutOptions.ts:107
延伸
Omit<TreeLayoutOptions,"rootId"|"type"|"parentKey"|"depthKey">
属性
horizontal?
optionalhorizontal:boolean
定义于:interfaces/LayoutOptions.ts:72
节点应该水平放置而不是垂直放置
默认值
false继承自
levelSpacing?
optionallevelSpacing:number
定义于:interfaces/LayoutOptions.ts:98
乘以连续级别之间的距离 - 树的深度轴,或 radial 模式下环之间的间隙。在 1 处,树被缩放以填充画布。
默认值
1继承自
TreeLayoutOptions.levelSpacing
radial?
optionalradial:boolean
定义于:interfaces/LayoutOptions.ts:67
节点是否应该径向放置而不是垂直放置
默认值
false继承自
radialGap
radialGap:
number
定义于:interfaces/LayoutOptions.ts:82
径向模式中使用的各层之间的抓地力
默认值
750继承自
rootId
rootId:
string
定义于:interfaces/LayoutOptions.ts:110
rootIdAlgorithmFinder
rootIdAlgorithmFinder:
TreeLayoutAlgorithm
定义于:interfaces/LayoutOptions.ts:77
用于查找树根的算法
默认值
'MaxReachability'继承自
TreeLayoutOptions.rootIdAlgorithmFinder
siblingSpacing?
optionalsiblingSpacing:number
定义于:interfaces/LayoutOptions.ts:104
将级别内的节点之间的距离相乘 - 宽度轴。在 radial 模式下被忽略,其中关卡始终跨越整个圆圈。
默认值
1继承自
TreeLayoutOptions.siblingSpacing
spacing?
optionalspacing:"manual"|"auto"
定义于:interfaces/LayoutOptions.ts:92
两个间距乘数是否根据节点的大小和树的形状进行调整,或者保持在它们放置的位置。
'auto' 是默认值——除了显式设置 levelSpacing 或 siblingSpacing 的树,这被视为已经下定决心。之后用手转动任一乘数也会永久退出自动。
默认值
'auto'继承自
strength?
optionalstrength:number
定义于:interfaces/LayoutOptions.ts:62
将节点保持在适当位置以形成树的力的强度
默认值
0.1继承自
type
type:
"egoTree"