Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: getSnapshot导出画板图片不生效,只有svg生效 #2036

Open
0liovoil0 opened this issue Jan 8, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@0liovoil0
Copy link

发生了什么?

` const goDownloadImg = async () => {
const params: ToImageOptions = {
fileType: 'png',
backgroundColor: 'white',
partial: false,
};

const picName = `${'xxxxxx'}_${dayjs().format(
  'YYYYMMDDHHmmss',
)}`;

await lfRef.current!.getSnapshot(picName, params);

};`

只有当fileTypesvg时可以导出其他格式不行,点击后无效果也不报错也没有被拦截
svg导出正常,效果如下:
image

logicflow/core版本

2.0.7

logicflow/extension版本

2.0.6

logicflow/engine版本

浏览器&环境

Chrome, Microsoft Edge, NodeJS

@0liovoil0 0liovoil0 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant