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 groupGroup | JFlow 栈对象
- Implements:
-
reOrder(ast)
-
从 ast 计算布局
Parameters:
Name Type Description astAstNode ASL 树
-
staticCheck(instance, jflow)
-
对象布局位置检查,在static为true时生效
Parameters:
Name Type Description instanceNode 目标节点对象
jflowJFlow JFlow对象
- Implements:
Returns:
- Type
- Boolean
Type Definitions
-
Configs
-
Type:
- Object
Properties:
Name Type Description linkLengthnumber 最小连线长度
gapnumber 列间隙
treeItemDraggableboolean 树上的是否可以拖动
astObject 语法树