feat(npcs): inspect cards, Show overlay, and optional external link

Clicking an NPC tile opens description cards (multi-select accordion); Show puts avatars on screen. Optional URL opens a webview tab. Avatar pan in the editor commits on pointer up.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-08-19 10:42:57 +08:00
parent 1a9f0f2557
commit 0f4bb76b41
35 changed files with 1189 additions and 259 deletions
@@ -62,7 +62,7 @@ export function SceneGridOverlay({ grid, viewport }: Props) {
useEffect(() => {
const canvas = canvasRef.current;
if (!canvas || !viewport || !grid?.enabled) return;
const dpr = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
const dpr = 1;
const w = Math.max(1, Math.round(viewport.w));
const h = Math.max(1, Math.round(viewport.h));
canvas.width = Math.round(w * dpr);