diff --git a/src/main/kotlin/sh/hsp/techtree/TreeModel.kt b/src/main/kotlin/sh/hsp/techtree/TreeModel.kt index 75f583f..cf32ce2 100644 --- a/src/main/kotlin/sh/hsp/techtree/TreeModel.kt +++ b/src/main/kotlin/sh/hsp/techtree/TreeModel.kt @@ -13,5 +13,6 @@ data class TreeModel( data class TreeNode( val title: ID, val requires: List? = null, - val link: String? = null + val link: String? = null, + val image: String? = null ) \ No newline at end of file diff --git a/src/main/resources/templates/element-pure.svg b/src/main/resources/templates/element-pure.svg index 8d010d5..f0f3bd4 100644 --- a/src/main/resources/templates/element-pure.svg +++ b/src/main/resources/templates/element-pure.svg @@ -153,13 +153,13 @@ style="font-style:normal;font-weight:normal;font-size:16px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect6);display:inline;fill:#000000;fill-opacity:1;stroke:none">Oto jest tekst na 3 linijki Oto jest tekst na 3 linijki iksde co to ma być to iksde co to ma być to nie jest tekst na 3 linijkinie jest tekst na 3 linijki + y="29.149302" /> diff --git a/src/main/resources/templates/element.svg b/src/main/resources/templates/element.svg index 0cb904c..a00b6e5 100644 --- a/src/main/resources/templates/element.svg +++ b/src/main/resources/templates/element.svg @@ -33,55 +33,10 @@ height="45.978458" id="rect2" /> + + + @@ -183,4 +121,14 @@ + <#if repository??> + + + + + <#if docs??> + + + + diff --git a/src/test/resources/full-example.yaml b/src/test/resources/full-example.yaml index 8d3eb7f..575825e 100644 --- a/src/test/resources/full-example.yaml +++ b/src/test/resources/full-example.yaml @@ -1,4 +1,6 @@ nodes: + - title: Zebra + image: zebra.png - title: Tech Tree state: done - title: Outline