开源软件名称(OpenSource Name):adobe-webplatform/Snap.svg开源软件地址(OpenSource Url):https://github.com/adobe-webplatform/Snap.svg开源编程语言(OpenSource Language):JavaScript 99.5%开源软件介绍(OpenSource Introduction):Snap.svg ·A JavaScript SVG library for the modern web. Learn more at snapsvg.io. Install
LearnUseIn your HTML file, load simply by: <script src="snap.svg-min.js"></script> No other scripts are needed. Both the minified and uncompressed (for development) versions are in the webpackTo load with webpack 2.x and 3.x, install Imports Loader ( module: {
rules: [
{
test: require.resolve('snapsvg/dist/snap.svg.js'),
use: 'imports-loader?this=>window,fix=>module.exports=0',
},
],
},
resolve: {
alias: {
snapsvg: 'snapsvg/dist/snap.svg.js',
},
}, Then, in any module you’d like to require Snap, use:
BuildSnap.svg uses Grunt to build.
cd Snap.svg
npm install -g grunt-cli *You might need to use
npm install *Snap.svg uses Grunt 0.4.0. You might want to read more on their website if you haven’t upgraded since a lot has changed.
grunt
TestingTests are located in Alternatively, install PhantomJS and run command grunt test Contribute
git checkout -b my_branch
git commit -am "Added some awesome stuff"
git push origin my_branch
Note: Pull requests to other branches than |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论