如何在 HTML 页面中绘制序列图

发布于 2025-01-07 17:50:14 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

一萌ing 2025-01-14 17:50:15

你为什么不试试 html5 的 canvas 呢?

这些人有一个图书馆
http://www.rgraph.net/

我在这里又发现了一个库
http://www.liquidx.net/canvasgraphjs/

这是一个很好的教程
http://dev.opera.com/articles/view/html5-canvas-绘画/

why dont you try canvas of html5 ??

these guys have a library
http://www.rgraph.net/

i found one more library here
http://www.liquidx.net/canvasgraphjs/

here is a nice tutorial
http://dev.opera.com/articles/view/html5-canvas-painting/

居里长安 2025-01-14 17:50:15

我认识一位基于 GWT 的 UML 建模器。您可以将 gwtuml 作为一种可能的选择。这是演示

I know one UML modeller based on GWT. You can check out gwtuml as one possible option. Here is the demo

溺深海 2025-01-14 17:50:15

使用图像并使用 GIMP 创建图像映射。完全支持点击事件。

Use an image and create an image map with GIMP. Click events are totally supported.

标点 2025-01-14 17:50:15

看看 jsUML2 它可能就是您正在寻找的东西。

Have a look at jsUML2 it might be what you are looking for.

苦妄 2025-01-14 17:50:15

您可以尝试 draw.io。它是基于 JavaScript 的免费在线绘图工具,使用 SVG 来绘制形状。

You can try draw.io. It's free online JavaScript based diagramming tool that uses SVG to draw shapes.

似最初 2025-01-14 17:50:15

您可以尝试 js-sequence-diagrams
它将如下文本转换为 UML 序列图

<div class="editor">Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
</div>

您还可以检查它如何在 jsFiddle 中运行可点击和颜色填充
https://jsfiddle.net/chetabahana/f7ejxhnk/35/

  • 点击一个框会变成其颜色为黄色
  • 单击箭头将打开 Google 网站

You may try js-sequence-diagrams
It turns text like below into UML sequence diagrams

<div class="editor">Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
</div>

You can check also how it runs clickable and color filled in jsFiddle
https://jsfiddle.net/chetabahana/f7ejxhnk/35/

  • Click a box will turn its color to yellow
  • Click an arrow will open Google site
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文