markdocx 6.0.0__tar.gz → 7.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdocx-6.0.0 → markdocx-7.0.0}/PKG-INFO +1 -1
- {markdocx-6.0.0 → markdocx-7.0.0}/pyproject.toml +1 -1
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/__init__.py +1 -1
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/diagram_renderer.py +7 -7
- {markdocx-6.0.0 → markdocx-7.0.0}/.gitignore +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/.python-version +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/LICENSE +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/README.md +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/main.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/requirements.txt +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/rule/ai_gen_doc_rule.md +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/rule/ai_gen_doc_rule_en.md +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/cli.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/code_renderer.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/core.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/docx_builder.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/math_renderer.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/md_parser.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/src/markdocx/styles.py +0 -0
- {markdocx-6.0.0 → markdocx-7.0.0}/uv.lock +0 -0
|
@@ -774,16 +774,16 @@ def _render_workflow(code: str):
|
|
|
774
774
|
cols_per_row = min(cols_per_row, 4) # cap at 4
|
|
775
775
|
|
|
776
776
|
max_chars_per_line = 16
|
|
777
|
-
box_w = max(3.
|
|
778
|
-
box_h = 1.
|
|
779
|
-
fontsize_normal =
|
|
780
|
-
fontsize_decision =
|
|
777
|
+
box_w = max(3.2, min(5.0, max_text_len * 0.18 + 1.5))
|
|
778
|
+
box_h = 1.4
|
|
779
|
+
fontsize_normal = 16
|
|
780
|
+
fontsize_decision = 15
|
|
781
781
|
spacing_x = box_w + 1.5 # horizontal gap between boxes
|
|
782
|
-
spacing_y =
|
|
782
|
+
spacing_y = 3.0 # vertical gap between rows
|
|
783
783
|
|
|
784
784
|
num_rows = (n + cols_per_row - 1) // cols_per_row
|
|
785
|
-
fig_w = max(
|
|
786
|
-
fig_h = max(
|
|
785
|
+
fig_w = max(10, cols_per_row * spacing_x + 2.5)
|
|
786
|
+
fig_h = max(5, num_rows * spacing_y + 3.0)
|
|
787
787
|
|
|
788
788
|
fig, ax = plt.subplots(figsize=(fig_w, fig_h))
|
|
789
789
|
ax.axis("off")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|