DimensionsQualifierTrait
trait DimensionsQualifierTrait
Trait DimensionsQualifierTrait
Methods
width(int|float $width)
Sets the width of the asset.
height(int|float $height)
Sets the height of the asset.
aspectRatio(float|array ...$aspectRatio)
Sets the aspect ratio of the asset.
dpr(float $dpr)
Sets the device pixel ratio.
Details
static Width
width(int|float $width)
Sets the width of the asset.
static Height
height(int|float $height)
Sets the height of the asset.
static AspectRatio
aspectRatio(float|array ...$aspectRatio)
Sets the aspect ratio of the asset.
static Dpr
dpr(float $dpr)
Sets the device pixel ratio.