├── examples └── basic │ ├── test.png │ └── index.html ├── webpack.config.js ├── .gitignore ├── LICENSE ├── webpack.prod.config.js ├── package.json ├── index.html ├── dist ├── aframe-room-component.min.js ├── aframe-room-component.min.js.map └── aframe-room-component.js ├── README.md └── index.js /examples/basic/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omgitsraven/aframe-room-component/HEAD/examples/basic/test.png -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Path = require('path'); 4 | 5 | module.exports = [ 6 | { 7 | entry: './index.js', 8 | output: { 9 | filename: 'aframe-room-component.js', 10 | library: { type: 'umd' }, 11 | path: Path.resolve(__dirname, 'dist'), 12 | publicPath: '/dist/' 13 | }, 14 | mode: 'development', 15 | devtool: 'eval-source-map', 16 | stats: { colors: true }, 17 | devServer: { 18 | port: process.env.PORT || 8000, 19 | hot: false, 20 | liveReload: true, 21 | static: { 22 | directory: Path.resolve(__dirname) 23 | } 24 | } 25 | } 26 | ]; 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (http://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # Typescript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | .husky 61 | .DS_Store 62 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Andrew Fraticelli <andrew.fraticelli@gmail.com> 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /webpack.prod.config.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const Path = require('path'); 4 | 5 | const TerserPlugin = require('terser-webpack-plugin'); 6 | 7 | module.exports = [ 8 | { 9 | entry: './index.js', 10 | output: { 11 | filename: 'aframe-room-component.min.js', 12 | library: { type: 'umd' }, 13 | path: Path.resolve(__dirname, 'dist') 14 | }, 15 | mode: 'production', 16 | devtool: 'source-map', 17 | stats: { colors: true }, 18 | module: { 19 | rules: [ 20 | { 21 | test: /\.js$/, 22 | use: { 23 | loader: 'babel-loader', 24 | options: { 25 | presets: ['@babel/preset-env'] 26 | } 27 | } 28 | } 29 | ] 30 | }, 31 | optimization: { 32 | minimize: true, 33 | minimizer: [ 34 | new TerserPlugin({ 35 | terserOptions: { 36 | compress: { passes: 2 }, 37 | format: { comments: false } 38 | }, 39 | extractComments: false 40 | }) 41 | ] 42 | } 43 | } 44 | ]; 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aframe-room-component", 3 | "version": "0.4.2", 4 | "description": "An A-Frame component for quickly creating rooms connected by doors.", 5 | "main": "./index.js", 6 | "cdn": "./dist/aframe-room-component.min.js", 7 | "scripts": { 8 | "dist:dev": "webpack --config webpack.config.js", 9 | "dist:prd": "webpack --config webpack.prod.config.js", 10 | "dist": "npm run dist:prd && npm run dist:dev", 11 | "ghpages": "ghpages", 12 | "lint": "semistandard -v | snazzy", 13 | "prepublish": "npm run dist", 14 | "start:https": "webpack serve --progress --open --server-type https", 15 | "start": "webpack serve --progress --open" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "git+https://github.com/omgitsraven/aframe-room-component.git" 20 | }, 21 | "keywords": [ 22 | "aframe", 23 | "aframe-component", 24 | "aframe-vr", 25 | "vr", 26 | "mozvr", 27 | "webvr", 28 | "room" 29 | ], 30 | "author": "Hazel Fraticelli ", 31 | "license": "MIT", 32 | "bugs": { 33 | "url": "https://github.com/omgitsraven/aframe-room-component/issues" 34 | }, 35 | "homepage": "https://github.com/omgitsraven/aframe-room-component#readme", 36 | "devDependencies": { 37 | "@babel/core": "7.21.3", 38 | "@babel/preset-env": "7.20.2", 39 | "babel-loader": "9.1.2", 40 | "ghpages": "0.0.10", 41 | "semistandard": "16.0.1", 42 | "snazzy": "9.0.0", 43 | "terser-webpack-plugin": "5.3.7", 44 | "webpack-cli": "5.0.1", 45 | "webpack-dev-server": "4.13.1", 46 | "webpack": "5.76.3" 47 | }, 48 | "peerDependencies": { 49 | "aframe": ">=1.2.0" 50 | }, 51 | "semistandard": { 52 | "globals": [ 53 | "AFRAME", 54 | "THREE" 55 | ], 56 | "ignore": [ 57 | "examples/build.js", 58 | "dist/**" 59 | ] 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | A-Frame Room Component 6 | 7 | 48 | 49 | 50 |

A-Frame Room Component

51 | 52 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /examples/basic/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | A-Frame Room Component - Basic 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 |