3d-force-graph: .nodeThreeObjectExtend is not a function

Describe the bug .nodeThreeObjectExtend is not a function appear when I’m trying to use it with ForceGraph3D

To Reproduce Create a ForceGraph3D with this settings and calls:

ForceGraph3D({controlType: "orbit", extraRenderers:[new CSS2DRenderer()], rendererConfig: {antialias: true}})
    (document.getElementById('d-graph'))
    .forceEngine("d3")
    .numDimensions(3)
    .width(window.innerWidth)
    .height(window.innerHeight)
    .d3Force('center', null)
    .d3Force('charge', null)
    .d3Force('collide', d3.forceCollide(FforceCollide).strength(0.6))
    .d3Force('radial', d3.forceRadial(FradialForce).strength(0.6))
    .nodeColor(FcolorNode)
    .linkWidth(FlinkWidth)
    .linkColor(FlinkColor)
    .linkOpacity(0.6)
    .linkCurvature('curvature')
    .linkCurveRotation('rotation')
    .nodeLabel(FnodeLabel)
    .linkDirectionalArrowRelPos(1)
    .nodeThreeObject(FnodeThreeObject)
    .cameraPosition({z: 9000})
    .warmupTicks(13)
    .graphData(FgetGraph())
    .nodeThreeObjectExtend(true)

Expected behavior To set the nodeThreeObjectExtend to true

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10 / Linux
  • Browser: Google Chrome

Do you have any idea where this error comes from?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I understand, I think I will recode a method for the labels because I can’t hide the default node, thank you very much for the help I’m closing this issue, and hope this can help others

Thank you again 👍