ecentinela / ng-signature-pad Goto Github PK
View Code? Open in Web Editor NEWAn AngularJS directive for signature_pad
Home Page: http://plnkr.co/edit/mWA2Wt
License: Other
An AngularJS directive for signature_pad
Home Page: http://plnkr.co/edit/mWA2Wt
License: Other
When I set a width and a height for the canvas, the signature drawing will be misaligned.
See example here:
http://plnkr.co/edit/NRnntx?p=preview
The same example without width and height is working fine:
http://plnkr.co/edit/vohTMk?p=preview
How I can change the canvas width and height without messing with the drawing alignment?
I'm getting an error on Macs that the cdns for signature pad ERR_CONNECTION_REFUSED
Hey guys,
I got the directive working but I have no idea about how to get the result (base 64 image) and put it in my ng-model
. Please help me and add some docs ;)
Greetz
Bob
Thanks so much for this angular version. Any idea on how to get this portion to work?
var wrapper = document.getElementById("signature-pad"),
canvas = wrapper.querySelector("canvas"),
signaturePad;
// Adjust canvas coordinate space taking into account pixel ratio,
// to make it look crips on mobile devices.
// This also causes canvas to be cleared.
function resizeCanvas() {
var ratio = window.devicePixelRatio || 1;
canvas.width = canvas.offsetWidth * ratio;
canvas.height = canvas.offsetHeight * ratio;
canvas.getContext("2d").scale(ratio, ratio);
}
window.onresize = resizeCanvas;
signaturePad = new SignaturePad(canvas);
Hi,
When i am using signature with pop up, I am not able to capture signature. Do you have any popup signature example?
Sridhar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.