All Projects → adobe-webplatform → Snap.svg

adobe-webplatform / Snap.svg

Licence: apache-2.0
The JavaScript library for modern SVG graphics.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Snap.svg

Termtosvg
Record terminal sessions as SVG animations
Stars: ✭ 9,310 (-30.24%)
Mutual labels:  svg, svg-animations
Graphicsjs
A lightweight JavaScript graphics library with the intuitive API, based on SVG/VML technology.
Stars: ✭ 937 (-92.98%)
Mutual labels:  svg, javascript-library
Snap.svg.zpd
A zoom/pan/drag/rotate plugin for Snap.svg (useful for view only)
Stars: ✭ 119 (-99.11%)
Mutual labels:  svg, snap
Svg World Map
🗺 A JavaScript library to easily integrate one or more SVG world maps with all nations (countries) and second-level political subdivisions (countries, provinces, states).
Stars: ✭ 38 (-99.72%)
Mutual labels:  svg, javascript-library
Reimg
reimg - A javascript library for converting image formats
Stars: ✭ 106 (-99.21%)
Mutual labels:  svg, javascript-library
Anime
JavaScript animation engine
Stars: ✭ 41,064 (+207.69%)
Mutual labels:  svg, javascript-library
Vivid
a JavaScript library which is built to easily customize and use the SVG Icons with a blaze.
Stars: ✭ 1,797 (-86.54%)
Mutual labels:  svg, javascript-library
Free Gophers Pack
✨ This pack of 100+ gopher pictures and elements will help you to build own design of almost anything related to Go Programming Language: presentations, posts in blogs or social media, courses, videos and many, many more.
Stars: ✭ 2,343 (-82.44%)
Mutual labels:  svg
Vue Awesome
Awesome SVG icon component for Vue.js, built-in with Font Awesome icons.
Stars: ✭ 2,302 (-82.75%)
Mutual labels:  svg
Richpath
💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can.
Stars: ✭ 2,259 (-83.07%)
Mutual labels:  svg
Juniper
🍇 Edit and execute code snippets in the browser using Jupyter kernels
Stars: ✭ 189 (-98.58%)
Mutual labels:  javascript-library
Geopackage Js
GeoPackage JavaScript Library
Stars: ✭ 191 (-98.57%)
Mutual labels:  javascript-library
Virtual Dom
The foundation of HTML and SVG in Elm.
Stars: ✭ 196 (-98.53%)
Mutual labels:  svg
Webicon
Icon library
Stars: ✭ 190 (-98.58%)
Mutual labels:  svg
Midiplayerjs
♬ Midi parser & player engine for browser or Node. As a parser converts MIDI events into JSON. Works well with single or multitrack MIDI files.
Stars: ✭ 199 (-98.51%)
Mutual labels:  javascript-library
Library App
Detailed Ember.js Octane v3.21 tutorial for absolute beginners. https://yoember.com
Stars: ✭ 189 (-98.58%)
Mutual labels:  javascript-library
Js Library Boilerplate
Javascript Starter Boilerplate - Webpack 4, Babel 7, UMD, Hot Reloading, and more
Stars: ✭ 202 (-98.49%)
Mutual labels:  javascript-library
Mojojs Animation
A lightweight and powerful javascript Animation engine.
Stars: ✭ 197 (-98.52%)
Mutual labels:  javascript-library
Animating Vue Workshop
Animated Interfaces with Vue.js Workshop Materials
Stars: ✭ 195 (-98.54%)
Mutual labels:  svg
Svelte Awesome
Awesome SVG icon component for Svelte JS, built with Font Awesome icons. Based on Justineo/vue-awesome
Stars: ✭ 193 (-98.55%)
Mutual labels:  svg

Snap.svg · Build Status CDNJS GitHub Tag License

A JavaScript SVG library for the modern web. Learn more at snapsvg.io.

Follow us on Twitter.

Install

Learn

Use

In 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 /dist folder.

webpack

To load with webpack 2.x and 3.x, install Imports Loader (npm i -D imports-loader), and add the following to your webpack config:

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:

import Snap from 'snapsvg';

Build

Build Status

Snap.svg uses Grunt to build.

  • Open the terminal from the Snap.svg directory:
cd Snap.svg
  • Install its command line interface (CLI) globally:
npm install -g grunt-cli

*You might need to use sudo npm, depending on your configuration.

  • Install dependencies with npm:
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.

  • To build the files run
grunt
  • The results will be built into the dist folder.
  • Alternatively type grunt watch to have the build run automatically when you make changes to source files.

Testing

Tests 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.

Alternatively, install PhantomJS and run command

grunt test

Contribute

git checkout -b my_branch
  • Add your changes.
  • Check that tests are passing
  • Commit your changes:
git commit -am "Added some awesome stuff"
  • Push your branch:
git push origin my_branch

Note: Pull requests to other branches than dev or without filled CLA wouldn’t be accepted.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].