/// How a `Diagram` is drawn. Lengths are in points; `lightGrey` is a grey level, 0 black to 1 white. /// /// `NOTATION.md` beside the golden images records the source of each choice. public struct DiagramStyle: Sendable { /// `B` edges and creases folded in the drawn frame. public var outlineWidth: Double /// Creases made earlier and flat again. public var lightWidth: Double public var lightGrey: Double /// The step's own creases. public var creaseWidth: Double /// Dash, gap: a valley. public var valleyDash: [Double] /// Dash, gap, dot, gap, dot, gap: a mountain, drawn with butt caps. public var mountainDash: [Double] public var arrowWidth: Double public var headLength: Double /// The full head's width; a half head has one barb of half this. public var headWidth: Double /// The longer side of the push arrow and of the turn-over and rotate symbols. public var symbolSize: Double public init(outlineWidth: Double, lightWidth: Double, lightGrey: Double, creaseWidth: Double, valleyDash: [Double], mountainDash: [Double], arrowWidth: Double, headLength: Double, headWidth: Double, symbolSize: Double) { self.outlineWidth = outlineWidth self.lightWidth = lightWidth self.lightGrey = lightGrey self.creaseWidth = creaseWidth self.valleyDash = valleyDash self.mountainDash = mountainDash self.arrowWidth = arrowWidth self.headLength = headLength self.headWidth = headWidth self.symbolSize = symbolSize } public static let standard = DiagramStyle( outlineWidth: 2, lightWidth: 1, lightGrey: 0.6, creaseWidth: 1.5, valleyDash: [7, 4], mountainDash: [9, 3, 2, 3, 2, 3], arrowWidth: 1.5, headLength: 14, headWidth: 10, symbolSize: 60 ) }