addVisualizer method

void addVisualizer(
  1. ChantLayoutElement chantLayoutElement
)

Implementation

void addVisualizer(ChantLayoutElement chantLayoutElement) {
  if (!chantLayoutElement.ignoreBounds) {
    if (bounds.isEmpty) {
      bounds = chantLayoutElement.bounds.clone();
    } else {
      bounds += chantLayoutElement.bounds;
    }
  }
  visualizers.add(chantLayoutElement);
}