1

I have a drawn an image using Raphael framework. It is an SVG image. I want to resize it.

How is it possible?

Help me please

Thanks,

Daniel Alder
  • 5,031
  • 2
  • 45
  • 55
Erma Isabel
  • 2,167
  • 8
  • 34
  • 64

2 Answers2

3

Use setViewBox to set the coordinate system, then set the canvas size with setSize.

Erik Dahlström
  • 59,452
  • 12
  • 120
  • 139
0

It seems that zooming an SVG image is not supported directly in Raphael. There are ways to extend that, as this question's answers show. One of the guys shares a link to a plugin that does that.

Community
  • 1
  • 1
Lyubomir Vasilev
  • 3,000
  • 17
  • 24