Skip to content

Commit 516580d

Browse files
committed
add next.MD message, replace falltrough with comma
1 parent 36c05f3 commit 516580d

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

ci/release/changelogs/next.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#### Features 🚀
22

3+
- Crow foot notation is now supported. [#578](https://github.com/terrastruct/d2/pull/578)
4+
35
#### Improvements 🧹
46

57
#### Bugfixes ⛑️

d2renderers/d2svg/d2svg.go

+2-14
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,7 @@ func arrowheadDimensions(arrowhead d2target.Arrowhead, strokeWidth float64) (wid
113113
case d2target.DiamondArrowhead:
114114
widthMultiplier = 11
115115
heightMultiplier = 9
116-
case d2target.CrowsFeetManyOptional:
117-
fallthrough
118-
case d2target.CrowsFeetManyRequired:
119-
fallthrough
120-
case d2target.CrowsFeetOneOptional:
121-
fallthrough
122-
case d2target.CrowsFeetOneRequired:
116+
case d2target.CfOne, d2target.CfMany, d2target.CfOneRequired, d2target.CfManyRequired:
123117
widthMultiplier = 14
124118
heightMultiplier = 15
125119
}
@@ -229,13 +223,7 @@ func arrowheadMarker(isTarget bool, id string, connection d2target.Connection) s
229223
width*0.6, height*7/8,
230224
)
231225
}
232-
case d2target.CrowsFeetOneRequired:
233-
fallthrough
234-
case d2target.CrowsFeetOneOptional:
235-
fallthrough
236-
case d2target.CrowsFeetManyRequired:
237-
fallthrough
238-
case d2target.CrowsFeetManyOptional:
226+
case d2target.CfOne, d2target.CfMany, d2target.CfOneRequired, d2target.CfManyRequired:
239227
attrs := fmt.Sprintf(`class="connection" stroke="%s" stroke-width="%d" fill="white"`, connection.Stroke, connection.StrokeWidth)
240228
offset := 4.0 + (float64(connection.StrokeWidth) * 2.0)
241229
var modifier string

0 commit comments

Comments
 (0)