/** Org chart node dimensions for ELK layout spacing. */
export const OC_SIZES = {
  person: {
    w: 280,
    h: 80,
  },
} as const;

/** Map DiagramNode.type (with or without org: prefix) to @xyflow/react node type string. */
export function resolveOrgchartNodeType(type: string): string {
  const bare = type.startsWith("org:") ? type.slice(4) : type;
  switch (bare) {
    case "person":
    default:
      return "orgchartPerson";
  }
}

/** Map DiagramEdge.type to @xyflow/react edge type string for org chart diagrams. */
export function resolveOrgchartEdgeType(_type: string | undefined): string {
  return "orgchartHierarchy";
}
