
## Connection class

Contains elements for one connection point defined for the shape.

```js
new Connection()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [deepClone()](#deepclone) | Creates deep copy of this instance. |
| [getAutoGen()](#getautogen) | Specifies if the connection point is generated automatically. A value of 1 indicates that the connection point is genera |
| [getDel()](#getdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [getDirX()](#getdirx) | Specifies the x-component for the required alignment vector of a matching connection point. The DirX element is also use |
| [getDirY()](#getdiry) | Specifies the y-component for the required alignment vector of a matching connection point. The DirY element is also use |
| [getID()](#getid) | The unique ID of the element within its parent element. |
| [getIX()](#getix) | The zero-based index of the element within its parent element. |
| [getName()](#getname) | The name of the element. |
| [getNameU()](#getnameu) | The universal name of the element. |
| [getPrompt()](#getprompt) | Contains varying prompt information, based on the element in which it is contained. |
| [getType()](#gettype) | Specifies various types, based on the element in which it is contained. |
| [getX()](#getx) | Specifies an x-coordinate on a shape in local coordinates. |
| [getY()](#gety) | Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the sh |
| [setDel()](#setdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [setID()](#setid) | The unique ID of the element within its parent element. |
| [setIX()](#setix) | The zero-based index of the element within its parent element. |
| [setName()](#setname) | The name of the element. |
| [setNameU()](#setnameu) | The universal name of the element. |

### deepClone() {#deepclone}

Creates deep copy of this instance.

**Returns:** Object — `Object`

### getAutoGen() {#getautogen}

Specifies if the connection point is generated automatically. A value of 1 indicates that the connection point is generated automatically.

### getDel() {#getdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### getDirX() {#getdirx}

Specifies the x-component for the required alignment vector of a matching connection point. The DirX element is also used to orient the attached leg of a dynamic connector.

### getDirY() {#getdiry}

Specifies the y-component for the required alignment vector of a matching connection point. The DirY element is also used to orient the attached leg of a dynamic connector.

### getID() {#getid}

The unique ID of the element within its parent element.

### getIX() {#getix}

The zero-based index of the element within its parent element.

### getName() {#getname}

The name of the element.

### getNameU() {#getnameu}

The universal name of the element.

### getPrompt() {#getprompt}

Contains varying prompt information, based on the element in which it is contained.

### getType() {#gettype}

Specifies various types, based on the element in which it is contained.

### getX() {#getx}

Specifies an x-coordinate on a shape in local coordinates.

### getY() {#gety}

Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the shape, instead of the page.

### setDel() {#setdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### setID() {#setid}

The unique ID of the element within its parent element.

### setIX() {#setix}

The zero-based index of the element within its parent element.

### setName() {#setname}

The name of the element.

### setNameU() {#setnameu}

The universal name of the element.
