[READ-ONLY] Mirror of https://github.com/thoda-dev/svg-lua. svg lua library
0

Configure Feed

Select the types of activity you want to include in your feed.

fix self missing + wrong comment

Thomas DAGES (Dec 6, 2018, 2:56 PM +0100) 5b2afeec bc5b7c1e

+3 -3
+3 -3
svg.lua
··· 56 56 return svgStr 57 57 end 58 58 59 - -- INIT Rect element Class 59 + -- function to create a rectangle 60 60 -- x: number => Position du rectangle sur l'axe horizontal par rapport au coin supérieur gauche 61 61 -- y: number => Position du rectangle sur l'axe vertical par rapport au coin supérieur gauche 62 62 -- width: number => Largeur du rectangle ··· 72 72 y = y or 10, 73 73 width = width or 10, 74 74 height = height or 10, 75 - stroke = stroke or svg.stroke, 76 - fill = fill or svg.fill, 75 + stroke = stroke or self.stroke, 76 + fill = fill or self.fill, 77 77 ["stroke-width"] = strokeWidth or 1, 78 78 rx = rx or 0, 79 79 ry = ry or 0