export interface IHierachy { t: string; p?: any; c?: T[]; } export interface INode extends IHierachy { d?: number; v: string; } export interface IMarkmapCreateOptions { open?: boolean; content?: string; input?: string; output?: string; mathJax?: boolean; } export interface IMarkmapOptions { id?: string; duration?: number; nodeFont?: string; nodeMinHeight?: number; spacingVertical?: number; spacingHorizontal?: number; autoFit?: boolean; fitRatio?: number; color?: (key: string) => string; colorDepth?: number; paddingX?: number; style?: (id: string) => string; processHtml?: (container: Node[]) => void; } export interface IMarkmapState { id: string; data?: any; minX?: number; maxX?: number; minY?: number; maxY?: number; }