fix: 移除调试代码,优化图层恢复和导出逻辑
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user