You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-14Lines changed: 30 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,7 @@ You can find the source code of examples under `examples` branch.
35
35
* You can clip your own images (local uploaded images or images served on your site), but you cannot clip a cross-origin image unless the image server set the CORS headers.
36
36
* Components' **input** is an image URL, **output** is a canvas element, they only help you clip images to canvas, you need to handle other things like *transform file input to image URL* or *transform output canvas to image* by yourself.
37
37
38
-
## Installation
39
-
40
-
### NPM & ESM
38
+
## Installation (NPM & ESM)
41
39
42
40
Install vuejs-clipper
43
41
@@ -51,12 +49,6 @@ Install peer dependencies if you haven't.
51
49
npm install vue-rx rxjs --save
52
50
```
53
51
54
-
Need css loader, ex: `sass-loader`, if you haven't installed :
55
-
56
-
```bash
57
-
npm install -D sass-loader node-sass
58
-
```
59
-
60
52
Vuejs-clipper is based on **vue-rx**, so make sure you have vue-rx plugin installed.
61
53
62
54
```javascript
@@ -65,12 +57,32 @@ import VueRx from 'vue-rx'
65
57
// install vue-rx
66
58
Vue.use(VueRx)
67
59
```
60
+
Make sure to install **vue-rx** plugin first.
68
61
69
-
#### (1) use vuejs-clipper plugin
62
+
###Import
70
63
71
-
Make sure to install **vue-rx** plugin first.
64
+
#### use dist files
72
65
73
-
By default vuejs-clipper plugin will register **all components** to Vue global scope.
0 commit comments