added marker and pattern to Migrate Groups
This commit is contained in:
parent
9bcfcc3f47
commit
5a06de7bd9
@ -44,7 +44,9 @@
|
|||||||
<param name="clipPath" type="bool" gui-text="clipPath">true</param>
|
<param name="clipPath" type="bool" gui-text="clipPath">true</param>
|
||||||
<param name="defs" type="bool" gui-text="defs">true</param>
|
<param name="defs" type="bool" gui-text="defs">true</param>
|
||||||
<param name="image" type="bool" gui-text="image">true</param>
|
<param name="image" type="bool" gui-text="image">true</param>
|
||||||
|
<param name="marker" type="bool" gui-text="marker">true</param>
|
||||||
<param name="metadata" type="bool" gui-text="metadata">true</param>
|
<param name="metadata" type="bool" gui-text="metadata">true</param>
|
||||||
|
<param name="pattern" type="bool" gui-text="pattern">true</param>
|
||||||
<param name="script" type="bool" gui-text="script">true</param>
|
<param name="script" type="bool" gui-text="script">true</param>
|
||||||
<param name="symbol" type="bool" gui-text="symbol">true</param>
|
<param name="symbol" type="bool" gui-text="symbol">true</param>
|
||||||
<param name="use" type="bool" gui-text="use">true</param>
|
<param name="use" type="bool" gui-text="use">true</param>
|
||||||
|
@ -57,6 +57,9 @@ class MigrateGroups(inkex.Effect):
|
|||||||
self.arg_parser.add_argument("--flowRoot", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--flowRoot", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--flowRegion", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--flowRegion", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--flowPara", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--flowPara", type=inkex.Boolean, default=True)
|
||||||
|
self.arg_parser.add_argument("--marker", type=inkex.Boolean, default=True)
|
||||||
|
self.arg_parser.add_argument("--pattern", type=inkex.Boolean, default=True)
|
||||||
|
|
||||||
|
|
||||||
def effect(self):
|
def effect(self):
|
||||||
namespace = [] #a list of selected types we are going to process for filtering (dropping items)
|
namespace = [] #a list of selected types we are going to process for filtering (dropping items)
|
||||||
@ -87,6 +90,8 @@ class MigrateGroups(inkex.Effect):
|
|||||||
namespace.append("{http://www.w3.org/2000/svg}flowRoot") if self.options.flowRoot else ""
|
namespace.append("{http://www.w3.org/2000/svg}flowRoot") if self.options.flowRoot else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}flowRegion") if self.options.flowRegion else ""
|
namespace.append("{http://www.w3.org/2000/svg}flowRegion") if self.options.flowRegion else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}flowPara") if self.options.flowPara else ""
|
namespace.append("{http://www.w3.org/2000/svg}flowPara") if self.options.flowPara else ""
|
||||||
|
namespace.append("{http://www.w3.org/2000/svg}marker") if self.options.marker else ""
|
||||||
|
namespace.append("{http://www.w3.org/2000/svg}pattern") if self.options.pattern else ""
|
||||||
#inkex.utils.debug(namespace)
|
#inkex.utils.debug(namespace)
|
||||||
|
|
||||||
#in case the user made a manual selection instead of whole document parsing, we need to collect all required elements first
|
#in case the user made a manual selection instead of whole document parsing, we need to collect all required elements first
|
||||||
|
Reference in New Issue
Block a user