Implement the feature described in bug 598976: Create a <g> with the common attributes of a run of elements if there are 3 or more elements in the run.
This commit is contained in:
parent
2a6cfb6b2c
commit
404c013e5f
6 changed files with 162 additions and 7 deletions
|
|
@ -19,6 +19,9 @@ class ScourInkscape (inkex.Effect):
|
|||
self.OptionParser.add_option("--group-collapsing", type="inkbool",
|
||||
action="store", dest="group_collapse", default=True,
|
||||
help="won't collapse <g> elements")
|
||||
self.OptionParser.add_option("--create-groups", type="inkbool",
|
||||
action="store", dest="group_create", default=False,
|
||||
help="create <g> elements for runs of elements with identical attributes")
|
||||
self.OptionParser.add_option("--enable-id-stripping", type="inkbool",
|
||||
action="store", dest="strip_ids", default=False,
|
||||
help="remove all un-referenced ID attributes")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue