From 1cc333ce73d5b9e17c5c125b528c3eea8eac88c8 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 5 May 2024 10:36:30 +0200 Subject: [PATCH] Add default parameters for PlaceModifier --- src/Modifiers/PlaceModifier.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Modifiers/PlaceModifier.php b/src/Modifiers/PlaceModifier.php index aed2ea56..836066fa 100644 --- a/src/Modifiers/PlaceModifier.php +++ b/src/Modifiers/PlaceModifier.php @@ -13,9 +13,9 @@ class PlaceModifier extends SpecializableModifier { public function __construct( public mixed $element, - public string $position, - public int $offset_x, - public int $offset_y, + public string $position = 'top-left', + public int $offset_x = 0, + public int $offset_y = 0, public int $opacity = 100 ) { }