jquery.flowchart icon indicating copy to clipboard operation
jquery.flowchart copied to clipboard

Overwrite multipleLinksOnInput and multipleLinksOnOutput properties of the default options.

Open lucasrego opened this issue 9 years ago • 1 comments

On createLink method, multipleLinksOnOutput and multipleLinksOnInput properties are obtained only from the default options.

after line 211, include this code to obtain (if exists) the multipleLinksOnOutput property of the fromOperator and the multipleLinksOnInput property of the toOperator.

In this way, each operator may overwrite the default properties.

if (typeof this.getOperatorData(linkDataOriginal.fromOperator).multipleLinksOnOutput !== "undefined")
                multipleLinksOnOutput = this.getOperatorData(linkDataOriginal.fromOperator).multipleLinksOnOutput;

if (typeof this.getOperatorData(linkDataOriginal.toOperator).multipleLinksOnInput !== "undefined")
                multipleLinksOnInput = this.getOperatorData(linkDataOriginal.toOperator).multipleLinksOnInput;

congratulations for the work!

lucasrego avatar Sep 22 '16 03:09 lucasrego

Thanks for the suggestion, I will add it shortly :smile:

sdrdis avatar Sep 24 '16 14:09 sdrdis