1- import { wrapText } from '../utils' ;
2-
31/*
42 * TAROT_CARD — occult card rendered with sacred geometry, hand-drawn stroke
53 * variation, dense starfield, ornate gilt border with repeating tracery, and
@@ -26,20 +24,6 @@ const toRoman = (num) => {
2624 return out ;
2725} ;
2826
29- // Hand-drawn line: break into many tiny segments with slight jitter.
30- const sketchLine = ( ctx , x1 , y1 , x2 , y2 , rng , jitter = 1 ) => {
31- const segs = Math . max ( 4 , Math . floor ( Math . hypot ( x2 - x1 , y2 - y1 ) / 8 ) ) ;
32- ctx . beginPath ( ) ;
33- ctx . moveTo ( x1 , y1 ) ;
34- for ( let i = 1 ; i <= segs ; i ++ ) {
35- const t = i / segs ;
36- const x = x1 + ( x2 - x1 ) * t + ( rng ( ) - 0.5 ) * jitter ;
37- const y = y1 + ( y2 - y1 ) * t + ( rng ( ) - 0.5 ) * jitter ;
38- ctx . lineTo ( x , y ) ;
39- }
40- ctx . stroke ( ) ;
41- } ;
42-
4327// Star at (cx,cy) filled
4428const star = ( ctx , cx , cy , rOut , rIn , points = 5 ) => {
4529 ctx . beginPath ( ) ;
@@ -55,7 +39,7 @@ const star = (ctx, cx, cy, rOut, rIn, points = 5) => {
5539
5640export const tarotCard = ( ctx , width , height , scale , data ) => {
5741 const {
58- primaryColor, secondaryColor , bgColor,
42+ primaryColor, bgColor,
5943 repoOwner, repoName, description, language, stars, forks, supportUrl,
6044 showPattern,
6145 } = data ;
@@ -208,9 +192,7 @@ export const tarotCard = (ctx, width, height, scale, data) => {
208192
209193 // --- Inner card area ---
210194 const iPad = 38 * scale ;
211- const iX = cardX + iPad ;
212195 const iY = cardY + iPad ;
213- const iW = cardW - iPad * 2 ;
214196
215197 // --- Top: Roman numeral between two filigree dividers ---
216198 const numeral = toRoman ( stars || forks || repoName . length ) ;
0 commit comments