_('None'), SYSMAP_SHAPE_BORDER_TYPE_SOLID => '———', SYSMAP_SHAPE_BORDER_TYPE_DOTTED => '· · · ·', SYSMAP_SHAPE_BORDER_TYPE_DASHED => '- - - -' ]; $horizontal_align_types = [ SYSMAP_SHAPE_LABEL_HALIGN_LEFT => _('Left'), SYSMAP_SHAPE_LABEL_HALIGN_CENTER => _('Center'), SYSMAP_SHAPE_LABEL_HALIGN_RIGHT => _('Right') ]; $vertical_align_types = [ SYSMAP_SHAPE_LABEL_VALIGN_TOP => _('Top'), SYSMAP_SHAPE_LABEL_VALIGN_MIDDLE => _('Middle'), SYSMAP_SHAPE_LABEL_VALIGN_BOTTOM => _('Bottom') ]; /** * Get font select element. * * @param string $name * * @return CSelect */ function createFontSelect(string $name): CSelect { return (new CSelect($name)) ->setId($name) ->addOptionGroup((new CSelectOptionGroup(_('Serif')))->addOptions(CSelect::createOptionsFromArray([ 0 => 'Georgia', 1 => 'Palatino', 2 => 'Times New Roman' ]))) ->addOptionGroup((new CSelectOptionGroup(_('Sans-Serif')))->addOptions(CSelect::createOptionsFromArray([ 3 => 'Arial', 4 => 'Arial Black', 5 => 'Comic Sans', 6 => 'Impact', 7 => 'Lucida Sans', 8 => 'Tahoma', 9 => 'Helvetica', 10 => 'Verdana' ]))) ->addOptionGroup((new CSelectOptionGroup(_('Monospace')))->addOptions(CSelect::createOptionsFromArray([ 11 => 'Courier New', 12 => 'Lucida Console' ]))); } ?>