简介 / IntroductionWhen an object calls one of its own methods while handling a request, the sequence diagram shows a message going from a lifeline back to itself — a “self message”. Both engine...
简介 / Introduction当一个对象在处理请求的过程中再次调用自己的方法时,时序图上会出现一条从某条生命线指向自身的消息,即”自调用消息”(self message)。两个引擎都支持这种写法,但消息线的绘制位置略有差别:PlantUML 会把回环挂在生命线右侧,Mermaid 则挂在生命线左侧。本文用同一个重试场景对比两者的写法。
PlantUML 版12345678910...
简介 / Introduction画架构图时,「这是 AWS 的机器」还是「这是 Azure 的虚拟机」这类信息,光靠方框加文字很难一眼区分。PlantUML 提供了 AWS、Azure、Kubernetes 等厂商的官方符号库(stdlib),可以直接给节点套上带厂商语义的原型;Mermaid 没有图标库,但可以用子图(subgraph)、形状和配色把同样的语义表达出来。本篇用同...
简介 / IntroductionWhen you draw an architecture diagram, a plain box labelled “server” rarely tells the reader which cloud it belongs to. PlantUML ships official symbol libraries (stdlib) for A...
简介 / IntroductionA component on a component diagram is rarely just “a box with one arrow” — it usually exposes a number of ports, each with its own name and direction: inbound ports receive re...
简介 / Introduction组件图上,一个组件往往不是”一个方块加一根箭头”这么简单——它对外暴露若干个端口(port),每个端口有自己的名字和方向:接收外部请求的是输入端口,对外提供能力的是输出端口。当一张图上同时出现”前端 → 网关 → 数据库”这样的链路时,用端口把连线精确到组件的某个出入口,比在箭头上写文字要清楚得多。
PlantUML 原生支持端口:port、por...
简介 / Introduction标签(tag)是给某个提交打上永久标记的方式,比如 v1.0、v2.0-rc1。在 Git 历史图上,标签通常显示为一个带名字的节点,告诉读者”这一行是发布点”。
PlantUML 的 gitgraph 和 Mermaid 的 gitGraph 都能给提交和合并打标签,但两者的语法约束并不一样:PlantUML 允许 tag: 单独成行,可以给同一...
简介 / IntroductionA tag is a permanent marker on a commit — v1.0, v2.0-rc1 and so on. In a Git history graph a tag usually shows up as a labelled node, telling the reader “this line is a releas...
IntroductionA Gantt chart’s horizontal axis is a time axis, so how the dates are parsed and how the ticks are labelled decides whether the chart reads well. PlantUML has no dedicated axis-format di...
简介甘特图的横轴本质上是一条时间轴,刻度怎么显示、日期怎么解析,直接决定了图表读起来是否舒服。PlantUML 没有单独的坐标轴格式指令,刻度由任务的起止日期和持续时间粒度推导;Mermaid 则提供 dateFormat 与 axisFormat 两个显式声明项。这篇文章用同一组「原型 → 设计 → 测试 → 上线」的任务,在两种引擎里各写一遍,看看实际差别。
PlantUML 版Plan...