GeometryCalculator
in package
PhpOffice\PhpPresentation\GeometryCalculator.
Table of Contents
Constants
Methods
- calculateExtents() : array<string, int>
- Calculate X and Y extents for a set of shapes within a container such as a slide or group.
- calculateOffsets() : array<string, int>
- Calculate X and Y offsets for a set of shapes within a container such as a slide or group.
Constants
X
public
mixed
X
= 'X'
Y
public
mixed
Y
= 'Y'
Methods
calculateExtents()
Calculate X and Y extents for a set of shapes within a container such as a slide or group.
public
static calculateExtents(ShapeContainerInterface $container) : array<string, int>
Parameters
- $container : ShapeContainerInterface
Return values
array<string, int>calculateOffsets()
Calculate X and Y offsets for a set of shapes within a container such as a slide or group.
public
static calculateOffsets(ShapeContainerInterface $container) : array<string, int>
Parameters
- $container : ShapeContainerInterface