1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-21 05:01:20 +02:00

Merge branch 'develop' into feature/standard-rules

This commit is contained in:
Oliver Vogel
2024-01-31 16:25:56 +01:00
3 changed files with 33 additions and 2 deletions

View File

@@ -29,7 +29,6 @@ class Ellipse implements DrawableInterface
) { ) {
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
* *

View File

@@ -160,7 +160,6 @@ interface ImageInterface extends IteratorAggregate, Countable
*/ */
public function resolution(): ResolutionInterface; public function resolution(): ResolutionInterface;
/** /**
* Set image resolution * Set image resolution
* *

View File

@@ -89,6 +89,14 @@ interface SizeInterface
* @return SizeInterface * @return SizeInterface
*/ */
public function movePivot(string $position, int $offset_x = 0, int $offset_y = 0): 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; public function alignPivotTo(SizeInterface $size, string $position): SizeInterface;
/** /**
@@ -99,11 +107,36 @@ interface SizeInterface
* @return PointInterface * @return PointInterface
*/ */
public function relativePositionTo(SizeInterface $size): PointInterface; public function relativePositionTo(SizeInterface $size): PointInterface;
/**
* @see ImageInterface::resize()
*/
public function resize(?int $width = null, ?int $height = null): SizeInterface; public function resize(?int $width = null, ?int $height = null): SizeInterface;
/**
* @see ImageInterface::resizeDown()
*/
public function resizeDown(?int $width = null, ?int $height = null): SizeInterface; public function resizeDown(?int $width = null, ?int $height = null): SizeInterface;
/**
* @see ImageInterface::scale()
*/
public function scale(?int $width = null, ?int $height = null): SizeInterface; public function scale(?int $width = null, ?int $height = null): SizeInterface;
/**
* @see ImageInterface::scaleDown()
*/
public function scaleDown(?int $width = null, ?int $height = null): SizeInterface; public function scaleDown(?int $width = null, ?int $height = null): SizeInterface;
/**
* @see ImageInterface::cover()
*/
public function cover(int $width, int $height): SizeInterface; public function cover(int $width, int $height): SizeInterface;
/**
* @see ImageInterface::contain()
*/
public function contain(int $width, int $height): SizeInterface; public function contain(int $width, int $height): SizeInterface;
public function containMax(int $width, int $height): SizeInterface; public function containMax(int $width, int $height): SizeInterface;
} }