yiyiniu
V2EX  ›  React

react-gitgraph 大数据量 绘制版本树形图 解决方案 ?

  •  
  •   yiyiniu · Sep 29, 2024 · 2397 views
    This topic created in 775 days ago, the information mentioned may be changed or developed.

    现在项目中使用:
    import GitGraph from 'react-gitgraph';
    时,在 2000 条数据以上时,界面左侧绘制不出来; 100 条时如下图:

    有没有更好的优化解决方案?或者其他组件,目前试了 svg 框架也会出现大数据量崩溃无法渲染问题,有更好的解决方案吗? 求分享

    示例图片

    20240929084723.png

    1 replies  •  2024-09-29 09:35:55 +08:00
    BingoXuan
    BingoXuan
    Sep 29, 2024
    1
    实现类似虚拟列表咯。反正 table 的 row height 是固定的话,直接根据可视行和相对偏移渲染可视行和前后两个咯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3856 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:43 · PVG 17:43 · LAX 01:43 · JFK 04:43
    ♥ Do have faith in what you're doing.