arrowheads

To avoid fiddly geometry they're just little squares.
This commit is contained in:
Kartik K. Agaram 2023-04-20 23:35:04 -07:00
parent 60ecafc775
commit c08d007e03
1 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@ compute_layout_for_edge = function(s, e)
local s2 = intersect_with_centroid(Nodes[s], ce.sx,ce.sy)
local e2 = intersect_with_centroid(Nodes[e], s2.sx,s2.sy)
table.insert(Surface, {type='line', r=0,g=0,b=0, data={s2.sx,s2.sy, e2.sx,e2.sy}, keys={s,e}})
end
table.insert(Surface, {type='rectangle', r=0,g=0,b=0, x=e2.sx-2, y=e2.sy-2, w=4, h=4, keys={s,e}})
end