Skip to content

Commit

Permalink
Merge 095a660 into c2006f4
Browse files Browse the repository at this point in the history
  • Loading branch information
tgorkin committed May 24, 2019
2 parents c2006f4 + 095a660 commit f4ca15f
Show file tree
Hide file tree
Showing 29 changed files with 31 additions and 31 deletions.
4 changes: 1 addition & 3 deletions website-gatsby/src/components/animation-loop-runner.jsx
Expand Up @@ -55,15 +55,13 @@ export default class AnimationLoopRunner extends Component {
componentDidMount() {
const {showStats} = this.props;

console.log(this.props);

this.animationLoop._setDisplay(new VRDisplay());

// Ensure the example can find its images
// TODO - ideally ocular-gatsby should extract images from example source?
const {path} = this.props;
if (path) {
const RAW_GITHUB = 'https://raw.githubusercontent.com/uber/loaders.gl/master';
const RAW_GITHUB = 'https://raw.githubusercontent.com/uber/luma.gl/master';
setPathPrefix(`${RAW_GITHUB}/${path}`);
}

Expand Down
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-cubemap.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/cubemap/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
3 changes: 2 additions & 1 deletion website-gatsby/templates/core/example-dof.jsx
Expand Up @@ -3,9 +3,10 @@ import AnimationLoopRunner from '../../src/components/animation-loop-runner';
import AnimationLoop from '../../../examples/core/dof/app';

export default class Example extends React.Component {

render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-fragment.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/fragment/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-gltf.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/gltf/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-instancing.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/instancing/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-mandelbrot.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/mandelbrot/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-persistence.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/persistence/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-quasicrystals.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/quasicrystals/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-shadowmap.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/shadowmap/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-texture-3d.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/texture-3d/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/transform-feedback/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/core/example-transform.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/core/transform/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-01.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/01/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-02.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/02/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-03.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/03/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-04.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/04/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
3 changes: 2 additions & 1 deletion website-gatsby/templates/lessons/example-05.jsx
Expand Up @@ -3,9 +3,10 @@ import AnimationLoopRunner from '../../src/components/animation-loop-runner';
import AnimationLoop from '../../../examples/lessons/05/app';

export default class Example extends React.Component {

render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-06.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/06/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-07.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/07/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-08.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/08/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-09.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/09/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-10.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/10/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-11.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/11/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-12.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/12/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-13.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/13/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-14.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/14/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-15.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/15/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}
2 changes: 1 addition & 1 deletion website-gatsby/templates/lessons/example-16.jsx
Expand Up @@ -5,7 +5,7 @@ import AnimationLoop from '../../../examples/lessons/16/app';
export default class Example extends React.Component {
render() {
return (
<AnimationLoopRunner AnimationLoop={AnimationLoop} />
<AnimationLoopRunner AnimationLoop={AnimationLoop} path={this.props.pageContext.exampleConfig.path} />
);
}
}

0 comments on commit f4ca15f

Please sign in to comment.