Skip to content

Instantly share code, notes, and snippets.

@thomasjao
Created April 24, 2016 08:13
Show Gist options
  • Save thomasjao/7cb104c9e4bfa57f483519e7061bfc32 to your computer and use it in GitHub Desktop.
Save thomasjao/7cb104c9e4bfa57f483519e7061bfc32 to your computer and use it in GitHub Desktop.
Basic SVG Shapes Attributes in XML
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<svg>
<shapes>
<shape element="rect">
<name>rect</name>
<attributes>
<attribute attr="x">
<key>x</key>
<type>coordinate</type>
<animatable>yes</animatable>
<default>0</default>
<datatype>float</datatype>
</attribute>
<attribute attr="y">
<key>y</key>
<type>coordinate</type>
<animatable>yes</animatable>
<default>0</default>
<datatype>float</datatype>
</attribute>
<attribute attr="width">
<key>width</key>
<type>length</type>
<animatable>yes</animatable>
<default>none</default>
<datatype>float</datatype>
</attribute>
<attribute attr="height">
<key>height</key>
<type>length</type>
<animatable>yes</animatable>
<default>none</default>
<datatype>float</datatype>
</attribute>
<attribute attr="rx">
<key>rx</key>
<type>length</type>
<animatable>yes</animatable>
<default>null</default>
<datatype>float</datatype>
</attribute>
<attribute attr="rx">
<key>ry</key>
<type>length</type>
<animatable>yes</animatable>
<default>null</default>
<datatype>float</datatype>
</attribute>
</attributes>
</shape>
</shapes>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment