3 ms·
Although in a lot of ways Canvas is easier to work with, SVG has some advantages for user interaction because it takes care of interaction logic for you. For i
by radarsat1 14y ago
Although in a lot of ways Canvas is easier to work with, SVG has some advantages for user interaction because it takes care of interaction logic for you. For instance, you can register a callback for clicking or hovering on complex shapes, whereas with Canvas you'd have to calculate the hit detection geometry yourself.