Function parent

  • Searches up from currentElement until an element is found with the parentName.

    Parameters

    • currentElement: SVGElement

      HTML element to search up from.

    • parentName: string

      Tag name of element to search for.

    Returns SVGElement | null

    Found HTML element or null.

Generated using TypeDoc