CompositePath

class CompositePath

An array of paths.

  • property documentation (update this)

    Declaration

    var isEmpty: Bool { get }
  • property documentation (update this)

    Declaration

    var paths: Array { get }
  • property documentation (update this)

    Declaration

    var points: Array { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: CompositePath) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.

  • Takes in a CGSize and returns a path representing an SVGC using only cubic curves.

    Builds the CGPath from the specified CompositePath at the specified size. Then uses that path to to build a SVG path string from a NSBezierPath using strictly cubic curves.

    Declaration

    func svgc(size: Size) -> String

    Parameters

    size

    Size of the svgc

    Return Value

    Returns a string reperesenting an SVGC.

  • Takes in a CGSize and returns a path representing an SVGC.

    Builds the CGPath from the specified CompositePath at the specified size. Then uses that path to to build a SVG path string from a NSBezierPath.

    Declaration

    func svg(size: Size) -> String

    Parameters

    size

    Size of the svgc

    Return Value

    Returns a string representing an SVG.