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) { if (!$this->init && $this->getParent()) { $this->xIndex = $this->getParent()->getSizenX(); $this->init = true; } $marginWidth = $this->xIndex == $this->getParent()->getSizenX() ? 0 : $this->marginWidth; $this->xIndex -= $node->getRealSizenX() + $marginWidth; }
function postFilter(\Manialib\Manialink\Elements\Base $node) { $this->xIndex += $node->getRealSizenX() + $this->marginWidth; }