Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default theme
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.
Describe the problem
表现:使用主题时导出公式为图片失败,点击导出图片控制台报错,导出图片不完整
原因:html2canvas.min.js不支持oklch表示的颜色
修改建议:将app/stage/protyle/js/html2canvas.min.js修改为html2canvas-pro.min.js,项目主页是https://www.npmjs.com/package/html2canvas-pro?activeTab=readme,html2canvas-pro.min.js的下载链接是https://github.com/yorickshan/html2canvas-pro/releases/tag/v1.5.8
Expected result
期望使用Asri主题时导出公式为图片正常
Screenshot or screen recording presentation
No response
Version environment
- Version: v3.1.19
- Operating System:
- Browser (if used):
Log file
None
More information
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
TCOTC commentedon Feb 14, 2025
试了一下直接换文件是不行的,虽然能导出了,但元素会错位。应该还要修改其他地方
TCOTC commentedon Mar 7, 2025
html-to-image 能解决吗 #14161
88250 commentedon Mar 13, 2025
库已经换了,暂时先关闭这个 issue,如果 v3.1.25 后还有问题麻烦反馈,谢谢。