pycodestyle
pycodestyle copied to clipboard
Edgestyle straight is not working
``Hi,
When using "straight" as EdgeStyle I'm getting following errors in my console.
<Svelvet
id="my-canvas"
{height}
minimap={true}
controls={true}
on:connection={(e) => connectionCreated(e)}
zoom={0.8}
edgeStyle="straight"
>
{#each nodes as node (node.id)}
<BaseNode
nodeData={node}
onAddNodeClicked={() => addNode(node.id)}
/>
{/each}
</Svelvet>
In ../components/Edge/Edge.svelte, line 129, changing:
$:
if (!step || edgeKey === "cursor" || $edgeType === "bezier") {
path = `M ${sourceX},${sourceY} ${!straight && controlPointString} ${targetX},${targetY}`;
}
to:
$:
if (!step || edgeKey === "cursor" || $edgeType === "bezier") {
path = `M ${sourceX},${sourceY} ${!straight ? controlPointString : ''} ${targetX},${targetY}`;
}
fixes it for me.
Can confirm this issue still persists in the latest version