{"_id":"@aibee/snapsvg","_rev":"3-426dca126e8d715777f06d135c84d798","name":"@aibee/snapsvg","dist-tags":{"latest":"0.5.5"},"versions":{"0.5.5":{"name":"@aibee/snapsvg","version":"0.5.5","author":{"name":"Dmitry Baranovskiy"},"license":"Apache-2.0","_id":"@aibee/snapsvg@0.5.5","maintainers":[{"name":"kxiaoaibee","email":"kxiao@aibee.com"},{"name":"wukang0718","email":"wukang0718@163.com"},{"name":"jyfang","email":"jyfang@aibee.com"},{"name":"hujingn","email":"hujingn@qq.com"}],"homepage":"https://github.com/adobe-webplatform/Snap.svg#readme","bugs":{"url":"https://github.com/adobe-webplatform/Snap.svg/issues"},"dist":{"shasum":"027ba7789d2bc1caa672393e9d000ce835478606","tarball":"https://registry.npmjs.org/@aibee/snapsvg/-/snapsvg-0.5.5.tgz","fileCount":148,"integrity":"sha512-mlYaP9VyJNaTRHEHV6WjPltVdNTL/wAHIuaCc735u3KniaegDgOJC/2G+JWekIPhNXibHQfHRw17AYsF34vJcA==","signatures":[{"sig":"MEUCIFzlOksSyQVzxYi1aFFboZWl/7loinPkXvftYSJ0IirEAiEAqdS59/VzfYgISpe9hbCPOtlDvQHOYDs1EvH+elILfkQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4804356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv24oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplHA/9E8FhI1TZcFCuDbRa6/RPi1Ybs32Ev5O0bSRlLsebcP4yGUdK\r\nPs/t2ZCLEuJyUrUYaPo+Ey0KfhfcMlCGl0rEW/KKNdZZFc41Ut+YPf4xIsoE\r\nVxYC9dg4oZOF6wxB6V2IMTb7JqI5fzzY2nFMZjJPgky+9a9tMDzQ2do3y/O1\r\nVqlAUeQPHcxP0HvaLkPNcBCaPzNaHvhoYtww+5zo9YXaB8Q+gHrqdk9W6GMl\r\nKa4zrbBmwKeO794c2mXFFfCnqgXtz5iW69xSTGXsQL9zsvdril+eM3KS1BXh\r\njz5EiCAjyDCY4pU5NHzZFyQ5mNTy5J5XodeVUn+hvBpppoPhy8K4jSzCYpUD\r\noy7oOJzUHURWYN45/6LB9aaQVjdvOfVaAZwEJkGoWY3CpDLR3aaJMUD7OtSg\r\nNkYDTGCYV53XTyu8HlDrnfbTmZPPINCNKNmOSXq+hzra/KMVVTI35WOCJOF5\r\nF/2Emdx6O3+GG4MNvfdJOAG44UsziZjanEFL5bWZjE02QIVQI/wyirVSGM2X\r\nkV9qsbXJB+mK0K4CyxqkhuoIH79qqPkxymED2p3M1NPoov4EJ/FGyYbgG2p3\r\nJDwJCOZ5RRO01YHs7gBdhsBaJWAAkxHBY3DEuN8FjhzFIuz+9HsKHCt6IITx\r\nC4GCpRGesVuVEAmDkjV08xBZoTcV3wGEy2Y=\r\n=3R9B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/snap.svg.js","types":"./index.d.ts","gitHead":"423cf98ecad72b5bafff800e5b04494092fe37d8","private":false,"_npmUser":{"name":"wukang0718","email":"wukang0718@163.com"},"repository":{"url":"git+ssh://git@github.com/adobe-webplatform/Snap.svg.git","type":"git"},"_npmVersion":"6.14.14","description":"JavaScript Vector Library","directories":{},"_nodeVersion":"14.17.4","dependencies":{"@aibee/eve":"^0.5.4"},"eslintConfig":{"rules":{"radix":2,"eqeqeq":0,"quotes":[1,"double","avoid-escape"],"strict":0,"new-cap":0,"camelcase":0,"no-shadow":0,"new-parens":0,"comma-dangle":0,"no-loop-func":0,"no-sequences":1,"no-path-concat":0,"no-extra-parens":1,"no-new-wrappers":0,"block-scoped-var":0,"no-extend-native":0,"consistent-return":0,"no-mixed-requires":0,"no-underscore-dangle":0,"no-unused-expressions":0},"globals":{"window":true,"console":true}},"_hasShrinkwrap":false,"devDependencies":{"dr.js":"~0.1.0","grunt":"~0.4.1","mocha":"*","eslint":"*","expect.js":"*","grunt-exec":"~0.4.2","grunt-prettify":"0.4.0","grunt-contrib-concat":"~0.3.0","grunt-contrib-uglify":"~0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/snapsvg_0.5.5_1673489960485_0.23467782750194233","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-01-12T02:19:20.439Z","modified":"2025-07-09T08:57:07.627Z","0.5.5":"2023-01-12T02:19:20.794Z"},"bugs":{"url":"https://github.com/adobe-webplatform/Snap.svg/issues"},"author":{"name":"Dmitry Baranovskiy"},"license":"Apache-2.0","homepage":"https://github.com/adobe-webplatform/Snap.svg#readme","repository":{"url":"git+ssh://git@github.com/adobe-webplatform/Snap.svg.git","type":"git"},"description":"JavaScript Vector Library","maintainers":[{"email":"jyfang@aibee.com","name":"jyfang"},{"email":"hujingn@qq.com","name":"hujingn"},{"email":"wukang0718@163.com","name":"wukang0718"},{"email":"kxiao@aibee.com","name":"kxiaoaibee"},{"email":"jdzou@aibee.com","name":"yfdjcxj"},{"email":"j15712551103@163.com","name":"zcjia"}],"readme":"[Snap.svg](http://snapsvg.io) · [![Build Status](https://travis-ci.org/adobe-webplatform/Snap.svg.svg?branch=dev)](https://travis-ci.org/adobe-webplatform/Snap.svg)  [![CDNJS](https://img.shields.io/cdnjs/v/snap.svg.svg)](https://cdnjs.com/libraries/snap.svg/) [![GitHub Tag](https://img.shields.io/github/tag/adobe-webplatform/snap.svg.svg)](https://github.com/adobe-webplatform/Snap.svg/releases) [![License](https://img.shields.io/npm/l/snapsvg.svg)](https://github.com/adobe-webplatform/Snap.svg/blob/master/LICENSE)\n======\n\nA JavaScript SVG library for the modern web. Learn more at [snapsvg.io](http://snapsvg.io).\n\n[Follow us on Twitter.](https://twitter.com/snapsvg)\n\n### Install\n* [Bower](http://bower.io/) - `bower install snap.svg` ![Bower](https://img.shields.io/bower/v/snap.svg.svg)\n* [npm](http://npmjs.com/) - `npm install snapsvg` [![npm version](https://img.shields.io/npm/v/snapsvg.svg?style=flat)](https://www.npmjs.com/package/snapsvg) [![Downloads](https://img.shields.io/npm/dt/snapsvg.svg)](https://www.npmjs.com/package/snapsvg)\n* Manual Minified - https://github.com/adobe-webplatform/Snap.svg/raw/master/dist/snap.svg-min.js\n* Manual Unminified - https://raw.githubusercontent.com/adobe-webplatform/Snap.svg/master/dist/snap.svg.js\n\n\n### Learn\n\n* [About Snap.svg](http://snapsvg.io/about/)\n* [Getting Started](http://snapsvg.io/start/)\n* [API Reference](http://snapsvg.io/docs/)\n* [Slack Room](https://snapsvg.slack.com/). [Invite](https://snapsvg.slack.com/shared_invite/MTM2NTE4MTk3MDYwLTE0ODYwODgzNzUtYjQ0YmM1N2U0Mg)\n\n### Use\n\nIn your HTML file, load simply by:\n```html\n<script src=\"snap.svg-min.js\"></script>\n```\nNo other scripts are needed. Both the minified and uncompressed (for development) versions are in the `/dist` folder.\n\n#### webpack\nTo load with webpack 2.x and 3.x, install [Imports Loader](https://github.com/webpack-contrib/imports-loader) (`npm i -D imports-loader`), and add the following to your webpack config:\n\n```js\nmodule: {\n  rules: [\n    {\n      test: require.resolve('snapsvg/dist/snap.svg.js'),\n      use: 'imports-loader?this=>window,fix=>module.exports=0',\n    },\n  ],\n},\nresolve: {\n  alias: {\n    snapsvg: 'snapsvg/dist/snap.svg.js',\n  },\n},\n```\n\nThen, in any module you’d like to require Snap, use:\n```\nimport Snap from 'snapsvg';\n```\n\n### Build\n[![Build Status](https://travis-ci.org/adobe-webplatform/Snap.svg.svg?branch=dev)](https://travis-ci.org/adobe-webplatform/Snap.svg)\n\nSnap.svg uses [Grunt](http://gruntjs.com/) to build.\n\n* Open the terminal from the Snap.svg directory:\n```sh\ncd Snap.svg\n```\n* Install its command line interface (CLI) globally:\n```sh\nnpm install -g grunt-cli\n```\n_*You might need to use `sudo npm`, depending on your configuration._\n\n* Install dependencies with npm:\n```sh\nnpm install\n```\n_*Snap.svg uses Grunt 0.4.0. You might want to [read](http://gruntjs.com/getting-started) more on their website if you haven’t upgraded since a lot has changed._\n\n* To build the files run\n```sh\ngrunt\n```\n* The results will be built into the `dist` folder.\n* Alternatively type `grunt watch` to have the build run automatically when you make changes to source files.\n\n### Testing\n\nTests are located in `test` folder. To run tests, simply open `test.html` in there. Automatic tests use PhantomJS to scrap this file, so you can use it as a reference.\n\nAlternatively, install [PhantomJS](http://phantomjs.org) and run command\n```sh\ngrunt test\n```\n\n### Contribute\n\n* [Fill out the CLA](http://snapsvg.io/contributions/).\n* [Fork](https://help.github.com/articles/fork-a-repo) the repo.\n* Create a branch:\n```sh\ngit checkout -b my_branch\n```\n* Add your changes.\n* Check that tests are passing\n* Commit your changes:\n```sh\ngit commit -am \"Added some awesome stuff\"\n```\n* Push your branch:\n```sh\ngit push origin my_branch\n```\n* Make a [pull request](https://help.github.com/articles/using-pull-requests) to `dev`(!) branch.\n\n*Note:* Pull requests to other branches than `dev` or without filled CLA wouldn’t be accepted.\n","readmeFilename":"README.md"}