---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/geometryEditor.model.Edge.md
---
# geometryEditor.model.Edge

{% note info %}

The constructor of the geometryEditor.model.Edge class is hidden, as this class is not intended for autonomous initialization.

{% endnote %}

Extends [IGeometryEditorRootModel](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryEditorRootModel.md).

Interim placemark model. The constructor is not available in the package.full (a standard set of modules). This module is loaded on demand.

[Fields](#properties-summary) | [Methods](#methods-summary)

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events) | [IEventManager](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventManager.md)| Event manager.

Inherited from [IEventEmitter](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [destroy](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryEditorModel.md#destroy)() | | Destructor.

Inherited from [IGeometryEditorModel](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryEditorModel.md#destroy). ||
|| [getNextVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#getNextVertex)() | [geometryEditor.model.ChildVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.ChildVertex.md)\|null
| Returns a reference to the model for the next vertex. ||
|| [getPixels](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryEditorModel.md#getPixels)() | Number[]
| Returns the model's pixel data.

Inherited from [IGeometryEditorModel](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IGeometryEditorModel.md#getPixels). ||
|| [getPrevVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#getPrevVertex)() | [geometryEditor.model.ChildVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.ChildVertex.md)\|null
| Returns a reference to the model for the previous vertex. ||
|| [setNextVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#setNextVertex)([nextVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#setNextVertex-param-nextVertex)) | | Sets the reference to the model for the next vertex. ||
|| [setPrevVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#setPrevVertex)([prevVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.Edge.md#setPrevVertex-param-prevVertex)) | | Sets the reference to the model for the previous vertex. ||
|#

## Methods details {#method_detail}

### getNextVertex {#getNextVertex}

```javascript
{geometryEditor.model.ChildVertex|null} getNextVertex()
```

**Returns** a reference to the model for the next vertex.

### getPrevVertex {#getPrevVertex}

```javascript
{geometryEditor.model.ChildVertex|null} getPrevVertex()
```

**Returns** a reference to the model for the previous vertex.

### setNextVertex {#setNextVertex}

```javascript
{} setNextVertex(nextVertex)
```

Sets the reference to the model for the next vertex.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`nextVertex`](#setNextVertex-param-nextVertex)[*](*star) | — | Type: [geometryEditor.model.ChildVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.ChildVertex.md)\|null

Model for the next vertex. ||
|#

\* Mandatory parameter/option.

### setPrevVertex {#setPrevVertex}

```javascript
{} setPrevVertex(prevVertex)
```

Sets the reference to the model for the previous vertex.

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`prevVertex`](#setPrevVertex-param-prevVertex)[*](*star) | — | Type: [geometryEditor.model.ChildVertex](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geometryEditor.model.ChildVertex.md)\|null

Model for the previous vertex. ||
|#

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.