From 67ea1a344c412fff44866a8467e91102083ff201 Mon Sep 17 00:00:00 2001 From: Roman Bruckner Date: Fri, 13 Dec 2024 14:57:37 +0100 Subject: [PATCH] chore: remove reduntant code from the flowchart example --- packages/joint-core/demo/flowchart/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/joint-core/demo/flowchart/index.js b/packages/joint-core/demo/flowchart/index.js index ca7ee4f98..d79ff50dc 100644 --- a/packages/joint-core/demo/flowchart/index.js +++ b/packages/joint-core/demo/flowchart/index.js @@ -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'), @@ -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.