• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPOffice / PHPPresentation / 33370948072
95%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 08:05AM UTC
Jobs 1
Files 141
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Aug 2026 08:01AM UTC coverage: 93.885% (+0.4%) from 93.494%
33370948072

push

github

web-flow
PowerPoint2007 Reader : Read a group of shapes back (#947)

* PowerPoint2007 Reader : Read a group back, and keep the angle it was turned by

`loadSlideShapes()` had no branch for `p:grpSp`, so a group and everything
inside it was dropped without a word. A deck written by this library and read
back lost every shape it had grouped.

The shapes of a group are written in the coordinate space `a:chOff`/`a:chExt`
declares, which is the slide's own only when the group has not been moved or
resized. Reading them at face value puts them in the wrong place, so they are
mapped into the parent space the way LibreOffice maps them:

    child = (child - chOff) x (ext / chExt) + off

with a factor of 1 wherever `a:chExt` is missing or zero. A group carries no
coordinates of its own here -- it reports those of the shapes it holds -- so
the mapping is baked into those shapes, nested groups included. The identity
case, which is what this library writes, costs nothing: it is recognised and
skipped.

Reading a group needs a container that is not the slide, and every shape
loader took `$oSlide` for both roles at once: the source of the relationship
index, and the place to put the shape. They now take the container separately.

The Writer, meanwhile, was the only shape writer not writing `rot`, so the
angle of a group was lost on save. It writes it now, which is also what makes
the angle survive the round trip.

`PPTX_Group.pptx` is the first fixture in the suite holding a real `p:grpSp`;
its transform is deliberately not the identity one, so the mapping is what the
test measures. The Writer gains its first assertions on the `a:xfrm` of a
group at all.

* PowerPoint2007 Writer : Write the relationships of a group at any depth

A group can hold a group. The relationship loops went one level down and no
further, so a hyperlink, an image, a chart or a comment on a shape two groups
deep got no relationship written for it: the slide referenced `r:id=""`, and
the target it mean... (continued)

66 of 70 new or added lines in 3 files covered. (94.29%)

10762 of 11463 relevant lines covered (93.88%)

65.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
90.04
0.2% src/PhpPresentation/Reader/PowerPoint2007.php
Jobs
ID Job ID Ran Files Coverage
1 33370948072.1 31 Aug 2026 08:05AM UTC 141
93.88
GitHub Action Run
Source Files on build 33370948072
  • Tree
  • List 141
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 707a4ba6 on github
  • Prev Build on master (#33013008163)
  • Next Build on master (#33378191692)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc