How to remove grey color line from CANVAS (Signature panel) in the jSignature plugin
?
Is there any option to validate whether user enter signature or not ? Any built in function for this ?
http://willowsystems.github.com/jSignature/#/demo/
How about this setting the decor-color to transparent
$(document).ready(function() {
$("#signature").jSignature({
'background-color': 'transparent',
'decor-color': 'transparent',
});
});
I am afraid there is no option to turn it off, so the only solution would be to change the plug-in code itself
There is a section in the plug-in that draws the base line. Just comment out like this
// signature line
ctx.strokeStyle = settings['decor-color']
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)
ctx.strokeStyle = settings.color
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With