File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 3333 linkDirectionalParticles = { 2 }
3434 linkDirectionalParticleWidth = { 0.5 }
3535 onNodeClick = { node => window . open ( `https://github.com/${ node . user } /${ node . package } ` , '_blank' ) }
36+ nodeRelSize = { 2 }
37+ nodeThreeObjectExtend = { true }
3638 nodeThreeObject = { node => {
3739 const sprite = new SpriteText ( node . package ) ;
3840 sprite . color = node . color ;
3941 sprite . textHeight = 5 ;
42+ sprite . center . y = - 0.4 ; // shift above node
4043 return sprite ;
4144 } }
4245 />
Original file line number Diff line number Diff line change 2525 < ForceGraph3D
2626 graphData = { data }
2727 nodeAutoColorBy = "group"
28+ nodeThreeObjectExtend = { true }
2829 nodeThreeObject = { node => {
2930 const sprite = new SpriteText ( node . id ) ;
3031 sprite . color = node . color ;
3132 sprite . textHeight = 8 ;
33+ sprite . center . y = - 0.6 ; // shift above node
3234 return sprite ;
3335 } }
3436 />
You can’t perform that action at this time.
0 commit comments