From c058fa0fb22dc40ef0225b21a97578cddd0aaffa Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:51:05 +0100 Subject: unslug ru: move --- files/ru/web/svg/element/line/index.html | 104 +++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 files/ru/web/svg/element/line/index.html (limited to 'files/ru/web/svg/element/line') diff --git a/files/ru/web/svg/element/line/index.html b/files/ru/web/svg/element/line/index.html new file mode 100644 index 0000000000..b7f75c6a96 --- /dev/null +++ b/files/ru/web/svg/element/line/index.html @@ -0,0 +1,104 @@ +--- +title: +slug: Web/SVG/Элемент/line +tags: + - SVG +translation_of: Web/SVG/Element/line +--- +
 {{SVGRef}}
+ +

Элемент <line> одна из базовых фигур SVG, используемая для создания линии, связывающей две точки.

+ +
+ + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <line x1="0" y1="80" x2="100" y2="20" stroke="black" />
+
+  <!-- Если вы не укажете цвет контура,
+       линия не будет видна -->
+</svg>
+ +

{{EmbedLiveSample('Example', 100, 100)}}

+
+ +

Атрибуты

+ +
+
{{SVGAttr('x1')}}
+
Определяет координату начальной точки линии по оси x .
+ Тип значения: <length>|<percentage>|<number> ; Значение по умолчанию: 0; Анимируемый: да
+
{{SVGAttr('x2')}}
+
Определяет координату конечной точки линии по оси x.
+ Тип значения: <length>|<percentage>|<number> ; Значение по умолчанию: 0; Анимируемый: да
+
{{SVGAttr('y1')}}
+
Определяет координату начальной точки линии по оси y.
+ Тип значения: <length>|<percentage>|<number> ; Значение по умолчанию: 0; Анимируемый: да
+
{{SVGAttr('y2')}}
+
Определяет координату конечной точки линии по оси y.
+ Тип значения: <length>|<percentage>|<number> ; Значение по умолчанию: 0; Анимируемый: да
+
{{SVGAttr("pathLength")}}
+
Определяет общую длину пути в пользовательских единицах.
+ Тип значения: <number> ; Значение по умолчанию: none; Анимируемый: да
+
+ +

Глобальные атрибуты

+ +
+
Основные атрибуты
+
В первую очередь: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
Атрибуты оформления (стилей) 
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Атрибуты условной обработки
+
В первую очередь: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
Атрибуты события
+
Глобальные атрибуты события, Графические атрибуты события
+
Атрибуты презентации
+
В превую очередь: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
Атрибуты ARIA
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

Спецификации

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('SVG2', 'shapes.html#LineElement', '<line>')}}{{Spec2('SVG2')}} 
{{SpecName('SVG1.1', 'shapes.html#LineElement', '<line>')}}{{Spec2('SVG1.1')}}Initial definition
+ +

Поддержка браузерами

+ + + +

{{Compat("svg.elements.line")}}

+ +

 

+ +

Смотрите также:

+ + -- cgit v1.2.3-54-g00ecf