Diagrame daj v svoje datoteke

This commit is contained in:
Martin Vuk 2026-01-14 11:16:07 +01:00
parent 0e6a68fb0a
commit b6c83ca3e5
8 changed files with 140 additions and 111 deletions

16
diagrams/file-graph.typ Normal file
View file

@ -0,0 +1,16 @@
#import "@preview/fletcher:0.5.8" as fletcher: diagram, node, edge
#import fletcher.shapes: house, chevron, pill
#import "../definicije.typ": file-object, tree-object, git-object, commit-object, bla, blabla
#diagram(
{
bla((-1, 1), name:<bla>)
blabla((-1, 0), name: <blabla>)
tree-object((1, 1), "ae247f", name: <mapa>)[drevo]
tree-object((3, 0), "473e0b", name: <root>)[drevo]
edge(<root>, <bla>, "->", label-angle: auto)[`bla.txt`]
edge(<root>, <mapa>, "->", label-angle: auto, label-sep: -1.2em)[`mapa`]
edge(<mapa>, <bla>, "->", label-angle: auto, label-sep: -1.2em)[`bla.txt`]
edge(<root>, <blabla>, "->")[`blabla.txt`]
}
)