terror / terror/dotgraph

Arrowhead geometry

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Arrowheads are small SVG shapes drawn at edge endpoints, rotated to align with the final edge segment's angle. Each arrowhead type is a function that returns an SVG path given a tip position and angle.

Tier 1 covers `normal` (filled triangle, the Graphviz default), `none`, and `vee` (open chevron). Tier 2 adds `dot`, `odot`, `inv` (inverted triangle), `box`, `obox`, `diamond`, and `odiamond`. Tier 3 handles compound arrowheads, where Graphviz allows combining types like `normalodot`. Arrowheads should be rendered as inline SVG elements rather than SVG `` elements to avoid cross-browser coloring quirks. The `arrowhead`, `arrowtail`, `arrowsize`, and `dir` attributes control arrow rendering.

References

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by locating the edge-rendering and DOT attribute-parsing entry points, then trace how endpoint geometry reaches the SVG output. Done means supporting the listed arrowhead tiers, compound types, rotation, and arrow-related attributes as inline SVG elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.