blob: 6945faad81c14f19a5ba95d40da07757760eb0da (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
---
title: path
slug: Web/SVG/Element/path
tags:
- Caminho
- Elemento
- Forma
- Path
- Referencia
- SVG
- graficos
translation_of: Web/SVG/Element/path
---
<div>{{SVGRef}}</div>
<div class="callout-box"><strong><a href="/en-US/docs/SVG/Tutorial/Paths" title="SVG/Tutorial/Paths">Primeiros passos</a></strong><br>
Este tutorial irá te ajudar a utilizar caminhos no SVG.</div>
<h2 id="Summary" name="Summary">Resumo</h2>
<p>O elemento <code>path</code> é um elemento genérico para definir uma forma. Todas as formas básicas poderão ser criadas com elemento de caminho.</p>
<h2 id="Usage_context" name="Usage_context">Contexto de uso</h2>
<p>{{svginfo}}</p>
<h2 id="Exemplo" name="Exemplo">Exemplo</h2>
<pre class="brush: html"><svg width="100%" height="100%" viewBox="0 0 400 400"
xmlns="http://www.w3.org/2000/svg">
<path d="M 100 100 L 300 100 L 200 300 z"
fill="orange" stroke="black" stroke-width="3" />
</svg>
</pre>
<p>Resultado:</p>
<p>{{EmbedLiveSample("Exemplo",200,215)}}</p>
<h2 id="Attributes" name="Attributes">Atributos</h2>
<h3 id="Atributos_globais">Atributos globais</h3>
<ul>
<li><a href="/en-US/docs/SVG/Attribute#ConditionalProccessing" title="SVG/Attribute#ConditionalProccessing">Atributos de processamento condicional</a> »</li>
<li><a href="/en-US/docs/SVG/Attribute#Core" title="SVG/Attribute#Core">Atributos centraiss</a> »</li>
<li><a href="/en-US/docs/SVG/Attribute#GraphicalEvent" title="SVG/Attribute#GraphicalEvent">Atributos de evento gráfico</a> »</li>
<li><a href="/en-US/docs/SVG/Attribute#Presentation" title="SVG/Attribute#Presentation">Atributos de apresentação</a> »</li>
<li>{{ SVGAttr("class") }}</li>
<li>{{ SVGAttr("style") }}</li>
<li>{{ SVGAttr("externalResourcesRequired") }}</li>
<li>{{ SVGAttr("transform") }}</li>
</ul>
<h3 id="Specific_attributes" name="Specific_attributes">Atributos específicos</h3>
<ul>
<li>{{ SVGAttr("d") }}</li>
<li>{{ SVGAttr("pathLength") }}</li>
</ul>
<h2 id="DOM_Interface" name="DOM_Interface">Interface DOM</h2>
<p>Este elemento implementa a interace do <code><a href="/en-US/docs/DOM/SVGPathElement" title="DOM/SVGPathElement">SVGPathElement</a></code>.</p>
<h2 id="Browser_compatibility" name="Browser_compatibility">Compatibilidade dos navegadores</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Recurso</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>IE</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Suporte básico</td>
<td>1.0</td>
<td>{{ CompatGeckoDesktop('1.8') }}</td>
<td>{{ CompatIE('9.0') }}</td>
<td>{{ CompatOpera('8.0') }}</td>
<td>{{ CompatSafari('3.0.4') }}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Recurso</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Phone</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Suporte básico</td>
<td>{{ CompatAndroid('3.0') }}</td>
<td>{{ CompatGeckoMobile('1.8') }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>{{ CompatSafari('3.0.4') }}</td>
</tr>
</tbody>
</table>
</div>
<p>Esta tabela é baseada <a href="/en-US/docs/SVG/Compatibility_sources" title="SVG/Compatibility sources">nestas fontes</a>.</p>
<h2 id="See_also" name="See_also">Veja também</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-US/docs/SVG/Tutorial/Paths" title="SVG/Tutorial/Paths">O tutorial sobre SVG "Primeiros passos" na MDN: Path</a></li>
</ul>
|