Skip to content

Commit 1611bff

Browse files
wip
1 parent 8ad127e commit 1611bff

File tree

7 files changed

+16
-11
lines changed

7 files changed

+16
-11
lines changed

src/SlideMasters/Agenda.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ protected function render(): void
3636
if (! empty($this->slideTitle)) {
3737
TextBox::make($this, $this->slideTitle)
3838
->bold()
39-
->rotate(270)
40-
->width($this->presentation->height - 2*$this->verticalPadding)
39+
->rotate(-90)
40+
->width($this->presentation->height - 2 * $this->verticalPadding)
4141
->height(200)
42+
->x(-230)
4243
->centerVertically()
43-
->x($this->verticalPadding)
4444
->size(100)
4545
->uppercase()
4646
->render();
@@ -60,7 +60,7 @@ protected function render(): void
6060
foreach ($this->items as $item) {
6161
if (! $box) {
6262
$box = TextBox::make($this, $item)
63-
->paragraphStyle('bodyText')
63+
->paragraphStyle('tocPoint')
6464
->size(24)
6565
->height($this->presentation->height - $yOffset - 75)
6666
->width($contentWidth)

src/SlideMasters/BulletPoints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function render(): void
3434
{
3535
$titleBox = $this->renderTitle();
3636

37-
$yOffset = $titleBox->height + 75;
37+
$yOffset = $titleBox->height + 100;
3838
$box = null;
3939

4040
foreach ($this->bulletPoints as $bulletPoint) {

src/SlideMasters/FourUp.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ class FourUp extends BaseSlide implements DynamicallyCreatable
1818

1919
public function __construct(
2020
string $title = '',
21-
array $boxes = [],
22-
) {
21+
array $boxes = [],
22+
)
23+
{
2324
$this->slideTitle = $title;
2425
$this->boxes = $boxes;
2526
}
2627

2728
protected function render(): void
2829
{
29-
if (! empty($this->slideTitle)) {
30+
if (!empty($this->slideTitle)) {
3031
$this->renderTitle();
3132
}
3233

@@ -38,12 +39,12 @@ protected function render(): void
3839

3940
protected function makeBoxes(int $index, int $column = 1): void
4041
{
41-
if (! isset($this->boxes[$index - 1])) {
42+
if (!isset($this->boxes[$index - 1])) {
4243
return;
4344
}
4445

4546
$columnGap = 20;
46-
$boxWidth = (int) (($this->presentation->width - (2 * $this->horizontalPadding) - ($columnGap * 3)) / 4);
47+
$boxWidth = (int)(($this->presentation->width - (2 * $this->horizontalPadding) - ($columnGap * 3)) / 4);
4748
$yOffset = 150;
4849
$xOffset = $this->horizontalPadding + (($column - 1) * ($boxWidth + $columnGap));
4950

@@ -60,6 +61,7 @@ protected function makeBoxes(int $index, int $column = 1): void
6061
->alignLeft()
6162
->alignTop()
6263
->width($boxWidth)
64+
->height(400)
6365
->position($xOffset, $yOffset + $title->height + 5)
6466
->render();
6567
}

src/SlideMasters/SixUp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ protected function makeBoxes(int $index, int $column = 1, int $row = 1): void
6060
->alignLeft()
6161
->alignTop()
6262
->width($boxWidth)
63+
->height($boxHeight - $title->height - 10)
6364
->position($xOffset, $yOffset + $title->height + 5)
6465
->render();
6566
}

src/SlideMasters/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function render(): void
5252
->bold()
5353
->backgroundColor(Color::COLOR_DARKBLUE)
5454
->color(Color::COLOR_WHITE)
55-
->alignCenter()
55+
->alignLeft()
5656
->alignMiddle();
5757
}
5858

src/SlideMasters/ThreeUp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected function makeBoxes(int $index, int $column = 1): void
5959
->alignLeft()
6060
->alignTop()
6161
->width($boxWidth)
62+
->height(400)
6263
->position($xOffset, $yOffset + $title->height + 5)
6364
->render();
6465
}

src/SlideMasters/TwoUp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ protected function makeBoxes(int $index, int $column = 1): void
5757
->alignLeft()
5858
->alignTop()
5959
->width($boxWidth)
60+
->height(400)
6061
->position($xOffset, $yOffset + $title->height + 5)
6162
->render();
6263
}

0 commit comments

Comments
 (0)