免费拖拽
点阵地球
用 2D 画布画成点阵的地球:Natural Earth 的真实海岸线、缎面球体光影和上缘光,不需要 WebGL 或 3D 库。
适合使用的场景
- 门店据点、发货地区、活动城市或用户分布,放在首页或关于我们
- 任何和地点有关的主视觉,不想引入 three.js 或地图服务
注意事项
- 近距离的精细海岸线只覆盖东亚与东南亚(东经 94 到 146 度、南纬 8 度到北纬 44 度),其他地区保持粗海岸
- 标记大约十几个以内,靠得很近的两个用 side 错开标签
- 它显示位置,不是街道地图;要导航请链接到真正的地图
交给你的 agent 安装
一次复制就包含安装命令、使用时机、props 与设计规则。粘贴到 Claude Code、Cursor 或 Codex 即可。
用 CLI 安装
使用 shadcn CLI。源码会复制到你的项目中,每一行都由你掌控。
$ npx shadcn@latest add https://sunui.synvize.com/r/dot-globe.json或手动安装
- 1. 安装依赖。
$ npm install clsx tailwind-merge framer-motion - 2. 如果还没有,在
lib/utils.ts添加cn辅助函数。没有用 shadcn/ui?再加上 sunui-theme.css 提供颜色变量(做法)。然后复制组件代码。dot-globe.tsx"use client"; import { useReducedMotion } from "framer-motion"; import { useCallback, useEffect, useMemo, useRef, useState, type KeyboardEvent, type PointerEvent as ReactPointerEvent, type ReactNode } from "react"; import { cn } from "@/lib/utils"; import { clamp, drawEarth, flight, geo, nearestTurn, readGlobePalette, type Camera, type GlobePalette, type View } from "./dot-globe-core"; export * from "./dot-globe-core"; export type GlobeMarker = { id: string; label: string; lat: number; lon: number; /** Short figure after the label, such as "12 stores" or "105%" */ value?: string; /** Highlighted markers use the accent colour; the rest are muted */ highlight?: boolean; /** Which side of the dot the label sits on; use it to separate two close markers */ side?: "left" | "right"; }; export interface DotGlobeProps { markers?: GlobeMarker[]; /** Controlled focused marker id; the camera flies to it. null shows the whole globe. */ focus?: string | null; defaultFocus?: string | null; onFocusChange?: (id: string | null) => void; /** Where the globe faces with nothing focused, as [lat, lon]. Defaults to the centre of the markers. */ home?: [number, number]; /** Camera distance with nothing focused (radius 1). Larger is smaller on screen. Default 2.8 */ distance?: number; /** Camera distance when a marker is focused. Default 1.7 */ focusDistance?: number; /** Highlight colour: ink is the text colour (default), brand is --sunui-spot */ accent?: "ink" | "brand"; /** Accessible name of the globe */ label?: string; /** Content laid over the globe, such as a heading; it does not block dragging */ children?: ReactNode; className?: string; } const spot = "var(--sunui-spot, var(--primary))"; const glass = "bg-card/85 backdrop-blur-xl shadow-[0_0_0_1px_rgb(0_0_0/0.07),0_8px_24px_-12px_rgb(0_0_0/0.18)] dark:shadow-[inset_0_1px_0_rgb(255_255_255/0.09),0_0_0_1px_rgb(255_255_255/0.09)]"; export function DotGlobe({ markers = [], focus, defaultFocus = null, onFocusChange, home, distance = 2.8, focusDistance = 1.7, accent = "ink", label = "Globe", children, className, }: DotGlobeProps) { const reduce = useReducedMotion(); const [inner, setInner] = useState<string | null>(defaultFocus); const focused = focus !== undefined ? focus : inner; const target = markers.find((m) => m.id === focused) ?? null; const accentCss = accent === "brand" ? spot : "var(--foreground)"; const choose = useCallback((id: string | null) => { setInner(id); onFocusChange?.(id); }, [onFocusChange]); // Callers often build markers inline, so a new array arrives on every render: depend on the numbers, not the array const [homeLat, homeLon] = home ?? [ markers.reduce((a, m) => a + m.lat, 0) / (markers.length || 1), markers.reduce((a, m) => a + m.lon, 0) / (markers.length || 1), ]; const homeView = useMemo<Camera>(() => ({ lat: homeLat, lon: homeLon, dist: distance, tilt: 0, heading: 0, lift: 0 }), [homeLat, homeLon, distance]); const markersRef = useRef(markers); markersRef.current = markers; const root = useRef<HTMLDivElement>(null); const canvas = useRef<HTMLCanvasElement>(null); const pins = useRef(new Map<string, HTMLElement>()); const sim = useRef({ camera: homeView, from: homeView, to: homeView, start: 0, ms: 0, frame: 0, size: [0, 0] as [number, number], palette: null as GlobePalette | null, view: null as View | null }); const render = useCallback(() => { const s = sim.current; s.frame = 0; const ctx = canvas.current?.getContext("2d"); if (!ctx || !s.palette || !s.size[0]) return; let moving = false; if (s.ms) { const t = Math.min(1, (performance.now() - s.start) / s.ms); s.camera = flight(s.from, s.to, t); if (t < 1) moving = true; else s.ms = 0; } const [w, h] = s.size; const view = drawEarth(ctx, s.camera, s.palette, w, h); s.view = view; // Labels are written straight to style, not React state for (const m of markersRef.current) { const el = pins.current.get(m.id); if (!el) continue; const p = view.project(geo(m.lat, m.lon)); const show = p.visible && p.x > 8 && p.x < w - 8 && p.y > 8 && p.y < h - 8; el.style.transform = `translate(${p.x}px, ${p.y}px)`; el.style.visibility = show ? "visible" : "hidden"; } if (moving) s.frame = requestAnimationFrame(render); }, []); const paint = useCallback(() => { if (!sim.current.frame) sim.current.frame = requestAnimationFrame(render); }, [render]); // Size and theme useEffect(() => { const el = root.current, cv = canvas.current; if (!el || !cv) return; const s = sim.current; const recolor = () => { s.palette = readGlobePalette(el); paint(); }; const resize = () => { const dpr = Math.min(2, window.devicePixelRatio || 1); const [w, h] = [cv.clientWidth, cv.clientHeight]; const [pw, ph] = [Math.round(w * dpr), Math.round(h * dpr)]; s.size = [w, h]; if (cv.width === pw && cv.height === ph) return; // Setting the size clears the canvas, so draw again in the same frame instead of waiting for the next one cv.width = pw; cv.height = ph; cv.getContext("2d")?.setTransform(dpr, 0, 0, dpr, 0, 0); cancelAnimationFrame(s.frame); render(); }; recolor(); resize(); const ro = new ResizeObserver(resize); ro.observe(cv); const mo = new MutationObserver(recolor); mo.observe(document.documentElement, { attributes: true, attributeFilter: ["class", "style", "data-theme"] }); const media = window.matchMedia("(prefers-color-scheme: dark)"); media.addEventListener("change", recolor); return () => { ro.disconnect(); mo.disconnect(); media.removeEventListener("change", recolor); cancelAnimationFrame(s.frame); s.frame = 0; }; // accent changes the colour read from the theme }, [paint, render, accent]); // New or moved markers: place their labels on the next frame const markerKey = markers.map((m) => `${m.id}:${m.lat}:${m.lon}`).join("|"); useEffect(() => { paint(); }, [markerKey, paint]); // Fly to the focused marker, or back out const first = useRef(true); useEffect(() => { const s = sim.current; const to: Camera = target ? { lat: target.lat, lon: target.lon, dist: focusDistance, tilt: 0, heading: 0, lift: 0 } : homeView; const instant = reduce || first.current; first.current = false; s.from = { ...s.camera, heading: nearestTurn(s.camera.heading, to.heading) }; s.to = to; s.start = performance.now(); s.ms = instant ? 0 : 1100; if (instant) s.camera = to; paint(); // eslint-disable-next-line react-hooks/exhaustive-deps }, [target?.id, homeView, focusDistance, reduce, paint]); // Drag turns the globe const drag = useRef<{ x: number; y: number } | null>(null); const turn = (dx: number, dy: number) => { const s = sim.current; if (s.ms) return; const k = 0.1 * s.camera.dist; s.camera = { ...s.camera, lon: s.camera.lon - dx * k, lat: clamp(s.camera.lat + dy * k * 0.8, -65, 75) }; paint(); }; const onDown = (e: ReactPointerEvent<HTMLCanvasElement>) => { drag.current = { x: e.clientX, y: e.clientY }; e.currentTarget.setPointerCapture(e.pointerId); }; const onMove = (e: ReactPointerEvent<HTMLCanvasElement>) => { const d = drag.current; if (!d) return; drag.current = { x: e.clientX, y: e.clientY }; turn(e.clientX - d.x, e.clientY - d.y); }; const onKey = (e: KeyboardEvent<HTMLCanvasElement>) => { const step: Record<string, [number, number]> = { ArrowLeft: [24, 0], ArrowRight: [-24, 0], ArrowUp: [0, 24], ArrowDown: [0, -24] }; if (e.key === "Escape" && focused) { e.preventDefault(); choose(null); return; } if (!step[e.key]) return; e.preventDefault(); turn(...step[e.key]!); }; return ( <div ref={root} className={cn("relative h-[26rem] w-full overflow-hidden text-foreground", className)}> {/* The canvas reads its colours from these: surface, text and accent */} <span hidden> <span data-ink="card" style={{ color: "var(--card)" }} /> <span data-ink="ink" style={{ color: "var(--foreground)" }} /> <span data-ink="spot" style={{ color: accentCss }} /> </span> <canvas ref={canvas} role="img" tabIndex={0} aria-label={label} onKeyDown={onKey} onPointerDown={onDown} onPointerMove={onMove} onPointerUp={() => (drag.current = null)} onPointerCancel={() => (drag.current = null)} className="absolute inset-0 size-full cursor-grab touch-pan-y outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset active:cursor-grabbing" /> {markers.map((m) => ( <button key={m.id} type="button" aria-pressed={m.id === focused} aria-label={[m.label, m.value].filter(Boolean).join(", ")} ref={(el) => { if (el) pins.current.set(m.id, el); else pins.current.delete(m.id); }} onClick={() => choose(m.id === focused ? null : m.id)} style={{ visibility: "hidden" }} className="group absolute top-0 left-0 size-0 outline-none"> <span aria-hidden className="absolute -top-1 -left-1 size-2 rounded-full ring-2 ring-card" style={{ background: m.highlight ? accentCss : "color-mix(in oklch, var(--foreground) 40%, var(--card))" }} /> <span aria-hidden className={cn("absolute top-0 flex -translate-y-1/2 items-center gap-1.5 rounded-full px-2.5 py-1 text-xs whitespace-nowrap transition-[scale] duration-150", "group-hover:scale-[1.04] group-focus-visible:ring-2 group-focus-visible:ring-ring/60 motion-safe:group-active:scale-[0.97]", glass, m.side === "left" ? "right-2.5" : "left-2.5", m.id === focused && "ring-1 ring-foreground/40")}> <span className="font-medium">{m.label}</span> {m.value && <span className="font-mono text-[11px] tabular-nums text-muted-foreground">{m.value}</span>} </span> </button> ))} {children && <div className="pointer-events-none absolute inset-0 [&_a]:pointer-events-auto [&_button]:pointer-events-auto">{children}</div>} </div> ); }dot-globe-core.ts/** * Dot globe engine: perspective projection on a 2D canvas, no WebGL and no 3D library. * The earth is a unit sphere. Land is a field of dots lit from above, the sphere has a soft * satin shade and a rim light, and the camera can fly from orbit down to street level on the * same coordinates, so other components can build on top of it (SunUI Pro's store-atlas does). * Nothing loops: callers redraw only while something moves. */ import { LAND_ASIA, LAND_WORLD } from "./dot-globe-land"; export type V3 = [number, number, number]; export type RGB = [number, number, number]; /** lat/lon: the ground point the camera looks at. dist: camera distance from that point (radius 1). tilt and heading in radians. lift moves the centre of view up or down as a share of the height. */ export type Camera = { lat: number; lon: number; dist: number; tilt: number; heading: number; lift: number }; export type GlobePalette = { card: RGB; ink: RGB; spot: RGB; dark: boolean; sea: RGB; seaEdge: RGB; globeHi: RGB; rim: RGB; dot: RGB }; export type Projected = { x: number; y: number; visible: boolean; depth: number }; export const RAD = Math.PI / 180; export const NEAR = 0.004; export const add = (a: V3, b: V3): V3 => [a[0] + b[0], a[1] + b[1], a[2] + b[2]]; export const sub = (a: V3, b: V3): V3 => [a[0] - b[0], a[1] - b[1], a[2] - b[2]]; export const mul = (a: V3, s: number): V3 => [a[0] * s, a[1] * s, a[2] * s]; export const dot = (a: V3, b: V3) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; export const cross = (a: V3, b: V3): V3 => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; export const norm = (a: V3): V3 => mul(a, 1 / (Math.hypot(a[0], a[1], a[2]) || 1)); export const mix = (a: RGB, b: RGB, t: number): RGB => [a[0] + (b[0] - a[0]) * t, a[1] + (b[1] - a[1]) * t, a[2] + (b[2] - a[2]) * t]; export const css = (c: RGB, alpha = 1) => `rgb(${c[0] | 0} ${c[1] | 0} ${c[2] | 0} / ${alpha})`; export const clamp = (v: number, min: number, max: number) => Math.min(max, Math.max(min, v)); export function geo(lat: number, lon: number): V3 { const p = lat * RAD, l = lon * RAD; return [Math.cos(p) * Math.sin(l), Math.sin(p), Math.cos(p) * Math.cos(l)]; } /** East, north and up at a ground point */ export function groundFrame(lat: number, lon: number) { const up = geo(lat, lon); const l = lon * RAD; const east: V3 = [Math.cos(l), 0, -Math.sin(l)]; return { up, east, north: cross(up, east) }; } // ---- Land ---- type Mask = { lon0: number; lat1: number; step: number; cols: number; rows: number; runs: string }; function decode(mask: Mask) { const bits = new Uint8Array(mask.cols * mask.rows); let at = 0, land = 0; for (const run of mask.runs.split(".")) { const n = parseInt(run, 36); if (land) bits.fill(1, at, at + n); at += n; land ^= 1; } return (lat: number, lon: number) => { const i = Math.floor((lon - mask.lon0) / mask.step); const j = Math.floor((mask.lat1 - lat) / mask.step); return i >= 0 && j >= 0 && i < mask.cols && j < mask.rows && bits[j * mask.cols + i] === 1; }; } let cache: { world: V3[]; asia: V3[]; isLand: (lat: number, lon: number) => boolean } | null = null; /** Dots for the whole globe, finer dots for East and Southeast Asia, and a land test. Built once on first use. */ export function land() { if (cache) return cache; const world = decode(LAND_WORLD), asia = decode(LAND_ASIA); const inAsia = (lat: number, lon: number) => lon >= LAND_ASIA.lon0 && lon < LAND_ASIA.lon0 + LAND_ASIA.cols * LAND_ASIA.step && lat <= LAND_ASIA.lat1 && lat > LAND_ASIA.lat1 - LAND_ASIA.rows * LAND_ASIA.step; const dots: V3[] = [], fine: V3[] = []; // Fixed latitude spacing, longitude spacing widened by latitude, so dots are even on the sphere for (let lat = -58; lat < 83; lat += 0.42) { const gap = 0.42 / Math.max(0.2, Math.cos(lat * RAD)); for (let lon = -180; lon < 180; lon += gap) if (world(lat, lon)) dots.push(geo(lat, lon)); } for (let j = 0; j < LAND_ASIA.rows; j++) { const lat = LAND_ASIA.lat1 - (j + 0.5) * LAND_ASIA.step; for (let i = 0; i < LAND_ASIA.cols; i++) { const lon = LAND_ASIA.lon0 + (i + 0.5) * LAND_ASIA.step; if (asia(lat, lon)) fine.push(geo(lat, lon)); } } cache = { world: dots, asia: fine, isLand: (lat, lon) => (inAsia(lat, lon) ? asia(lat, lon) : world(lat, lon)) }; return cache; } // ---- Projection ---- export function makeView(camera: Camera, width: number, height: number) { const { up, east, north } = groundFrame(camera.lat, camera.lon); const fwdGround = add(mul(north, Math.cos(camera.heading)), mul(east, Math.sin(camera.heading))); const right = add(mul(east, Math.cos(camera.heading)), mul(north, -Math.sin(camera.heading))); const eye = add(up, mul(sub(mul(up, Math.cos(camera.tilt)), mul(fwdGround, Math.sin(camera.tilt))), camera.dist)); const ahead = norm(sub(up, eye)); const camUp = norm(cross(right, ahead)); const focal = Math.min(width, height * 1.35) * 1.28; const cx = width / 2, cy = height * (0.5 + camera.lift); const toCamera = (p: V3): V3 => { const d = sub(p, eye); return [dot(d, right), dot(d, camUp), dot(d, ahead)]; }; const toScreen = (c: V3): [number, number] => [cx + (c[0] / c[2]) * focal, cy - (c[1] / c[2]) * focal]; return { eye, focal, toCamera, toScreen, camUp, ahead, project(p: V3): Projected { const c = toCamera(p); const [x, y] = c[2] > NEAR ? toScreen(c) : [0, 0]; // A point on the sphere is visible only on the near side of the horizon return { x, y, depth: c[2], visible: c[2] > NEAR && dot(p, sub(eye, p)) > -0.0005 }; }, }; } export type View = ReturnType<typeof makeView>; export function polygon(ctx: CanvasRenderingContext2D, points: [number, number][]) { ctx.beginPath(); points.forEach(([x, y], i) => (i ? ctx.lineTo(x, y) : ctx.moveTo(x, y))); ctx.closePath(); } /** The sphere as seen from the camera: the horizon circle, clipped at the near plane, with a satin shade and a rim light from above */ function drawSphere(ctx: CanvasRenderingContext2D, view: View, palette: GlobePalette) { const d = Math.hypot(...view.eye); const toEye = norm(view.eye); const a = norm(cross(toEye, Math.abs(toEye[1]) < 0.9 ? [0, 1, 0] : [1, 0, 0])); const b = cross(toEye, a); const center = mul(toEye, 1 / d); const radius = Math.sqrt(Math.max(0, 1 - 1 / (d * d))); const ring: V3[] = []; for (let i = 0; i < 240; i++) { const t = (i / 240) * Math.PI * 2; ring.push(view.toCamera(add(center, add(mul(a, Math.cos(t) * radius), mul(b, Math.sin(t) * radius))))); } const clipped: [number, number][] = []; ring.forEach((p, i) => { const q = ring[(i + 1) % ring.length]!; if (p[2] > NEAR) clipped.push(view.toScreen(p)); if (p[2] > NEAR !== q[2] > NEAR) clipped.push(view.toScreen(add(p, mul(sub(q, p), (NEAR - p[2]) / (q[2] - p[2]))))); }); if (clipped.length < 3) return; const mid = view.toCamera(center); const [cx, cy] = mid[2] > NEAR ? view.toScreen(mid) : [ctx.canvas.width / 2, ctx.canvas.height / 2]; let r = 0; for (const [x, y] of clipped) r = Math.max(r, Math.hypot(x - cx, y - cy)); r = Math.min(r, 6000); const fill = ctx.createRadialGradient(cx, cy - r * 0.55, 0, cx, cy, r * 1.04); fill.addColorStop(0, css(palette.globeHi)); fill.addColorStop(0.55, css(palette.sea)); fill.addColorStop(1, css(palette.seaEdge)); polygon(ctx, clipped); ctx.fillStyle = fill; ctx.fill(); const rim = ctx.createLinearGradient(0, cy - r, 0, cy + r * 0.9); rim.addColorStop(0, css(palette.rim, palette.dark ? 0.85 : 0.9)); rim.addColorStop(0.5, css(palette.rim, palette.dark ? 0.32 : 0.3)); rim.addColorStop(1, css(palette.rim, 0)); ctx.save(); ctx.clip(); ctx.strokeStyle = rim; ctx.lineWidth = clamp(r * 0.022, 2, 8); ctx.stroke(); ctx.restore(); ctx.strokeStyle = css(palette.ink, palette.dark ? 0.14 : 0.16); ctx.lineWidth = 1; ctx.stroke(); } const BUCKETS = 5; function drawDots(ctx: CanvasRenderingContext2D, view: View, dots: V3[], size: number, color: RGB, alpha: number, width: number, height: number) { const [ex, ey, ez] = view.eye; // Light from above the screen, leaning toward the viewer: the same light as the sphere shade const light = norm(add(mul(view.camUp, 0.8), mul(view.ahead, -0.6))); const rects: number[][] = Array.from({ length: BUCKETS }, () => []); for (const p of dots) { const facing = p[0] * (ex - p[0]) + p[1] * (ey - p[1]) + p[2] * (ez - p[2]); if (facing <= 0) continue; const c = view.toCamera(p); if (c[2] <= NEAR) continue; const [x, y] = view.toScreen(c); if (x < -4 || y < -4 || x > width + 4 || y > height + 4) continue; // Dots near the horizon shrink so the sphere reads as round const limb = Math.min(1, (facing / c[2]) * 1.6); const s = clamp((size * view.focal) / c[2], 0.6, 3) * (0.5 + 0.5 * limb); const k = Math.min(BUCKETS - 1, Math.floor((0.25 + 0.75 * Math.max(0, dot(p, light))) * Math.sqrt(limb) * BUCKETS)); rects[k]!.push(x - s / 2, y - s / 2, s); } rects.forEach((list, k) => { if (!list.length) return; ctx.fillStyle = css(color, alpha * (0.3 + (0.7 * (k + 1)) / BUCKETS)); for (let i = 0; i < list.length; i += 3) ctx.fillRect(list[i]!, list[i + 1]!, list[i + 2]!, list[i + 2]!); }); } /** Clears the canvas and draws the sphere and its land. Coarse dots fade into fine ones as the camera comes down. */ export function drawEarth(ctx: CanvasRenderingContext2D, camera: Camera, palette: GlobePalette, width: number, height: number): View { const view = makeView(camera, width, height); const { world, asia } = land(); ctx.clearRect(0, 0, width, height); drawSphere(ctx, view, palette); const near = clamp((0.9 - camera.dist) / 0.7, 0, 1); const alpha = palette.dark ? 0.8 : 0.55; if (near < 1) drawDots(ctx, view, world, 0.0026, palette.dot, alpha * (1 - near), width, height); if (near > 0) drawDots(ctx, view, asia, 0.00085, palette.dot, alpha * near, width, height); return view; } // ---- Camera flight ---- const ease = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2); const lerp = (a: number, b: number, t: number) => a + (b - a) * t; /** The camera at step t (0 to 1) between two cameras. Between two low cameras it lifts over the curve of the earth, higher for longer hops. */ export function flight(from: Camera, to: Camera, t: number): Camera { const turn = ((((to.lon - from.lon) % 360) + 540) % 360) - 180; const arc = Math.acos(clamp(dot(geo(from.lat, from.lon), geo(to.lat, to.lon)), -1, 1)); const low = from.dist < 0.5 && to.dist < 0.5; // Going down: turn first, then dive. Going up: climb first, then turn. const diving = to.dist < from.dist; const move = ease(Math.min(1, diving && !low ? t * 1.45 : t)); const zoom = ease(low || diving ? t : Math.min(1, t * 1.2)); const hop = low ? Math.sin(Math.PI * t) * Math.min(1.2, arc * 2.6) : 0; return { lat: lerp(from.lat, to.lat, move), lon: from.lon + turn * move, dist: Math.exp(lerp(Math.log(from.dist), Math.log(to.dist), zoom)) + hop, tilt: lerp(from.tilt, to.tilt, ease(t)) * (1 - (low ? Math.sin(Math.PI * t) * 0.5 : 0)), heading: lerp(from.heading, to.heading, ease(t)), lift: lerp(from.lift, to.lift, ease(t)), }; } /** The same heading as angle, turned to the nearest equivalent of target so a flight never spins the long way round */ export const nearestTurn = (angle: number, target: number) => target + Math.atan2(Math.sin(angle - target), Math.cos(angle - target)); /** * Reads the theme colours the canvas needs. Pass an element that holds three children with * data-ink="card", "ink" and "spot" whose CSS color is the surface, the text and the accent. * Any CSS colour works (oklch, color-mix): the browser resolves it on a 1px canvas. */ export function readGlobePalette(root: HTMLElement): GlobePalette { const probe = document.createElement("canvas"); probe.width = probe.height = 1; const ctx = probe.getContext("2d", { willReadFrequently: true })!; const rgb = (name: string): RGB => { const el = root.querySelector<HTMLElement>(`[data-ink="${name}"]`); ctx.clearRect(0, 0, 1, 1); ctx.fillStyle = el ? getComputedStyle(el).color : "#888"; ctx.fillRect(0, 0, 1, 1); const [r, g, b] = ctx.getImageData(0, 0, 1, 1).data; return [r!, g!, b!]; }; const card = rgb("card"), ink = rgb("ink"), spot = rgb("spot"); const dark = card[0] + card[1] + card[2] < 384; const white: RGB = [255, 255, 255], black: RGB = [0, 0, 0]; const toward = (t: number) => mix(card, ink, t); // Dark: a satin dark sphere lit from above. Light: a near-white sphere that darkens toward the edge. return dark ? { card, ink, spot, dark, globeHi: toward(0.15), sea: toward(0.055), seaEdge: mix(card, black, 0.55), rim: white, dot: mix(ink, white, 0.4) } : { card, ink, spot, dark, globeHi: white, sea: toward(0.04), seaEdge: toward(0.13), rim: white, dot: mix(ink, card, 0.25) }; }dot-globe-land.ts// Land bitmaps baked from Natural Earth (public domain, via world-atlas 2.0.2). Do not edit by hand. // Each string is run lengths (base36) row by row from the top left, alternating sea and land, starting with sea. export const LAND_WORLD = { lon0: -180, lat1: 84, step: 0.36, cols: 1000, rows: 400, runs: "12r.p.of.1.3.3.1x.i.1.j.3.3.9.3.ng.2.3.7.2.n.3.8.1e.9.3.1i.mw.3.5.1n.t.6.5.6.1.1o.mo.5.1.2.2.d.2.1d.9.f.2.4.4.b.4.15.4.7.8.5.5.1.m6.21.c.8.1.2u.d.c.5s.3.fl.5.8.w.1.p.2.7.c.31.3.o.58.7.3.1.fu.b.6.8.2.h.3.v.7.4.1.33.1.n.5b.7.1.4.5.1.6.7.12.3.z.b.cw.3.3.9.c.7.3.2.6.u.8.3u.4s.5.6.5.n.6.2f.c.cv.k.2.2.3.8.2.y.9.3p.2.6.2s.6.2.2.2.5.l.1.11.2.1.3.2.2.5.4.7.6.2m.d.cn.2.6.q.2.c.1.k.2.7.i.3g.3.4.2m.4.2.o.4z.6.2.9.1.6.co.t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