function postFilter(\Manialib\Manialink\Elements\Base $node) { $this->xIndex += $node->getRealSizenX() + $this->marginWidth; if (!$this->maxHeight || $node->getRealSizenY() > $this->maxHeight) { $this->maxHeight = $node->getRealSizenY(); } $this->currentLineElementCount++; }
function preFilter(\ManiaLib\Manialink\Elements\Base $node) { $this->yIndex += $node->getRealSizenY() + $this->marginHeight; }