shub
shub

Reputation: 1052

Suggestions: Canvas or SVG

In my web application I have to draw schematic network components such as routers, switches and son on. My question is now as follows. Which technology should I use HTML5 canvas or SVG? I already read this article about that. However I am still unsteady.

I think SVG would better cover with my requirements because the user must be able to resize the element. Also it must be possible to animate the images.

Thanks for your suggestions.

Upvotes: 0

Views: 713

Answers (1)

Ümit
Ümit

Reputation: 17489

I personally would recommend SVG because of following reasons:

  • you probably won't have to display huge numbers of objects --> performance is not an issue.
  • animation, transformations and user interaction are easier to implement in SVG compared to canvas

There are some additional ressources yous should read:

Note: You might also consider browser compatibility if that's an issue for you.

Upvotes: 1

Related Questions