Create a new grid overlay operation
Record mapping icon IDs to SVG strings
Optional identifier for debugging
Compute the natural grid size (CSS pixels) for the current params. Returns { width, height } that fits icons using itemW/itemH or inferred sizes, including gaps between cells.
Execute the post-processing operation
Canvas 2D rendering context
Query parameters from the image request
Post-processing operation to overlay a grid of SVG icons
Supports query parameters: icons, grid, gap, columns, gridFg, gfg, gridBg, gbg, fg, bg, itemW, itemH, gridAnchor, anchor, gx, gy, bgFill, pixelRatio
Example
Create a grid overlay operation for displaying multiple icons.
See