${this.t('{{count}} signs', { count: signs.length })}
` : nothing } ${renderFrameCaption(this.effectiveLang(), d.frame, this.translator)}${this.t('No sarvashtakavarga data')}
`; return html`| ${this.t('Sign')} | ${this.t('Bindus')} |
|---|---|
|
${sign}
|
${count} |
| ${this.t('Total')} | ${sav.total} |
${this.t('No bhinnashtakavarga data')}
`; return html`${this.renderBinduGrid( signs, bhinna, 'Bhinnashtakavarga: the bindus each planet scores in every one of the twelve signs, with a row total.', )} ${this.renderLegend( 'Each planet scores 0 to 8 bindus per sign. 4 is the mid, 5 and above is strong support for that planet in that sign.', )}`; } /** * The Shodhana-purified grid (Trikona then Ekadipati), which is what Shodhya * Pinda is computed from. The column totals are the Reduced Sarvashtakavarga, * so they are shown as the total row rather than as a second table. */ private renderReduced(signs: Signs) { const reduced = this.data?.reducedBhinnashtakavarga; const rsav = this.data?.reducedSarvashtakavarga; if (!reduced?.length && !rsav) return html`${this.t('No reduced ashtakavarga data')}
`; return html`${this.renderBinduGrid( signs, reduced ?? [], 'Reduced Bhinnashtakavarga after Shodhana: the bindus each planet keeps in every one of the twelve signs, with a row total and a Reduced Sarvashtakavarga totals row.', rsav, )} ${this.renderLegend( 'Bindus left after Trikona and Ekadipati Shodhana, the input to Shodhya Pinda. The Reduced SAV row totals the seven planets only, so it does not include the Lagna row above it.', )}`; } /** * The planet-by-sign grid both the bhinna and the reduced tabs draw. The rows * are the 7 planets plus Lagna, but a Sarva total counts the 7 planets only * (which is why the classical SAV grand total is 337), so the totals row is * named for what it is rather than left to read as a column sum. */ private renderBinduGrid( signs: Signs, rows: BhinnaRow[], caption: string, totals?: SarvaRow, ) { if (!rows.length) return html`${this.t('No bindu data')}
`; return html`| ${this.t('Planet')} | ${signs.map( (s) => html`${signGlyph(s) ?? s} | `, )}${this.t('Total')} |
|---|---|---|
| ${row.planet} | ${row.bindus.map( (count) => html`${count} | `, )}${row.total} |
| ${this.t('Reduced SAV')} | ${signs.map((_, i) => html`${totals.bindus[i] ?? 0} | `)}${totals.total} |
${this.t('No shodhya pinda data')}
`; return html`| ${this.t('Planet')} | ${this.t('Rashi Pinda')} | ${this.t('Graha Pinda')} | ${this.t('Shodhya Pinda')} |
|---|---|---|---|
| ${row.planet} | ${row.rashiPinda} | ${row.grahaPinda} | ${row.shodhyaPinda} |