图层可以持续粘贴

This commit is contained in:
李志鹏
2026-01-30 13:54:21 +08:00
parent 62e7f34c98
commit 8588c74ffd
2 changed files with 33 additions and 33 deletions

View File

@@ -1961,13 +1961,13 @@ export class LayerManager {
if (this.commandManager) { if (this.commandManager) {
// 使用命令管理器执行命令 // 使用命令管理器执行命令
const result = await this.commandManager.execute(command); const result = await this.commandManager.execute(command);
this.clipboardData = null; // 清空剪贴板数据 复制一次 // this.clipboardData = null; // 清空剪贴板数据 复制一次
// 执行命令 // 执行命令
return result; return result;
} }
const result = await command.execute(); const result = await command.execute();
this.clipboardData = null; // 清空剪贴板数据 复制一次就清空,避免重复粘贴 出现 错误后也清空 总之就是清空 不用给自己找麻烦 // this.clipboardData = null; // 清空剪贴板数据 复制一次就清空,避免重复粘贴 出现 错误后也清空 总之就是清空 不用给自己找麻烦
// 执行命令 // 执行命令
return result; return result;
} }

View File

@@ -337,28 +337,28 @@
color: { rgba: { r: 255, g: 0, b: 0, a: 1 } }, color: { rgba: { r: 255, g: 0, b: 0, a: 1 } },
printObject: { printObject: {
prints: [ prints: [
{ // {
ifSingle: false, // ifSingle: false,
level2Type: "Pattern", // level2Type: "Pattern",
designType: "Library", // designType: "Library",
path: "/src/assets/images/canvas/yinhua1.jpg", // path: "/src/assets/images/canvas/yinhua1.jpg",
location: [800, 600], // location: [800, 600],
scale: [1, 1], // scale: [1, 1],
angle: 0, // angle: 0,
object: { // object: {
top: 300, // top: 300,
left: 400, // left: 400,
scaleX: 0.5, // scaleX: 0.5,
scaleY: 0.5, // scaleY: 0.5,
opacity: 1, // opacity: 1,
angle: 0, // angle: 0,
flipX: false, // flipX: false,
flipY: false, // flipY: false,
blendMode: "multiply", // blendMode: "multiply",
gapX: 0, // gapX: 0,
gapY: 0, // gapY: 0,
}, // },
}, // },
// { // {
// ifSingle: true, // ifSingle: true,
// level2Type: "Pattern", // level2Type: "Pattern",
@@ -368,15 +368,15 @@
// scale: [0.15, 0.2], // scale: [0.15, 0.2],
// angle: 0, // angle: 0,
// }, // },
// { {
// ifSingle: true, ifSingle: true,
// level2Type: "Pattern", level2Type: "Pattern",
// designType: "Library", designType: "Library",
// path: "/src/assets/images/canvas/yinhua1.jpg", path: "/src/assets/images/canvas/yinhua1.jpg",
// location: [700, 400], location: [700, 400],
// scale: [0.1, 0.133], scale: [0.1, 0.133],
// angle: 0, angle: 0,
// }, },
], ],
}, },
}); });