Versions in this module Expand all Collapse all v0 v0.0.12 Oct 17, 2021 Changes in this version type Graph + func NewGraphByScene(bs []*scene.BlockDefinition, s *scene.Scene) (*Graph, error) v0.0.11 Sep 19, 2021 v0.0.10 Sep 19, 2021 v0.0.9 Sep 19, 2021 v0.0.8 Sep 19, 2021 v0.0.6 Sep 5, 2021 v0.0.5 Apr 5, 2021 v0.0.4 Apr 5, 2021 v0.0.3 Apr 5, 2021 v0.0.2 Apr 5, 2021 Changes in this version + type Block struct + Id int + Inputs []int + Output [][]int + Properties map[string]interface{} + Status string + Type string + func (b *Block) Done() + func (b *Block) ReSet() + type Graph struct + Blocks map[int]*Block + Links map[int]*Link + func New() *Graph + func NewGraphByDefinition(definition string) (*Graph, error) + func NewGraphByFile(filename string) (*Graph, error) + func (g *Graph) AddBlock(id int, tp string, properties map[string]interface{}, inputs []int, ...) *Block + func (g *Graph) AddLink(id, sourceId, sourceSlot, targetId, targetSlot int) *Link + func (g *Graph) FindBlockById(id int) *Block + func (g *Graph) FindLinkBySourcePort(id, slot int) []*Link + func (g *Graph) Run() []*Block + type GraphX struct + Links []interface{} + Nodes []Node + type Link struct + Id int + IsReady bool + Source Port + Target Port + type Node struct + Id int + Inputs []interface{} + Outputs []interface{} + Properties map[string]interface{} + Type string + type Output struct + Link interface{} + Name string + Type string + type Port struct + Id int + Slot int