text customization

This commit is contained in:
2025-12-02 12:18:41 +01:00
parent a739910315
commit de5ebd5ab7
2 changed files with 57 additions and 34 deletions

View File

@@ -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) }"/>
</li>
</ul>