Closed RemarkLima closed 2 years ago
@RemarkLima I have a feeling this is not a feature will ever be added to signature-pad. I'm not sure, but you might be able to dynamically loop over the JSON on your end and set the signature repeatedly. I'm not sure if the JSON is in a format where you can necessarily tell what order the signature was drawn, though.
@mockdeep thanks for the reply - I'd assumed the JSON data was in the order in which the cursor travelled, so you could just iterate over each coordinate of the array, but if it's rationalised somehow, then yes it'll never work! I'll have a play but perhaps best to close this.
It would be a good feature if you could redraw the signature / image when regenerating the image from the JSON data.
So you can see a signature being re-written as you load up the page.