Giter Club home page Giter Club logo

Comments (9)

noonnightstorm avatar noonnightstorm commented on June 2, 2024

能提供下最小demo给我优化下么?

from butterfly.

noonnightstorm avatar noonnightstorm commented on June 2, 2024

IMG_3779
可以加钉钉服务群

from butterfly.

yijiu986 avatar yijiu986 commented on June 2, 2024

案例.zip
image

实际使用的是vue的,这个案例里还稍微快点,vue版本好像后面还会重新绘制。

from butterfly.

noonnightstorm avatar noonnightstorm commented on June 2, 2024

是的,vue做数据绑定,肯定会慢一些,原生肯定会更快

from butterfly.

noonnightstorm avatar noonnightstorm commented on June 2, 2024

案例.zip image

实际使用的是vue的,这个案例里还稍微快点,vue版本好像后面还会重新绘制。

我尝试了一下各个demo,我感觉挺快的呀

from butterfly.

noonnightstorm avatar noonnightstorm commented on June 2, 2024

我看了好一会,原生版已经没办法再压缩性能了,现在已经基本调得最优。现在demo的界面上200个节点+2000个锚点+361条线段,能在3s+内渲染已经是比较理想的了
image

from butterfly.

yijiu986 avatar yijiu986 commented on June 2, 2024

锚点是固定的,在后期添加锚点的时候是否可以考虑不进行位置获取设置。
image

from butterfly.

noonnightstorm avatar noonnightstorm commented on June 2, 2024

锚点是固定的,在后期添加锚点的时候是否可以考虑不进行位置获取设置。 image

你这个情况太特殊了,我建议你继承我的endpoint的类,然后进行重写_init的方法

from butterfly.

yijiu986 avatar yijiu986 commented on June 2, 2024

好的

from butterfly.

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.