AnchorPattern

open class AnchorPattern

Represents a set of anchor points, which specify the exact locations where links are allowed to connect to nodes.

  • Intializes a new empty instance of the AnchorPattern class.

    Declaration

    Swift

    public init()

    Return Value

    The newly created AnchorPattern instance.

  • Intializes a new empty instance of the AnchorPattern class with the specified id.

    Declaration

    Swift

    public init(id: String)

    Parameters

    id

    An unique identifier for this anchor pattern.

    Return Value

    The newly created AnchorPattern instance.

  • Intializes a new empty instance of the AnchorPattern class with the specified anchor points.

    Declaration

    Swift

    public init(points: [AnchorPoint])

    Parameters

    points

    Contains the initial set of AnchorPoint instances for the new pattern.

    Return Value

    The newly created AnchorPattern instance.

  • Intializes a new instance of the AnchorPattern class with the specified anchor points and id.

    Declaration

    Swift

    public init(points: [AnchorPoint], id: String)

    Parameters

    points

    Contains the initial set of AnchorPoint instances for the new pattern.

    id

    An unique identifier for this anchor pattern.

    Return Value

    The newly created AnchorPattern instance.

  • Returns a reference to the anchor pattern with the specified string identifier.

    Declaration

    Swift

    open class func fromId(_ id: String) -> AnchorPattern?

    Parameters

    id

    A string identifying an AnchorPattern instance.

    Return Value

    The AnchorPattern object whose Id is equal to the id parameter, or nil if no such object exists.

  • Gets the predefined anchor pattern Decision2In2Out.

    Declaration

    Swift

    open class var decision2In2Out: AnchorPattern { get }
  • Gets the predefined anchor pattern Decision1In3Out.

    Declaration

    Swift

    open class var decision1In3Out: AnchorPattern { get }
  • Gets the predefined anchor pattern leftInRightOut.

    Declaration

    Swift

    open class var leftInRightOut: AnchorPattern { get }
  • Gets the predefined anchor pattern topInBottomOut.

    Declaration

    Swift

    open class var topInBottomOut: AnchorPattern { get }