{"id":17056407,"url":"https://github.com/biophoton/angular-signature-pad","last_synced_at":"2025-08-01T10:35:28.774Z","repository":{"id":57179087,"uuid":"105480556","full_name":"BioPhoton/angular-signature-pad","owner":"BioPhoton","description":"SignaturePad for angular","archived":false,"fork":false,"pushed_at":"2018-10-08T09:24:33.000Z","size":1610,"stargazers_count":54,"open_issues_count":6,"forks_count":32,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T09:45:24.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/BioPhoton.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}},"created_at":"2017-10-01T22:55:40.000Z","updated_at":"2024-02-22T18:03:51.000Z","dependencies_parsed_at":"2022-09-09T19:01:15.182Z","dependency_job_id":null,"html_url":"https://github.com/BioPhoton/angular-signature-pad","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioPhoton%2Fangular-signature-pad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioPhoton%2Fangular-signature-pad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioPhoton%2Fangular-signature-pad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioPhoton%2Fangular-signature-pad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BioPhoton","download_url":"https://codeload.github.com/BioPhoton/angular-signature-pad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248603599,"owners_count":21131828,"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":[],"created_at":"2024-10-14T10:24:21.783Z","updated_at":"2025-04-12T17:26:17.550Z","avatar_url":"https://github.com/BioPhoton.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular SignaturePad\n\nThis project provides components and utils for digital signatures. \nUse it to draw smooth signatures based on HTML5 canvas and uses variable width Bézier curve interpolation. \n[SignaturePad](https://github.com/szimek/signature_pad) is used as the vanilla implementation.\n\n![Angular-Signature-Pad](https://raw.githubusercontent.com/BioPhoton/angular-signature-pad/master/resources/demo.gif)\n\n# DEMO\n\n- [ ] [Live Demo](https://biophoton.github.io/angular-signature-pad)\n- [ ] [cli-project](https://github.io/BioPhoton/angular-signature-pad)\n\n## Quick code example\n\n``` html\n// app.component.html\n\u003csignature-pad [config]=\"{penColor:red}\" #sP\u003e\u003c/signature-pad\u003e\n\u003cbutton (click)=\"sp.clear()\"\u003eCLEAR\u003c/button\u003e\n```\n\n## Installing\n\n1. Load library\n``` bash\n$ npm install angular-signature-pad --save\n```\n\n2. Import module\n``` typescript\n// src/app/app.module.ts\n...\n// IMPORT YOUR LIBRARY\nimport { AngularSignaturePadModule } from 'angular-signature-pad';\n\n@NgModule({\n  imports: [\n    ...\n    AngularSignaturePadModule.forRoot()\n  ]\n  ...\n})\nexport class AppModule { }\n\n```\n\n3. Use Component\n```typescript\n// src/app/app.component.html\n\u003csignature-pad #sigPad\u003e\u003c/signature-pad\u003e\n\n\u003cb\u003evalue:\u003c/b\u003e\n\u003cpre\u003e\n  {{sigPad.value | json}}\n\u003c/pre\u003e\n\n\u003cbutton (click)=\"sigPad.clear()\"\u003eClear\u003c/button\u003e\n```\n\n## Styles\nTo apply the default styles just import the `styles.scss` file from the `node_modules/angular-signature-pad` folder.\n\n```scss\n// src/styles.scss\n\n@import \"../node_modules/angular-signature-pad/styles\";\n```\n\n### Custom styles\nThe SignaturePadCard and SignaturePadCardGroup component have a default styling set over the `[theme]` property.  \nIt is applied over the `.raised` class internally. \n\nTo create your own theme create a class i.e. `.my-theme` and combine  \nit with the default class of the signature pad. `.signature-pad-card.my-theme`.\nApply it to the component over the `[theme]` property binding.\n\n1. Create styles\n```scss\n.signature-pad-card.my-theme {\n  ...\n\n  .signature-pad {\n    ...\n  }\n\n  .signature-pad-canvas {\n    ...\n  }\n\n  .actions {\n    ...\n    .clear {\n     ...\n    }\n  }\n\n  .feedback {\n   ... \n  }\n}\n\n```\n\n2. Apply styles to the theme property binding\n```html\n\u003csignature-pad-card [theme]=\"'my-theme'\" \u003e\u003c/signature-pad-card\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiophoton%2Fangular-signature-pad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiophoton%2Fangular-signature-pad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiophoton%2Fangular-signature-pad/lists"}