Skip to content

🐞virtual状态下渲染不完全 #4997

@bmsherry

Description

@bmsherry

问题描述

在config中设置虚拟渲染 virtual为true。对已经渲染过的图使用elk布局(什么布局不重要),计算出所有node节点的位置以后 遍历所有节点设置Position(使用node.position(x,y)),设置完以后进行graph.centerContent()居中。发现经常会出现节点在视图区域没有渲染完成。节点和线有些有有些没有。(经过测试和居中无关)。

重现链接

重现步骤

1.设置虚拟渲染为true
2.渲染任意一张图,节点数大约在400到1500不等
3.写一个按钮进行重新布局,布局可任选,我使用的是elk布局
4.将计算出来的所有节点位置,通过node.position进行重新设置
5.graph.centerContent()居中

预期行为

重新布局并居中,且视图中节点和线应该完整。

平台

谷歌浏览器

屏幕截图或视频(可选但最好有)

No response

补充说明(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for authorFurther information is requested from the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions