diff --git a/.gitignore b/.gitignore index a9112c64f..ee734d193 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,12 @@ bower_components build/Release # Dependency directories -jspm_packages/ +node_modules/* +!node_modules/three/ +!node_modules/three/build/ +!node_modules/three/examples/ +!node_modules/three/build/** +!node_modules/three/examples/** # Optional npm cache directory .npm diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100644 index 48f084762..000000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "create-3d-worlds.github.io", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/three": { - "version": "0.160.0", - "resolved": "https://registry.npmjs.org/three/-/three-0.160.0.tgz", - "integrity": "sha512-DLU8lc0zNIPkM7rH5/e1Ks1Z8tWCGRq6g8mPowdDJpw1CFBJMU7UoJjC6PefXW7z//SSl0b2+GCw14LB+uDhng==", - "license": "MIT" - } - } -} diff --git a/node_modules/three/LICENSE b/node_modules/three/LICENSE deleted file mode 100644 index d07e20968..000000000 --- a/node_modules/three/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright © 2010-2023 three.js authors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/three/README.md b/node_modules/three/README.md deleted file mode 100644 index 1f5a1f87f..000000000 --- a/node_modules/three/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# three.js - -[![NPM Package][npm]][npm-url] -[![Build Size][build-size]][build-size-url] -[![NPM Downloads][npm-downloads]][npmtrends-url] -[![DeepScan][deepscan]][deepscan-url] -[![Discord][discord]][discord-url] - -#### JavaScript 3D library - -The 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. - -[Examples](https://threejs.org/examples/) — -[Docs](https://threejs.org/docs/) — -[Manual](https://threejs.org/manual/) — -[Wiki](https://github.com/mrdoob/three.js/wiki) — -[Migrating](https://github.com/mrdoob/three.js/wiki/Migration-Guide) — -[Questions](https://stackoverflow.com/questions/tagged/three.js) — -[Forum](https://discourse.threejs.org/) — -[Discord](https://discord.gg/56GBJwAnUS) - -### Usage - -This 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. - -```javascript -import * as THREE from 'three'; - -const width = window.innerWidth, height = window.innerHeight; - -// init - -const camera = new THREE.PerspectiveCamera( 70, width / height, 0.01, 10 ); -camera.position.z = 1; - -const scene = new THREE.Scene(); - -const geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 ); -const material = new THREE.MeshNormalMaterial(); - -const mesh = new THREE.Mesh( geometry, material ); -scene.add( mesh ); - -const renderer = new THREE.WebGLRenderer( { antialias: true } ); -renderer.setSize( width, height ); -renderer.setAnimationLoop( animation ); -document.body.appendChild( renderer.domElement ); - -// animation - -function animation( time ) { - - mesh.rotation.x = time / 2000; - mesh.rotation.y = time / 1000; - - renderer.render( scene, camera ); - -} -``` - -If everything goes well, you should see [this](https://jsfiddle.net/2nyxkmco/). - -### Cloning this repository - -Cloning 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. - -```sh -git clone --depth=1 https://github.com/mrdoob/three.js.git -``` - -### Change log - -[Releases](https://github.com/mrdoob/three.js/releases) - - -[npm]: https://img.shields.io/npm/v/three -[npm-url]: https://www.npmjs.com/package/three -[build-size]: https://badgen.net/bundlephobia/minzip/three -[build-size-url]: https://bundlephobia.com/result?p=three -[npm-downloads]: https://img.shields.io/npm/dw/three -[npmtrends-url]: https://www.npmtrends.com/three -[deepscan]: https://deepscan.io/api/teams/16600/projects/19901/branches/525701/badge/grade.svg -[deepscan-url]: https://deepscan.io/dashboard#view=project&tid=16600&pid=19901&bid=525701 -[discord]: https://img.shields.io/discord/685241246557667386 -[discord-url]: https://discord.gg/56GBJwAnUS - diff --git a/node_modules/three/package.json b/node_modules/three/package.json deleted file mode 100644 index cba65b3b5..000000000 --- a/node_modules/three/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "name": "three", - "version": "0.160.0", - "description": "JavaScript 3D library", - "type": "module", - "main": "./build/three.js", - "module": "./build/three.module.js", - "exports": { - ".": { - "import": "./build/three.module.js", - "require": "./build/three.cjs" - }, - "./examples/fonts/*": "./examples/fonts/*", - "./examples/jsm/*": "./examples/jsm/*", - "./addons": "./examples/jsm/Addons.js", - "./addons/*": "./examples/jsm/*", - "./src/*": "./src/*", - "./nodes": "./examples/jsm/nodes/Nodes.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/mrdoob/three.js" - }, - "sideEffects": ["./examples/jsm/nodes/**/*"], - "files": [ - "build", - "examples/jsm", - "examples/fonts", - "LICENSE", - "package.json", - "README.md", - "src" - ], - "directories": { - "doc": "docs", - "example": "examples", - "test": "test" - }, - "browserslist": [ - "> 1%, not dead, not ie 11, not op_mini all" - ], - "scripts": { - "start": "npm run dev", - "test": "npm run lint && npm run test-unit", - "build": "rollup -c utils/build/rollup.config.js", - "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule", - "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"", - "lint-core": "eslint src", - "lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc", - "lint-examples": "eslint examples --ext .html", - "lint-docs": "eslint docs --ignore-pattern prettify.js", - "lint-editor": "eslint editor --ignore-pattern libs", - "lint-playground": "eslint playground --ignore-pattern libs", - "lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js", - "lint-test": "eslint test --ignore-pattern vendor", - "lint-utils": "eslint utils", - "lint": "npm run lint-core", - "lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix", - "test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js", - "test-e2e": "node test/e2e/puppeteer.js", - "test-e2e-cov": "node test/e2e/check-coverage.js", - "test-treeshake": "rollup -c test/rollup.treeshake.config.js", - "test-circular-deps": "dpdm --no-warning --no-tree --exit-code circular:1 examples/jsm/nodes/Nodes.js", - "make-screenshot": "node test/e2e/puppeteer.js --make" - }, - "keywords": [ - "three", - "three.js", - "javascript", - "3d", - "virtual-reality", - "augmented-reality", - "webgl", - "webgl2", - "webaudio", - "webgpu", - "webxr", - "canvas", - "svg", - "html5" - ], - "author": "mrdoob", - "license": "MIT", - "bugs": { - "url": "https://github.com/mrdoob/three.js/issues" - }, - "homepage": "https://threejs.org/", - "devDependencies": { - "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.4.0", - "chalk": "^5.2.0", - "concurrently": "^8.0.1", - "dpdm": "^3.14.0", - "eslint": "^8.37.0", - "eslint-config-mdcs": "^5.0.0", - "eslint-plugin-compat": "^4.1.2", - "eslint-plugin-html": "^7.1.0", - "eslint-plugin-import": "^2.27.5", - "failonlyreporter": "^1.0.0", - "jimp": "^0.22.7", - "magic-string": "^0.30.0", - "pixelmatch": "^5.3.0", - "puppeteer": "^21.5.1", - "qunit": "^2.19.4", - "rollup": "^4.6.0", - "rollup-plugin-filesize": "^10.0.0", - "rollup-plugin-visualizer": "^5.9.0", - "servez": "^2.0.0" - }, - "overrides": { - "jpeg-js": "^0.4.4" - }, - "jspm": { - "files": [ - "package.json", - "LICENSE", - "README.md", - "build/three.js", - "build/three.min.js", - "build/three.module.js" - ], - "directories": {} - } -}