jeli.sketch

0.2.0 • Public • Published

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();

And that's all folks

Playground

Package Sidebar

Install

npm i jeli.sketch

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

35.9 kB

Total Files

7

Last publish

Collaborators

  • gojecks