NewShape
public struct NewShape : Encodable
Undocumented
-
Undocumented
Declaration
Swift
public var line: DashedLine? -
Sets the color filling new shapes’ interior.
Please note that if using a fillcolor with alpha greater than half, drag inside the active shape starts moving the shape underneath, otherwise a new shape could be started over.
Declaration
Swift
public var fillColor: Color? -
Determines the path’s interior.
For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule
See moreDeclaration
Swift
public enum FillRule : String, Encodable -
Determines the path’s interior.
For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule
Declaration
Swift
public var fillRule: FillRule? -
Sets the opacity of new shapes.
Declaration
Swift
public var opacity: Double? -
Specifies whether new shapes are drawn below or above traces.
Declaration
Swift
public var layer: ShapeLayer? -
When
dragmodeis set to drawrect, drawline or drawcircle this limits the drag to be horizontal, vertical or diagonal.Using diagonal there is no limit e.g. in drawing lines in any direction. ortho limits the draw to be either horizontal or vertical. horizontal allows horizontal extend. vertical allows vertical extend.
See moreDeclaration
Swift
public enum DrawDirection : String, Encodable -
When
dragmodeis set to drawrect, drawline or drawcircle this limits the drag to be horizontal, vertical or diagonal.Using diagonal there is no limit e.g. in drawing lines in any direction. ortho limits the draw to be either horizontal or vertical. horizontal allows horizontal extend. vertical allows vertical extend.
Declaration
Swift
public var drawDirection: DrawDirection? -
Creates
NewShapeobject with specified properties.Declaration
Swift
public init(line: DashedLine? = nil, fillColor: Color? = nil, fillRule: FillRule? = nil, opacity: Double? = nil, layer: ShapeLayer? = nil, drawDirection: DrawDirection? = nil)Parameters
linefillColorSets the color filling new shapes’ interior.
fillRuleDetermines the path’s interior.
opacitySets the opacity of new shapes.
layerSpecifies whether new shapes are drawn below or above traces.
drawDirectionWhen
dragmodeis set to drawrect, drawline or drawcircle this limits the drag to be horizontal, vertical or diagonal.
View on GitHub
Install in Dash
NewShape Structure Reference