0.0.19 • Published 7 years ago

fh-wfm-signature v0.0.19

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

FeedHenry WFM signature module

A signature module for FeedHenry WFM.

Setup

This module is packaged in a CommonJS format, exporting the name of the Angular namespace. The module can be included in an angular.js as follows:

Require the browserify dependency as an angular module

angular.module('app', [
, require('fh-wfm-signature')
...
])

Client-side usage

Collecting signatures

The Base64 encoded signature will be assigned to the value attribute of the signature-form directive.

Default mime-type is image/png, however, this can be overriden by passing mime-type value via encoding attribute.

The image quality can also be adjusted by setting the image-quality attribute. See table below for details.

NameLowmediumHigh
image/jpeg0.10.51
image/png0.10.51
image/webp0.10.51
<signature-form value="ctrl.model" encoding="image/jpeg" image-quality="0.5"></signature-form>

Displaying signatures

The src attribute of the image tag is bound to the value attribute of the signature tag. To display a base64 encoded string, prefix it with the string: data:image/png;base64,

<signature value="ctrl.model"></signature>

Signature CSS styles

Include the module SASS file in your application sass:

@import 'node_modules/fh-wfm-appform/sass/appform.scss';

Directives

Directives

NameAttributes
signature-formvalue, options, encoding, image-quality
signaturevalue
0.0.19

7 years ago

0.0.18

7 years ago

0.0.18-alpha.3

7 years ago

0.0.18-alpha.2

7 years ago

0.0.18-alpha.1

7 years ago

0.0.17

7 years ago

0.0.15

7 years ago

0.0.15-alpha.1

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago