Coder Social home page Coder Social logo

jin5354 / d3-force-graph Goto Github PK

View Code? Open in Web Editor NEW
79.0 5.0 27.0 87 KB

Force-directed graph using D3-force and WebGL, support massive data rendering and custom style.

Home Page: https://webgl.run/list/HJPqwNgpX

JavaScript 10.57% TypeScript 82.09% GLSL 5.29% HTML 1.94% CSS 0.11%
d3 d3-force d3-charts social-network social-network-analysis threejs webgl social-network-graph chart

d3-force-graph's People

Contributors

jin5354 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

d3-force-graph's Issues

关于节点拾取的疑问

threshold 固定值无法精准适配 scale 节点大小的问题。

   let ray = new THREE.Raycaster()
    ray.setFromCamera(normalMouse, this.camera)
    ray.params.Points.threshold = 2 // 对于不同的scale 这个固定的值会导致无法像碰撞检测那样精准的拾取,有无更好的方案?
    let intersects = ray.intersectObjects(this.scene.children).filter(e => e.object.type === 
   'Points' && !e.object.name.startsWith('hl'))

一些建议

其实希望每个节点高度自定义,并且每个节点和边的事件都能往外抛出来

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.