Element: #531 Stage (layout/app-shell) What it shows: An app shell with a persistent stage behind the pages: mounted once, click-through content, hide and pause. When to use: Map, canvas, video or 3D products where the pages float over one live layer that must keep its state across routes. Spec: - ` (pathname = path)} {stage} {stageVisible} persistPanel={false} mainId={null} skipLink={false}>` with `stage` a snippet that draws the map - The map is a draggable grid whose camera lives in `$state`; an attachment counts each mount in `mounts` with `untrack` (a tracked `+=` would loop), shown in the page - One module `id: 'field'` with 3 items: Leads, Routes, Report - The page is `` with a `ca-stage-panel` wrapper around a `Card` that holds the mount count hint and an outlined `Button` toggling `stageVisible` - Stage frame height is `height: 440px` Tags: app-shell, stage, map, canvas, persistent, pointer-events, inset Needs: @codeatlasdev/ui@4.6.0 Components: AppShellLayout, Button, Card, PageShell Live demo: https://ui.codeatlas.com.br/docs/layout/app-shell#stage {#snippet stage(s: { hidden: boolean })} {/snippet}
(pathname = path)} {stage} {stageVisible} persistPanel={false} mainId={null} skipLink={false}>

Stage mounted {mounts} time(s). Navigate the panel: the count stays at 1. Drag the stage behind this card; empty areas pass clicks through.