An open API service indexing awesome lists of open source software.

https://github.com/michael-silva/yo-paper-cropper

An polymer 2.0 element to wrap Cropper.js
https://github.com/michael-silva/yo-paper-cropper

cropperjs polymer-element polymer2

Last synced: 5 months ago
JSON representation

An polymer 2.0 element to wrap Cropper.js

Awesome Lists containing this project

README

          

# \

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/michael-silva/yo-paper-cropper)

An element to wrap Cropper.js

## Example of usage ##

```html

```

## Options ##

The **options** atrribute receive an object with all options allowed by Cropper.js.
View all options at [Cropper.js](https://github.com/fengyuanchen/cropperjs/blob/master/README.md#options) repoository

## Events ##

### image-loaded ###
Triggered when image is loaded

### cropper-ready ###
Triggered after image is loaded and when cropperjs is rendered

## For developers ##

### Install the Polymer-CLI

First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your element locally.

### Viewing Your Element

```
$ polymer serve
```

### Running Tests

```
$ polymer test
```

Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.