labatrockwell / lab_js_framework Goto Github PK
View Code? Open in Web Editor NEWjavascript app framework by the LAB at Rockwell Group
javascript app framework by the LAB at Rockwell Group
in base app.
might have to split the two, but would be nice if they were the same!
Web Audio API spec
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
http://webcache.googleusercontent.com/search?q=cache:z61Zyg6KmcYJ:https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html+web+audio+api+reference&cd=2&hl=en&ct=clnk&gl=us
Web Audio API examples
http://chromium.googlecode.com/svn/trunk/samples/audio/index.html
http://0xfe.blogspot.com/2011/08/generating-tones-with-web-audio-api.html
Consider renaming RequestAnimationFrame.js to AnimationTiming.js and add cancelRequestAnimationFrame per the spec:
http://webstuff.nfshost.com/anim-timing/Overview.html
// cancels requestAnimationFrame like clearTimeout cancels a setTimeout
window.cancelRequestAnimFrame = ( function() {
return window.cancelAnimationFrame ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelRequestAnimationFrame ||
window.oCancelRequestAnimationFrame ||
window.msCancelRequestAnimationFrame ||
clearTimeout
})();
requires a minor change to RequestAnimationFrame since you need a handle to pass to cancelRequestAnimationFrame
function(/* function */ callback, /* DOMElement */ element){
window.setTimeout(callback, 1000 / 60);
};
to
function(/* function */ callback, /* DOMElement */ element){
return window.setTimeout(callback, 1000 / 60);
};
similar to openFrameworks.
e.g. LAB.listenToMouseEvents( this );
or LAB.addEventListener( "mouseDown", this.onMouseDown );
& LAB.addEventListener( "update", this.update );
& LAB.addEventListener( "draw", this.draw );
Update event listener to the W3C Level 3 spec:
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#webidl-events-EventTarget
I'm not sure if we need to support bubbling, but the general interface should match so that the use of events is consistent (if using the addEventListener, removeEventListener syntax).
Whenever you are using inheritance and need to call the superclass from the subclass constructor, use the following pattern. This pattern will avoid the duplicate call to the super class constructor that occurs with SubClass.prototype = new SuperClass()
LAB.SubClass = function() {
// call to super
LAB.SuperClass.call(this, optionalParams);
};
LAB.SubClass.prototype = LAB.inherit(LAB.SuperClass.prototype);
LAB.SubClass.prototype.constructor = LAB.SubClass;
// you can also add a reference to supr if you like
LAB.require( LAB.sound.* );
or LAB.require( "js/lab/sound/*");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.