Skip to content

Reduce unnecessary margins from graph images#156

Merged
lusingander merged 4 commits into
masterfrom
graph-image-width
Apr 27, 2026
Merged

Reduce unnecessary margins from graph images#156
lusingander merged 4 commits into
masterfrom
graph-image-width

Conversation

@lusingander
Copy link
Copy Markdown
Owner

The following is a visualization using graph.color.background = "#FFFFFFFF":

graph.row_image_width = fixed (same as previous implementations)

fixed

graph.row_image_width = compact (new default implementation)

compact

@lusingander lusingander merged commit 41db6de into master Apr 27, 2026
16 checks passed
@lusingander lusingander deleted the graph-image-width branch April 27, 2026 03:01
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 8, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [lusingander/serie](https://github.com/lusingander/serie) | minor | `v0.7.2` → `v0.8.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>lusingander/serie (lusingander/serie)</summary>

### [`v0.8.0`](https://github.com/lusingander/serie/releases/tag/v0.8.0)

[Compare Source](lusingander/serie@v0.7.2...v0.8.0)

#### What's Changed

- Update compatibility by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;152](lusingander/serie#152)
- Support kitty unicode placeholder by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;153](lusingander/serie#153)
- Update rustfmt.toml by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;154](lusingander/serie#154)
- Support tmux for the kitty protocol by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;155](lusingander/serie#155)
- Reduce unnecessary margins from graph images by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;156](lusingander/serie#156)

**Full Changelog**: <lusingander/serie@v0.7.2...v0.8.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjguNSIsInVwZGF0ZWRJblZlciI6IjQzLjE2OC41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
YSzEthan added a commit to YSzEthan/serie-ys that referenced this pull request May 14, 2026
- 新增 GraphImageWidthMode enum(Compact / Fixed)
- build_single_graph_row_image 依 mode 切換 cell_count 計算:
  - Fixed(預設,維持既有視覺):graph.max_pos_x + 1
  - Compact(opt-in):edges.fold(pos_x, max) + 1,縮減 row 右側空白
- 透過 GraphRenderCtx 接到 GraphImageManager
- config.toml [graph] row_image_width 與 JSON schema 同步
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant