jeli.sketch
v0.2.0
Published
Interractive sketch written in javascript
Downloads
6
Maintainers
Readme
jeli.sketch
Minimal javascript framework for drawing or signing signatures.
Getting started
npm install jeli.sketch
How to use
create the sketch instance
var tool = new jsketch({width: 800}, dropZone);
tool.init(function() {
// so something
});
How to interract with other sketch
run the sketch server.js file to start sketch socket
var socket = io.connect(ip);
socket.emit('device.role', {
isAdmin: false
});
var interractor = tool.interact();
// pass the socket to interractor instance
interractor.socketEnabled = true;
interractor.socket = socket;
// connet and watch for incomming events
interractor
.connect()
.watch();