A wrapper around the Toolkit's path object, which offers a few DOM specific methods.

Constructors

  • Parameters

    • path: Path

      Underlying path object.

    • surface: Surface

      The surface that constructed this path.

    Returns UIPath

Properties

path: Path

Underlying path object.

surface: Surface

The surface that constructed this path.

Methods

  • Adds a CSS class to the elements representing the vertices and edges in the path

    Parameters

    • clazz: string

    Returns void

  • Adds a CSS class to the elements representing the edges in the path

    Parameters

    • clazz: string

    Returns void

  • Adds a CSS class to the elements representing the vertices in the path

    Parameters

    • clazz: string

    Returns void

  • Gets the total number of edges in the path.

    Returns number

  • Gets the count of vertices in the path.

    Returns number

  • Removes a CSS class from the elements representing the vertices and edges in the path

    Parameters

    • clazz: string

    Returns void

  • Removes a CSS class from the elements representing the edges in the path

    Parameters

    • clazz: string

    Returns void

  • Removes a CSS class from the elements representing the vertices in the path

    Parameters

    • clazz: string

    Returns void

  • Sets the visible state of all vertices and edges in the path

    Parameters

    • val: boolean

    Returns void

Version :