Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is raphael.js paper a real canvas?

Tags:

raphael

I was researching what graphics to use for a project, and Raphael.js came to be a top contender. However, when reading the sample code and documentation, it shows that Raphael creates a canvas (via the paper variable on the homepage), and then you add stuff to it. Two months later, a passerby comes by and ask some question about our project, and I explained that we didn't use Raphael (instead we chose static SVG and D3) because Raphael used canvas's, and our project would have been greatly disadvantaged by using canvas's. So you Raphael expert's out there, is the canvas in Raphael an actual html canvas or not? and where can you link to it, so that you/and or I can send a pull request to explain that better upfront.

like image 623
chris Frisina Avatar asked Dec 27 '22 04:12

chris Frisina


1 Answers

No Raphael's paper is SVG.

It is kinda strange, because the paper object property is called canvas but it only contains the SVGAnimatedString

Fiddle: http://jsfiddle.net/V2DGy/

like image 171
Ron van der Heijden Avatar answered Jan 18 '23 16:01

Ron van der Heijden