terrastruct / d2-obsidian

The official D2 plugin for Obsidian. D2 is a modern diagram scripting language thats turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
217 stars 12 forks source link

Smaller output, or custom size? #18

Closed canadaduane closed 1 year ago

canadaduane commented 1 year ago

I'm grateful for d2 in Obsidian, as it makes more sense and is easier to use than mermaid--thanks for creating this!

One drawback I'm finding is that the output is very large:

image

image

Are there parameters I should tweak to make this a more reasonably sized two-box graph?

alixander commented 1 year ago

oo we need to add pad to settings. https://github.com/terrastruct/d2/pull/431

this would control the whitespace padding around the boundaries of the diagram and should help with the undue size

berniexie commented 1 year ago

@canadaduane The latest version of this plugin (1.1.0) now supports the pad option, closing this issue