使用 UMLGraph 生成序列图
我正在使用 UMLGraph 生成序列图。我在使用 pic2plot 程序生成 svg 图像时遇到问题。它会剪辑图像并且图像的某些部分不会显示。这个问题也记录在 FAQ 中:
How can I prevent clipped SVG images in sequence diagrams? This appears to be a limitation of pic2plot. You can work around it, by increasing the width and height values appearing in the SVG XML file that pic2plot generates.
但是,我尝试过但未能更改svg 图像中的宽度和高度。我尝试修改 width="8in" height="8in" viewBox="0 0 1 1"preserveAspectRatio="none"
在 svg 中没有成功。
请帮忙。
I am using UMLGraph to generate sequence diagrams. I have a problem using the pic2plot program to generate svg images. It clips the image and parts of the image don't show. This problem is also documented in the FAQ:
How can I prevent clipped SVG images in sequence diagrams? This appears to be a limitation of pic2plot. You can work around it, by increasing the width and height values appearing in the SVG XML file that pic2plot generates.
However, I have tried but failed to change the width and height in the svg image. I tried modifying the width="8in" height="8in" viewBox="0 0 1 1" preserveAspectRatio="none"
in the svg with no success.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道如何使用 UMLGraph 解决这个特定问题,但如果您愿意使用其他类似的文本建模工具,请查看 此处提供 10 多种可用工具
I don´t know about how to solve this specific problem with UMLGraph but if you are open to use other similar textual modeling tools, take a look here with more than 10 tools available
编辑生成的 SVG 的第一行似乎有帮助...
保持 viewBox 中的第一个参数固定,我将 viewBox 中第三个参数和第一个参数之间的宽度和增量缩放了 1.5 从 到
不再
需要裁剪,看起来好的。您的里程可能会有所不同。
Editing the first line of the generated SVG seems to help...
Keeping the first parameter in the viewBox fixed, I scaled the width and the delta between third parameter and first parameter in the viewBox by 1.5 from
to
No more clipping for me and looks okay. Your mileage may vary.