布局接口
Methods
-
reflow(group)
-
重排 在实现时,通过计算栈内每个元素的位置来重排
Parameters:
Name Type Description group
Group | JFlow 栈对象
-
staticCheck(instance, jflow)
-
对象布局位置检查,在static为true时生效
Parameters:
Name Type Description instance
Node 目标节点对象
jflow
JFlow JFlow对象
Returns:
- Type
- Boolean
Type Definitions
-
LinkMeta
-
布局连线单元,以下为必须定义的属性,也可定义更多属性传入连线
Type:
- Object
Properties:
Name Type Description type
String 连线类型(可对应到vue里的具名插槽)
from
LayoutNode#id 起点节点ID
to
LayoutNode#id 终点节点ID
-
NodeMeta
-
布局节点单元,以下为必须定义的属性,也可定义更多属性传入节点单元
Type:
- Object
Properties:
Name Type Description type
string 布局节点类型(可对应到vue里的具名插槽)
configs
Object 源数据
layoutMeta
LayoutNode 布局节点
-
Property
-
布局内属性
Type:
- Object
Properties:
Name Type Description static
Boolean 在移动元素后是否需要布局位置检查,默认false
flowStack
Array.<Layout~NodeMeta> 布局节点数组
flowLinkStack
Array.<Layout~LinkMeta> 连线数组