X6 icon indicating copy to clipboard operation
X6 copied to clipboard

导出的相关问题

Open Makaite opened this issue 9 months ago • 4 comments

Describe the bug

1、导出图片时,使用相关参数的默认参数,自动获取画布大小,导出后的图片内容会有确实,截取不完整 2、导出图片时,画布会出现一个闪动效果,有时闪动会立即恢复正常画布内容,有时会变为空白,需要鼠标主动点击一次画布才可以恢复画布的内容

Your Example Website or App

Steps to Reproduce the Bug or Issue

1、完成一个流程图的配置 2、设置一个按钮,调用导出的相关api,toSVG/toPN/toJPEG/exportSVG/exportPNG/exportJPEG等 3、观察页面会出现闪动效果 4、如果没有另外处理相关样式问题,导出的图片会缺失部分内容,截图不完整

Expected behavior

是否可以做到导出时不要出现页面闪动,导出的图片至少是完整的

Screenshots or Videos

Platform

windows Chrome 2.11.1

Additional context

Makaite avatar Apr 29 '24 02:04 Makaite

👋 @Makaite

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Apr 29 '24 02:04 x6-bot[bot]

还有就是,如果在节点中设置了外部图片,导出后的图片是不会自动添加在导出的图片上的,需要通过一些处理才可以

Makaite avatar Apr 29 '24 02:04 Makaite

这里有记录图片导出问题:https://www.yuque.com/sxd_panda/antv/x6

zlecheng avatar May 15 '24 08:05 zlecheng

1、加一个rect做画布边框,就可以了 2、导出图片时,画布会出现一个闪动效果,加上 copyStyles: false, 就可以了

jo87jimmy avatar Jun 21 '24 04:06 jo87jimmy