CSV Import Connector Issues

197 views
Skip to first unread message

Todd Vanyo

unread,
Mar 30, 2021, 12:13:45 PM3/30/21
to diagrams.net Q&A
I'm trying to get *straight* connectors, without waypoints, from the middle of the right edge of one box to the middle of the left edge of a connected box.

The attached PNG shows the desired output at top. I got this by manually removing the waypoints from the connectors. The next two diagrams show the results with different versions of the connect styling.

I can get connectors with waypoints or connectors that don't connect to the middle of the edge with various versions of the connect line.

Am I experiencing pilot error, a feature, or a bug?

Here is the sample CSV I'm importing:
## Configuration
# label: %name%<br><i>%title%</i>
# style: label;whiteSpace=wrap;html=1;rounded=1;fillColor=#e5e5e5;strokeColor=#000000;
# connect: {"from":"parents","to":"name","invert":true, "style":"html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;rounded=0;"}
# ignore: parents
# nodespacing: 20
# levelspacing: 50
## edgespacing: 20 
# padding: -12
# layout: horizontalflow
## Data
name,title,description,parents
item-0,Foobar.0,item0 description,
subitem-1,foo,subitem1 description,item-0
subitem-2,bar,subitem2 description,item-0
sub-subitem-1,fooComponent1,Some component,subitem-1
sub-subitem-2,fooComponent2,Another component,subitem-1
sub-subitem-3,barComponent3,yet some component,subitem-2
sub-subitem-4,barComponent4,yet another component,subitem-2

Todd
connectorIssues.png

Todd Vanyo

unread,
Mar 30, 2021, 12:34:51 PM3/30/21
to diagrams.net Q&A
Pilot error!

The issue was the layout line, which should have read:
# layout:  horizontaltree 
instead of 
# layout: horizontalflow
Reply all
Reply to author
Forward
0 new messages