Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean render-order dependencies #327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 25 additions & 92 deletions components/render-order/dist/aframe-render-order-component.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand All @@ -7,105 +15,30 @@
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./index.js");
/******/ })
/************************************************************************/
/******/ ({
})(this, () => {
return /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ "./index.js":
/*!******************!*\
!*** ./index.js ***!
\******************/
/*! no static exports found */
/***/ (function(module, exports) {
/***/ (() => {

eval("AFRAME.registerSystem('render-order', {\n schema: {\n type: 'array'\n },\n init: function () {\n this.el.renderer.sortObjects = true;\n },\n update: function () {\n this.order = {};\n\n for (i = 0; i < this.data.length; i++) {\n this.order[this.data[i]] = i;\n }\n }\n});\nAFRAME.registerComponent('render-order', {\n schema: {\n type: 'string'\n },\n multiple: true,\n init: function () {\n this.set = this.set.bind(this);\n this.el.addEventListener('object3dset', evt => {\n if (this.id !== 'nonrecursive') {\n evt.detail.object.traverse(this.set);\n }\n });\n },\n update: function () {\n if (this.id === 'nonrecursive') {\n this.set(this.el.object3D);\n } else {\n this.el.object3D.traverse(this.set);\n }\n },\n set: function (node) {\n // String (named order).\n if (isNaN(this.data)) {\n node.renderOrder = this.system.order[this.data];\n } else {\n node.renderOrder = parseFloat(this.data);\n }\n }\n});\nAFRAME.registerComponent('render-order-recursive', {\n init: function () {\n this.el.addEventListener('child-attached', evt => {\n evt.detail.el.setAttribute('render-order', this.el.getAttribute('render-order'));\n });\n }\n});\n\n//# sourceURL=webpack:///./index.js?");
eval("AFRAME.registerSystem('render-order', {\n schema: {\n type: 'array'\n },\n init: function () {\n this.el.renderer.sortObjects = true;\n },\n update: function () {\n this.order = {};\n for (i = 0; i < this.data.length; i++) {\n this.order[this.data[i]] = i;\n }\n }\n});\nAFRAME.registerComponent('render-order', {\n schema: {\n type: 'string'\n },\n multiple: true,\n init: function () {\n this.set = this.set.bind(this);\n this.el.addEventListener('object3dset', evt => {\n if (this.id !== 'nonrecursive') {\n evt.detail.object.traverse(this.set);\n }\n });\n },\n update: function () {\n if (this.id === 'nonrecursive') {\n this.set(this.el.object3D);\n } else {\n this.el.object3D.traverse(this.set);\n }\n },\n set: function (node) {\n // String (named order).\n if (isNaN(this.data)) {\n node.renderOrder = this.system.order[this.data];\n } else {\n node.renderOrder = parseFloat(this.data);\n }\n }\n});\nAFRAME.registerComponent('render-order-recursive', {\n init: function () {\n this.el.addEventListener('child-attached', evt => {\n evt.detail.el.setAttribute('render-order', this.el.getAttribute('render-order'));\n });\n }\n});\n\n//# sourceURL=webpack://aframe-render-order-component/./index.js?");

/***/ })

/******/ });
/******/ });
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = {};
/******/ __webpack_modules__["./index.js"]();
/******/
/******/ return __webpack_exports__;
/******/ })()
;
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 9 additions & 46 deletions components/render-order/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-render-order-component",
"version": "1.1.0",
"version": "1.1.1",
"description": "A component that enables sorting and manually defining render order for transparent objects.",
"main": "index.js",
"unpkg": "dist/aframe-render-order-component.min.js",
Expand Down Expand Up @@ -37,54 +37,17 @@
},
"homepage": "https://github.com/supermedium/superframe#readme",
"dependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.3.1",
"aframe": "*",
"babel-loader": "^8.0.5",
"babel-preset-minify": "^0.5.0",
"chai": "^3.4.1",
"chai-shallow-deep-equal": "^1.3.0",
"cross-env": "4.0.0",
"ghpages": "^0.0.8",
"karma": "^0.13.15",
"karma-browserify": "^4.4.2",
"karma-chai-shallow-deep-equal": "0.0.4",
"karma-chrome-launcher": "2.0.0",
"karma-env-preprocessor": "^0.1.1",
"karma-firefox-launcher": "^0.1.7",
"karma-mocha": "^0.2.1",
"karma-mocha-reporter": "^1.1.3",
"karma-sinon-chai": "^1.1.0",
"mocha": "^2.3.4",
"randomcolor": "^0.4.4",
"semistandard": "^8.0.0",
"shelljs": "^0.7.0",
"shx": "^0.2.2",
"sinon": "^1.17.5",
"sinon-chai": "^2.8.0",
"snazzy": "^4.0.0",
"superagent": "^3.8.2",
"webpack": "^4.29.5",
"babel-loader": "^8.0.5"
},
"devDependencies": {
"cross-env": "*",
"ghpages": "*",
"karma": "*",
"webpack": "*",
"webpack-cli": "*",
"webpack-dev-server": "^3.2.0",
"webpack-sources": "1.0.1"
"webpack-dev-server": "*"
},
"semistandard": {
"globals": [
Expand Down