cduck/drawsvg

"in" property for FilterItems

amygrinn opened this issue · 1 comments

How do you specify the "in" property in a FilterItem?

cloudFilter.append(drawSVG.FilterItem("feBlend", mode="screen", in="blue", in2="wispyCloud"))

This snippet won't work because "in" is a reserved keyword.

It would be nice to be able to prepend any property with 'svg' like svgIn="blue" which could be removed while processing.

cduck commented

This is possible by adding an underscore suffix: in_=.... Alternatively, using keyword argument expansion: **{'in': ...}.