版面調整

This commit is contained in:
2026-07-01 09:09:15 +08:00
parent 7db39117b4
commit 82c9f51bcd
4 changed files with 14 additions and 12 deletions
+2
View File
@@ -1074,6 +1074,8 @@
displayItem(id) {
let el = this.elements.find(x => x.id === id);
el.style.visibility = el.style.visibility === "hidden" ? "" : "hidden";
//要判斷如果所在位置超出範圍,要拉回來放
console.log("displayItem:", this.paper)
$("#" + id).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
})