build method

  1. @override
BaseTreeMapRenderer<D> build()
override

Implementation

@override
BaseTreeMapRenderer<D> build() {
  switch (tileType) {
    case TreeMapTileType.dice:
      return DiceTreeMapRenderer<D>(
        config: this,
        rendererId: customRendererId,
      );
    case TreeMapTileType.slice:
      return SliceTreeMapRenderer<D>(
        config: this,
        rendererId: customRendererId,
      );
    case TreeMapTileType.sliceDice:
      return SliceDiceTreeMapRenderer<D>(
        config: this,
        rendererId: customRendererId,
      );
    case TreeMapTileType.squarified:
      return SquarifiedTreeMapRenderer<D>(
        config: this,
        rendererId: customRendererId,
      );
  }
}