0.1.1 • Published 6 years ago

@jsonleex/vue-cropperjs v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

vue-cropperjs

A Vue wrapper component for cropperjs.

Installation

npm install --save @jsonleex/vue-cropperjs

You will also need css & style loader for webpack

Usage

// Global
import Vue from 'vue';
import VueCropper from '@jsonleex/vue-cropperjs';
Vue.component(VueCropper);

// Local
import VueCropper from '@jsonleex/vue-cropperjs';
export default {
  components: { VueCropper}
}

...
<vue-cropper
  ref="cropper"
  :src="imgSrc"
/>
...

this.$refs.cropper.rotate(45);

See the example files & cropperjs documentation

Crop related options

See cropperjs documentation for all posible options & methods.

License

MIT