"use client"; import { motion } from "framer-motion"; import { COLORS, VizFrame } from "./common"; const RINGS = [ { label: "Artificial Intelligence", short: "AI", r: 200, sub: "Search · planning · reasoning · knowledge", examples: "expert systems · A* · symbolic logic", }, { label: "Machine Learning", short: "ML", r: 140, sub: "Programs that learn rules from data", examples: "regression · trees · SVM · k-means", }, { label: "Deep Learning", short: "DL", r: 80, sub: "Many-layered neural networks", examples: "CNN · transformer · YOLO · DETR", }, ]; export function NestedVenn({ width = 760, height = 480, }: { width?: number; height?: number; }) { const cx = width / 2; const cy = height / 2 + 18; return ( {/* Concentric rings */} {RINGS.map((ring, i) => ( ))} {/* Labels inside each ring at the top */} {RINGS.map((ring, i) => { const y = cy - ring.r + 22; const fontSize = i === 0 ? 14 : i === 1 ? 13 : 12; return ( {ring.short} · {ring.label} ); })} {/* Inner-most short examples list, stacked at the centre */} CNN · Transformer YOLO · DETR ); }