## module:Tag(tagName)

Parent class for all svgObjects

#### new module:Tag(tagName)
`modules/svgObjects/Tag.js`, `line 8`

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `tagName` | string | SVG tag identifier (`rect`, `image`, `PolyLine`)

### Members

#### $el :jQuery.element
`modules/svgObjects/Tag.js`, `line 23`

  jQuery element for this tag

#### id :string
`modules/svgObjects/Tag.js`, `line 29`

  unique ID of this SVG object

#### id
`modules/svgObjects/Tag.js`, `line 86`

  set id of this SVG object

#### id
`modules/svgObjects/Tag.js`, `line 94`

  get id of this SVG object

#### tagName :string
`modules/svgObjects/Tag.js`, `line 17`

  SVG tag identifier (`rect`, `image`, `PolyLine`)

### Methods

#### addAttr(assoc)
`modules/svgObjects/Tag.js`, `line 54`

  set attributes of this element

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `assoc` | Object | javascript object that will be mapped into attributes (`{key: value}` -> `key="value"`)

#### addClass(name)
`modules/svgObjects/Tag.js`, `line 36`

  add a class to this element

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `name` | string | class name to be added

#### checkIfElementExistsInDOM()
`modules/svgObjects/Tag.js`, `line 110`

  check if the element exists in dom, if so, refetch it from DOM using jQuery

#### get() → {jQuery.element}
`modules/svgObjects/Tag.js`, `line 102`

  get jQuery element for this SVG object

  ##### Returns:

  jQuery.element

#### getAttr(name) → {string}
`modules/svgObjects/Tag.js`, `line 66`

  get attribute value by name

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `name` | string | name of the attribute

  ##### Returns:

  string -

  value of the attribute

#### removeAttr(name)
`modules/svgObjects/Tag.js`, `line 76`

  remove attribute by value

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `name` | string | name of the attribute to be removed

#### removeClasses(…classes)
`modules/svgObjects/Tag.js`, `line 44`

  remove class names from this element

  ##### Parameters:

  Name | Type | Attributes | Description
  --- | --- | --- | ---
  `classes` | string | <repeatable> | class names to be removed