From 8444dd3c12c3667109b914d8fe385f2fcfb10b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 1 Oct 2026 00:16:11 -0400 Subject: [PATCH] =?UTF-8?q?T45d=20Site=20=C2=B7=20Components:=20comments?= =?UTF-8?q?=20one=20short=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Find.tsx | 2 +- frontend/src/iso/Iso.tsx | 2 +- frontend/src/iso/draw.ts | 2 +- frontend/src/scroll.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/Find.tsx b/frontend/src/Find.tsx index d5c0934..4477a0a 100644 --- a/frontend/src/Find.tsx +++ b/frontend/src/Find.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef } from "react"; import { componentCount } from "./data"; -/** The search field; Slash focuses it, Enter takes the first match. */ +/** Search: Slash focuses it, Enter opens the first match. */ export function Find({ query, onQuery, onEnter, className }: { query: string; onQuery: (q: string) => void; onEnter: () => void; className: string }) { const field = useRef(null); useEffect(() => { diff --git a/frontend/src/iso/Iso.tsx b/frontend/src/iso/Iso.tsx index fa41fa6..b0e1fd0 100644 --- a/frontend/src/iso/Iso.tsx +++ b/frontend/src/iso/Iso.tsx @@ -22,7 +22,7 @@ interface Props { lift?: number | null; } -/** Grows once shown; a press regrows it or picks a block. */ +/** Grows once shown; a press regrows or picks. */ export function Iso({ model, label, className, onHover, onPick, lift }: Props) { const canvas = useRef(null); const mini = useRef | null>(null); diff --git a/frontend/src/iso/draw.ts b/frontend/src/iso/draw.ts index dbe89db..ba2b684 100644 --- a/frontend/src/iso/draw.ts +++ b/frontend/src/iso/draw.ts @@ -112,7 +112,7 @@ export function miniature(canvas: HTMLCanvasElement, model: Block[], still: bool if (!frame) frame = requestAnimationFrame(draw); }; - /** Model index of the grown block at a point, not the table. */ + /** The grown block at a point, by model index. */ const pick = (x: number, y: number): number | null => { const r = canvas.getBoundingClientRect(); const dpr = canvas.width / r.width; diff --git a/frontend/src/scroll.ts b/frontend/src/scroll.ts index 2c862be..17c5c8c 100644 --- a/frontend/src/scroll.ts +++ b/frontend/src/scroll.ts @@ -11,7 +11,7 @@ export function smooth(): { lenis: Lenis; end: () => void } { return { lenis: own, end: () => (own.destroy(), (lenis = null)) }; } -/** Holds the page still at once, a glide in flight included. */ +/** Holds the page still at once, glide included. */ export function hold(still: boolean): void { if (still) lenis?.stop(); else lenis?.start();