| @@ 464-467 (lines=4) @@ | ||
| 461 | $s=sin($angle); |
|
| 462 | ||
| 463 | switch($tpl['_rotationAngle']) { |
|
| 464 | case -90: |
|
| 465 | $tx = -$tpl['box']['lly']; |
|
| 466 | $ty = $tpl['box']['urx']; |
|
| 467 | break; |
|
| 468 | case -180: |
|
| 469 | $tx = $tpl['box']['urx']; |
|
| 470 | $ty = $tpl['box']['ury']; |
|
| @@ 468-471 (lines=4) @@ | ||
| 465 | $tx = -$tpl['box']['lly']; |
|
| 466 | $ty = $tpl['box']['urx']; |
|
| 467 | break; |
|
| 468 | case -180: |
|
| 469 | $tx = $tpl['box']['urx']; |
|
| 470 | $ty = $tpl['box']['ury']; |
|
| 471 | break; |
|
| 472 | case -270: |
|
| 473 | $tx = $tpl['box']['ury']; |
|
| 474 | $ty = -$tpl['box']['llx']; |
|
| @@ 472-475 (lines=4) @@ | ||
| 469 | $tx = $tpl['box']['urx']; |
|
| 470 | $ty = $tpl['box']['ury']; |
|
| 471 | break; |
|
| 472 | case -270: |
|
| 473 | $tx = $tpl['box']['ury']; |
|
| 474 | $ty = -$tpl['box']['llx']; |
|
| 475 | break; |
|
| 476 | } |
|
| 477 | } |
|
| 478 | } elseif ($tpl['x'] != 0 || $tpl['y'] != 0) { |
|