From de5ebd5ab7b936711a35e6bd292f3bb5a9834fe8 Mon Sep 17 00:00:00 2001 From: Minimata Date: Tue, 2 Dec 2025 12:18:41 +0100 Subject: [PATCH] text customization --- app/components/GraphNode.vue | 84 +++++++++++++++++++++--------------- app/components/GraphView.vue | 7 +++ 2 files changed, 57 insertions(+), 34 deletions(-) diff --git a/app/components/GraphNode.vue b/app/components/GraphNode.vue index 61c231c..9a397d7 100644 --- a/app/components/GraphNode.vue +++ b/app/components/GraphNode.vue @@ -1,5 +1,6 @@ diff --git a/app/components/GraphView.vue b/app/components/GraphView.vue index d10348a..c51010f 100644 --- a/app/components/GraphView.vue +++ b/app/components/GraphView.vue @@ -6,8 +6,12 @@ const nodes = [ img: "/face.jpg", textTop: true, moveFactor: 6, + initialWidth: 'w-50', + initialHeight: 'h-50', + scaleFactor: 2, hOffset: 'left-1/3', vOffset: 'top-1/3', + topTextOffset: '-top-50', }, { name: "DevOps engineer", @@ -17,6 +21,7 @@ const nodes = [ initialWidth: 'w-2', initialHeight: 'h-2', scaleFactor: 10, + bottomTextOffset: '-bottom-10' }, { name: "Game developer", @@ -98,6 +103,8 @@ useRafFn(() => { :scale-factor="node.scaleFactor" :initial-width="node.initialWidth" :initial-height="node.initialHeight" + :top-text-offset="node.topTextOffset" + :bottom-text-offset="node.bottomTextOffset" @position-changed="(x, y) => { nodeMoved(index, x, y) }"/>