SVG rendering
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- rust
- Domain
- computer-graphics
Research direction
Start with the IrGraph representation and the SVG renderer's writer entry point described in the issue. Confirm how layout positions, edge points, cluster boxes, and rendering attributes are exposed. Done means producing valid SVG with the stated viewBox, clusters, edges, nodes, escaped multiline labels, resolved styling, and padding.
Written by the indexing model from the issue text.
Description
The SVG renderer walks a fully laid-out `IrGraph` and emits an SVG document as a string. SVG is generated directly as XML text using a small writer helper for indentation and escaping, with no external SVG library.
The rendering order is: compute the total bounding box from all node positions, edge points, and cluster boxes, adding margin from the `pad` attribute (default 4pt); emit the `` root with a `viewBox`; render clusters as `` elements with a background rectangle and label; render edges as `` elements (polyline or cubic Bezier) with inline arrowhead polygons; render nodes as `` elements containing the shape and a `` label. Multi-line labels using Graphviz's `\n`, `\l`, and `\r` escape sequences are split into multiple `` elements with explicit `dy` offsets. The `color`, `fillcolor`, `fontcolor`, `fontsize`, `fontname`, `bgcolor`, `margin`, and `pad` attributes are all resolved during rendering.
References
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from terror/dotgraph
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Style resolution Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Arrowhead geometry Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Node shape geometry Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Edge routing Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100