| @@ -167,10 +167,12 @@ | ||
| 167 | 167 | $styles['t_font_size'] = Number::units($get_axis_option('axis_font_size')); |
| 168 | 168 | $styles['t_font_adjust'] = $get_axis_option('axis_font_adjust'); |
| 169 | 169 | $styles['t_font_weight'] = $get_axis_option('axis_font_weight'); |
| 170 | 170 | $styles['t_space'] = $get_axis_option('axis_text_space'); |
| 171 | + // BEGIN e2pdf | |
| 171 | 172 | $styles['t_offset_x'] = $get_axis_option('axis_text_offset_x'); |
| 172 | 173 | $styles['t_offset_y'] = $get_axis_option('axis_text_offset_y'); |
| 174 | + // END e2pdf | |
| 173 | 175 | $styles['t_colour'] = new Colour($graph, $graph->getOption( |
| 174 | 176 | ['axis_text_colour_' . $o, $axis_no], 'axis_text_colour', |
| 175 | 177 | ['@', $styles['colour']])); |
| 176 | 178 | $styles['t_line_spacing'] = Number::units($get_axis_option('axis_text_line_spacing')); |
| @@ -423,8 +425,9 @@ | ||
| 423 | 425 | if($this->boxed_text && isset($points[$k + 1])) { |
| 424 | 426 | $pnext = $points[$k + 1]; |
| 425 | 427 | $yoff = ($pnext->position - $p->position) / 2; |
| 426 | 428 | } |
| 429 | + // e2pdf | |
| 427 | 430 | $positions[] = ['x' => $x + $xoff + $this->styles['t_offset_x'], 'y' => $y + $yoff + $this->styles['t_offset_y']]; |
| 428 | 431 | } |
| 429 | 432 | return $positions; |
| 430 | 433 | } |
| @@ -438,8 +441,9 @@ | ||
| 438 | 441 | } elseif($this->boxed_text && isset($points[$k + 1])) { |
| 439 | 442 | $pnext = $points[$k + 1]; |
| 440 | 443 | $xoff = ($pnext->position - $p->position) / 2; |
| 441 | 444 | } |
| 445 | + // e2pdf | |
| 442 | 446 | $positions[] = ['x' => $x + $xoff + $this->styles['t_offset_x'], 'y' => $y + $yoff + $this->styles['t_offset_y']]; |
| 443 | 447 | } |
| 444 | 448 | return $positions; |
| 445 | 449 | } |