npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@momsfriendlydevco/angular-ui-scribble

v0.0.5

Published

Angular signature_pad wrapper

Downloads

5

Readme

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:

| Option | Type | Default | Description | |------------------|------------|--------------------|----------------------------------------------------------------------------------------------------------------| | callback | function | none | The 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 | | editable | boolean | false | If false the first scribble the user makes will be used, if true the user has access to some editing tools before submission | | colors | array | Pastel colors | An array of colors to select from | | sizes | array | [1,2,3,4,5] | An array of pen sizes to select from | | buttons | Object | {} | Which buttons should be displayed in the UI. See below for each individual option | | buttons.camera | boolean | true | Display the camera capture button if the platform supports it | | buttons.colors | boolean | true | Display the color selection buttons | | buttons.clear | boolean | true | Display the clear input button | | buttons.eraser | boolean | true | Display the eraser tool | | buttons.sizes | boolean | true | Display the pen size selection buttons | | width | number | 400 | The width of the widget | | height | number | 200 | The height of the widget |