{"name":"three","version":"0.66.32-dev","keywords":["3D","WebGL","Three","ThreeJS","CSS","engine","rendering","geometry","math"],"author":{"name":"three.js contributors"},"license":{"url":"https://raw.github.com/mrdoob/three.js/master/LICENSE","type":"The MIT License"},"_id":"three@0.66.32-dev","maintainers":[{"name":"bhouston","email":"ben@exocortex.com"},{"name":"cabbibo","email":"isaaclandoncohen@gmail.com"},{"name":"rtsao","email":"rtsao@scu.edu"}],"homepage":"http://threejs.org/","bugs":{"url":"https://github.com/mrdoob/three.js/issues"},"dist":{"shasum":"965f5cfcbc90ebdfb132db19c0efa6860b32048f","tarball":"http://registry-npm.ywwl.com/three/download/three-0.66.32-dev.tgz","integrity":"sha512-9XiNECsiA2ELzwYbAn3H1L2YbvMp+mD3/vGdbRL2CKmOjnV3VK080957h+/WbXCC386ejgCgRORdzt5g+KNLuA==","signatures":[{"sig":"MEUCIGLOkj4Xj1eKXLPLx6hwzG3VgO+CUQKIDckGr0DmOYlpAiEAyfrw7VMhghPLbsHWTFTPq/WqKMfdM49c85GcSlPI1Yg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":286290,"noattachment":false,"key":"/three/-/three-0.66.32-dev.tgz"},"help":{"web":"http://stackoverflow.com/questions/tagged/three.js"},"main":"./three.js","_from":"node_modules\\three","_shasum":"965f5cfcbc90ebdfb132db19c0efa6860b32048f","engines":{"node":"*"},"scripts":{},"_npmUser":{"name":"bhouston","email":"ben@exocortex.com"},"repository":{"url":"git://github.com/mrdoob/three.js.git","type":"git"},"_npmVersion":"1.4.14","description":"JavaScript 3D library","directories":{},"readme":"# three.js\n\n[![NPM Package][npm]][npm-url]\n[![Build Size][build-size]][build-size-url]\n[![NPM Downloads][npm-downloads]][npmtrends-url]\n[![DeepScan][deepscan]][deepscan-url]\n[![Discord][discord]][discord-url]\n\n#### JavaScript 3D library\n\nThe aim of the project is to create an easy-to-use, lightweight, cross-browser, general-purpose 3D library. The current builds only include a WebGL renderer but WebGPU (experimental), SVG and CSS3D renderers are also available as addons.\n\n[Examples](https://threejs.org/examples/) &mdash;\n[Docs](https://threejs.org/docs/) &mdash;\n[Manual](https://threejs.org/manual/) &mdash;\n[Wiki](https://github.com/mrdoob/three.js/wiki) &mdash;\n[Migrating](https://github.com/mrdoob/three.js/wiki/Migration-Guide) &mdash;\n[Questions](https://stackoverflow.com/questions/tagged/three.js) &mdash;\n[Forum](https://discourse.threejs.org/) &mdash;\n[Discord](https://discord.gg/56GBJwAnUS)\n\n### Usage\n\nThis code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a `WebGL` renderer for the scene and camera, and it adds that viewport to the `document.body` element. Finally, it animates the cube within the scene for the camera.\n\n```javascript\nimport * as THREE from 'three';\n\nconst width = window.innerWidth, height = window.innerHeight;\n\n// init\n\nconst camera = new THREE.PerspectiveCamera( 70, width / height, 0.01, 10 );\ncamera.position.z = 1;\n\nconst scene = new THREE.Scene();\n\nconst geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 );\nconst material = new THREE.MeshNormalMaterial();\n\nconst mesh = new THREE.Mesh( geometry, material );\nscene.add( mesh );\n\nconst renderer = new THREE.WebGLRenderer( { antialias: true } );\nrenderer.setSize( width, height );\nrenderer.setAnimationLoop( animate );\ndocument.body.appendChild( renderer.domElement );\n\n// animation\n\nfunction animate( time ) {\n\n\tmesh.rotation.x = time / 2000;\n\tmesh.rotation.y = time / 1000;\n\n\trenderer.render( scene, camera );\n\n}\n```\n\nIf everything goes well, you should see [this](https://jsfiddle.net/v98k6oze/).\n\n### Cloning this repository\n\nCloning the repo with all its history results in a ~2 GB download. If you don't need the whole history you can use the `depth` parameter to significantly reduce download size.\n\n```sh\ngit clone --depth=1 https://github.com/mrdoob/three.js.git\n```\n\n### Change log\n\n[Releases](https://github.com/mrdoob/three.js/releases)\n\n\n[npm]: https://img.shields.io/npm/v/three\n[npm-url]: https://www.npmjs.com/package/three\n[build-size]: https://badgen.net/bundlephobia/minzip/three\n[build-size-url]: https://bundlephobia.com/result?p=three\n[npm-downloads]: https://img.shields.io/npm/dw/three\n[npmtrends-url]: https://www.npmtrends.com/three\n[deepscan]: https://deepscan.io/api/teams/16600/projects/19901/branches/525701/badge/grade.svg\n[deepscan-url]: https://deepscan.io/dashboard#view=project&tid=16600&pid=19901&bid=525701\n[discord]: https://img.shields.io/discord/685241246557667386\n[discord-url]: https://discord.gg/56GBJwAnUS\n\n","publish_time":1417205947125,"_cnpm_publish_time":1417205947125,"dist-tags":{"latest":"0.187.0"}}