Skip to content

Commit

Permalink
✨ feat: 新增group节点width,height
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Oct 24, 2023
1 parent 5690b94 commit 8ca6796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ProFlow/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface NodeMapItem {
title?: string;
group?: boolean;
des?: string;
width?: number;
height?: number;
danger?: boolean;
dangerCount?: number;
type?: 'input' | 'output' | 'default';
Expand Down
2 changes: 2 additions & 0 deletions src/ProFlow/helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export function convertMappingFrom(nodes: ProFlowNode[], edges: ProFlowEdge[], z
mapping[node.id] = {
id: node.id,
group: node.group,
width: node.group ? 355 : 322,
height: node.group ? 1100 : 85,
data: node.data,
select: node.select,
right: [],
Expand Down

0 comments on commit 8ca6796

Please sign in to comment.