Diagrame daj v svoje datoteke
This commit is contained in:
parent
0e6a68fb0a
commit
b6c83ca3e5
8 changed files with 140 additions and 111 deletions
22
diagrams/head-index.typ
Normal file
22
diagrams/head-index.typ
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#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: 0.5pt,
|
||||
{
|
||||
node((-1, 0), [`e23d19`], shape: pill, name: <commit1>)
|
||||
node((0, 0), [`3943eb`], shape: pill, name: <commit2>)
|
||||
node((1, 0), [`98ff21`], shape: pill, name: <commit3>)
|
||||
node((2, 0), [`4e96a1`], shape: pill, name: <commit4>, stroke: (dash: "dotted"))
|
||||
node((1, -1), [main], shape: chevron, name: <main>)
|
||||
node((1, 1), [HEAD], shape: chevron, name: <head>)
|
||||
node((2, 1), [index], shape: rect, name: <index>, stroke: (dash: "dotted"))
|
||||
|
||||
edge(<commit2>, <commit1>, "->")
|
||||
edge(<commit3>, <commit2>, "->")
|
||||
edge(<commit4>, <commit3>, "->", stroke: (dash: "dotted"))
|
||||
edge(<index>, <commit4>, "->", stroke: (dash: "dotted"))
|
||||
edge(<head>, <commit3>, "->")
|
||||
edge(<main>, <commit3>, "->")
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue