Diagrame daj v svoje datoteke
This commit is contained in:
parent
0e6a68fb0a
commit
b6c83ca3e5
8 changed files with 140 additions and 111 deletions
24
diagrams/commit-history.typ
Normal file
24
diagrams/commit-history.typ
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
|
||||
#diagram(node-stroke: 1pt, node-shape: pill,
|
||||
{
|
||||
let (Ah, Bh, Ch, Dh, Eh, Fh, Gh) = ("d93434", "2ca420", "dd0d98", "28782c", "710310", "3f2922","d2a671")
|
||||
let (A, B, C, D, E, F, G) = ((0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (2, 1), (3, 1))
|
||||
node(A, raw(Ah))
|
||||
node(B, raw(Bh))
|
||||
node(C, raw(Ch))
|
||||
node(D, raw(Dh))
|
||||
node(E, raw(Eh))
|
||||
node(F, raw(Fh))
|
||||
node(G, raw(Gh))
|
||||
edge(B, A, "->")
|
||||
edge(C, B, "->")
|
||||
edge(D, C, "->")
|
||||
edge(E, D, "->")
|
||||
edge(G, F, "->")
|
||||
edge(F, B, "->")
|
||||
edge(D, F, "->")
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue