Socket
Socket
Sign inDemoInstall

signature_pad

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signature_pad - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

dist/signature_pad.js
/*!
* 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',

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