trait ObjectGravityPriorityBuilderTrait

Trait ObjectGravityPriorityBuilderTrait

Properties

QualifierMultiValue $value

Methods

focus(int|null $weight = null)

Gives priority to objects that are in focus, with the specified weighting.

center(int|null $weight = null)

Gives priority to objects closer to the center of the asset, with the specified weighting.

large(int|null $weight = null)

Gives priority to larger objects, with the specified weighting.

priority(string $priorityName = null, int $weight = null)

Sets any priority to the specified weighting.

Details

$this focus(int|null $weight = null)

Gives priority to objects that are in focus, with the specified weighting.

Parameters

Name Type Description
$weight int|null The priority weighting.

Return Value

$this

$this center(int|null $weight = null)

Gives priority to objects closer to the center of the asset, with the specified weighting.

Parameters

Name Type Description
$weight int|null The priority weighting.

Return Value

$this

$this large(int|null $weight = null)

Gives priority to larger objects, with the specified weighting.

Parameters

Name Type Description
$weight int|null The priority weighting.

Return Value

$this

$this priority(string $priorityName = null, int $weight = null)

Sets any priority to the specified weighting.

Parameters

Name Type Description
$priorityName string The name of the priority.
$weight int The priority weighting.

Return Value

$this