
Home | D2 Documentation
Create beautiful diagrams in minutes. Simple syntax. Endlessly customizable. D2 is the fastest and easiest way to get a mental model from your head onto the screen, then make edits with your team.
Exports | D2 Documentation
SVG is the default export format on the CLI. If you don't specify an output, the export file will be the input name as an SVG file. For example, d2 in.d2 will produce a file named in.svg. The resulting SVG has CSS injected into it.
GitHub - terrastruct/d2: D2 is a modern diagram scripting …
The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files. echo 'x -> y -> z' > in.d2. A browser window will open with out.svg and live-reload on changes to in.d2. The easiest way to install is with our install script:
Export formats | D2 Documentation
Single animated SVG. This is useful for small compositions. It's great for a small number of Steps or flipping between some Scenarios, but if the composition has too many boards, the viewer may get confused or wait until a loop. On the CLI, passing --animate-interval=1200 sets the resulting SVG to be an animation that stays on each board for ...
d2-icon-svg | D2开源组
首先将下载的 .svg 图标放入 src/assets/icons/svg 文件夹下. 然后使用组件. 你已经发现了,只需要将图标文件放入项目中就会自动注册. 这是因为已经对 webpack 和 svg-sprite-loader 进行了相关设置, src/assets/icons/svg 文件夹中的图标会自动注册到项目中,文件全部打包成 svg-sprite,名称注册到 Vue.$IconSvg 属性中. 所以如果你需要检查项目中已经注册的所有图标,可以通过如下方式. 演示图标来源 iconfont.cn @龙正昆《常用的50个4px双色图标库》
d2 - 简洁易用的文本到图表转换脚本语言 - 懂AI
使用 D2 最方便的方式是将其作为 CLI 可执行文件运行,从 .d2 文件生成 SVG。 浏览器窗口将打开 out.svg,并在 in.d2 发生更改时实时重新加载。 您可以使用 --dry-run 运行安装脚本,以查看将用于安装的命令而不执行它们。 您还可以从源代码安装发布版本,其中包括手册页。 请参阅 ./docs/INSTALL.md#source-release。 有关详细的安装文档,请参阅 ./docs/INSTALL.md。 我们演示了每个操作系统的替代方法和示例。 此外,安装脚本的功能有详细描述,以消除任何使用 …
D2: 一款专用文本绘制流程图的神器 - CSDN博客
2022年12月24日 · D2 有一个官方的、创建者维护的 VSCode 扩展 https://github.com/terrastruct/d2-vscode,可以通过 VSCode 市场免费搜索和下载。 该插件完全支持自动缩进和语法突出显示,使用 D2 语言更加愉快。
D2开源项目常见问题解决方案 - CSDN博客
2024年12月12日 · d2是一种声明式流程图的领域特定语言 (dsl),声明式只需要描述你想要的流程图即可,它就会自动生成对应的图像。例如,在左侧提供如下所示的输入,然后在右侧我们就可以得到对应的输出流程图。
d2/docs/assets/example.svg at master · terrastruct/d2 - GitHub
D2 is a modern diagram scripting language that turns text to diagrams. - terrastruct/d2
D2 - Asciidoctor Docs
D2 is a diagram scripting language that turns text to diagrams. It stands for Declarative Diagramming. Declarative, as in, you describe what you want diagrammed, it generates the image. .... shape: person. .... If given, multiple boards are packaged as 1 SVG which transitions through each board at the interval (in milliseconds).