5.1.3 (2025-12-03)
5.1.2 (2025-11-16)
5.1.1 (2025-09-16)
5.1.0 (2025-09-03)
- update deps (da7dd1a)
5.0.10 (2025-06-20)
5.0.9 (2025-06-05)
5.0.8 (2025-06-05)
5.0.7 (2025-03-19)
5.0.6 (2025-03-14)
5.0.5 (2025-03-14)
5.0.4 (2024-10-17)
5.0.3 (2024-08-23)
5.0.2 (2024-06-10)
5.0.1 (2024-05-18)
5.0.0 (2024-05-03)
-
- Drawing outside of the canvas will record data outside the canvas
- Update SignatureEvent to store the original event, x, y, pressure
- move and up events are attached once down is triggered and they are on the window/ownerDocument target
5.0.0-beta.1 (2024-04-05)
- Drawing outside of the canvas will record data outside the canvas
- Update SignatureEvent to store the original event, x, y, pressure
- move and up events are attached once down is triggered and they are on the window/ownerDocument target
4.2.0 (2024-03-10)
4.1.7 (2023-11-16)
4.1.6 (2023-07-17)
4.1.5 (2023-02-22)
4.1.4 (2022-11-08)
4.1.3 (2022-11-01)
- fix version in built files (2e0ec92)
4.1.2 (2022-11-01)
4.1.1 (2022-10-31)
4.1.0 (2022-10-30)
4.0.10 (2022-10-12)
4.0.9 (2022-09-24)
- add velocityFilterWeight to point group options (ed6c139)
- use point group options in calculations (7495eae)
4.0.8 (2022-09-13)
4.0.7 (2022-07-21)
- use canvas.ownerDocument in mouse events in case it is different from window.document (#637) (636a503)
4.0.6 (2022-07-18)
4.0.5 (2022-06-06)
4.0.4 (2022-04-03)
4.0.3 (2022-03-18)
4.0.2 (2022-01-21)
4.0.1 (2022-01-08)
- fix iOS <= 13 (#581)
- Added Anonymous to crossOrigin prop (#542)
- Set SVG viewBox size from canvas width and height (#411)
- Save line Properties in point group (#571)
- Don't throw error when Coordinates are strings (#573)
- Update Dependencies
- Allow offsets when loading image via fromDataURL (#538)
- Add clear option to fromData (#570)
- Capture pressure when signing (#566)
-
dotSizeonly accepts anumbernow and no longer accepts a function (#571) -
SignaturePad is an event emitter. (#567)
onBeginandonEndoptions have been moved to events.The following events were added:
beginStrokeendStrokebeforeUpdateStrokeafterUpdateStroke
- Fix race condition / edge case in _strokeUpdate. (ndbroadbent; fixes #480)
- Remove CommonJS build
- Updated development dependencies (TS 4.x; tslint -> eslint)
- Add initial support for pointer events
- Fix error in
touchendevent handler. - Make both params in
#toDataURLoptional to matchCanvas#toDataURL.
- Add optional callback param to
#fromDataURL. - Add basic unit tests for SignaturePad class.
- Rewrite library using TypeScript. TypeScript declaration files are now provided by the library. Hopefully, it should be a bit easier to refactor now...
- Rename generated build files. The new files are:
dist/signature_pad.js # unminified CommonJS
dist/signature_pad.min.js # minified CommonJS
dist/signature_pad.umd.js # unminified UMD
dist/signature_pad.umd.min.js # minified UMD
dist/signature_pad.m.js # unminified ES module
dist/signature_pad.m.min.js # minified ES module- Change structure of data returned from
SignaturePad#toDatamethod. Each point group now has 2 fields:colorandpoints. Individual points no longer havecolorfield.
- Allow scrolling via touch after calling
SignaturePad#off(felixhammerl and patrickbussmann).
- Add very basic unit tests for Point and Bezier classes.
- Fix
minDistancenot being correctly initialized when set to zero. (remomueller closes #299).
- Updated demo to call
SignaturePad#clearon window resize, to make sure thatSignaturePad#isEmptyreturns the correct value. Closes #94.
- Added
minDistanceoption to skip points that are too close to each other (in px). It improves drawing quality (especially when drawing slowly), but introduces small lag. The default value is set to5. To switch back to the old behavior, set it to0.
- Fix
#toData/#fromDatato draw the last point in each curve as well. Fixes #270. - Fix
#fromDatato properly set internal data structure. Fixes #271.
- Export to SVG with correct pen colors. (DynamoEffects in #260)
- Fixed a bug where default value was applied for throttle when throttle was set to 0. (mkrause in #247)
- No changes since 2.1.0-beta.1.
Unfortunately, some breaking changes were introduced in 1.6.0, so to follow the semantic versioning, it's re-released as 2.0.0.
- Removed support for Bower. If you still need it, use 1.5.3 release.
- Moved
signature_pad.jsandsignature_pad.min.jsfiles todistfolder. - Added ES6 version of the library for use with webpack etc.
- Added support for returning signature as SVG using
#fromDataURL('image/svg+xml'). jackspirou mymattcarroll szimek - Added
#toDatamethod that returns data points. - Added
#fromDatamethod that draws signature from data points. - Moved
signature_pad.jsandsignature_pad.min.jsfiles todistfolder.
- Fix
touchendevent on touch devices. (#150) mtomic - Fix handling touch events in Egde browser. (#134) dideldum73
- Prevent loading an empty string in
fromDataURL. (#108) Remo - Reject points generated by resting hand (better handling of multi touch). (#48 and #57) jurreantonisse
- Prevent duplicate events on tap in iOS Safari. PerfectPixel
- Add
onmethod that rebinds all event handlers. Alplob
- Add
offmethod that unbinds all event handlers. Rob-ot
- Fix support for Browserify. chevett
- Add support for CommonJS/AMD/UMD.
- Really fix
fromDataURLon HiDPI screens.
- Fix
fromDataURLon HiDPI screens.
- Fix
onBeginandonEndcallbacks when passed as options to constructor. yinsee
- Fix handling touch events on mobile IE. tocsoft
- Add
onBeginandonEndcallbacks. rogerz
- Fix bug where stroke becomes very thin. mvirkkunen
- Fix
SignaturePad#fromDataURLon Firefox. Fr3nzzy
- Make
SignaturePad#isEmptyreturn false after loading an image usingSignaturePad#fromDataURL. krisivanov
- Fixed
SignaturePad#clear().
- Add
backgroundColoroption to set custom color of the background onSignaturePad#clear(). - Rename
coloroption topenColor. - Fix passing arguments to canvas element on
SignaturePad#toDataURL().

