Chapter 5 panel position corrected

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-30 15:25:54 -05:00
parent 37e92077c3
commit a4d6597f9a
+1 -1
View File
@@ -19,7 +19,7 @@ let PUBLIC_DIR = null, CACHE_DIR = null;
function init(opts) { PUBLIC_DIR = opts.publicDir; CACHE_DIR = path.join(opts.dataDir, 'badges'); try { fs.mkdirSync(CACHE_DIR, { recursive: true }); } catch (e) {} } function init(opts) { PUBLIC_DIR = opts.publicDir; CACHE_DIR = path.join(opts.dataDir, 'badges'); try { fs.mkdirSync(CACHE_DIR, { recursive: true }); } catch (e) {} }
const art = id => path.join(PUBLIC_DIR, 'badges', id + '.jpg'); const art = id => path.join(PUBLIC_DIR, 'badges', id + '.jpg');
// where each artwork's blank glass panel sits (fractions of height, measured on the kie.ai renders of 2026-09-30) // where each artwork's blank glass panel sits (fractions of height, measured on the kie.ai renders of 2026-09-30)
const PLATE = { ch1: [0.752, 0.949], ch3: [0.758, 0.949], ch5: [0.719, 0.946], ch10: [0.783, 0.95], ch15: [0.754, 0.93], ch20: [0.739, 0.949], const PLATE = { ch1: [0.752, 0.949], ch3: [0.758, 0.949], ch5: [0.782, 0.948], ch10: [0.783, 0.95], ch15: [0.754, 0.93], ch20: [0.739, 0.949],
magnet: [0.758, 0.949], ship: [0.732, 0.949], shield: [0.754, 0.95], slow: [0.76, 0.945], refuel5: [0.76, 0.944], refuel25: [0.762, 0.949], refuel100: [0.76, 0.949], paid: [0.775, 0.961] }; magnet: [0.758, 0.949], ship: [0.732, 0.949], shield: [0.754, 0.95], slow: [0.76, 0.945], refuel5: [0.76, 0.944], refuel25: [0.762, 0.949], refuel100: [0.76, 0.949], paid: [0.775, 0.961] };
function font(name) { const f = path.join(PUBLIC_DIR, 'fonts', name); if (fs.existsSync(f)) return f; for (const d of ['/usr/share/fonts/truetype/dejavu', '/usr/share/fonts/dejavu', '/usr/share/fonts/TTF']) { const g = path.join(d, 'DejaVuSans-Bold.ttf'); if (fs.existsSync(g)) return g; } return null; } function font(name) { const f = path.join(PUBLIC_DIR, 'fonts', name); if (fs.existsSync(f)) return f; for (const d of ['/usr/share/fonts/truetype/dejavu', '/usr/share/fonts/dejavu', '/usr/share/fonts/TTF']) { const g = path.join(d, 'DejaVuSans-Bold.ttf'); if (fs.existsSync(g)) return g; } return null; }
const ffText = t => String(t).replace(/\\/g, '\\\\').replace(/'/g, "\u2019").replace(/:/g, '\\:').replace(/%/g, '%%').replace(/,/g, '\\,'); const ffText = t => String(t).replace(/\\/g, '\\\\').replace(/'/g, "\u2019").replace(/:/g, '\\:').replace(/%/g, '%%').replace(/,/g, '\\,');