掛單
This commit is contained in:
1 parent
1cb2a7a35e
commit
8db6019ba3
10 files changed
+1120
-703
No files matched your search
@@ -1396,7 +1396,7 @@ html, body, * {
|
||||
//el.style.fontSize
|
||||
return $(`<div class="tablet-element vertical-text ${this.activeId === el.id ? 'selected' : ''}" id="${el.id}"></div>`)
|
||||
.css({
|
||||
position: "absolute", left: el.x + "mm", top: el.y + "mm", fontFamily: el.style.fontFamily, "z-index": 9999, visibility: el.style.visibility
|
||||
position: "absolute", left: el.x + "mm", top: el.y + "mm", fontFamily: el.style.fontFamily, "z-index": 9999, visibility: el.style.visibility,display:"flex"
|
||||
//position: "absolute", left: el.startX + "mm", top: el.startY + "mm", fontSize: el.fontSize + 'pt', fontFamily: el.fontFamily, "z-index": 9999, visibility: el.isActive
|
||||
})
|
||||
.html(html);
|
||||
@@ -1406,7 +1406,7 @@ html, body, * {
|
||||
let self = this;
|
||||
let txt = $(`<div class='${d.elementID}'></div>`).css({
|
||||
"z-index": 9999, visibility: d.visibility,
|
||||
width: d.width, height: d.height,
|
||||
width: "auto", height: d.height,//d.width
|
||||
padding: "1px",
|
||||
"writing-mode": "vertical rl",
|
||||
display: "flex",
|
||||
@@ -1416,7 +1416,7 @@ html, body, * {
|
||||
//"letter-spacing": "0.1em",
|
||||
"column-gap": `${d.textSpan}px`,
|
||||
//"row-gap": "1px",
|
||||
"align-items": "flex-start",
|
||||
"align-items": "center",
|
||||
"justify-content": "start",
|
||||
"font-size": `${d.style ? d.style.fontSize : d.fontSize}pt`
|
||||
});
|
||||
@@ -1721,6 +1721,8 @@ html, body, * {
|
||||
}
|
||||
return { name: x.name, size: final_s, isMulti: x.isMulti, isShort: x.isShort };
|
||||
});
|
||||
let minFinalSize = Math.min(...sizes.map(item => item.size));
|
||||
sizes.forEach(item => item.size = minFinalSize);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2680,7 +2682,7 @@ html, body, * {
|
||||
$(`.tablet-element[id="${this.activeId}"]`).css({
|
||||
position: "absolute", left: el.x + "mm", top: el.y + "mm", fontSize: el.style.fontSize + 'pt',
|
||||
fontFamily: el.style.fontFamily, "z-index": 9999, visibility: el.style.visibility,
|
||||
width: el.width, height: el.height
|
||||
"align-items": "center", width: el.width, height: el.height
|
||||
}).html(html)//.text(el.text);
|
||||
} else if (this.activeId === "lefttitle") {
|
||||
let normal = [];
|
||||
@@ -2689,7 +2691,7 @@ html, body, * {
|
||||
$(`.tablet-element[id="${this.activeId}"]`).css({
|
||||
position: "absolute", left: el.x + "mm", top: el.y + "mm", fontSize: el.style.fontSize + 'pt',
|
||||
fontFamily: el.style.fontFamily, "z-index": 9999, visibility: el.style.visibility,
|
||||
width: el.width, height: el.height
|
||||
"align-items": "center", width: el.width, height: el.height
|
||||
}).html(html)//.text(el.text);
|
||||
} else if (this.activeId === "address") {
|
||||
let normal = [];
|
||||
|
||||
Reference in new issue
Block a user