mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
The signature pad more fluid and with a slightly finer minimum line
This commit is contained in:
parent
a6e9b444ce
commit
8c4adb0216
@ -901,9 +901,8 @@ var createEventsListener = function() {
|
||||
var createSignaturePad = function() {
|
||||
signaturePad = new SignaturePad(document.getElementById('signature-pad'), {
|
||||
penColor: 'rgb(0, 0, 0)',
|
||||
minWidth: 1.25,
|
||||
minWidth: 0.75,
|
||||
maxWidth: 2,
|
||||
throttle: 0,
|
||||
onEnd: function() {
|
||||
const file = new File([dataURLtoBlob(signaturePad.toDataURL())], "draw.png", {
|
||||
type: 'image/png'
|
||||
|
@ -249,6 +249,6 @@
|
||||
hash = "<?php echo $hash ?>";
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
<script src="/js/signature.js?202204020154"></script>
|
||||
<script src="/js/signature.js?202204140009"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user