ndpane
represents a splitpane.
example
var ndpane = ;var unpack = ; var pane = ; // 16 panespane; // split horizontallypaneleafs1; // split bottom half vertically console;// [// [1, 1, 1, 1],// [1, 1, 1, 1],// [9, 9, 11, 11],// [9, 9, 11, 11]// ]
api
ndpane(size, [arr])
.split(vertical)
.merge()
.flip()
.north(offset)
.south(offset)
.west(offset)
.east(offset)
.serialize()
Returns an array representation of a tree that you can use to create a copy.
var tree = ;treeleafs0;var copy = ;
license
MIT