-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
Connection Reroute #657
Comments
Hello, It seems to be a css problem. Example with the minimum of operation. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/jerosoler/Drawflow/dist/drawflow.min.css"
/>
<script src="https://cdn.jsdelivr.net/gh/jerosoler/Drawflow/dist/drawflow.min.js"></script>
<style>
#drawflow {
position: relative;
width: 100%;
height: 800px;
border: 1px solid red;
}
</style>
</head>
<body>
<div>
<div id="drawflow"></div>
</div>
<script>
var id = document.getElementById("drawflow");
const editor = new Drawflow(id);
editor.reroute = true;
editor.start();
editor.addNode('test1', 1, 1, 440, 300, 'test1', {}, '<textarea></textarea><div id="content"></div>');
editor.addNode('test1', 1, 1, 200, 300, 'test1', {}, '<textarea></textarea><div id="content"></div>');
const nodeA = editor.addNode('NodeA', 1, 1, 440, 300, 'NodeA', {}, 'NodeA');
const nodeB = editor.addNode('NodeB', 1, 1, 840, 300, 'NodeB', {}, 'NodeB');
const nodeC = editor.addNode('NodeC', 1, 1, 840, 500, 'NodeC', {}, 'NodeC');
editor.addConnection(nodeA, nodeB, "output_1", "input_1");
editor.addConnection(nodeA, nodeC, "output_1", "input_1");
</script>
</body>
</html> It reminds me of one of these issues, see if any of them solve the problem. |
Hi, Thanks, will give those a look and see if I can find what's causing the conflict |
Use for fix adding points: editor.reroute_fix_curvature = true; |
Shot, thanks Keep up the good work :) |
ghost
closed this as completed
Feb 12, 2023
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem:
Strange behavior when adding a retoute point on a connection.
The reroute point seems to be placed incorrectly but can't seem to see any obvious reasons why that would happen
Expected Behavior
Taken from Drawflow example site: https://jerosoler.github.io/Drawflow/
Experienced Behavior
On my app
This behavior can also be replicated on the CodePen example site: https://codepen.io/KikePuma/pen/OJXXXdb
Version:
Css: 0.0.59
JS: 0.0.59
Environment:
Babel
JSX
React
TailwindCss
Jquery
The text was updated successfully, but these errors were encountered: