From 16275fb9214dc1a39efd7343e5468956ed97f313 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 8 Jan 2019 13:56:42 +0100 Subject: [PATCH] fix transform support for path --- svg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svg.lua b/svg.lua index 7833da4..3593551 100644 --- a/svg.lua +++ b/svg.lua @@ -188,6 +188,7 @@ function svg:Path(d, stroke, strokeWidth, fill, transform) d = d or "M50 0 L75 100 L25 100 Z", stroke = stroke or self.stroke, ["stroke-width"] = strokeWidth or 1, - fill = fill or self.fill + fill = fill or self.fill, + transform = transform or "" }) end -- 2.51.2