Skip to content

Commit

Permalink
chore: remove reduntant code from the flowchart example
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus committed Dec 13, 2024
1 parent eaa478a commit 67ea1a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/joint-core/demo/flowchart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ graph.addCells([
createFlow(addPaymentInfo, validPayment, 'bottom', 'top'),
createFlow(validPayment, presentErrorMessage, 'right', 'left')
.labels([{ attrs: { labelText: { text: 'No' }}}]),
createFlow(presentErrorMessage, addPaymentInfo, 'top', 'right')
.vertices([{ x: 800, y: 170 }]),
createFlow(presentErrorMessage, addPaymentInfo, 'top', 'right'),
createFlow(validPayment, sendOrderToWarehouse, 'left', 'right')
.labels([{ attrs: { labelText: { text: 'Yes' }}}]),
createFlow(sendOrderToWarehouse, packOrder, 'bottom', 'top'),
Expand All @@ -233,7 +232,6 @@ graph.addCells([
.labels([{ attrs: { labelText: { text: 'Ok' }}}]),
createFlow(qualityCheck, sendOrderToWarehouse, 'left', 'left')
.labels([{ attrs: { labelText: { text: 'Not Ok' }}}])
.vertices([{ x: 100, y: 490 }, { x: 100, y: 280 }])
]);

// Automatically scale the content to fit the paper.
Expand Down

0 comments on commit 67ea1a3

Please sign in to comment.