添加节点
关键方法
addNode ( nodeData: IPathCommandNode ): PathNode
添加一个节点到末尾。
addNodeBefore ( nodeData: IPathCommandNode, before:PathNode ): PathNode
添加一个节点在指定节点元素的前面。
addNodeAfter ( nodeData: IPathCommandNode, after: PathNode ): PathNode
添加一个节点在指定节点元素的后面。
addNodeAt ( nodeData: IPathCommandNode, index: number ): PathNode
添加一个节点在指定位置。