1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-08 17:02:28 +02:00

The signature pad more fluid and with a slightly finer minimum line

This commit is contained in:
Vincent LAURENT 2022-04-14 00:10:10 +02:00
parent a6e9b444ce
commit 8c4adb0216
2 changed files with 2 additions and 3 deletions

View file

@ -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'

View file

@ -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>