diff options
Diffstat (limited to 'files/pt-br/web/svg/element/path/index.html')
-rw-r--r-- | files/pt-br/web/svg/element/path/index.html | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/files/pt-br/web/svg/element/path/index.html b/files/pt-br/web/svg/element/path/index.html new file mode 100644 index 0000000000..6945faad81 --- /dev/null +++ b/files/pt-br/web/svg/element/path/index.html @@ -0,0 +1,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> |