blob: c2ecfd50965ec76dab9b7b0deeb5bb59061b2ebe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
---
title: <path>
slug: Web/SVG/Element/path
tags:
- SVG
translation_of: Web/SVG/Element/path
---
<div>{{SVGRef}}</div>
<p>L'élément <code>path</code> est l'élément générique pour définir une forme. Toutes les formes basiques peuvent aussi être faites à partir de <code>path</code>.</p>
<h2 id="Usage">Usage</h2>
<p>{{svginfo}}</p>
<h2 id="Exemple">Exemple</h2>
<pre class="brush: xml notranslate"><?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 400 400"
xmlns="http://www.w3.org/2000/svg" version="1.1">
<path d="M 100 100 L 300 100 L 200 300 z"
fill="red" stroke-width="3" />
</svg>
</pre>
<h2 id="Attributs">Attributs</h2>
<h3 id="Attributs_Globaux">Attributs Globaux</h3>
<ul>
<li><a href="/fr/SVG/Attribute#ConditionalProccessing" title="fr/SVG/Attribute#ConditionalProccessing">Attributs conditionnels</a> »</li>
<li><a href="/fr/SVG/Attribute#Core" title="fr/SVG/Attribute#Core">Attributs centraux</a> »</li>
<li><a href="/fr/SVG/Attribute#GraphicalEvent" title="fr/SVG/Attribute#GraphicalEvent">Attributs d'événements graphiques</a> »</li>
<li><a href="/fr/SVG/Attribute#Presentation" title="fr/SVG/Attribute#Presentation">Attributs de présentation</a> »</li>
<li>{{ SVGAttr("class") }}</li>
<li>{{ SVGAttr("style") }}</li>
<li>{{ SVGAttr("externalResourcesRequired") }}</li>
<li>{{ SVGAttr("transform") }}</li>
</ul>
<h3 id="Attributs_spécifiques">Attributs spécifiques</h3>
<ul>
<li>{{ SVGAttr("d") }}</li>
<li>{{ SVGAttr("pathLength") }}</li>
</ul>
<h2 id="Interface_DOM">Interface DOM</h2>
<p>Cet élément implémente l'interface <code><a href="/en/DOM/SVGPathElement" title="en/DOM/SVGPathElement">SVGPathElement</a></code>.</p>
<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
<p>{{Compat("svg.elements.path")}}</p>
<h2 id="Voir_également">Voir également</h2>
<ul>
<li>{{ SVGElement("circle") }}</li>
<li>{{ SVGElement("ellipse") }}</li>
<li>{{ SVGElement("line") }}</li>
<li>{{ SVGElement("polygon") }}</li>
<li>{{ SVGElement("polyline") }}</li>
<li>{{ SVGElement("rect") }}</li>
<li><a href="/en/SVG/Tutorial/Paths" title="en/SVG/Tutorial/Paths">The MDN SVG "Getting Started" tutorial : Path</a></li>
</ul>
|