Function createEl

Creates an element of type and with id (if specified)

  • Type Parameters

    • V extends SVGElement

    Parameters

    • type: string

      Element type, eg circle

    • Optionalid: string

      Optional id to assign to element

    Returns V

    Element