CompassPositionTrait
trait CompassPositionTrait
Trait CompassPositionTrait
Methods
gravity(string $compassGravity)
Sets the compass direction.
offsetX(int|float|string $x)
Sets the x offset.
offsetY(int|float|string $y)
Sets the y offset.
offset(int|float|string $x = null, int|float|string $y = null)
Sets the x and y offset.
Details
CompassGravityTrait
gravity(string $compassGravity)
Sets the compass direction.
The compass direction represents a location in the image, for example, Gravity::northEast() represents the top right corner.
$this
offsetX(int|float|string $x)
Sets the x offset.
$this
offsetY(int|float|string $y)
Sets the y offset.
OffsetTrait
offset(int|float|string $x = null, int|float|string $y = null)
Sets the x and y offset.