function rect(width,height,x,y) {
if (x === undefined) { x = 0 }
if (y === undefined) { y = 0 }
let rectangle = document.createElementNS(xmlns, "rect")
rectangle.setAttributeNS(null, 'width', width);
rectangle.setAttributeNS(null, 'height', height);
rectangle.setAttributeNS(null, 'x', x);
rectangle.setAttributeNS(null, 'y', y);
rectangle.setAttributeNS(null, 'fill', svgSettings['fill']);
rectangle.setAttributeNS(null, 'style',
'stroke:'+svgSettings['strokeColor']+
';stroke-width:'+svgSettings['strokeWidth']+';'
)
return rectangle
}