The padding of the diagram is currently hard coded to 80px:
|
pub const LAYOUT_MARGIN: f32 = 80.0; |
Personally I think this is way too much. When viewing such an image on mobile with a max-width: 100% it leads to wasted space.
mermaid-js apparently defaults to 8px, graphviz to 8 points (whatever a point is but it looks similar).
So I think it would be nice if the default would be lowered and perhaps in addition made configurable with yet another CLI option (though #45 would help with that).
The padding of the diagram is currently hard coded to 80px:
oxdraw/src/lib.rs
Line 22 in bb53da9
Personally I think this is way too much. When viewing such an image on mobile with a
max-width: 100%it leads to wasted space.mermaid-js apparently defaults to 8px, graphviz to 8 points (whatever a point is but it looks similar).
So I think it would be nice if the default would be lowered and perhaps in addition made configurable with yet another CLI option (though #45 would help with that).