feat: 优化导出功能,清除选中状态以避免导出问题,调整裁剪路径以保持准确性

This commit is contained in:
bighuixiang
2025-07-18 01:28:31 +08:00
parent 074c336ca8
commit 22ee9c6cf1
3 changed files with 16 additions and 1 deletions

View File

@@ -776,6 +776,9 @@ export class CanvasManager {
}
try {
// 如果当前有选中对象,先清除选中状态 否则导出有问题
this.canvas.discardActiveObject(); // 清除选中状态
this.canvas.renderAll(); // 重新渲染画布
// 自动设置红绿图模式相关参数
const enhancedOptions = {
...options,