{"id":22428450,"url":"https://github.com/momsfriendlydevco/angular-ui-scribble","last_synced_at":"2026-05-18T04:03:20.513Z","repository":{"id":78689312,"uuid":"85532883","full_name":"MomsFriendlyDevCo/angular-ui-scribble","owner":"MomsFriendlyDevCo","description":"Simple drawing widget to collect signatures, drawings or scrawls on a plain background or input from a webcam","archived":false,"fork":false,"pushed_at":"2020-08-25T07:39:37.000Z","size":531,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T12:50:53.277Z","etag":null,"topics":["angular","angular-ui","angularjs"],"latest_commit_sha":null,"homepage":"https://momsfriendlydevco.github.io/angular-ui-scribble/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MomsFriendlyDevCo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-20T03:45:59.000Z","updated_at":"2020-08-25T07:39:39.000Z","dependencies_parsed_at":"2023-03-07T08:15:54.789Z","dependency_job_id":null,"html_url":"https://github.com/MomsFriendlyDevCo/angular-ui-scribble","commit_stats":{"total_commits":42,"total_committers":3,"mean_commits":14.0,"dds":"0.45238095238095233","last_synced_commit":"a9e7f7957a41a9937d6eba1d86c3cf69b3d4286c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2Fangular-ui-scribble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2Fangular-ui-scribble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2Fangular-ui-scribble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MomsFriendlyDevCo%2Fangular-ui-scribble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MomsFriendlyDevCo","download_url":"https://codeload.github.com/MomsFriendlyDevCo/angular-ui-scribble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798538,"owners_count":20673901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-ui","angularjs"],"created_at":"2024-12-05T20:14:49.927Z","updated_at":"2025-10-15T06:26:35.481Z","avatar_url":"https://github.com/MomsFriendlyDevCo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-ui-scribble\n===================\nSimple drawing widget to collect signatures, drawings or scrawls on a plain background or input from a webcam.\n\nCan be used for:\n\n* Signature collection\n* Annotated drawings\n* Simple scribbles\n\n[Demo](https://momsfriendlydevco.github.io/angular-ui-scribble)\n\n\n[Demo](https://momsfriendlydevco.github.io/angular-ui-scribble).\n\n\nInstallation\n------------\nNOTE: This module requires [signature_pad](https://github.com/szimek/signature_pad)\n\n1. Grab the NPM\n\n```shell\nnpm install --save @momsfriendlydevco/angular-ui-scribble\n```\n\n\n2. Install the required script + CSS somewhere in your build chain or include it in a HTML header:\n\n```html\n\u003cscript src=\"/libs/angular-ui-scribble/dist/votetally.min.js\"/\u003e\n\u003clink href=\"/libs/angular-ui-scribble/dist/angular-ui-scribble.min.css\" rel=\"stylesheet\" type=\"text/css\"/\u003e\n```\n\n\n3. Include the router in your main `angular.module()` call:\n\n```javascript\nvar app = angular.module('app', ['angular-ui-scribble'])\n```\n\n\n4. Use somewhere in your template:\n\n```html\n\u003cui-scribble editable=\"true\" callback=\"someFunction(image)\"\u003e\u003c/ui-scribble\u003e\n```\n\n\nA demo is also available. To use this [follow the instructions in the demo directory](./demo/README.md).\n\n\nDirective\n=========\nThe UI widget is a AngularJS directive which supports the following options:\n\n| Option           | Type       | Default            | Description                                                                                                    |\n|------------------|------------|--------------------|----------------------------------------------------------------------------------------------------------------|\n| `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 |\n| `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 |\n| `colors`         | `array`    | *Pastel colors*    | An array of colors to select from                                                                              |\n| `sizes`          | `array`    | `[1,2,3,4,5]`      | An array of pen sizes to select from                                                                           |\n| `buttons`        | `Object`   | `{}`               | Which buttons should be displayed in the UI. See below for each individual option                              |\n| `buttons.camera` | `boolean`  | `true`             | Display the camera capture button if the platform supports it                                                  |\n| `buttons.colors` | `boolean`  | `true`             | Display the color selection buttons                                                                            |\n| `buttons.clear`  | `boolean`  | `true`             | Display the clear input button                                                                                 |\n| `buttons.eraser` | `boolean`  | `true`             | Display the eraser tool                                                                                        |\n| `buttons.sizes`  | `boolean`  | `true`             | Display the pen size selection buttons                                                                         |\n| `width`          | `number`   | `400`              | The width of the widget                                                                                        |\n| `height`         | `number`   | `200`              | The height of the widget                                                                                       |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomsfriendlydevco%2Fangular-ui-scribble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmomsfriendlydevco%2Fangular-ui-scribble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmomsfriendlydevco%2Fangular-ui-scribble/lists"}