/** * @param Point $point * @param OutputFormatterStyleInterface $style * @param int $depth * @param int $x * @param int $y * @param WindowBounds $windowBounds */ private function deeperToDrawPoint(Point $point, OutputFormatterStyleInterface $style = null, $depth = 0, $x = 0, $y = 0, WindowBounds $windowBounds) { if ($this->outOfBoundsCheck($x, $y, $this->drawTable, $windowBounds)) { return; } $registeredDepth = $this->depthRegister->getDepthFor($x, $y); if ($registeredDepth !== null && $depth < $registeredDepth) { return; } if ($style = $newStyle = $point->getStyleOrParent($style)) { $symbol = $style->apply($point->getStyledSymbol()); } else { $symbol = $point->getStyledSymbol(); } $this->drawTable->setSymbol($symbol, $x, $y); $this->depthRegister->registerDepth($x, $y, $depth); }