Documentation ¶
Index ¶
- func Create(g *d2graph.Graph, key string) (_ *d2graph.Graph, newKey string, err error)
- func Delete(g *d2graph.Graph, key string) (_ *d2graph.Graph, err error)
- func DeleteIDDeltas(g *d2graph.Graph, key string) (deltas map[string]string, err error)
- func GetEdge(g *d2graph.Graph, absID string) *d2graph.Edge
- func GetObj(g *d2graph.Graph, absID string) *d2graph.Object
- func GetParentID(g *d2graph.Graph, absID string) (string, error)
- func IsLabelKeyID(key, label string) bool
- func Move(g *d2graph.Graph, key, newKey string) (_ *d2graph.Graph, err error)
- func MoveIDDeltas(g *d2graph.Graph, key, newKey string) (deltas map[string]string, err error)
- func ReconnectEdgeIDDelta(g *d2graph.Graph, edgeID, srcID, dstID string) (string, error)
- func Rename(g *d2graph.Graph, key, newName string) (_ *d2graph.Graph, err error)
- func RenameIDDeltas(g *d2graph.Graph, key, newName string) (deltas map[string]string, err error)
- func ReparentIDDelta(g *d2graph.Graph, key, parentKey string) (string, error)
- func Set(g *d2graph.Graph, key string, tag, value *string) (_ *d2graph.Graph, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIDDeltas ¶
func IsLabelKeyID ¶
func Move ¶
Does not handle edge keys, on account of edge keys can only be reserved, e.g. (a->b).style.color: red
func MoveIDDeltas ¶
func ReconnectEdgeIDDelta ¶
func RenameIDDeltas ¶
func ReparentIDDelta ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.