You are here

private static function PHPExcel_Writer_Excel5_Xf::_mapTextRotation in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php \PHPExcel_Writer_Excel5_Xf::_mapTextRotation()

* Map to BIFF8 codes for text rotation angle * *

Parameters

int $textRotation: * @return int

1 call to PHPExcel_Writer_Excel5_Xf::_mapTextRotation()
PHPExcel_Writer_Excel5_Xf::writeXf in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php
* Generate an Excel BIFF XF record (style or cell). * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Xf.php, line 505

Class

PHPExcel_Writer_Excel5_Xf
PHPExcel_Writer_Excel5_Xf

Code

private static function _mapTextRotation($textRotation) {
  if ($textRotation >= 0) {
    return $textRotation;
  }
  if ($textRotation == -165) {
    return 255;
  }
  if ($textRotation < 0) {
    return 90 - $textRotation;
  }
}