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

+41
View File
@@ -28,6 +28,7 @@ The sections are:
- **Draft Watermark** - Add/remove draft watermarks
- **Alignment** - Tools for aligning shapes and objects
- **Grid & Guidelines** - Grids and guidelines for the current slide
- **Raster** - Wireframe cell grids for placing objects
- **Settings** - Slide size and version information
## Content Tools
@@ -181,6 +182,46 @@ Adds horizontal or vertical guidelines at specific positions.
**Tip:** Use different colors for different types of guidelines (for example blue for margins and red for key alignment points). Guidelines are also ordinary shapes and appear in output.
## Raster
Creates a wireframe cell grid on the current slide, its layout, or the slide
master. Use it to place objects on a consistent column and row structure, then
remove it before presenting.
**Presets (16:9):**
- **12 × 8** - Coarse wireframe; cells are 26.39 × 22.06 mm.
- **24 × 16** - Fine wireframe; cells are about 12.20 × 10.03 mm.
- **Custom** - Enter your own columns, rows, gutter, and opacity.
**Place on:**
- **Current slide** - Sits on top of the current slide's content.
- **This slide's layout (background)** - Sits behind content on every slide using
the current slide's layout. This is usually the best choice for a content grid.
- **Slide master (all slides)** - Sits behind content on every slide in the
presentation.
**How to use:**
1. Navigate to a slide that uses the layout or master you want to target.
2. Choose **Place on**, then choose a preset or set **Columns**, **Rows**,
**Gutter (mm)**, and **Opacity (%)**.
3. Pick a **Color**. Gray at 100 % matches the template wireframes.
4. Click "Add raster". Any existing raster in the presentation is replaced, so
only one raster is active at a time.
5. Click "Remove raster" when you are finished. This removes the raster 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. A raster is limited to 600 cells.
**Warning:** Raster shapes are **included in slideshow, print, and export
output**. Remove the raster before presenting. Layout and master rasters are
background graphics and are not shown on slides that use **Hide Background
Graphics**; a full-slide picture on the slide can also cover them.
**Performance:** a layout/master raster is inherited by every slide that uses
it. On long presentations, prefer the **12 × 8** preset; a 24 × 16 raster adds
384 shapes to every inherited slide.
## Settings
### Slide Size