diff --git a/d2layouts/d2dagrelayout/layout.go b/d2layouts/d2dagrelayout/layout.go index d8e0476ab..a3d943200 100644 --- a/d2layouts/d2dagrelayout/layout.go +++ b/d2layouts/d2dagrelayout/layout.go @@ -41,7 +41,7 @@ type ConfigurableOpts struct { } var DefaultOpts = ConfigurableOpts{ - NodeSep: 40, + NodeSep: 60, EdgeSep: 20, } diff --git a/d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg b/d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg index 8835236a2..6e4e30c89 100644 --- a/d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg +++ b/d2renderers/d2sketch/testdata/all_shapes/sketch.exp.svg @@ -3,7 +3,7 @@ id="d2-svg" style="background: white;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" -width="1310" height="712" viewBox="-102 -102 1310 712"> \ No newline at end of file diff --git a/e2etests/testdata/regression/elk_loop_panic/dagre/board.exp.json b/e2etests/testdata/regression/elk_loop_panic/dagre/board.exp.json index 8ed66324b..7eefdfb9a 100644 --- a/e2etests/testdata/regression/elk_loop_panic/dagre/board.exp.json +++ b/e2etests/testdata/regression/elk_loop_panic/dagre/board.exp.json @@ -9,7 +9,7 @@ "x": 0, "y": 41 }, - "width": 226, + "width": 266, "height": 125, "opacity": 1, "strokeDash": 0, @@ -47,7 +47,7 @@ "id": "x.a", "type": "rectangle", "pos": { - "x": 30, + "x": 40, "y": 70 }, "width": 53, @@ -88,7 +88,7 @@ "id": "x.b", "type": "rectangle", "pos": { - "x": 143, + "x": 173, "y": 70 }, "width": 53, @@ -153,56 +153,56 @@ "labelPercentage": 0, "route": [ { - "x": 83, - "y": 84.69354838709677 + "x": 93, + "y": 87.05172413793103 }, { - "x": 99, - "y": 73.33870967741936 + "x": 114.33333333333334, + "y": 73.8103448275862 }, { - "x": 104, + "x": 121, "y": 70.5 }, { - "x": 105.5, + "x": 123, "y": 70.5 }, { - "x": 107, + "x": 125.00000000000001, "y": 70.5 }, { - "x": 109, + "x": 127.66666666666667, "y": 77.1 }, { - "x": 110.5, + "x": 129.66666666666669, "y": 87 }, { - "x": 112, + "x": 131.66666666666666, "y": 96.9 }, { - "x": 112, + "x": 131.66666666666666, "y": 110.1 }, { - "x": 110.5, + "x": 129.66666666666669, "y": 120 }, { - "x": 109, + "x": 127.66666666666667, "y": 129.9 }, { - "x": 99, - "y": 133.66129032258064 + "x": 114.33333333333334, + "y": 133.18965517241378 }, { - "x": 83, - "y": 122.30645161290323 + "x": 93, + "y": 119.94827586206897 } ], "isCurve": true, diff --git a/e2etests/testdata/regression/elk_loop_panic/dagre/sketch.exp.svg b/e2etests/testdata/regression/elk_loop_panic/dagre/sketch.exp.svg index 40f7e5ee1..636457be9 100644 --- a/e2etests/testdata/regression/elk_loop_panic/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/elk_loop_panic/dagre/sketch.exp.svg @@ -3,7 +3,7 @@ id="d2-svg" style="background: white;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" -width="430" height="368" viewBox="-102 -100 430 368">

Oldest message

-

Offset

-

Last message

-

Next message will be
+

Oldest message

+

Offset

+

Last message

+

Next message will be
inserted here

-
M0M1M2M3M4M5M6 - +
M0M1M2M3M4M5M6 + x

linux: because a PC is a terrible thing to waste

-
a You don't have to know how the computer works,just how to work the computer. - +x

linux: because a PC is a terrible thing to waste

+
a You don't have to know how the computer works,just how to work the computer. + aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 - - - - - - - - - +aabbllmmnnoocciikkddgghhjjeeff1122 334455667788 + + + + + + + + + poll the peopleresultsunfavorablefavorablewill of the people

A winning strategy

-
- +poll the peopleresultsunfavorablefavorablewill of the people

A winning strategy

+
+ mixed togethersugarsolution we get - - +mixed togethersugarsolution we get + + container

they did it in style

-

a header

+container

they did it in style

+

a header

a line of text and an

{
 	indented: "block",
@@ -805,8 +805,8 @@ width="476" height="684" viewBox="-102 -100 476 684">markdown

Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+markdown

Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
- +
+ markdown

Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+markdown

Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
- +
+ bearmama bearpapa bear - +bearmama bearpapa bear + containerscloudtall cylinderclass- -num -int- -timeout -int- -pid -+ -getStatus() -Enum+ -getJobs() -Job[]+ -setTimeout(seconds int) -voidusersid -int -name -string -email -string -password -string -last_login -datetime -container

markdown text expanded to 800x400

-
:= 5 +containerscloudtall cylinderclass- +num +int- +timeout +int- +pid ++ +getStatus() +Enum+ +getJobs() +Job[]+ +setTimeout(seconds int) +voidusersid +int +name +string +email +string +password +string +last_login +datetime +container

markdown text expanded to 800x400

+
:= 5 := a + 7 -fmt.Printf("%d", b):= 5 +fmt.Printf("%d", b):= 5 := a + 7 -fmt.Printf("%d", b)circle containerdiamond containeroval containerhexagon containerdiamondcirclehexagonoval - +
fmt.Printf("%d", b)
circle containerdiamond containeroval containerhexagon containerdiamondcirclehexagonoval +