Define shape size
Use the width
and height
attributes in the <svg>
element to specify the size of the shape:
<svg version="1.1" id="MyShapeType"
x="0px" y="0px"
width="100px" height="60px">
Example
<svg version="1.1" id="NewShapeType"
x="0px" y="0px"
width="100px" height="60px">
<rect x="0" y="20" fill="red" width="100" height="20" />
<rect x="0" y="0" fill="red" width="40" height="60" />
<rect x="60" y="0" fill="red" width="40" height="60" />
</svg>