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:
parent
4b5a895f0e
commit
7829f4d733
1 changed files with 27 additions and 0 deletions
27
Nibriboard/ClientFiles/Pencil.js
Normal file
27
Nibriboard/ClientFiles/Pencil.js
Normal 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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue