protected function drawBodyLabel($x, $y, $options) { if (isset($options['labelGrahaFont'])) { $this->Renderer->setOptions($options['labelGrahaFont']); } $bodyLabelPoints = $this->Chakra->getBodyLabelPoints($this->options); foreach ($bodyLabelPoints as $body => $point) { if (!array_key_exists($body, Graha::$graha) && isset($options['labelExtraFont'])) { $this->Renderer->setOptions($options['labelExtraFont']); } $bodyLabel = $this->getBodyLabel($body, ['labelGrahaType' => $this->options['labelGrahaType'], 'labelGrahaCallback' => $this->options['labelGrahaCallback']]); $this->Renderer->drawText($bodyLabel, $point['x'] + $x, $point['y'] + $y, ['textAlign' => $point['textAlign'], 'textValign' => $point['textValign']]); } }
/** * Set options. * * @param array $options Options to set */ public function setOptions($options) { $this->Renderer->setOptions($options); }