Code Monkey home page Code Monkey logo

Comments (3)

mwh1209 avatar mwh1209 commented on September 28, 2024

同问

from relation-graph.

Leytton avatar Leytton commented on September 28, 2024

+1

from relation-graph.

seeksdream avatar seeksdream commented on September 28, 2024

force力学布局需要大量实时的计算,目前会默认自动布局300次,300次之后基本上就稳定了,所以就上限300次停止了。
如果想要一直力学布局,你可以设置个定时器,定时调用
(以下代码需要relation-graph v2.x下使用)

const graph = this.$refs.seeksRelationGraph.getInstance();
graph.doLayout();

频繁,多次的调用graph.doLayout();不会让图谱额外重复的布局,可以放心的在定时器中调用。
示例:
https://seeksdream.github.io/#/demo/adv-effect
在以上示例中点击按钮【给侯亮平加两个小弟】后会继续布局

from relation-graph.

Related Issues (20)

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.