PT-BR/svgGetSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{BR/Funcao cliente}} {{Added feature/item|1.5.9|1.5.8|20979|Gets the underlying XML document from an SVG element.}} ==Sintaxe== <syntaxhighlight lang="lua">int, int svgGetSize( svg svgElement )</syntaxhighlight> ===Argumentos Necessários=== *'''svgElement:''' O elemento svg que você deseja obter o tamanho. ===Retornos=== * Retorna dois ints, representando '''largura''' e '''altura''' ==Exemplo== Veja o exemplo em svgSetSize. ==Requisitos== {{Requireme...")
 
No edit summary
Line 1: Line 1:
{{BR/Funcao cliente}}
{{BR/Funcao cliente}}
{{Added feature/item|1.5.9|1.5.8|20979|Gets the underlying XML document from an SVG element.}}
{{Added feature/item|1.5.9|1.5.8|20979|Obtém o documento XML subjacente de um elemento SVG.}}
==Sintaxe==  
==Sintaxe==  
<syntaxhighlight lang="lua">int, int svgGetSize( svg svgElement )</syntaxhighlight>
<syntaxhighlight lang="lua">int, int svgGetSize( svg svgElement )</syntaxhighlight>

Revision as of 03:41, 20 February 2022

Template:BR/Funcao cliente Obtém o documento XML subjacente de um elemento SVG.

Sintaxe

int, int svgGetSize( svg svgElement )

Argumentos Necessários

  • svgElement: O elemento svg que você deseja obter o tamanho.

Retornos

  • Retorna dois ints, representando largura e altura

Exemplo

Veja o exemplo em svgSetSize.

Requisitos

Minimum server version n/a
Minimum client version 1.5.8-9.20979

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20979" />

Veja também