This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author jeremboo https://jeremieboulay.fr | |
* | |
* GLMouseMoveListener to listen if the mouse is on a Mesh | |
* | |
* Ex: | |
* - Init | |
* mouseMoveListener.camera = this.webgl.camera; | |
* this.mouseMoveListener.start() | |
* ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SurfaceAnimation animate Node elements on the X and Y axis | |
* @version 1.1.0 | |
* @update 2017.12.11 | |
* @author jeremboo http://jeremieboulay.fr | |
* | |
* @example | |
* const surfaceAnimation = new SurfaceAnimation( | |
* [ | |
* '---------------', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Api { | |
constuctor(serverUrl, sessionName = '__apiToken') { | |
if (typeof serverUrl === 'undefined') { | |
throw new Error('ERROR: the url of the server should exist'); | |
} | |
this._token = ''; | |
this.serverUrl = serverUrl; | |
this.sessionName = sessionName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImageManager { | |
constructor () { | |
this.wMap = new Map() // Remplace with weakMap ??? | |
} | |
/** | |
* Load it before if it nessessary | |
* @param {String} url The image to load | |
* @return {Promise} | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnimationManager { | |
constructor () { | |
this.animMap = new Map() | |
// To manage the status of the menu during the transition | |
// and lock clicks. | |
this.menuInTransition = false | |
} | |
save (animName, tweenAnim) { |
OlderNewer