Mixin: StackMixin

StackMixin

对象栈 mixin 用于方便控制节点栈和连线栈

Members


<static> _linkStack

Properties:
Type Description
InstanceStack

连线栈


<static> _stack

Properties:
Type Description
InstanceStack

对象栈


<static> instances

Properties:
Type Description
Array.<Node>

对象数组


Properties:
Type Description
Array.<BaseLink>

连线数组

Methods


<static> addToLinkStack(instance)

加入连线对象

Parameters:
Name Type Description
instance BaseLink

连线对象


<static> addToStack(instance)

加入节点对象

Parameters:
Name Type Description
instance Node

节点对象


<static> initStack(configs)

初始化对象栈

Parameters:
Name Type Description
configs JflowConfigs

配置


<static> interateNodeStack()

循环当前栈中节点

Properties:
Name Type Description
循环访问栈中每个节点 stackIteratorCallback

<static> removeFromLinkStack(target)

删除连线对象

Parameters:
Name Type Description
target Node

连线对象


<static> removeFromStack(target)

删除节点对象

Parameters:
Name Type Description
target Node

节点对象


<static> replaceFromStack(target, instance)

替换对象

Parameters:
Name Type Description
target Instance

被替换的对象

instance Instance

替换对象


<static> resetChildrenPosition()

重置当前栈中对象的位置