signature_pad
Advanced tools
Comparing version 4.1.0 to 4.1.1
/*! | ||
* Signature Pad v4.1.0 | https://github.com/szimek/signature_pad | ||
* Signature Pad v4.1.1 | https://github.com/szimek/signature_pad | ||
* (c) 2022 Szymon Nowak | Released under the MIT license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* Signature Pad v4.1.0 | https://github.com/szimek/signature_pad | ||
* Signature Pad v4.1.1 | https://github.com/szimek/signature_pad | ||
* (c) 2022 Szymon Nowak | Released under the MIT license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* Signature Pad v4.1.0 | https://github.com/szimek/signature_pad | ||
* Signature Pad v4.1.1 | https://github.com/szimek/signature_pad | ||
* (c) 2022 Szymon Nowak | Released under the MIT license | ||
@@ -4,0 +4,0 @@ */ |
/*! | ||
* Signature Pad v4.1.0 | https://github.com/szimek/signature_pad | ||
* Signature Pad v4.1.1 | https://github.com/szimek/signature_pad | ||
* (c) 2022 Szymon Nowak | Released under the MIT license | ||
@@ -4,0 +4,0 @@ */ |
@@ -68,3 +68,3 @@ /** | ||
toDataURL(type: 'image/svg+xml', encoderOptions?: ToSVGOptions): string; | ||
toDataURL(type: string, encoderOptions?: number): string; | ||
toDataURL(type?: string, encoderOptions?: number): string; | ||
on(): void; | ||
@@ -71,0 +71,0 @@ off(): void; |
/*! | ||
* Signature Pad v4.1.0 | https://github.com/szimek/signature_pad | ||
* Signature Pad v4.1.1 | https://github.com/szimek/signature_pad | ||
* (c) 2022 Szymon Nowak | Released under the MIT license | ||
@@ -4,0 +4,0 @@ */ |
{ | ||
"name": "signature_pad", | ||
"description": "Library for drawing smooth signatures.", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"homepage": "https://github.com/szimek/signature_pad", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -172,2 +172,4 @@ # Signature Pad [![npm](https://badge.fury.io/js/signature_pad.svg)](https://www.npmjs.com/package/signature_pad) [![tests](https://github.com/szimek/signature_pad/actions/workflows/test.yml/badge.svg)](https://github.com/szimek/signature_pad/actions/workflows/test.yml) [![Code Climate](https://codeclimate.com/github/szimek/signature_pad.png)](https://codeclimate.com/github/szimek/signature_pad) [![](https://data.jsdelivr.com/v1/package/npm/signature_pad/badge?style=rounded)](https://www.jsdelivr.com/package/npm/signature_pad) | ||
#### Handling canvas resize | ||
When you modify width or height of a canvas, it will be automatically cleared by the browser. SignaturePad doesn't know about it by itself, so you can call `signaturePad.fromData(signaturePad.toData())` to reset the drawing, or `signaturePad.clear()` to make sure that `signaturePad.isEmpty()` returns correct value in this case. | ||
@@ -174,0 +176,0 @@ |
@@ -149,3 +149,3 @@ /** | ||
): string; | ||
public toDataURL(type: string, encoderOptions?: number): string; | ||
public toDataURL(type?: string, encoderOptions?: number): string; | ||
public toDataURL( | ||
@@ -152,0 +152,0 @@ type = 'image/png', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236443
232