---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.2
alternate:
  - https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.stroke.md
  - https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md
  - href: https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/dev/jsapi-v2-1/doc/ru/llms.txt?revision=r21950234
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/jsapi-v2-1/doc/ru/llms.txt?revision=r21950234

# graphics.style.stroke

Статический объект.

Позволяет изменить стиль линии. Задавать значение можно как используя ключи описанные ниже, так и в формате массива. Следует учесть, что в режиме отображениея VML(IE<9) могут быть использованы только ключи. Также в стиле линии можно указать смещение начала пунктира через поле offset.

[Поля ](#properties-summary)

**Пример:**

```javascript
strokeStyle: 'dot';
strokeStyle: [1,2];
strokeStyle: {
  style: 'dot',
  offset: 10
}
```

## Поля {#properties-summary}

#|
|| **Имя** | **Тип** | **Описание** ||
|| [dash](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#dash) | | Тире ||
|| [dashdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#dashdot) | | Длинное тире-короткое тире ||
|| [dot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#dot) | | Точки ||
|| [longdash](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#longdash) | | Длинные тире ||
|| [longdashdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#longdashdot) | | Очень длинное тире - точка ||
|| [longdashdotdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#longdashdotdot) | | Длинное тире-точка-точка ||
|| [shortdash](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#shortdash) | | Короткие тире ||
|| [shortdashdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#shortdashdot) | Тире-точка ||
|| [shortdashdotdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#shortdashdotdot) | | Тире-точка-точка ||
|| [shortdot](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#shortdot) | | Точки через двойной интервал ||
|| [solid](https://yandex.ru/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.stroke.md#solid) | | Сплошная линия ||
|#

## Описание полей {#field_detail}

### dash {#dash}

```javascript
dash
```

Тире

### dashdot {#dashdot}

```javascript
dashdot
```

Длинное тире-короткое тире

### dot {#dot}

```javascript
dot
```

Точки

### longdash  {#longdash}

```javascript
longdash
```

Длинные тире

### longdashdot {#longdashdot}

```javascript
longdashdot
```

Очень длинное тире - точка

### longdashdotdot {#longdashdotdot}

```javascript
longdashdotdot
```

Длинное тире-точка-точка

### shortdash {#shortdash}

```javascript
shortdash
```

Короткие тире

### shortdashdot {#shortdashdot}

```javascript
shortdashdot
```

Тире-точка

### shortdashdotdot {#shortdashdotdot}

```javascript
shortdashdotdot
```

Тире-точка-точка

### shortdot {#shortdot}

```javascript
shortdot
```

Точки через двойной интервал

### solid {#solid}

```javascript
solid
```

Сплошная линия

<!-- XLIFF_FARM_YThhNzhj_CACHING -->