添加印花元素排序priority

This commit is contained in:
李志鹏
2026-02-02 09:47:10 +08:00
parent 811e179889
commit fdb6a87ab4
5 changed files with 64 additions and 59 deletions

View File

@@ -337,46 +337,49 @@
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: true,
// level2Type: "Pattern",
// designType: "Library",
// path: "/src/assets/images/canvas/yinhua1.jpg",
// location: [550, 650],
// scale: [0.15, 0.2],
// angle: 0,
// },
{
ifSingle: false,
level2Type: "Pattern",
designType: "Library",
path: "/src/assets/images/canvas/yinhua1.jpg",
location: [800, 600],
scale: [1, 1],
angle: 0,
priority: 1,
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",
designType: "Library",
path: "/src/assets/images/canvas/yinhua1.jpg",
location: [700, 400],
scale: [0.1, 0.133],
location: [550, 650],
scale: [0.15, 0.2],
angle: 0,
priority: 2,
},
// {
// ifSingle: true,
// level2Type: "Pattern",
// designType: "Library",
// path: "/src/assets/images/canvas/yinhua1.jpg",
// location: [700, 400],
// scale: [0.1, 0.133],
// angle: 0,
// priority: 3,
// },
],
},
});