This file contains 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) { |
This file contains 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 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 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 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 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 | |
* | |
* ScrollEngine.js to create parallax effect on your html page | |
* with the transform CSS property and an animationFrameRate. | |
* | |
* Usage: | |
* ------- | |
* | |
* // HTML |
This file contains 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 | |
* @version 1.0.0 | |
* | |
* GPUSimulation, based on : | |
* - GPUComputationRenderer by yomboprime : https://threejs.org/examples/js/GPUComputationRenderer.js | |
* - Demo for THREE.FBOHelper by thespite : https://www.clicktorelease.com/code/THREE.FBOHelper/#512 | |
* - FBO particles article by nicoptere : http://barradeau.com/blog/?p=621 | |
* | |
* The GPUSimulation build a Simulation of RGBA float textures that hold 4 floats for each compute element (texel) |
This file contains 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
/** | |
* V1.0.0 | |
* @author jeremboo https://jeremieboulay.fr | |
* | |
* REACT ANIMATED COMPONENT : | |
* Class to manage react components animated by GreenSock timelines. | |
* You can show/hide child components and their children. | |
* | |
* PARENT: Start to animate components |
This file contains 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
'atom-text-editor[data-grammar~="js"]:not([mini])': | |
'tab': 'emmet:expand-abbreviation-with-tab' |
This file contains 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
remify(value) { | |
u = unit(value); | |
if (u is 'px') { | |
return unit(value/16, 'rem'); | |
} else { | |
return unit(value, u); | |
} | |
} |
NewerOlder