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

https://github.com/florianv/hand-signature

Polymer element for handwritten signatures
https://github.com/florianv/hand-signature

Last synced: 3 months ago
JSON representation

Polymer element for handwritten signatures

Awesome Lists containing this project

README

        

# hand-signature

> Polymer element for handwritten signatures

## Installation

```bash
$ bower install hand-signature --save
```

## Usage

### Import

```html

```

### Basic

```html

```

Adding a title:

```html

Please sign below

```

### Data binding

In order to get the signature image, you can bind the `data` attribute to a property of your element.
While the user is signing, the property will be updated with the image data encoded in base64.

```html




Polymer('hand-signature-demo', {
signatureChanged: function (oldValue, newValue) {
// The newValue contains the image data
}
});

```

### Attributes

| Attribute | Description | Default
|-----------------|-----------------------------------|---------
| format | Image format | png
| data | Bound to the image data | undefined
| width | Width of the element | 200px
| height | Height of the canvas | 200px
| lineColor | Line color | #212121
| lineJoin | Line join | mitter
| lineWidth | Line width (in pixels) | 2
| backgroundColor | Canvas background color | white
| clearable | Allow the signature to be cleared | true

## Browser Support

- Chrome 24+
- Internet Explorer 11+
- Firefox 24+
- Safari 6.1+
- Opera 16+

:warning: Mobiles not supported yet

## License

[MIT](https://github.com/florianv/hand-signature/blob/master/LICENSE)