repo: janusweb action: commit revision: path_from: revision_from: 9fa99a677e4887d1384bbf23f73155c4f06b10d9: path_to: revision_to:
commit 9fa99a677e4887d1384bbf23f73155c4f06b10d9 Author: James BaicoianuDate: Fri Jan 6 03:10:29 2017 -0800 Added janusparagraph diff --git a/scripts/janusparagraph.js b/scripts/janusparagraph.js new file mode 100644 index 0000000000000000000000000000000000000000..fcf2dc0d77d9bbe1cc554dc2edd611ba6b10b1fd --- /dev/null +++ b/scripts/janusparagraph.js @@ -0,0 +1,11 @@ +elation.require(['janusweb.janusbase'], function() { + elation.component.add('engine.things.janusparagraph', function() { + this.postinit = function() { + elation.engine.things.janusparagraph.extendclass.postinit.call(this); +console.log('new paragraph', this); + } + this.createObject3D = function() { + return new THREE.Mesh(new THREE.CubeGeometry(1,1,1), new THREE.MeshPhongMaterial({color: 0x000ff0})); + } + }, elation.engine.things.janusbase); +});
-----END OF PAGE-----