Trait treemap::Layout

source ·
pub trait Layout {
    fn layout(&mut self, model: &mut Box<dyn MapModel>, bounds: Rect);
}
Expand description

The interface for the treemap layout algorithm.

Required Methods

Arrange the items in the given MapModel to fill the given rectangle.

Parameters
  • model: The MapModel.
  • bounds: The bounding rectangle for the layout.

Implementors