Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 3.14 KB

CHANGELOG.md

File metadata and controls

64 lines (47 loc) · 3.14 KB

Changelog

2.0 new Fork by stephanbrunker

  • In this completely revised version of the signature-pad for Javascript I did these changes:
  • First, I sorted and commented the different functions for better insight.
  • Then I rewrote most of drawing logic. The original version didn't like dots, so I sorted it out following the cleanest way to do it. In Javascript, the DOWN event has the same coordinates as the first MOVE, and the last MOVE has the same as the UP event, even if there is only a single click, an MOVE event is fired. So, i add points at MOVE events, and at the UP event i decide: If the points array has four members, a bezier curve is drawn until the 3rd point, so I double the last point to draw it to the last position. Three members aren't possible, because then the first point would be doubled to start the bezier. With two members, you can only draw a single line, so I added a function for this and with only one point you need a dot - I added this also.
  • consolidated some of the functions to make it cleaner.
  • the Pad works now exactly the same way as my fork of the Android version https://github.com/stephanbrunker/android-signaturepad
  • cleaned out the repository with only the essentials
  • I made up a new fork because my pull request to the upstream repo was denied - perhaps too many changes ...

1.5.3

  • Fix touchend event on touch devices. (#150) mtomic
  • Fix handling touch events in Egde browser. (#134) dideldum73

1.5.2

  • Prevent loading an empty string in fromDataURL. (#108) Remo
  • Reject points generated by resting hand (better handling of multi touch). (#48 and #57) jurreantonisse

1.5.1

  • Prevent duplicate events on tap in iOS Safari. PerfectPixel

1.5.0

  • Add on method that rebinds all event handlers. Alplob

1.4.0

  • Add off method that unbinds all event handlers. Rob-ot

1.3.6

  • Fix support for Browserify. chevett

1.3.5

  • Add support for CommonJS/AMD/UMD.

1.3.4

  • Really fix fromDataURL on HiDPI screens.

1.3.3

  • Fix fromDataURL on HiDPI screens.

1.3.2

  • Fix onBegin and onEnd callbacks when passed as options to constructor. yinsee

1.3.1

  • Fix handling touch events on mobile IE. tocsoft

1.3.0

  • Add onBegin and onEnd callbacks. rogerz

1.2.4

  • Fix bug where stroke becomes very thin. mvirkkunen

1.2.3

  • Fix SignaturePad#fromDataURL on Firefox. Fr3nzzy

1.2.2

  • Make SignaturePad#isEmpty return false after loading an image using SignaturePad#fromDataURL. krisivanov

1.2.1

  • Fixed SignaturePad#clear().

1.2.0

  • Add backgroundColor option to set custom color of the background on SignaturePad#clear().
  • Rename color option to penColor.
  • Fix passing arguments to canvas element on SignaturePad#toDataURL().