prependVisualizer method

void prependVisualizer(
  1. ChantLayoutElement chantLayoutElement
)

Implementation

void prependVisualizer(ChantLayoutElement chantLayoutElement) {
  if (bounds.isEmpty) {
    bounds = chantLayoutElement.bounds.clone();
  } else {
    bounds += chantLayoutElement.bounds;
  }

  visualizers.insert(0, chantLayoutElement);
}