个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
diagram-zoom — zoom and pan for Quarto diagrams
A Quarto filter extension that adds an Enlarge button to every
Mermaid and Graphviz diagram in HTML output. The button opens a full-window viewer where the
diagram can be zoomed and panned — handy for wide flowcharts that a text column squeezes into
illegibility.
Live demo → (the rendered
example.qmd).查看完整 README ↗A Quarto filter extension that adds an Enlarge button to every Mermaid and Graphviz diagram in HTML output. The button opens a full-window viewer where the diagram can be zoomed and panned — handy for wide flowcharts that a text column squeezes into illegibility.
Live demo → (the rendered example.qmd).
mermaid-format: js and svg) and
Graphviz ({dot} cells). No extra JavaScript library, no network requests._quarto.yml.Run in the project root (or next to a standalone document):
quarto add Lightbridge-KS/[email protected]
quarto add Lightbridge-KS/quarto-diagram-zoom (no tag) installs the current main.
The extension lands in _extensions/ — commit that directory with the project.
Requires Quarto 1.6 or later.
Add the filter to a document's front matter:
---
title: My report
filters:
- diagram-zoom
---
or, for a whole book or website, to _quarto.yml:
project:
type: book
filters:
- diagram-zoom
Every Mermaid and Graphviz diagram then gets the button. There is nothing to configure.
Wrap it in a .no-zoom div:
::: {.no-zoom}
```{mermaid}
flowchart LR
small --> diagram
```
:::
| Input | Action |
|---|---|
| Mouse wheel, trackpad scroll | Zoom at the pointer |
| Trackpad or touchscreen pinch | Zoom at the pinch |
| Drag (mouse, one finger) | Pan |
+ / − · toolbar buttons | Zoom in / out |
0 · Fit | Fit the diagram to the window |
| Arrow keys | Scroll |
Esc · Close · click outside | Close |
| Output | Behaviour |
|---|---|
html documents, websites, books | Enabled |
revealjs and other slide formats | Left untouched (not supported yet) |
| PDF, Word, EPUB, … | Left untouched |
dashboard, email | Pass the HTML check but are untested |
mermaid-format: png — are out of scope;
Quarto's built-in lightbox
covers images.The viewer takes its colours from the page's Bootstrap variables (--bs-body-bg,
--bs-body-color, --bs-border-color, --bs-primary). To override them, set any of these on
:root in your own CSS:
:root {
--dz-bg: #fdfcf8; /* dialog and button background */
--dz-fg: #1d2a30; /* text and icon colour */
--dz-border: #c9d3d1; /* borders */
--dz-accent: #278078; /* focus ring */
--dz-surface: #fff; /* toolbar button background */
}
_extensions/diagram-zoom/diagram-zoom.js and diagram-zoom.css have no Quarto dependency.
On any page:
<link rel="stylesheet" href="diagram-zoom.css">
<script src="diagram-zoom.js"></script>
<script>
DiagramZoom.observe(document); // a button on every top-level <svg>
// or: DiagramZoom.observe(document, { match: (svg) => svg.matches(".diagram svg") });
// or open one directly: DiagramZoom.enlarge(svg, { title: "My diagram" });
</script>
pnpm install
pnpm exec playwright install # once per machine
pnpm run gate # types + versions, render fixtures, Playwright
See AGENTS.md for the architecture invariants and the release process, and CHANGELOG.md for changes.