This commit is contained in:
Alexander Wang 2023-05-07 16:18:02 -07:00
parent 7301cb3699
commit 22bd19b55d
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -28,7 +28,7 @@ func main() {
// Create a shape with the ID, "cat"
graph, _, _ = d2oracle.Create(graph, "cat")
// Move the shape "meow" inside the container "cat"
graph, _ = d2oracle.Move(graph, "meow", "cat.meow")
graph, _ = d2oracle.Move(graph, "meow", "cat.meow", false)
// Prints formatted D2 script
fmt.Print(d2format.Format(graph.AST))
}