Something went wrong. Try again.
doll.systems community website
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233---import { jsonForHtml, type LinkGraphData } from '../lib/layouts';type Props = { data: LinkGraphData; current?: string; overview?: boolean; id?: string };const { data, current, overview = false, id = 'graph' } = Astro.props;---
<aside class="graph-panel" aria-label={overview ? 'All wiki pages' : 'Linked pages'} id={id} tabindex="-1"> <p id="graph-help" class="visually-hidden"> Pages, posts, authors, and categories form moving clusters. Tab between pages. Enter opens a page. Drag or use arrow keys to reposition nodes; Shift moves them farther. The current page returns to the center when released. Escape dismisses a preview. </p> <div class="link-graph" data-current={current} data-overview={overview || undefined}> <script type="application/json" data-graph-data set:html={jsonForHtml(data)} /> <canvas class="graph-bitmap" aria-hidden="true"></canvas> <svg role="group" aria-label="Page connections" aria-describedby="graph-help"></svg> <ul class="graph-fallback" hidden aria-label="Linked pages"> {data.nodes.map((page) => ( <li> <a href={page.href}>{page.title}</a> </li> ))} </ul> <div class="graph-crosshair crosshair-a" aria-hidden="true"></div> <div class="graph-crosshair crosshair-b" aria-hidden="true"></div> </div></aside>