fix: 移除调试代码,优化图层恢复和导出逻辑

This commit is contained in:
bighuixiang
2025-07-22 21:46:26 +08:00
parent 4170cae964
commit 5d74e7aff0
2 changed files with 0 additions and 2 deletions

View File

@@ -621,7 +621,6 @@ export class RemoveLayerCommand extends Command {
// 恢复图层到原位置
if (this.layerIndex !== -1 && this.removedLayer) {
this.layers.value.splice(this.layerIndex, 0, this.removedLayer);
debugger;
// 使用优化渲染批处理恢复真实对象到画布
await optimizeCanvasRendering(this.canvas, () => {

View File

@@ -619,7 +619,6 @@ export class ExportManager {
// this.canvasManager?.canvasHeight?.value || this.canvas.height;
// console.log(`普通模式导出,画布尺寸: ${canvasWidth}x${canvasHeight}`);
debugger;
// 使用图层栅格化的方法导出图片
const dataURL = await createRasterizedImage({
canvas: this.canvas,