Enlarge zodiac symbols fivefold
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015HtPHsTnDcLVSCiF5FGHZj
This commit is contained in:
parent
0d0b6d5df4
commit
444d46a4db
1 changed files with 4 additions and 3 deletions
|
|
@ -1609,7 +1609,8 @@ function drawConstellations(c, lst, W, H, horizonPx) {
|
|||
/* Cada signo é rotulado pelo seu símbolo; colisões na tela ainda são
|
||||
evitadas. \uFE0E força a forma de texto (sem versão emoji colorida). */
|
||||
c.shadowBlur = 5;
|
||||
c.font = `${Math.max(14, Math.round(H * 0.015))}px ui-monospace, monospace`;
|
||||
const symbolPx = Math.max(70, Math.round(H * 0.075));
|
||||
c.font = `${symbolPx}px ui-monospace, monospace`;
|
||||
c.textAlign = 'center';
|
||||
c.textBaseline = 'middle';
|
||||
c.fillStyle = 'rgba(170,225,255,0.72)';
|
||||
|
|
@ -1620,8 +1621,8 @@ function drawConstellations(c, lst, W, H, horizonPx) {
|
|||
if (!sc || sc.y < 24 || sc.y > horizonPx - 18) continue;
|
||||
const symbol = (ZODIAC_SYMBOLS[constellation.id] || constellation.name) + '\uFE0E';
|
||||
const width = c.measureText(symbol).width + 14;
|
||||
const box = { x1: sc.x - width / 2, y1: sc.y - 11,
|
||||
x2: sc.x + width / 2, y2: sc.y + 11 };
|
||||
const box = { x1: sc.x - width / 2, y1: sc.y - symbolPx * 0.55,
|
||||
x2: sc.x + width / 2, y2: sc.y + symbolPx * 0.55 };
|
||||
if (occupied.some(o => box.x1 < o.x2 && box.x2 > o.x1 &&
|
||||
box.y1 < o.y2 && box.y2 > o.y1)) continue;
|
||||
occupied.push(box);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue