Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 853 Bytes

Upgrade documentation

Version 0.3.* to 1.0

Add type hints

Scalar type hints for parameters and return type hints were added to all classes and interfaces. Update derived classes accordingly.

Remove interfaces

The following interfaces got removed, use the corresponding classes instead.

  • ImageDimensionsInterface
  • ImportantPartInterface
  • PictureConfigurationInterface
  • PictureConfigurationItemInterface
  • ResizeCalculatorInterface
  • ResizeConfigurationInterface
  • ResizeCoordinatesInterface
  • ResizeOptionsInterface

New important part class

The ImportantPart class got reworked and now uses relative values as fractions between 0 and 1 to represent X/Y coordinates and width/height dimensions. Replace getPosition() with getX() and getY(). Replace getSize() with getWidth() and getHeight().

You can’t perform that action at this time.