Add some attributes that fit into the list of the previous commit, too
This commit is contained in:
parent
e76da093ea
commit
3929426a5a
1 changed files with 4 additions and 1 deletions
|
|
@ -2971,11 +2971,14 @@ def serializeXML(element, options, ind = 0, preserveWhitespace = False):
|
||||||
|
|
||||||
# now serialize the other attributes
|
# now serialize the other attributes
|
||||||
known_attr = [
|
known_attr = [
|
||||||
|
# TODO: Maybe update with full list from https://www.w3.org/TR/SVG/attindex.html
|
||||||
|
# (but should be kept inuitively ordered)
|
||||||
'id', 'class',
|
'id', 'class',
|
||||||
'transform',
|
'transform',
|
||||||
'x', 'y', 'z', 'width', 'height', 'x1', 'x2', 'y1', 'y2',
|
'x', 'y', 'z', 'width', 'height', 'x1', 'x2', 'y1', 'y2',
|
||||||
|
'dx', 'dy', 'rotate', 'startOffset', 'method', 'spacing',
|
||||||
'cx', 'cy', 'r', 'rx', 'ry', 'fx', 'fy',
|
'cx', 'cy', 'r', 'rx', 'ry', 'fx', 'fy',
|
||||||
'd',
|
'd', 'points',
|
||||||
] + sorted(svgAttributes) + [
|
] + sorted(svgAttributes) + [
|
||||||
'style',
|
'style',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue