Issue #11 new

Wrong validation when creating animation

Tomas Kislan
created an issue
import svgwrite
dwg = svgwrite.Drawing('test_animate.svg', size = (64, 64), profile='tiny')

c = dwg.circle((32, 32), 10) c.add(dwg.animate('r', values=[0,10], dur='3s', repeatDur='indefinite')) dwg.add(c)

dwg.save()

this crashes with exception: TypeError: '0;10' is not a valid value for attribute 'values' at svg-element <animate>.

Which is obviously wrong, since when I change to "values=[0]" it creates the file, but with values set to 0 If I manualy edit it to '0;10', and after open it in browser, it animates just fine

Comments (0)

  1. Log in to comment