You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call the plugin method "$('.sigPad').signaturePad(options)" on the HTML element it also returns and API for the instance, so we can assign it to some global variable
var sigPad = $('.sigPad').signaturePad(options);
Is it possible to change the method signaturePad(options) so it will return the current instance (or create a new instance if it was not done previously)?
For example:
var img = $('.sigPad').signaturePad().getSignatureImage();
at present it creates a new instance and returns empty image. I have to use a global variable to solve it
Also regarding option.lineTop. IMHO it's better to use it as %.
function drawSigLine() {
...
canvasContext.moveTo(settings.lineMargin, element.height * settings.lineTop * 0.01)
...
}
Thanks.
The text was updated successfully, but these errors were encountered:
When I call the plugin method "$('.sigPad').signaturePad(options)" on the HTML element it also returns and API for the instance, so we can assign it to some global variable
var sigPad = $('.sigPad').signaturePad(options);
Is it possible to change the method signaturePad(options) so it will return the current instance (or create a new instance if it was not done previously)?
For example:
var img = $('.sigPad').signaturePad().getSignatureImage();
at present it creates a new instance and returns empty image. I have to use a global variable to solve it
Also regarding option.lineTop. IMHO it's better to use it as %.
function drawSigLine() {
...
canvasContext.moveTo(settings.lineMargin, element.height * settings.lineTop * 0.01)
...
}
Thanks.
The text was updated successfully, but these errors were encountered: