{"_id":"three@0.187.0","bugs":{"url":"https://github.com/mrdoob/three.js/issues"},"dist":{"shasum":"face29ee2de9bcc31a1b573a76f224e35e0b2894","tarball":"http://registry-npm.ywwl.com/three/download/three-0.187.0.tgz","fileCount":1277,"integrity":"sha512-Qiu7R+Cmh8CstZsY1uJOSWnVlfo7ZtNLV7mF8Jltk3LB3AtDu9cRZlcnRKkAk8Y4z6KKw35z7Y7Urd7jWY8etA==","signatures":[{"sig":"MEUCIDI6S9rH8N8T/8JHTiDz60OadT7nfdYCIPemt33YQYdYAiEAgZ5gefBifaWAggL5NtQFEnU/D+Z+J3lOdZVu89p0TJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDv9w8UdL0JNQfdX9T6bZNthQiKhEvnMMShhY0Y0PrBoQIgejtmUsMStr3D0UWdQhhDNqYmjxApWovCExTfQBaGtBc="}],"unpackedSize":21030536,"size":4795351,"noattachment":false,"key":"/three/-/three-0.187.0.tgz"},"main":"./build/three.cjs","name":"three","type":"module","author":{"name":"mrdoob"},"module":"./build/three.module.js","exports":{".":{"import":"./build/three.module.js","require":"./build/three.cjs"},"./tsl":"./build/three.tsl.js","./src/*":"./src/*","./addons":"./examples/jsm/Addons.js","./webgpu":"./build/three.webgpu.js","./addons/*":"./examples/jsm/*","./examples/jsm/*":"./examples/jsm/*","./examples/fonts/*":"./examples/fonts/*"},"gitHead":"7e89746a687bb88271253698fa108b1dd59825d0","license":"MIT","scripts":{"dev":"node utils/build/dev.js && node utils/server.js -p 8080","lint":"npm run lint-core","test":"npm run lint && npm run test-unit && npm run test-unit-addons","build":"rollup -c utils/build/rollup.config.js","start":"npm run dev","preview":"node utils/build/preview.js","lint-fix":"npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-editor -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix && npm run lint-tsl -- --fix","lint-tsl":"eslint tsl","test-e2e":"node test/e2e/puppeteer.js","lint-core":"eslint src","lint-test":"eslint test","test-unit":"node test/unit/puppeteer.unit.js --testPage=UnitTests.html --mode=headless","build-docs":"jsdoc -c utils/docs/jsdoc.config.json && npm run build-llms","build-llms":"node utils/llms/build.js","lint-utils":"eslint utils","lint-addons":"eslint examples/jsm","lint-editor":"eslint editor","lint-manual":"eslint manual","test-e2e-cov":"node test/e2e/check-coverage.js","lint-examples":"eslint examples","test-treeshake":"rollup -c test/rollup.treeshake.config.js","make-screenshot":"node test/e2e/puppeteer.js --make","test-e2e-webgpu":"node test/e2e/puppeteer.js --webgpu","test-unit-addons":"node test/unit/puppeteer.unit.js --testPage=UnitTestsAddons.html --mode=headless","test-unit-headful":"node test/unit/puppeteer.unit.js --testPage=UnitTests.html --mode=headful","make-tsl-reference":"node test/unit/tsl/make.js","test-unit-addons-headful":"node test/unit/puppeteer.unit.js --testPage=UnitTestsAddons.html --mode=headful","benchmark-node-material-instance":"node test/benchmarks/node-material-instance.js"},"version":"0.187.0","_npmUser":{"name":"mrdoob","email":"info@mrdoob.com"},"homepage":"https://threejs.org/","keywords":["three","three.js","javascript","3d","virtual-reality","augmented-reality","webgl","webgl2","webaudio","webgpu","webxr","canvas","svg","html5"],"repository":{"url":"git+https://github.com/mrdoob/three.js.git","type":"git"},"_npmVersion":"11.19.0","description":"JavaScript 3D library","directories":{"doc":"docs","test":"test","example":"examples"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"},{"name":"mugen87","email":"michael.herzog@human-interactive.org"}],"sideEffects":["./src/nodes/**/*"],"_nodeVersion":"24.20.0","allowScripts":{"fsevents":true,"puppeteer":true},"browserslist":["> 1%, not dead, not ie 11, not op_mini all"],"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^4.0.5","pngjs":"^7.0.0","eslint":"^10.8.0","rollup":"^4.6.0","globals":"^17.0.0","jpeg-js":"^0.4.4","turndown":"^7.2.2","puppeteer":"^25.0.0","@eslint/js":"^9.0.0","magic-string":"^1.0.0","eslint-config-mdcs":"^5.0.0","eslint-plugin-html":"^8.1.3","eslint-plugin-jsdoc":"^65.0.0","eslint-plugin-compat":"^7.0.0","@rollup/plugin-terser":"^1.0.0","@rollup/plugin-node-resolve":"^16.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/three_0.187.0_1793347764305_0.508847474725897"},"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[![jsDelivr Downloads][jsdelivr-downloads]][jsdelivr-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 WebGL and WebGPU renderers but 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/w43x5Lgh/).\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[jsdelivr-downloads]: https://data.jsdelivr.com/v1/package/npm/three/badge?style=rounded\n[jsdelivr-url]: https://www.jsdelivr.com/package/npm/three\n[discord]: https://img.shields.io/discord/685241246557667386\n[discord-url]: https://discord.gg/56GBJwAnUS\n","publish_time":1793347764504,"_cnpm_publish_time":1793347764504,"dist-tags":{"latest":"0.187.0"}}