mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 11:07:01 -06:00
A group's child coordinates scale its shapes' boxes, but extrusion depths, contour widths and bevel sizes are points, as PowerPoint draws them. The renderer applied them in the child space, so the group's scale multiplied them: a 1 pt contour on a small extruded cube in a legacy group (1360 child units across a 61 pt group) was drawn hundreds of points wide, a band across the whole slide, and the cube's extrusion ran off towards the vanishing point. per_point() gives the shape-space units per point (the inverse of the child-coordinate scale that line_space already separates for line widths); the extrusion depth, contour width and bevel width and height are converted with it before drawing. Outside a group it is 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>