ShapedSmoothDashedLine
public struct ShapedSmoothDashedLine : Encodable
Undocumented
-
Sets the line color.
Declaration
Swift
public var color: Color?
-
Sets the line width (in px).
Declaration
Swift
public var width: Double?
-
Determines the line shape.
With spline the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes.
See moreDeclaration
Swift
public enum Shape : String, Encodable
-
Determines the line shape.
With spline the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes.
Declaration
Swift
public var shape: Shape?
-
Has an effect only if
shape
is set to spline Sets the amount of smoothing.0 corresponds to no smoothing (equivalent to a linear shape).
Declaration
Swift
public var smoothing: Double?
-
Sets the dash style of lines.
Set to a dash type string (solid, dot, dash, longdash, dashdot, or longdashdot) or a dash length list in px (eg 5px,10px,2px,2px).
Declaration
Swift
public var dash: String?
-
Simplifies lines by removing nearly-collinear points.
When transitioning lines, it may be desirable to disable this so that the number of points along the resulting SVG path is unaffected.
Declaration
Swift
public var simplify: Bool?
-
Creates
ShapedSmoothDashedLine
object with specified properties.Declaration
Parameters
color
Sets the line color.
width
Sets the line width (in px).
shape
Determines the line shape.
smoothing
Has an effect only if
shape
is set to spline Sets the amount of smoothing.dash
Sets the dash style of lines.
simplify
Simplifies lines by removing nearly-collinear points.