feat(org-chart): add core cards and fixed-layout integration

This commit is contained in:
shkim4 committed 2026-10-12 17:58:30 +09:00
1 parent d18e3c3380
commit 61c6f8d1f1
161 files changed
+13044 -1

No files matched your search

@@ -0,0 +1,17 @@
import type { RenderContext } from './render';
import { createAffiliationMark } from './affiliation-mark';
export function createLogoLegend(document: Document, context: RenderContext, signal: AbortSignal): HTMLElement {
const section = document.createElement('section');
section.className = 'hm-orgchart-logo-legend';
const heading = document.createElement('h2'); heading.textContent = '관계사·회사 로고';
const list = document.createElement('ul'); list.className = 'hm-orgchart-logo-list';
for (const affiliation of context.data.affiliations) {
const item = document.createElement('li');
const name = document.createElement('span'); name.textContent = affiliation.name;
item.append(createAffiliationMark(document, affiliation.id, affiliation.name, signal), name);
list.append(item);
}
section.append(heading, list);
return section;
}