Skip to content

Commit

Permalink
🐛 feat: add layout options params
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Apr 7, 2024
1 parent 633ea9f commit c42d392
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/FlowView/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ export interface NodeMapItem<T = any, U extends string | undefined = string | un
}

export interface LayoutOptions {
rankdir?: 'TB' | 'BT' | 'LR' | 'RL';
align?: 'UL' | 'DL' | 'UR' | 'DR';
nodesep?: number;
ranksep?: number;
width?: number | undefined;
height?: number | undefined;
compound?: boolean | undefined;
rankdir?: string | undefined;
align?: string | undefined;
nodesep?: number | undefined;
edgesep?: number | undefined;
ranksep?: number | undefined;
marginx?: number | undefined;
marginy?: number | undefined;
acyclicer?: string | undefined;
ranker?: string | undefined;
}

export type NodeMapping = Record<string, NodeMapItem>;
Expand Down

0 comments on commit c42d392

Please sign in to comment.