This commit is contained in:
李志鹏
2026-01-06 16:28:08 +08:00
parent 11876f7fff
commit 6cb1e72798
2 changed files with 16 additions and 2 deletions

View File

@@ -1060,10 +1060,12 @@ export class CanvasManager {
level2Type: v.sourceData.level2Type,
designType: v.sourceData.designType,
path: v.sourceData.path,
minIOPath: v.sourceData.minIOPath,
location: [0, 0],
scale: [0, 0],
angle: v.angle,
name: v.sourceData.name,
priority: v.sourceData.priority,
}
if(obj.ifSingle){
let left = (v.left - (flLeft - flWidth * flScaleX / 2));
@@ -1097,6 +1099,9 @@ export class CanvasManager {
trims.push(obj);
}
})
// prints.sort((a, b) => a.ifSingle ? 1 : -1);
prints.forEach((v, i) => v.priority = i + 1);
trims.forEach((v, i) => v.priority = i + 1);
return {prints, trims};
}