Add raster tool with slide, layout, and master scopes
CI / build (push) Canceled after 0s

- Add 12 × 8 and 24 × 16 wireframe presets plus custom columns, rows, gutter, opacity, and colour
- Place the raster on the current slide, its layout, or the slide master so background rasters sit behind content
- Keep one raster per presentation: add clears every scope and remove cleans the whole presentation
- Share the colour swatch control across grids, guidelines, and rasters, including grey
- Add raster geometry tests and document scope, background, and export caveats
This commit is contained in:
schihei committed 2026-11-25 13:03:43 +01:00
1 parent e223dc61c8
commit 9889ce1025
10 files changed
+1106 -206

No files matched your search

+16 -1
View File
@@ -33,8 +33,9 @@ collapsed; click a section title to expand it.
- **Custom Grid**: Create a grid on the current slide with adjustable spacing, opacity, and color.
- **Guidelines**: Add horizontal or vertical guidelines at specific positions with customizable colors.
- **Raster**: Add a wireframe cell grid (12 × 8, 24 × 16, or custom) to the current slide, this slide's layout, or the slide master for placing objects, then remove it.
> Grids and guidelines are ordinary slide shapes. They are included in slideshow, print, and export output. Remove them before presenting.
> Grids, guidelines, and raster cells are ordinary shapes. They are included in slideshow, print, and export output. Remove them before presenting.
### Settings
@@ -205,6 +206,20 @@ manifest.xml # Add-in manifest
2. Click **Add guide** to create a guideline.
3. Click **Remove guides** to delete all guidelines on the current slide.
#### Raster
1. Select the slide where objects should be placed.
2. Choose **Place on**:
- **Current slide** - sits on top of the slide content.
- **This slide's layout (background)** - sits behind content on every slide using that layout.
- **Slide master (all slides)** - sits behind content on every slide in the presentation.
3. Choose the **12 × 8** or **24 × 16** preset, or select **Custom** and enter columns, rows, gutter, and opacity.
4. Pick a color. Gray at 100 % matches the template wireframes; lower opacity keeps existing content visible.
5. Click **Add raster**. Any existing raster in the presentation is replaced, so only one raster is active at a time.
6. Click **Remove raster** before presenting. This removes it from the current slide, all layouts, and the slide master.
The hint below the controls shows the resulting cell size in millimetres and the number of cells (maximum 600). Layout/master rasters are background graphics and do not appear on slides that use **Hide Background Graphics**. Because a layout/master raster is inherited by every slide that uses it, prefer **12 × 8** on large presentations.
## Tips
- **Selection order**: For Match Properties and Match Sizes, the source is the first shape in PowerPoint's selection/z-order, which is not guaranteed to be the shape you clicked first. Verify the source shape before applying.