1
0
Fork 0
mirror of https://github.com/sbrl/Nibriboard.git synced 2018-01-10 21:33:49 +00:00

[client] Add Pencil class. It isn't finished yet.

This commit is contained in:
Starbeamrainbowlabs 2017-03-28 20:25:54 +01:00
parent 4b5a895f0e
commit 7829f4d733

View file

@ -0,0 +1,27 @@
"use strict";
import Mouse from './Mouse';
class Pencil
{
/**
* Creates a new Pencil class instance.
* @param {RippleLink} inRippleLink The connection to the nibri server.
* @return {Pencil} A new Pencil class instance.
*/
constructor(inRippleLink)
{
this.rippleLink = inRippleLink;
/**
* The mouse information.
* @type {Mouse}
*/
this.mouse = new Mouse();
document.addEventListener("mouseMove", this.handleMouseMove.bind(this));
}
handleMouseMove(event) {
}
}