generate a grid of objects from the given cut indices
each cut index applies after the object at that index
e.g. [0 1 2 3 4 5 6 7] with cutIndices [0, 2, 6] => [[0], [1, 2], [3,4,5,6], [7]]
Layout runs the grid layout on containers with rows/columns
Note: children are not allowed edges or descendants
1. Run grid layout on the graph root
2. Set the resulting dimensions to the graph root
don't consider layouts with rows longer than targetSize*1.2 or shorter than targetSize/1.2
next try layouts with a 25% larger threshold
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.