mirror of
https://github.com/Intervention/image.git
synced 2025-08-19 12:11:26 +02:00
Merge branch 'develop' into feature/standard-rules
This commit is contained in:
@@ -29,7 +29,6 @@ class Ellipse implements DrawableInterface
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
|
@@ -160,7 +160,6 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
*/
|
||||
public function resolution(): ResolutionInterface;
|
||||
|
||||
|
||||
/**
|
||||
* Set image resolution
|
||||
*
|
||||
|
@@ -89,6 +89,14 @@ interface SizeInterface
|
||||
* @return SizeInterface
|
||||
*/
|
||||
public function movePivot(string $position, int $offset_x = 0, int $offset_y = 0): SizeInterface;
|
||||
|
||||
/**
|
||||
* Align pivot of current object to given position
|
||||
*
|
||||
* @param SizeInterface $size
|
||||
* @param string $position
|
||||
* @return SizeInterface
|
||||
*/
|
||||
public function alignPivotTo(SizeInterface $size, string $position): SizeInterface;
|
||||
|
||||
/**
|
||||
@@ -99,11 +107,36 @@ interface SizeInterface
|
||||
* @return PointInterface
|
||||
*/
|
||||
public function relativePositionTo(SizeInterface $size): PointInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::resize()
|
||||
*/
|
||||
public function resize(?int $width = null, ?int $height = null): SizeInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::resizeDown()
|
||||
*/
|
||||
public function resizeDown(?int $width = null, ?int $height = null): SizeInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::scale()
|
||||
*/
|
||||
public function scale(?int $width = null, ?int $height = null): SizeInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::scaleDown()
|
||||
*/
|
||||
public function scaleDown(?int $width = null, ?int $height = null): SizeInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::cover()
|
||||
*/
|
||||
public function cover(int $width, int $height): SizeInterface;
|
||||
|
||||
/**
|
||||
* @see ImageInterface::contain()
|
||||
*/
|
||||
public function contain(int $width, int $height): SizeInterface;
|
||||
|
||||
public function containMax(int $width, int $height): SizeInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user