Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/jSignature.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ function jSignatureClass(parent, options, instanceExtensions) {
,'minFatFingerCompensation' : -10
,'showUndoButton': false
,'data': []
,'hideCanvasLine' : false
}

$.extend(settings, getColors($parent))
Expand Down Expand Up @@ -933,6 +934,7 @@ function jSignatureClass(parent, options, instanceExtensions) {
return this
} // end of initBase


//=========================================================================
// jSignatureClass's methods and supporting fn's

Expand Down Expand Up @@ -964,7 +966,9 @@ jSignatureClass.prototype.resetCanvas = function(data){
ctx.shadowOffsetX = 0
ctx.shadowOffsetY = 0
var lineoffset = Math.round( ch / 5 )
basicLine(ctx, lineoffset * 1.5, ch - lineoffset, cw - (lineoffset * 1.5), ch - lineoffset)
if (!settings.hideCanvasLine) {
basicLine(ctx, lineoffset * 1.5, ch - lineoffset, cw - (lineoffset * 1.5), ch - lineoffset)
}
ctx.strokeStyle = settings.color

if (!isCanvasEmulator){
Expand Down