Skip to content

Commit

Permalink
feat: support transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
juzhiyuan committed Apr 23, 2021
1 parent 3bd1ece commit 549b064
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 41 deletions.
18 changes: 17 additions & 1 deletion web/src/components/PluginFlow/components/FlowGraph/shapes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,23 @@ import { DEFAULT_SHAPE_RECT_OPINIONS, FlowGraphShape } from '../../constants';

export const FlowChartRect = Graph.registerNode(FlowGraphShape.base, DEFAULT_SHAPE_RECT_OPINIONS)

export const FlowChartConditionRect = Graph.registerNode(FlowGraphShape.condition, DEFAULT_SHAPE_RECT_OPINIONS)
export const FlowChartConditionRect = Graph.registerNode(FlowGraphShape.condition, {
...DEFAULT_SHAPE_RECT_OPINIONS,
ports: {
...DEFAULT_SHAPE_RECT_OPINIONS.ports,
items: [
{
group: 'top',
},
{
group: 'right',
},
{
group: 'bottom',
},
],
}
})

export const FlowChartStartRect = Graph.registerNode(FlowGraphShape.start, {
...DEFAULT_SHAPE_RECT_OPINIONS,
Expand Down
Loading

0 comments on commit 549b064

Please sign in to comment.