8:00 – 4:00 SR
- Tested threejs on target browsers. The hardware acceleration is iffy, but the software renderer and the raytracer work fine
- Deployed Dong’s FR fixes
- Working on splitting the chart elements into their own module.
- Argh! Fat arrow functions can’t inherit in TypeScript! Thinking about making a mapping table? Something like
- fooPtr = (var:number):void =>{…};
- fooFn(var:number):void{fooPtr(var);}
- ????
- Set up and implemented an interface for calculating behaviors, which works nicely:
-
public behavior = (dClock:number, elapsed:number):void => { var rb = this.wglCanvas; var ci:IChartElement; var i:number = 0; if (rb) { rb.dprint("Hello controller - sin(elapsed) = " + Math.sin(elapsed).toFixed(2)); for (i = 0; i < this.chartElements.length; i++) { ci = this.chartElements[i]; ci.setZOffset(Math.sin(elapsed + i)); ci.behavior(dClock, elapsed); } } };
