feat: 优化跨层级移动和套索抠图命令,支持异步执行,改进画布刷新逻辑,新增背景裁剪选项

This commit is contained in:
bighuixiang
2025-07-11 00:26:38 +08:00
parent d3e22f368b
commit 96e13cb22a
10 changed files with 129 additions and 121 deletions

View File

@@ -498,11 +498,13 @@ const canDeleteComputed = computed(() => {
.chosen {
opacity: 0.8;
transform: scale(1.02);
transform: scale(1);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
z-index: 999;
background: linear-gradient(90deg, #fff2e8 0%, #ffd8bf 100%);
border: 2px solid #fa8c16;
border: 1px solid #fa8c16;
// border-left: none;
// border-right: none;
}
.drag {

View File

@@ -1348,9 +1348,10 @@ async function executeDirectMove(moveData) {
}
// 刷新画布渲染
if (layerManager?.canvas) {
layerManager.canvas.renderAll();
}
// if (layerManager?.canvas) {
// layerManager.canvas.renderAll();
// }
await layerManager?.updateLayersObjectsInteractivity?.();
// 清除选择状态
clearSelection();

View File

@@ -568,7 +568,7 @@
.ghost {
opacity: 0.4;
background-color: #fff7e6;
border: 2px dashed #faad14;
border: 1px dashed #faad14;
}
.chosen {