From 10b7dc8a15c323a370661c3937fa2db240723918 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Wed, 19 Jun 2024 12:25:31 +0200 Subject: [PATCH] add path-effect to filter --- .../ungrouper_and_element_migrator_filter.inx | 1 + .../ungrouper_and_element_migrator_filter.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx index b5005ae..62aa324 100644 --- a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx +++ b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.inx @@ -56,6 +56,7 @@ true true true + true diff --git a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py index 5ecf57d..cb176de 100644 --- a/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py +++ b/extensions/fablabchemnitz/ungrouper_and_element_migrator_filter/ungrouper_and_element_migrator_filter.py @@ -79,6 +79,7 @@ class UngrouperAndElementMigratorFilter(inkex.EffectExtension): pars.add_argument("--comments", type=inkex.Boolean, default=True) pars.add_argument("--perspective", type=inkex.Boolean, default=True) pars.add_argument("--page", type=inkex.Boolean, default=True) + pars.add_argument("--pathEffect", type=inkex.Boolean, default=True) pars.add_argument("--tails", type=inkex.Boolean, default=True) @@ -145,6 +146,7 @@ class UngrouperAndElementMigratorFilter(inkex.EffectExtension): namespace.append("{http://www.w3.org/2000/svg}pattern") if so.pattern else "" namespace.append("{http://www.inkscape.org/namespaces/inkscape}page") if so.page else "" namespace.append("{http://www.inkscape.org/namespaces/inkscape}perspective") if so.perspective else "" + namespace.append("{http://www.inkscape.org/namespaces/inkscape}path-effect") if so.pathEffect else "" namespace.append("{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}guide") if so.guide else "" namespace.append("{http://www.w3.org/1999/02/22-rdf-syntax-ns#}RDF") if so.rdfRDF else "" namespace.append("{http://creativecommons.org/ns#}Work") if so.ccWork else ""