图层可以持续粘贴
This commit is contained in:
@@ -1961,13 +1961,13 @@ export class LayerManager {
|
||||
if (this.commandManager) {
|
||||
// 使用命令管理器执行命令
|
||||
const result = await this.commandManager.execute(command);
|
||||
this.clipboardData = null; // 清空剪贴板数据 复制一次
|
||||
// this.clipboardData = null; // 清空剪贴板数据 复制一次
|
||||
// 执行命令
|
||||
return result;
|
||||
}
|
||||
|
||||
const result = await command.execute();
|
||||
this.clipboardData = null; // 清空剪贴板数据 复制一次就清空,避免重复粘贴 出现 错误后也清空 总之就是清空 不用给自己找麻烦
|
||||
// this.clipboardData = null; // 清空剪贴板数据 复制一次就清空,避免重复粘贴 出现 错误后也清空 总之就是清空 不用给自己找麻烦
|
||||
// 执行命令
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -337,28 +337,28 @@
|
||||
color: { rgba: { r: 255, g: 0, b: 0, a: 1 } },
|
||||
printObject: {
|
||||
prints: [
|
||||
{
|
||||
ifSingle: false,
|
||||
level2Type: "Pattern",
|
||||
designType: "Library",
|
||||
path: "/src/assets/images/canvas/yinhua1.jpg",
|
||||
location: [800, 600],
|
||||
scale: [1, 1],
|
||||
angle: 0,
|
||||
object: {
|
||||
top: 300,
|
||||
left: 400,
|
||||
scaleX: 0.5,
|
||||
scaleY: 0.5,
|
||||
opacity: 1,
|
||||
angle: 0,
|
||||
flipX: false,
|
||||
flipY: false,
|
||||
blendMode: "multiply",
|
||||
gapX: 0,
|
||||
gapY: 0,
|
||||
},
|
||||
},
|
||||
// {
|
||||
// ifSingle: false,
|
||||
// level2Type: "Pattern",
|
||||
// designType: "Library",
|
||||
// path: "/src/assets/images/canvas/yinhua1.jpg",
|
||||
// location: [800, 600],
|
||||
// scale: [1, 1],
|
||||
// angle: 0,
|
||||
// object: {
|
||||
// top: 300,
|
||||
// left: 400,
|
||||
// scaleX: 0.5,
|
||||
// scaleY: 0.5,
|
||||
// opacity: 1,
|
||||
// angle: 0,
|
||||
// flipX: false,
|
||||
// flipY: false,
|
||||
// blendMode: "multiply",
|
||||
// gapX: 0,
|
||||
// gapY: 0,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// ifSingle: true,
|
||||
// level2Type: "Pattern",
|
||||
@@ -368,15 +368,15 @@
|
||||
// scale: [0.15, 0.2],
|
||||
// angle: 0,
|
||||
// },
|
||||
// {
|
||||
// ifSingle: true,
|
||||
// level2Type: "Pattern",
|
||||
// designType: "Library",
|
||||
// path: "/src/assets/images/canvas/yinhua1.jpg",
|
||||
// location: [700, 400],
|
||||
// scale: [0.1, 0.133],
|
||||
// angle: 0,
|
||||
// },
|
||||
{
|
||||
ifSingle: true,
|
||||
level2Type: "Pattern",
|
||||
designType: "Library",
|
||||
path: "/src/assets/images/canvas/yinhua1.jpg",
|
||||
location: [700, 400],
|
||||
scale: [0.1, 0.133],
|
||||
angle: 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user