fix(web): design1/2 缩略图与 design2 设为背景交互修复
- design1:预览/最近文件缩略图按 background 边界截取,去掉多余白盘 - design2:设为背景贴齐 1012x648 卡框,保存/打开保留用户背景 src - design2:列表可选中锁定对象并加载完整属性,缩略图叠加 front_bg 模板 - design2:固定卡框锚点,避免选中背景时标尺/蒙版随属性面板漂移 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1453,6 +1453,7 @@ $("#new").click(function () {
|
||||
|
||||
// ===========================================================
|
||||
$("#text_y").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
if (!canvas.getActiveObject()) return;
|
||||
if ($("#text_y").val() == "") {
|
||||
$("#text_y").val(0)
|
||||
@@ -1466,6 +1467,7 @@ $("#text_y").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#text_x").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
if (!canvas.getActiveObject()) return;
|
||||
if ($("#text_x").val() == "") {
|
||||
$("#text_x").val(0)
|
||||
@@ -1479,6 +1481,7 @@ $("#text_x").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#text_w").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
if (!canvas.getActiveObject()) return;
|
||||
let val = "0";
|
||||
if ($("#text_w").val() != "") {
|
||||
@@ -1497,6 +1500,7 @@ $("#text_w").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#text_h").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
if (!canvas.getActiveObject()) return;
|
||||
let idx = getIndex(canvas.getActiveObject());
|
||||
if (idx <= 0 || !objs[idx - 1]) return;
|
||||
@@ -1523,6 +1527,7 @@ $("#text_h").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#text_r").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
if (!canvas.getActiveObject()) return;
|
||||
if ($("#text_r").val() == "") {
|
||||
$("#text_r").val("0")
|
||||
@@ -1619,6 +1624,7 @@ $("#text_back_color").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#text_size").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
let val = 1
|
||||
if (parseFloat($("#text_size").val())) {
|
||||
val = parseFloat($("#text_size").val())
|
||||
@@ -1671,6 +1677,7 @@ $("#out_text_back_color").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#out_text_size").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
let val = 1
|
||||
if (parseFloat($("#out_text_size").val())) {
|
||||
val = parseFloat($("#out_text_size").val())
|
||||
@@ -1786,6 +1793,7 @@ $("#counter_color").bind('input propertychange', function () {
|
||||
window.recordState();
|
||||
})
|
||||
$("#count_size").bind('input propertychange', function () {
|
||||
if (window._soonSyncingFontControls) return;
|
||||
let val = 1
|
||||
if (parseFloat($("#count_size").val())) {
|
||||
val = parseFloat($("#count_size").val())
|
||||
|
||||
Reference in New Issue
Block a user