fix
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
@@ -295,6 +295,15 @@ const otherData = {
|
||||
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: [250, 780],
|
||||
scale: [0.5 * 0.7, 0.272541 * 0.7],
|
||||
angle: 0,
|
||||
},
|
||||
{
|
||||
ifSingle: true,
|
||||
level2Type: "Pattern",
|
||||
@@ -343,10 +352,10 @@ const otherData = {
|
||||
ref="canvasEditor"
|
||||
key="canvasEditor"
|
||||
v-if="currentView === 'canvasEditor'"
|
||||
:config="editorConfig"
|
||||
:clothingImageUrl="clothingImageUrl"
|
||||
:clothingImageUrl="clothingImageUrl"
|
||||
:clothingImageUrl2="clothingImageUrlInit"
|
||||
:otherData="otherData"
|
||||
:config="editorConfig"
|
||||
:clothing-image-opts="{
|
||||
imageMode: 'contains', // 设置底图包含在画布内
|
||||
}"
|
||||
|
||||
Reference in New Issue
Block a user