PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Positioning
/
Gravity
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; /** * Defines the gravity value based on directional values from a compass. * * **Learn more**: * <a href="https://cloudinary.com/documentation/image_transformations#control_gravity" target="_blank"> * Control gravity for images</a> | * <a href="https://cloudinary.com/documentation/image_transformations#control_gravity" target="_blank"> * Control gravity for videos</a> * * @api */ class Compass extends QualifierMultiValue { use CompassGravityBuilderTrait; const NORTH_WEST = 'north_west'; const NORTH = 'north'; const NORTH_EAST = 'north_east'; const WEST = 'west'; const CENTER = 'center'; const EAST = 'east'; const SOUTH_WEST = 'south_west'; const SOUTH = 'south'; const SOUTH_EAST = 'south_east'; const XY_CENTER = 'xy_center'; /** * Compass constructor. * * @param string $direction */ public function __construct($direction = null) { parent::__construct(); $this->direction($direction); } /** * Sets the compass gravity direction. * * @param string $direction The gravity direction. Use the constants defined in this class. * * @return Compass */ protected function direction($direction) { $this->setSimpleValue('direction', $direction); return $this; } }
[+]
..
[-] Gravity.php
[edit]
[-] CompassGravityBuilderTrait.php
[edit]
[+]
ObjectGravity
[-] FocalGravity.php
[edit]
[-] AutoGravity.php
[edit]
[-] LiquidRescaling.php
[edit]
[-] FocalGravityInterface.php
[edit]
[-] FocalGravityBuilderTrait.php
[edit]
[-] AutoGravityBuilderTrait.php
[edit]
[-] Compass.php
[edit]
[-] AutoGravityObject.php
[edit]
[-] CompassGravity.php
[edit]
[-] GravityQualifierTrait.php
[edit]
[-] GravityQualifier.php
[edit]