コード例 #1
0
ファイル: SvgEngine.php プロジェクト: fixin/fixin
 public function render(array $groups) : string
 {
     $itemGroups = $this->processor->getGroups();
     $this->items = [];
     foreach ($groups as $name => $data) {
         $shiftAngle = $data['shiftAngle'] ?? 0;
         $this->placeItems($itemGroups[$name], $data['x'], $data['y'], $shiftAngle + 0, $shiftAngle + 360);
     }
     return $this->renderGroups($groups) . $this->renderLines() . $this->renderItems();
 }
コード例 #2
0
ファイル: Item.php プロジェクト: fixin/fixin
 public function isMainClass() : bool
 {
     return $this->processor->getMainClass($this->reflection->getNamespaceName()) === $this;
 }