-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verticle Connected Lines are not showing it will convert in horizontally after saving #806
Comments
I understand that you have modified the lines with the function: In the createCurvature function you will have to detect which lines are vertical and horizontal and create a curvature for each of them. |
Thanks for your quick support editor.createCurvature = function (
|
I had not taken into account the issue of two directions. The problem is that drawflow is only designed for one direction. The problem with detecting input and output is that they have to have an address. view this PR: And issue: And vertical lines: |
Hi @jerosoler Below Method i am using to show the existing Node getExistingNodes(id: any) {
} and Below function i am using to create a new Node this.editor.on("connectionCreated", function (info: any) {
|
Why doesn't the editor load with the "editor.import(you_data)" method? I see in this line that it is always indicating output 1 and input 1. this.editor.addConnection(outputIndex + 1, j + 1, 'output_1', 'input_1') |
Thanks @jerosoler for your support but I am a little bit confused about how can we add or show which input port connects to which output port if we have multiple input and output ports. Below I am adding one function by using this i am showing 6 input and 6 output port nodeCommonCode(temp: any, positions: any, flag: any, config: any, newNodes: any){ It will be grate help for me. |
Hi @jerosoler It's me Again I have solved my previous problem because for your support only now I have one problem in the Editor.createCurvature function I want to change the type of Arrow suppose I have 6 inputs and output and I want if a line connects to the verticle ports top then the arrow should be the (DOWNWARDS ARROW) and the line is connect to the left side of port then it should be (RIGHTWARDS ARROW) I am attaching my Create Curvature Function Please have a look once I have try By my own self and i am able create Arrow on dynamic shapes ports editor.createCurvature = function (
|
Hi @jerosoler
I am using this Library, and I am facing one issue in my node i have the input and output in both directions horizontally and vertically but when I try to connect a node Horizontally and save it shows right, and when I try to connect the node from the bottom and save it after saving its automatically joint from horizontal ports verticle I am unable to show after saving I have the 6 input and 6 output ports.
I have attached a sample picture for your reference.
The text was updated successfully, but these errors were encountered: