Repository navigation
Diagramon 3.12.4
Release 说明:v3.12.4
本页中英双语:中文在前,英文在后。 / Bilingual release notes: Chinese first, English below.
中文
Diagramon 3.12.4 让「格式化源码」从一个空按钮变成真正可用的排版工具。
下载
| 方式 | 文件 | 说明 |
|---|---|---|
| 安装版(推荐) | Diagramon_3.12.4_x64-setup.exe(约 62.26 MiB) |
装完可用内置自动更新;缺 WebView2 时安装器会自动下载运行时 |
| 便携版(免安装) | Diagramon-3.12.4-win-x64.zip(约 70.37 MB) |
解压到任意位置,双击 diagramon.exe 即用;卸载 = 删文件夹 |
便携版说明:包里是 diagramon.exe + WebView2Loader.dll + ui\ + assets\,必须放在一起
(ui\ 与 assets\ 是从磁盘读的,不在 exe 里)。它不依赖额外要装的东西:不需要 Node.js、
不需要 Chrome、不需要 VC++ 运行库(exe 已静态链接 CRT),只需要 Windows 10/11 自带的 WebView2 运行时。
便携版的「检查更新」照常能发现新版,但更新走的是安装包(不会就地替换便携目录)——
要继续用便携形态,就手动下载新的 ZIP 覆盖。
本次亮点
- 「格式化」按钮 / Shift+Alt+F 现在真的重排源码,不再只是抹掉行尾空格:
- Mermaid:
subgraph…end、序列图的loop/alt/opt/par/rect/critical/break/box…end、
else/and/option、class / state / er 的花括号,统一缩进到 4 空格; - Graphviz DOT:按词法重排 —— 一行一条语句、属性表内联、子图缩进,一行式
digraph G{a->b;b->c}会展开成可读的多行; - D2:花括号层级统一缩进到 2 空格。
- Mermaid:
- 只动空白,不动语义:字符串、HTML 标签、跨行引号标签、Mermaid 的 YAML frontmatter、
D2 的|md块字符串都逐字节保留;DOT 的注释与#行也原样搬运。 - 不假装修了一遍:源码本来就规范时,状态栏会如实说「已是规范格式」,不会标脏。
- 可撤销:整块替换走编辑器的正常事务,Ctrl+Z 能退回格式化之前;落盘仍跟随你的自动保存设置。
修复
- 「格式化源码」此前没有真正实现:按钮与
Shift+Alt+F都只做了一次行尾空白清理,
多数文档点下去等于没反应(菜单里印着功能,实际是空壳)。本版补上了 Rust 侧的格式器,
并把它接进按钮、快捷键与命令面板。
关于 Diagramon
Diagramon 是一款本地优先的多格式图表编辑器:Mermaid / Graphviz DOT / drawio / Excalidraw
都可编辑并实时预览,AI 可辅助生成、评审与识图。渲染与校验不联网也能用 ——
只有你主动使用 AI 时,相关代码或图片才会发往你选择的上游。
系统要求
- Windows 10 / 11 64 位
- WebView2 运行时(Windows 10/11 通常已预装;缺失时安装器会现场下载)
- 不需要 Node.js、Chrome 或 VC++ 运行库 —— 画布运行时与前端资源都随包分发
安装与更新
下载 Diagramon_3.12.4_x64-setup.exe 直接安装。已装旧版的用户可在
帮助 → 检查更新 里收到本版本(更新包即本安装包,签名见 latest.json)。
本安装包尚未做 Authenticode 代码签名,Windows SmartScreen 可能给出提示。
English
Diagramon 3.12.4 turns "Format source" from an empty button into a real formatter.
Downloads
| Type | File | Notes |
|---|---|---|
| Installer (recommended) | Diagramon_3.12.4_x64-setup.exe (~62.26 MiB) |
Enables the built-in auto-update; if WebView2 is missing the installer downloads the runtime |
| Portable (no install) | Diagramon-3.12.4-win-x64.zip (~70.37 MB) |
Unzip anywhere and run diagramon.exe; uninstall = delete the folder |
About the portable build: it ships diagramon.exe + WebView2Loader.dll + ui\ + assets\, and those
must stay together (the ui\ and assets\ trees are read from disk, not embedded in the exe).
It needs nothing extra installed: no Node.js, no Chrome, no VC++ redistributable (the CRT is
statically linked) — only the system WebView2 runtime that comes with Windows 10/11.
"Check for updates" still finds new versions, but updating downloads the installer
(it does not replace the portable folder in place) — to stay portable, grab the new ZIP manually.
Highlights
- The Format button / Shift+Alt+F now actually reformats the source, no longer just trimming
trailing whitespace:- Mermaid:
subgraph…end, sequenceloop/alt/opt/par/rect/critical/break/box…end,
else/and/option, and class / state / er braces are all indented to 4 spaces; - Graphviz DOT: lexer-level layout — one statement per line, attribute lists inlined,
subgraphs indented; a one-liner likedigraph G{a->b;b->c}expands into readable lines; - D2: brace levels are indented to 2 spaces.
- Mermaid:
- Whitespace only, semantics untouched: strings, HTML labels, multi-line quoted labels,
Mermaid YAML frontmatter and D2|mdblock strings are preserved byte for byte; DOT comments
and#lines are carried over verbatim. - No fake "formatted": when the source is already canonical, the status bar says so and the
document is not marked dirty. - Undoable: the whole-document replacement goes through the editor's normal transaction, so
Ctrl+Z returns to the pre-format text; saving still follows your auto-save setting.
Fixes
- "Format source" was never really implemented: the button and
Shift+Alt+Fonly trimmed
trailing whitespace, so on most documents they did nothing. This release adds the Rust-side
formatter and wires it to the button, the shortcut and the command palette.
About Diagramon
Diagramon is a local-first multi-format diagram editor: Mermaid, Graphviz DOT, drawio and Excalidraw
can all be edited with live preview, with AI assistance for generation, review and image recognition.
Rendering and validation work with no network at all — code or images reach a model only when you
actively use AI, and then only the endpoint you chose.
Official website: https://www.diagramon.com
Requirements
- Windows 10 / 11 64-bit
- WebView2 runtime (normally pre-installed on Windows 10/11; the installer downloads it if missing)
- No Node.js, Chrome or VC++ redistributable needed — the canvas runtimes and front-end assets all
ship inside the installer
Install and update
Download Diagramon_3.12.4_x64-setup.exe and run it. Users on an older version
will be offered this release via Help → Check for updates (the update package is this same
installer; its signature is in latest.json).
This installer is not yet Authenticode-signed, so Windows SmartScreen may show a warning.