adyou 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -172,7 +172,7 @@ export function tree(size, concept, brief, bg, logo, ctaText) {
|
|
|
172
172
|
x += cw + chipFs * 0.45;
|
|
173
173
|
} return rows; };
|
|
174
174
|
// 실측 보정(에어서울 1200×628 · 헤드라인 97 + 본문 2줄 + 알약 2줄 + CTA ≈ 563px 로 들어감) — 로고 행 ≈ headFs×0.5 · 사이 간격 4곳
|
|
175
|
-
const total = () => headFs * 0.5 + lines(head, headFs) * headFs * 1.12 + lines(bodyText, bodyFs) * bodyFs * 1.45 + (proofs.length ? chipRows() * chipFs * 1.9 : 0) + ctaFs * 2 + headFs * 0.28 * 1.4 + gap * 4;
|
|
175
|
+
const total = () => headFs * (logo ? 0.95 : 0.5) + lines(head, headFs) * headFs * 1.12 + lines(bodyText, bodyFs) * bodyFs * 1.45 + (proofs.length ? chipRows() * chipFs * 1.9 : 0) + ctaFs * 2 + headFs * 0.28 * 1.4 + gap * 4;
|
|
176
176
|
const avail = hh - pad * 0.9;
|
|
177
177
|
if (total() > avail && chipRows() > 1)
|
|
178
178
|
proofs = proofs.slice(0, 2);
|
package/package.json
CHANGED