import { Card, CardBody, CardHeader, H1, H2, Stack, Table, Text, useHostTheme, } from "cursor/canvas"; /** Y=0 = row of 4; +Y toward audience. Side cans on walls at ±3.5 m. */ const WALL = 3.5; const BEAM = 0.3; const FAR = -8.0; const FIXTURES: { key: string; label: string; kind: "can" | "mover"; x: number; y: number; dmx: number; channels: number; }[] = [ { key: "c3", label: "#3", kind: "can", x: -1.8, y: 0.0, dmx: 103, channels: 8 }, { key: "c4", label: "#4", kind: "can", x: -0.6, y: 0.0, dmx: 111, channels: 8 }, { key: "c5", label: "#5", kind: "can", x: 0.6, y: 0.0, dmx: 119, channels: 8 }, { key: "c6", label: "#6", kind: "can", x: 1.8, y: 0.0, dmx: 127, channels: 8 }, { key: "c2", label: "#2", kind: "can", x: -WALL, y: 1.2, dmx: 95, channels: 8 }, { key: "c7", label: "#7", kind: "can", x: WALL, y: 1.2, dmx: 135, channels: 8 }, { key: "m1", label: "M1", kind: "mover", x: -0.3, y: 1.1, dmx: 0, channels: 43 }, { key: "m2", label: "M2", kind: "mover", x: 0.3, y: 1.1, dmx: 44, channels: 43 }, { key: "c1", label: "#1", kind: "can", x: -WALL, y: 2.4, dmx: 87, channels: 8 }, { key: "c8", label: "#8", kind: "can", x: WALL, y: 2.4, dmx: 143, channels: 8 }, { key: "c9", label: "#9", kind: "can", x: -WALL, y: -0.8, dmx: 151, channels: 8 }, { key: "c10", label: "#10", kind: "can", x: WALL, y: -0.8, dmx: 159, channels: 8 }, { key: "c11", label: "#11", kind: "can", x: -WALL, y: -6.8, dmx: 167, channels: 8 }, { key: "c12", label: "#12", kind: "can", x: WALL, y: -6.8, dmx: 175, channels: 8 }, { key: "c13", label: "#13", kind: "can", x: -WALL, y: -7.65, dmx: 183, channels: 8 }, { key: "c14", label: "#14", kind: "can", x: 0, y: -7.65, dmx: 191, channels: 8 }, { key: "c15", label: "#15", kind: "can", x: WALL, y: -7.65, dmx: 199, channels: 8 }, { key: "m3", label: "M3", kind: "mover", x: -1.75, y: -7.65, dmx: 257, channels: 43 }, { key: "m4", label: "M4", kind: "mover", x: 1.75, y: -7.65, dmx: 300, channels: 43 }, ]; const BUILDING_W = 7; const DEPTH = 2.4; export default function StageMap() { const theme = useHostTheme(); const pad = 0.55; const x0 = -BUILDING_W / 2 - pad; const x1 = BUILDING_W / 2 + pad; const y0 = FAR - 0.55; const y1 = DEPTH + 0.55; const vbW = x1 - x0; const vbH = y1 - y0; const px = 88; const svgW = vbW * px; const svgH = vbH * px; const sx = (x: number) => ((x - x0) / vbW) * svgW; const sy = (y: number) => ((y1 - y) / vbH) * svgH; const dim = theme.text.tertiary; const ink = theme.text.primary; const accent = theme.accent.primary; const canFill = theme.fill.tertiary; const stroke = theme.stroke.primary; const onAccent = theme.text.onAccent; function DimH( xA: number, xB: number, y: number, label: string, side: "above" | "below" = "above", ) { const ya = sy(y); const x1p = sx(Math.min(xA, xB)); const x2p = sx(Math.max(xA, xB)); const mid = (x1p + x2p) / 2; const ty = side === "above" ? ya - 8 : ya + 14; return ( {label} ); } function DimV( yA: number, yB: number, x: number, label: string, side: "left" | "right" = "right", ) { const xa = sx(x); const y1p = sy(Math.max(yA, yB)); const y2p = sy(Math.min(yA, yB)); const mid = (y1p + y2p) / 2; const tx = side === "right" ? xa + 8 : xa - 8; return ( {label} ); } return (

xchc

Building {BUILDING_W} m wide · walls at ±{WALL} m · Y = 0 at row of 4 · +Y toward audience
Plan (audience at bottom) {/* Wall labels */} 3.5 m from centre 3.5 m from centre {DimH(0, -WALL, 1.8, "3.5 m", "above")} {DimH(0, WALL, 1.8, "3.5 m", "below")} centre AUDIENCE row of 4 {DimH(-3.5, 3.5, DEPTH + 0.32, "7.0 m building", "below")} {DimH(0, 0.6, 0, "0.6", "above")} {DimH(0, 1.8, 0, "1.8", "above")} {DimH(0, -0.6, 0, "0.6", "below")} {DimH(0, -1.8, 0, "1.8", "below")} {DimH(0, 0.3, 1.1, "0.3", "above")} {DimV(0, 1.1, 2.4, "1.1 m movers")} {DimV(0, 1.2, 2.4, "1.2 m")} {DimV(0, 2.4, -2.4, "2.4 m", "left")} {DimV(-0.8, -6.8, -3.95, "6 m", "right")} beam beam {FIXTURES.map((f) => { const cx = sx(f.x); const cy = sy(f.y); const r = f.kind === "mover" ? 14 : 12; return ( {f.kind === "mover" ? ( ) : ( )} {f.label} 3 ? cx - 18 : cx} y={f.x < -3 || f.x > 3 ? cy + 4 : cy + r + 14} textAnchor={f.x < -3 ? "start" : f.x > 3 ? "end" : "middle"} fontSize={10} fill={dim} stroke="none" > {f.dmx}–{f.dmx + f.channels - 1} ); })}

Coordinates

Source: integrate_u_patterns.py LAYOUT_M

beamZ BCC145 · 8 Channel

Cans #1–#15. Channel 1 is the fixture’s start address.

Small Eye 7 Mover · 43 Channel

M1–M4. Channel 1 is the fixture’s start address.
); }