TreemapLayout
extends Layout
The TreemapLayout class represents a layout that positions objects using the treemap algorithm. To create a TreemapLayout object and apply it to a collection, use the layout function:
let tl = msc.layout("treemap", {width: 800, height: 500});
collection.layout = tl;
Properties
| property | explanation | type | default value | 
|---|---|---|---|
| type  | the type of the layout | String | “treemap” | 
| group  | the group that uses this layout | Group | |
| width | the width of the top level container | Number | |
| height | the height of the top level container | Number | |
| top | the y coordinate of the top level container | Number | |
| left | the x coordinate of the top level container | Number | 
Methods inherited from Layout
| method | explanation | return type | 
|---|---|---|
| clone()  | returns a copy of this layout | void | 
| run()  | apply this layout | void |