try
This commit is contained in:
parent
3a0bab35c3
commit
d4dac38d75
5 changed files with 177 additions and 177 deletions
|
|
@ -119,7 +119,7 @@ func createCircularArc(edge *d2graph.Edge) {
|
||||||
tangentX /= mag
|
tangentX /= mag
|
||||||
tangentY /= mag
|
tangentY /= mag
|
||||||
}
|
}
|
||||||
const MIN_SEGMENT_LEN = 10.0
|
const MIN_SEGMENT_LEN = 20.0
|
||||||
// Calculate current segment direction
|
// Calculate current segment direction
|
||||||
dx := lastPoint.X - secondLastPoint.X
|
dx := lastPoint.X - secondLastPoint.X
|
||||||
dy := lastPoint.Y - secondLastPoint.Y
|
dy := lastPoint.Y - secondLastPoint.Y
|
||||||
|
|
|
||||||
24
e2etests/testdata/txtar/cycle-diagram/dagre/board.exp.json
generated
vendored
24
e2etests/testdata/txtar/cycle-diagram/dagre/board.exp.json
generated
vendored
|
|
@ -864,8 +864,8 @@
|
||||||
"y": -37.47600173950195
|
"y": -37.47600173950195
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 195.6020050048828,
|
"x": 193.95199584960938,
|
||||||
"y": -42.86199951171875
|
"y": -52.724998474121094
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 197.2519989013672,
|
"x": 197.2519989013672,
|
||||||
|
|
@ -1228,8 +1228,8 @@
|
||||||
"y": 197.53700256347656
|
"y": 197.53700256347656
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 36.4109992980957,
|
"x": 46.323001861572266,
|
||||||
"y": 196.90499877929688
|
"y": 195.5800018310547
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 26.5,
|
"x": 26.5,
|
||||||
|
|
@ -1592,8 +1592,8 @@
|
||||||
"y": 37.47600173950195
|
"y": 37.47600173950195
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": -195.6020050048828,
|
"x": -193.95199584960938,
|
||||||
"y": 42.86199951171875
|
"y": 52.724998474121094
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": -197.2519989013672,
|
"x": -197.2519989013672,
|
||||||
|
|
@ -1972,8 +1972,8 @@
|
||||||
"y": 111.8030014038086
|
"y": 111.8030014038086
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 704.7830200195312,
|
"x": 708.1329956054688,
|
||||||
"y": 107.5770034790039
|
"y": 98.15499877929688
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 701.4329833984375,
|
"x": 701.4329833984375,
|
||||||
|
|
@ -2336,8 +2336,8 @@
|
||||||
"y": 186.90899658203125
|
"y": 186.90899658203125
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 370.2919921875,
|
"x": 376.9429931640625,
|
||||||
"y": 190.46800231933594
|
"y": 197.93600463867188
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 363.6419982910156,
|
"x": 363.6419982910156,
|
||||||
|
|
@ -2740,8 +2740,8 @@
|
||||||
"y": 196.45700073242188
|
"y": 196.45700073242188
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 1008.4110107421875,
|
"x": 1018.322998046875,
|
||||||
"y": 196.89300537109375
|
"y": 195.5679931640625
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 998.5,
|
"x": 998.5,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
24
e2etests/testdata/txtar/cycle-diagram/elk/board.exp.json
generated
vendored
24
e2etests/testdata/txtar/cycle-diagram/elk/board.exp.json
generated
vendored
|
|
@ -864,8 +864,8 @@
|
||||||
"y": -25.47599983215332
|
"y": -25.47599983215332
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 207.6020050048828,
|
"x": 205.95199584960938,
|
||||||
"y": -30.86199951171875
|
"y": -40.724998474121094
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 209.2519989013672,
|
"x": 209.2519989013672,
|
||||||
|
|
@ -1228,8 +1228,8 @@
|
||||||
"y": 209.53700256347656
|
"y": 209.53700256347656
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 48.4109992980957,
|
"x": 58.323001861572266,
|
||||||
"y": 208.90499877929688
|
"y": 207.5800018310547
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 38.5,
|
"x": 38.5,
|
||||||
|
|
@ -1592,8 +1592,8 @@
|
||||||
"y": 49.47600173950195
|
"y": 49.47600173950195
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": -183.6020050048828,
|
"x": -181.95199584960938,
|
||||||
"y": 54.86199951171875
|
"y": 64.7249984741211
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": -185.2519989013672,
|
"x": -185.2519989013672,
|
||||||
|
|
@ -1972,8 +1972,8 @@
|
||||||
"y": 123.8030014038086
|
"y": 123.8030014038086
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 677.2830200195312,
|
"x": 680.6329956054688,
|
||||||
"y": 119.5770034790039
|
"y": 110.15499877929688
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 673.9329833984375,
|
"x": 673.9329833984375,
|
||||||
|
|
@ -2336,8 +2336,8 @@
|
||||||
"y": 198.90899658203125
|
"y": 198.90899658203125
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 342.7919921875,
|
"x": 349.4429931640625,
|
||||||
"y": 202.46800231933594
|
"y": 209.93600463867188
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 336.1419982910156,
|
"x": 336.1419982910156,
|
||||||
|
|
@ -2740,8 +2740,8 @@
|
||||||
"y": 208.45700073242188
|
"y": 208.45700073242188
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 941.3209838867188,
|
"x": 951.2329711914062,
|
||||||
"y": 208.89300537109375
|
"y": 207.5679931640625
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x": 931.4099731445312,
|
"x": 931.4099731445312,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
Loading…
Reference in a new issue