Connection
${typeof d.totalChannels === 'number' ? html`${d.totalChannels} channels` : nothing}
${d.combinedDefinition ? html`
Combined definition: ${humanize(String(d.combinedDefinition))}
` : nothing}
${this.renderSummary(d.summary)}
${
channels.length > 0
? html`
`
: nothing
}
`;
}
private renderSummary(s: CalculateConnectionResponse['summary'] | undefined) {
if (!s) return nothing;
// The four ways two charts meet in a channel, in canonical HD order.
const rows: Array<[string, number | undefined]> = [
['Electromagnetic', s.electromagnetic],
['Dominance', s.dominance],
['Compromise', s.compromise],
['Companionship', s.companionship],
];
return html`