vue-croppa
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "vue-croppa", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A simple straightforward customizable image cropper for vue.js.", | ||
@@ -8,4 +8,5 @@ "main": "dist/vue-croppa.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "rollup -c --environment BUILD:production", | ||
"build:full": "rollup -c --environment BUILD:production", | ||
"build:min": "rollup -c --environment BUILD:production-min", | ||
"build": "npm run build:full && npm run build:min", | ||
"dev": "rollup -c -w" | ||
@@ -12,0 +13,0 @@ }, |
@@ -36,2 +36,6 @@ # vue-croppa | ||
``` | ||
**NOTE:** This is an almost-full-use example. Usually you don't need to specify so many props to customize it, because they all have default values. Most simply, you can even do: | ||
```html | ||
<croppa v-model="myCroppa"></croppa> | ||
``` | ||
@@ -87,3 +91,3 @@ | ||
#### v-model | ||
A two-way binding prop. It syncs an object from within the croppa component with a data in parent. We can use this object to invoke useful methods (Check out "Methods" section). | ||
A two-way binding prop. It syncs an object from within the croppa component with a data in parent. We can use this object to invoke useful methods (Check out "[Methods](#-methods)" section). | ||
- type: `object` | ||
@@ -152,3 +156,3 @@ - default: `null` | ||
#### disable-click-to-choose | ||
Disables the default "click to Choose an image" user interaction. You can instead open the file chooser window programmatically by invoking `chooseFile()` method. | ||
Disables the default "click to choose an image" user interaction. You can instead trigger the file chooser window programmatically by invoking `chooseFile()` method. | ||
- type: `boolean` | ||
@@ -168,3 +172,3 @@ - default: `false` | ||
#### reverse-zooming-gesture | ||
Reverses the zoom-in/zoom-out direction when scrolling.- type: `boolean` | ||
Reverses the zoom-in/zoom-out direction when scrolling. | ||
- type: `boolean` | ||
@@ -174,3 +178,3 @@ - default: `false` | ||
#### prevent-white-space | ||
Prevents revealing background white space when moving and zooming the image. | ||
Prevents revealing background white space when moving or zooming the image. | ||
- type: `boolean` | ||
@@ -177,0 +181,0 @@ - default: `false` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198205
252