From da9cf410675cdc6d534eee54c9aef472e50f81d4 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 8 Oct 2015 10:47:24 +0200 Subject: Add 'mesh' and 'hatch' related attributes. (bzr r14399) --- share/attributes/genMapDataSVG.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'share/attributes/genMapDataSVG.pl') diff --git a/share/attributes/genMapDataSVG.pl b/share/attributes/genMapDataSVG.pl index f3d84d2c5..beb06dc04 100755 --- a/share/attributes/genMapDataSVG.pl +++ b/share/attributes/genMapDataSVG.pl @@ -84,6 +84,25 @@ push @{$attributes{ "style" }->{elements}}, "flowRoot","flowPara","flowSpan","fl push @{$attributes{ "xml:space" }->{elements}}, "flowRoot","flowPara","flowSpan"; push @{$attributes{ "transform" }->{elements}}, "flowRoot","flowPara","flowSpan"; +# Mesh gradients +push @{$attributes{ "id" }->{elements}}, "mesh","meshrow","meshpatch"; +push @{$attributes{ "path" }->{elements}}, "stop"; +push @{$attributes{ "gradientUnits" }->{elements}}, "mesh"; +push @{$attributes{ "transform" }->{elements}}, "mesh"; +push @{$attributes{ "href" }->{elements}}, "mesh"; +push @{$attributes{ "type" }->{elements}}, "mesh"; + +# Hatches +push @{$attributes{ "id" }->{elements}}, "hatch","hatchpath"; +push @{$attributes{ "pitch" }->{elements}}, "hatch"; +push @{$attributes{ "rotate" }->{elements}}, "hatch"; +push @{$attributes{ "hatchUnits" }->{elements}}, "hatch"; +push @{$attributes{ "hatchContentUnits" }->{elements}}, "hatch"; +push @{$attributes{ "transform" }->{elements}}, "hatch"; +push @{$attributes{ "href" }->{elements}}, "hatch"; +push @{$attributes{ "d" }->{elements}}, "hatchpath"; +push @{$attributes{ "offset" }->{elements}}, "hatchpath"; + # Output -- cgit v1.2.3 From 91a6389c70d24a5d1d58bb946bfa36e05b3f0d57 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 8 Oct 2015 11:03:11 +0200 Subject: More additions for 'mesh' attributes. (bzr r14400) --- share/attributes/genMapDataSVG.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share/attributes/genMapDataSVG.pl') diff --git a/share/attributes/genMapDataSVG.pl b/share/attributes/genMapDataSVG.pl index beb06dc04..d64b1c01d 100755 --- a/share/attributes/genMapDataSVG.pl +++ b/share/attributes/genMapDataSVG.pl @@ -88,9 +88,13 @@ push @{$attributes{ "transform" }->{elements}}, "flowRoot","flowPara","flowSpan" push @{$attributes{ "id" }->{elements}}, "mesh","meshrow","meshpatch"; push @{$attributes{ "path" }->{elements}}, "stop"; push @{$attributes{ "gradientUnits" }->{elements}}, "mesh"; -push @{$attributes{ "transform" }->{elements}}, "mesh"; +push @{$attributes{ "gradientTransform" }->{elements}}, "mesh"; +#push @{$attributes{ "transform" }->{elements}}, "mesh"; push @{$attributes{ "href" }->{elements}}, "mesh"; push @{$attributes{ "type" }->{elements}}, "mesh"; +push @{$attributes{ "x" }->{elements}}, "mesh"; +push @{$attributes{ "y" }->{elements}}, "mesh"; +push @{$attributes{ "xlink:href" }->{elements}}, "mesh"; # Hatches push @{$attributes{ "id" }->{elements}}, "hatch","hatchpath"; -- cgit v1.2.3 From 70e49f7eba8a099a9f5e7f9bfd3ec78f3f1ec1a7 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 9 Jan 2016 10:52:04 +0100 Subject: Support rendering of radial gradients with the 'fr' attribute. New in SVG 2. (bzr r14569) --- share/attributes/genMapDataSVG.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'share/attributes/genMapDataSVG.pl') diff --git a/share/attributes/genMapDataSVG.pl b/share/attributes/genMapDataSVG.pl index d64b1c01d..24e760980 100755 --- a/share/attributes/genMapDataSVG.pl +++ b/share/attributes/genMapDataSVG.pl @@ -83,6 +83,7 @@ push @{$attributes{ "id" }->{elements}}, "flowRoot","flowPara","flowSpan","fl push @{$attributes{ "style" }->{elements}}, "flowRoot","flowPara","flowSpan","flowRect","flowRegion","solidColor"; push @{$attributes{ "xml:space" }->{elements}}, "flowRoot","flowPara","flowSpan"; push @{$attributes{ "transform" }->{elements}}, "flowRoot","flowPara","flowSpan"; +push @{$attributes{ "fr" }->{elements}}, "radialGradient"; # Mesh gradients push @{$attributes{ "id" }->{elements}}, "mesh","meshrow","meshpatch"; -- cgit v1.2.3