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 more

    Declaration

    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 dragmode is 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 more

    Declaration

    Swift

    public enum DrawDirection : String, Encodable
  • When dragmode is 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 NewShape object 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

    line

    fillColor

    Sets the color filling new shapes’ interior.

    fillRule

    Determines the path’s interior.

    opacity

    Sets the opacity of new shapes.

    layer

    Specifies whether new shapes are drawn below or above traces.

    drawDirection

    When dragmode is set to drawrect, drawline or drawcircle this limits the drag to be horizontal, vertical or diagonal.