去除画布打印信息

This commit is contained in:
李志鹏
2026-01-19 16:57:11 +08:00
parent 7ff2c2095a
commit 74b43e431b
19 changed files with 273 additions and 294 deletions

View File

@@ -30,7 +30,7 @@ export class LiquifyStateManager {
// 设备性能检测
this.devicePerformance = this._detectDevicePerformance();
console.log("🎯 液化状态管理器已初始化,设备性能等级:", this.devicePerformance);
// console.log("🎯 液化状态管理器已初始化,设备性能等级:", this.devicePerformance);
}
/**
@@ -48,7 +48,7 @@ export class LiquifyStateManager {
// 显示操作反馈
this._showOperationFeedback();
console.log("🚀 开始液化操作");
// console.log("🚀 开始液化操作");
}
/**
@@ -68,7 +68,7 @@ export class LiquifyStateManager {
// 禁用不必要的画布功能
this._disableCanvasFeatures();
console.log("🖱️ 开始拖拽操作");
// console.log("🖱️ 开始拖拽操作");
}
/**
@@ -98,7 +98,7 @@ export class LiquifyStateManager {
}
}
console.log("✅ 结束拖拽操作");
// console.log("✅ 结束拖拽操作");
}
/**
@@ -116,7 +116,7 @@ export class LiquifyStateManager {
// 隐藏操作反馈
this._hideOperationFeedback();
console.log(`⏱️ 液化操作完成,耗时: ${operationTime.toFixed(2)}ms`);
// console.log(`⏱️ 液化操作完成,耗时: ${operationTime.toFixed(2)}ms`);
}
/**
@@ -158,11 +158,11 @@ export class LiquifyStateManager {
// 根据性能数据动态调整设置
this._adaptivePerformanceOptimization(operationTime);
console.log(
`📊 记录性能指标: ${operationType}/${mode}, 耗时: ${operationTime.toFixed(
2
)}ms, 渲染模式: ${renderMode}`
);
// console.log(
// `📊 记录性能指标: ${operationType}/${mode}, 耗时: ${operationTime.toFixed(
// 2
// )}ms, 渲染模式: ${renderMode}`
// );
}
/**
@@ -179,7 +179,7 @@ export class LiquifyStateManager {
const currentQuality = this.realtimeUpdater.config.imageQuality || 1.0;
if (currentQuality > 0.7) {
this.realtimeUpdater.setImageQuality(Math.max(0.7, currentQuality - 0.1));
console.log("⚡ 自动降低图像质量以提升性能");
// console.log("⚡ 自动降低图像质量以提升性能");
}
// 增加节流时间
@@ -188,7 +188,7 @@ export class LiquifyStateManager {
33,
this.realtimeUpdater.config.throttleTime + 8
);
console.log("⏱️ 自动增加节流时间以提升性能");
// console.log("⏱️ 自动增加节流时间以提升性能");
}
}
@@ -228,7 +228,7 @@ export class LiquifyStateManager {
this._updateCursor("default");
this.cursorCache.clear();
console.log("🧹 液化状态管理器已清理");
// console.log("🧹 液化状态管理器已清理");
}
// === 私有方法 ===