├── .svg
├── .travis.yml
├── CHANGELOG.md
├── README.md
├── bower.json
├── index.coffee
├── jaggy
├── package.json
├── public
├── chrono_trigger.JPG
├── index.html
├── jaggy.min.js
├── jaggy.min.js.map
├── moon.png
├── uma.gif
├── uma2.gif
└── yuno.png
├── src
├── classes.coffee
├── index.coffee
├── jaggy.angular.coffee
├── jaggy.browser.coffee
└── jaggy.coffee
└── test
├── classess.spec.coffee
├── jaggy.angular.spec.coffee
├── jaggy.browser.spec.coffee
└── jaggy.spec.coffee
/.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # quick boot options
2 | sudo: false
3 | cache:
4 | directories:
5 | - node_modules
6 |
7 | # language options
8 | before_install:
9 | - npm install coffee-script --global
10 | language: node_js
11 | node_js:
12 | - '0.10'
13 |
14 | # coveralls.io options
15 | env:
16 | global:
17 | - secure: Ntsmce9vaWJWoAD6aFE9PbufcENR+bM49LvLjjSM+kZ8f92DVngBEwKA9tPh37KNCr935h4MxSJqe+OHQ50ObuJ5wiMJRsXc+4lvC4MLOo2ntIZd2qdol2SR+89LTT9YAiCX3JGnc/Us1KaUBh/hJ9A/OyxUF8rJLy6dDGldnW4=
18 | - secure: TsnPeT+sp3VGyHnnEJtsgjX20plmyR0CZv+dqzWlo5839FjA6BlSn6tHvL9O4agifjTarwcj3fRlkHjlvKSGqWiDttmCk2+83ilfHpDLncJ8086k1cQhkGu0nox3cuTHcfNJ0YRJeC/n/fFelL92KV/PSSHjQ/Q5DuzeG5+7a8Y=
19 |
20 | # deploy options
21 | deploy:
22 | provider: npm
23 | email: i59naga@icloud.com
24 | api_key:
25 | secure: ASq8p+8Kmu36TGLVLWBulUqXvfxDI8BAQopYhEbO/TN7mlxBq0MB5r9Ex5EgFqZimu+D7bWjakZQd1YGGrZSmsu8xgXtPBD/i2kaGZyjZaNNtfNMaoIzOAaSxdECzGbXWkkOt7nwqjTJzLYiZ8z8b+EzGdFt0voM+ar2qtk0D5o=
26 | on:
27 | repo: 59naga/jaggy
28 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | v0.1.17-rc.3 / Apr 27 2015
2 | =========================
3 | * [`4b8a6ee`][13] :bug: Fix [#6][13A]
4 | * [`4b8a6ee`][13] :bug: Fix [#7][13B]
5 | * [`37aaf03`][14] :lipstick: Fix [#8][14A] Add `jagged` for jaggy directive
6 | * [`3b94494`][15] :bug: Fix [#9][15A]
7 | * [`unknown`][16] :bug: Fix [#10][16A]
8 |
9 | [13]: https://github.com/59naga/jaggy/commit/4b8a6ee577f8625ddfd2e492a30e36b9a8d244e1
10 | [13A]: https://github.com/59naga/jaggy/issues/6
11 | [13B]: https://github.com/59naga/jaggy/issues/7
12 | [14]: https://github.com/59naga/jaggy/commit/37aaf03a58170f9153f4a11565186df4f21466a3
13 | [14A]: https://github.com/59naga/jaggy/issues/8
14 | [15]: https://github.com/59naga/jaggy/commit/3b9449490f9b1323845f8f595e2126e67734b07d
15 | [15A]: https://github.com/59naga/jaggy/issues/9
16 | [15]: https://github.com/59naga/jaggy/commit/
17 | [16A]: https://github.com/59naga/jaggy/issues/10
18 |
19 | v0.1.17 / Apr 15 2015
20 | =========================
21 | * [`5078a94`][12] :racehorse: Add Jaggy.queues for Jaggy.createSVG
22 | * [`5078a94`][12] :lipstick: Move Jaggy.createSVG to Jaggy._createSVG
23 | * [`5078a94`][12] :racehorse: Add Jaggy.options.timeout for Jaggy._createSVG
24 | * [`5078a94`][12] :racehorse: Add lz-string for caching(setCache/getCache)
25 |
26 | [12]: https://github.com/59naga/jaggy/commit/5078a9470f3026702a0fdf01a1e7a0d749d29dd5
27 |
28 | v0.1.15 / Apr 12 2015
29 | =========================
30 | * [`20c58d2`][9] :bulb: Add jaggy.pixelLimit for angular.js
31 | * [`bbc4132`][10] :fire: Deprecated `window.jaggy`. Move to `window.jaggy.createSVG`
32 | * [`bbc4132`][10] :lipstick: Rename for angular.js
33 | * jaggyConfig to `jaggy`
34 | * jaggyConfig.useCache to `jaggy.cache`
35 | * jaggyConfig.useEmptyImage to `jaggy.emptyImage`
36 | * [`bbc4132`][10] :bug: Fix duplicate uuid for animation
37 | * [`2fb60d9`][11] :bug: Fix InvalidCharacterError: DOM Exception 5 on safari
38 |
39 | [9]: https://github.com/59naga/jaggy/commit/20c58d2ea152ce4481a634f35562ea7e2334e9fe
40 | [10]: https://github.com/59naga/jaggy/commit/bbc413299f362e5e26d270b04237ddda61c21927
41 | [11]: https://github.com/59naga/jaggy/commit/2fb60d9db8df447ac222385ae6274225c14747af
42 |
43 | v0.1.13 / Apr 10 2015
44 | =========================
45 | * [`8ea1129`][7] :bug: fix `Cannot read property 'indexOf' of undefined` by angular-jaggy
46 | * [`65b72fb`][8] :bulb: Add `jaggyConfig.glitch`
47 |
48 | [7]: https://github.com/59naga/jaggy/commit/8ea1129a91043d569ef63ad3c1d46cd0eb07a8b0
49 | [8]: https://github.com/59naga/jaggy/commit/65b72fbd4b8f16823bf6bddf46ee5c2b1b4b853b
50 |
51 | v0.1.11 / Apr 8 2015
52 | =========================
53 | * [`0265a98`][6] :bug: Hotfix [#3][6A]
54 |
55 | [6A]: https://github.com/59naga/jaggy/issues/3
56 | [6]: https://github.com/59naga/jaggy/commit/0265a98fd8f6d5270b7eaef60c559511335aeb38
57 |
58 | v0.1.9 / Apr 7 2015
59 | =========================
60 | * [`d36c425`][5] :lipstick: Add ng-annotate for uglifyjs
61 |
62 | [5]: https://github.com/59naga/jaggy/commit/d36c425846abff547f719c43dc2ecf67097079e8
63 |
64 | v0.1.8 / Mar 30 2015
65 | =========================
66 | Add Angular options by constant `jaggyConfig`
67 |
68 | * [`a907a0a`][2] :bulb: empty image instead of Error by `jaggyConfig.useEmptyImage`
69 | * [`a907a0a`][2] :bulb: caching a converted svg by `jaggyConfig.useCache`
70 |
71 | * [`unknown`][3] :bug: Fix [#1](https://github.com/59naga/jaggy/issues/1)
72 | * [`unknown`][4] :bug: Fix [#2](https://github.com/59naga/jaggy/issues/2)
73 |
74 | [2]: https://github.com/59naga/jaggy/commit/a907a0a5da621d26fb5c01fceb49a882b6f97a71
75 | [3]: https://github.com/59naga/jaggy/commit/d4cd748d68f2fd27b17af54cc768bc1cbb196d3d
76 | [4]: https://github.com/59naga/jaggy/commit/4cb8d40a9ae223a97249f4d07fae390f3435c183
77 |
78 | v0.1.4 / Mar 29 2015
79 | =========================
80 | * [`21fb96a`][1] :bug: Fix ``
82 |
83 | [1]: https://github.com/59naga/jaggy/commit/21fb96a22352c84f4802c50f6a35f7500cee9254
84 |
85 | v0.1.3 / Mar 03 2015
86 | =========================
87 | * [`1084961c`][0] Release v0.1.3
88 |
89 | [0]: https://github.com/59naga/jaggy/commits/master
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ![jaggy][.svg] Jaggy [![NPM version][npm-image]][npm] [![Bower version][bower-image]][bower] [![Build Status][travis-image]][travis] [![Coverage Status][coveralls-image]][coveralls]
2 |
3 | ## for gulp
4 | ```bash
5 | $ npm install gulp jaggy
6 | ```
7 |
8 | gulpfile.js
9 |
10 | ```js
11 | var jaggy,gulp;
12 | jaggy= require('jaggy');
13 | gulp= require('gulp');
14 | gulp.task('default',function(){
15 | gulp.src(['*.png','*.gif','*.jpg'])
16 | .pipe(jaggy())
17 | .pipe(gulp.dest('./'))
18 | ;
19 | });
20 | ```
21 |
22 | ```bash
23 | $ gulp # Create the .svg
24 | ```
25 |
26 | ## for CLI
27 | Can use jaggy command to folder or file.
28 | Create the sameName.svg by [.gif, .jpg, .png]
29 |
30 | Example:
31 |
32 | ```bash
33 | $ npm install gulp jaggy --global
34 | $ jaggy public_html --recursive
35 | ```
36 |
37 | ## for browser
38 | ```bash
39 | $ bower install jaggy
40 | ```
41 |
42 | ```html
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | ```
52 |
53 | * Add `jaggy.browser.js` for ``.
54 | * Set `jaggy` class for `
`.
55 | * Converting after `DOMContentLoaded`.
56 |
57 | ***Doesn't work [Cross-origin][1]***
58 |
59 | [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
60 |
61 | ## for angular.js 1.*
62 |
63 | ```html
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | ```
73 |
74 | Can use `jaggy` directive.
75 |
76 | ## Why?
77 | Doesn't work [`image-rendering:crisp-edges`](http://caniuse.com/#feat=css-crisp-edges).
78 | However, Can work on the [`