SnapSVG(v0.5.1)
本文仅针对版本v0.5.1情况,其他环境:webpack@4.8.3、npm@5.8.0、nodejs@6.11.0
前身是旧浏览器时代有名的 Raphaël.js 。
为了更好地发挥HTML5的特性,原作者Dmitry Baranovskiy重写了一个SnapSVG,目前这个项目是Adobede的开源项目之一。
Currently, the most popular library for working with SVG is Raphaël. One of the primary reasons Raphaël became the de facto standard is that it supports browsers all the way back to IE 6. However, supporting so many browsers means only being able to implement a common subset of SVG features. Snap was written entirely from scratch by the author of Raphaël (Dmitry Baranovskiy), and is designed specifically for modern browsers (IE9 and up, Safari, C