New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@momsfriendlydevco/angular-ui-scribble

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@momsfriendlydevco/angular-ui-scribble

Angular signature_pad wrapper

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
5
Weekly downloads
 
Created
Source

angular-ui-scribble

Simple drawing widget to collect signatures, drawings or scrawls on a plain background or input from a webcam.

Can be used for:

  • Signature collection
  • Annotated drawings
  • Simple scribbles

Demo

Demo.

Installation

NOTE: This module requires signature_pad

  1. Grab the NPM
npm install --save @momsfriendlydevco/angular-ui-scribble
  1. Install the required script + CSS somewhere in your build chain or include it in a HTML header:
<script src="/libs/angular-ui-scribble/dist/votetally.min.js"/>
<link href="/libs/angular-ui-scribble/dist/angular-ui-scribble.min.css" rel="stylesheet" type="text/css"/>
  1. Include the router in your main angular.module() call:
var app = angular.module('app', ['angular-ui-scribble'])
  1. Use somewhere in your template:
<ui-scribble editable="true" callback="someFunction(image)"></ui-scribble>

A demo is also available. To use this follow the instructions in the demo directory.

Directive

The UI widget is a AngularJS directive which supports the following options:

OptionTypeDefaultDescription
callbackfunctionnoneThe function to accept the completed drawing. The callback must contain either keyword dataURI or blob somewhere which will be replaced with the DataURI of the encoded image and the raw binary blob. e.g. myCallback(dataURI) to recieve the dataURI and myCallback(blob) to get the Blob object
editablebooleanfalseIf false the first scribble the user makes will be used, if true the user has access to some editing tools before submission
colorsarrayPastel colorsAn array of colors to select from
sizesarray[1,2,3,4,5]An array of pen sizes to select from
buttonsObject{}Which buttons should be displayed in the UI. See below for each individual option
buttons.camerabooleantrueDisplay the camera capture button if the platform supports it
buttons.colorsbooleantrueDisplay the color selection buttons
buttons.clearbooleantrueDisplay the clear input button
buttons.eraserbooleantrueDisplay the eraser tool
buttons.sizesbooleantrueDisplay the pen size selection buttons
widthnumber400The width of the widget
heightnumber200The height of the widget

FAQs

Package last updated on 25 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc