···5656 return svgStr
5757end
58585959--- INIT Rect element Class
5959+-- function to create a rectangle
6060-- x: number => Position du rectangle sur l'axe horizontal par rapport au coin supérieur gauche
6161-- y: number => Position du rectangle sur l'axe vertical par rapport au coin supérieur gauche
6262-- width: number => Largeur du rectangle
···7272 y = y or 10,
7373 width = width or 10,
7474 height = height or 10,
7575- stroke = stroke or svg.stroke,
7676- fill = fill or svg.fill,
7575+ stroke = stroke or self.stroke,
7676+ fill = fill or self.fill,
7777 ["stroke-width"] = strokeWidth or 1,
7878 rx = rx or 0,
7979 ry = ry or 0