§12 — Building a lot gallery renderWaferGallery · shared controls · stacked modes · click ↗ to open modal
renderWaferGallery(container, items) renders a lot of wafers in a responsive card grid with shared controls. All cards update together when you change mode, colour, rotation, or flip in the shared toolbar. Switch to a stacked mode (toolbar mode picker) to aggregate the lot — one card per bin or test parameter. Click the ↗ expand icon on any card to open it as a full interactive map. The toolbar's Insights button (opt-in via insights: { enabled: true }) swaps the grid for a lot-wide chart suite — per-wafer yield, bin pareto, process capability, value distributions, and test correlation — with a "Group by" control for any varying wafer metadata field.