diff --git a/site/public/shots/doc.jpg b/site/public/shots/doc.jpg deleted file mode 100644 index 1e5aad4..0000000 Binary files a/site/public/shots/doc.jpg and /dev/null differ diff --git a/site/public/shots/mark.jpg b/site/public/shots/mark.jpg deleted file mode 100644 index 8aec127..0000000 Binary files a/site/public/shots/mark.jpg and /dev/null differ diff --git a/site/public/shots/pdf.jpg b/site/public/shots/pdf.jpg deleted file mode 100644 index 77a0782..0000000 Binary files a/site/public/shots/pdf.jpg and /dev/null differ diff --git a/site/public/shots/show.jpg b/site/public/shots/show.jpg deleted file mode 100644 index cba9598..0000000 Binary files a/site/public/shots/show.jpg and /dev/null differ diff --git a/site/public/shots/table.jpg b/site/public/shots/table.jpg deleted file mode 100644 index 1b8a62d..0000000 Binary files a/site/public/shots/table.jpg and /dev/null differ diff --git a/site/public/shots/tree.jpg b/site/public/shots/tree.jpg deleted file mode 100644 index 970b2e5..0000000 Binary files a/site/public/shots/tree.jpg and /dev/null differ diff --git a/site/src/iso.ts b/site/src/iso.ts index dbbc953..14f7a68 100644 --- a/site/src/iso.ts +++ b/site/src/iso.ts @@ -110,19 +110,3 @@ export function stage(blocks: SVGGElement[]): SVGSVGElement { svg.setAttribute("class", "stage"); return svg; } - -/** Pins an image across a block's left face. */ -export function screen(g: SVGGElement, href: string, width: number, height: number): void { - const b = boxes.get(g); - if (!b) throw new Error("not a block"); - const [e, f] = project(b.x, b.y + b.d, b.z + b.h); - const sx = (b.w * UNIT) / width; - const sy = (b.h * UNIT) / height; - const image = document.createElementNS(SVG, "image"); - image.setAttribute("href", href); - image.setAttribute("width", String(width)); - image.setAttribute("height", String(height)); - image.setAttribute("preserveAspectRatio", "none"); - image.setAttribute("transform", `matrix(${COS * sx} ${SIN * sx} 0 ${sy} ${e} ${f})`); - g.append(image); -} diff --git a/site/src/text.ts b/site/src/text.ts index 0ba82ba..cfa11dd 100644 --- a/site/src/text.ts +++ b/site/src/text.ts @@ -17,7 +17,6 @@ const en = { needs: "macOS 14 or later, Apple silicon.", unsigned: "Not notarized. If macOS blocks the app, open System Settings › Privacy & Security and click Open Anyway.", github: "Download from GitHub", - shot: "screenshot", other: "中文", roads: "Drag a file down the road.", fileDoc: "ElyDoc file", @@ -54,7 +53,6 @@ const zh: typeof en = { needs: "macOS 14 或更新,Apple 芯片。", unsigned: "未经公证。macOS 拦下应用时,打开“系统设置 › 隐私与安全性”,点“仍要打开”。", github: "前往 GitHub 下载", - shot: "截图", other: "English", roads: "把文件沿着路拖过去。", fileDoc: "ElyDoc 文件", @@ -91,7 +89,4 @@ export function speak(lang: Lang): void { for (const el of document.querySelectorAll("[data-t]")) { el.textContent = TEXT[lang][el.dataset.t as Key]; } - for (const el of document.querySelectorAll("[data-shot]")) { - el.setAttribute("aria-label", `${el.dataset.shot} ${TEXT[lang].shot}`); - } }