Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 853 Bytes

UPGRADE.md

File metadata and controls

28 lines (20 loc) · 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().