a94b88a1184e893c16197750bf4d20c8ac6e03d672ef62579f217db688055eaf03c90b425d22fe01cfa02bb586d16d78c285d8f59372703558aae86e1fbe64 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Raphaël: Cross-browser vector graphics the easy way
  2. Visit the library website for more information: ~~[http://raphaeljs.com](http://raphaeljs.com/)~~ [https://dmitrybaranovskiy.github.io/raphael/](https://dmitrybaranovskiy.github.io/raphael/)
  3. ## Quickstart guide
  4. You need to have NPM installed to build the library.
  5. * `git clone https://github.com/DmitryBaranovskiy/raphael.git`
  6. * `yarn install --frozen-lockfile`
  7. * `yarn build-all`
  8. To run tests you need to run `npx bower install` open `dev/test/index.html` in your browser, there's no automated way right now.
  9. ## Dependencies
  10. * [eve](https://github.com/adobe-webplatform/eve)
  11. ## Distributable
  12. All files are UMD compliant.
  13. You can use:
  14. * `raphael.min.js` (includes `eve` and it's minified)
  15. * `raphael.js` (includes `eve` and it's not minified)
  16. * `raphael.no-deps.js` (doesn't include `eve` it's not minified)
  17. * `raphael.no-deps.min.js` (doesn't include `eve` it's minified)
  18. ## Where to start
  19. Check [Raphael-boilerplate](https://github.com/tomasAlabes/raphael-boilerplate) to see examples of loading.
  20. Raphael can be loaded in a script tag or with AMD:
  21. ```js
  22. define([ "path/to/raphael" ], function( Raphael ) {
  23. console.log( Raphael );
  24. });
  25. ```
  26. ## Development
  27. Versions will be released as we gather and test new PRs.
  28. As there are a lot of browsers being supported it might take a while to accept a PR, we will use the feedback from other users too.
  29. You can use the `raphaelTest.html` to try things, you need to start a server in the root dir to start testing things there.
  30. Something like running `python -m SimpleHTTPServer` in the `raphael` directory and hitting `http://localhost:8000/dev/raphaelTest.html` with the browser. You should run `npm run start` before this can work.
  31. ## Collaborators
  32. * [tomasAlabes](https://github.com/tomasAlabes)
  33. ## Related Projects
  34. * [graphael](https://github.com/DmitryBaranovskiy/g.raphael/tree/master)
  35. * [raphael.boilerplate](https://github.com/tomasAlabes/raphael-boilerplate)
  36. * [backbone.raphael](https://github.com/tomasAlabes/backbone.raphael)
  37. * [mapael](https://github.com/neveldo/jQuery-Mapael)
  38. * [snap](https://github.com/adobe-webplatform/Snap.svg)
  39. * [react-raphael](https://github.com/liuhong1happy/react-raphael)
  40. ## Books
  41. * [Learning Raphael JS Vector Graphics](http://shop.oreilly.com/product/9781782169161.do)
  42. * [RaphaelJS](http://shop.oreilly.com/product/0636920029601.do)
  43. * [Instant RaphaelJS Starter](http://shop.oreilly.com/product/9781782169857.do)
  44. ## Copyright and license
  45. Copyright © 2008-2013 Dmitry Baranovskiy (`http://dmitrybaranovskiy.github.io/raphael/`)
  46. Copyright © 2008-2013 Sencha Labs (`http://sencha.com`)
  47. Licensed under the **MIT** (`http://dmitrybaranovskiy.github.io/raphael/license.html`) license.