new LowcodeLayout(configs)
Parameters:
Name | Type | Description |
---|---|---|
configs |
LowcodeLayout~Configs | 配置 |
- Implements:
Members
-
gap :number
-
列间隙
Type:
- number
-
linkLength :number
-
最小连线长度
Type:
- number
-
static :boolean
-
true 需要检查元素拖动
Type:
- boolean
-
treeItemDraggable :boolean
-
树上的是否可以拖动
Type:
- boolean
Methods
-
reflow(group)
-
重排 在实现时,通过计算栈内每个元素的位置来重排
Parameters:
Name Type Description group
Group | JFlow 栈对象
- Implements:
-
reOrder(ast)
-
从 ast 计算布局
Parameters:
Name Type Description ast
AstNode ASL 树
-
staticCheck(instance, jflow)
-
对象布局位置检查,在static为true时生效
Parameters:
Name Type Description instance
Node 目标节点对象
jflow
JFlow JFlow对象
- Implements:
Returns:
- Type
- Boolean
Type Definitions
-
Configs
-
Type:
- Object
Properties:
Name Type Description linkLength
number 最小连线长度
gap
number 列间隙
treeItemDraggable
boolean 树上的是否可以拖动
ast
Object 语法树