brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
690 stars 529 forks source link

How to check the canvas is empty or blank #154

Open tkslabz opened 5 years ago

tkslabz commented 5 years ago

Hello I want check the event if user start to draw on canvas or not. Actually i don't want perform any operation if user not draw any content on canvas means if canvas is blank. Thanks Regards

barkdoll commented 5 years ago

I don't know if the functionality is built in to jSignature or not, but this answer may help you.

TianqiHo commented 5 years ago

var arr = $(sigDomClass).jSignature('getData', 'native');

use it