font size setting
This commit is contained in:
@@ -277,10 +277,12 @@ struct DiagramLayout {
|
||||
let size: CGSize
|
||||
}
|
||||
|
||||
@MainActor
|
||||
private var labelFont: CTFont {
|
||||
Fonts.ns(13) as CTFont
|
||||
}
|
||||
|
||||
@MainActor
|
||||
private var edgeFont: CTFont {
|
||||
Fonts.ns(12) as CTFont
|
||||
}
|
||||
@@ -296,6 +298,7 @@ func textSize(_ text: String, _ font: CTFont) -> CGSize {
|
||||
return CGSize(width: ceil(width), height: ceil(lineHeight * CGFloat(lines.count)))
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func layoutFlowchart(_ chart: Flowchart) -> DiagramLayout {
|
||||
let ids = chart.order
|
||||
var succ: [String: [String]] = [:]
|
||||
|
||||
Reference in New Issue
Block a user