Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ If any component is defined in the `connectors` or `cables` sections but not ref
# about additional components inside the diagram node (connector/cable box).
# If False, show all info about additional components inside the diagram node.
mini_bom_mode: <bool> # Default = True

# DPI setting for image outputs, https://graphviz.org/docs/attrs/dpi/
output_dpi: <float> # Default 96.0
```


Expand Down
1 change: 1 addition & 0 deletions src/wireviz/DataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Options:
color_mode: ColorMode = "SHORT"
mini_bom_mode: bool = True
template_separator: str = "."
output_dpi: Optional[float] = 96.0

def __post_init__(self):
if not self.bgcolor_node:
Expand Down
1 change: 1 addition & 0 deletions src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def create_graph(self) -> Graph:
bgcolor=wv_colors.translate_color(self.options.bgcolor, "HEX"),
nodesep="0.33",
fontname=self.options.fontname,
dpi = f'{self.options.output_dpi}',
)
dot.attr(
"node",
Expand Down