diff --git a/dist/aframe-v1.0.0.js b/dist/aframe-v1.0.0.js index 2782ba3748e..3819ddee5dd 100644 --- a/dist/aframe-v1.0.0.js +++ b/dist/aframe-v1.0.0.js @@ -80066,7 +80066,7 @@ _dereq_('./core/a-mixin'); _dereq_('./extras/components/'); _dereq_('./extras/primitives/'); -console.log('A-Frame Version: 0.9.2 (Date 2019-12-13, Commit #a657138c)'); +console.log('A-Frame Version: 1.0.0 (Date 2019-12-14, Commit #dc7d6174)'); console.log('three Version (https://github.com/supermedium/three.js):', pkg.dependencies['super-three']); console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']); diff --git a/dist/aframe-v1.0.0.js.map b/dist/aframe-v1.0.0.js.map index ef74d5a22ca..14a2b0989b5 100644 --- a/dist/aframe-v1.0.0.js.map +++ b/dist/aframe-v1.0.0.js.map @@ -352,7 +352,7 @@ "var registerGeometry = require('../core/geometry').registerGeometry;\nvar THREE = require('../lib/three');\n\nvar degToRad = THREE.Math.degToRad;\n\nregisterGeometry('torus', {\n schema: {\n arc: {default: 360},\n radius: {default: 1, min: 0},\n radiusTubular: {default: 0.2, min: 0},\n segmentsRadial: {default: 36, min: 2, type: 'int'},\n segmentsTubular: {default: 32, min: 3, type: 'int'}\n },\n\n init: function (data) {\n this.geometry = new THREE.TorusGeometry(\n data.radius, data.radiusTubular * 2, data.segmentsRadial, data.segmentsTubular,\n degToRad(data.arc));\n }\n});\n", "var registerGeometry = require('../core/geometry').registerGeometry;\nvar THREE = require('../lib/three');\n\nregisterGeometry('torusKnot', {\n schema: {\n p: {default: 2, min: 1},\n q: {default: 3, min: 1},\n radius: {default: 1, min: 0},\n radiusTubular: {default: 0.2, min: 0},\n segmentsRadial: {default: 8, min: 3, type: 'int'},\n segmentsTubular: {default: 100, min: 3, type: 'int'}\n },\n\n init: function (data) {\n this.geometry = new THREE.TorusKnotGeometry(\n data.radius, data.radiusTubular * 2, data.segmentsTubular, data.segmentsRadial,\n data.p, data.q);\n }\n});\n", "var registerGeometry = require('../core/geometry').registerGeometry;\nvar THREE = require('../lib/three');\n\nvar quaternion = new THREE.Quaternion();\nvar rotateVector = new THREE.Vector3(0, 0, 1);\nvar uvMinVector = new THREE.Vector2();\nvar uvMaxVector = new THREE.Vector2();\nvar uvScaleVector = new THREE.Vector2();\n\nregisterGeometry('triangle', {\n schema: {\n vertexA: {type: 'vec3', default: {x: 0, y: 0.5, z: 0}},\n vertexB: {type: 'vec3', default: {x: -0.5, y: -0.5, z: 0}},\n vertexC: {type: 'vec3', default: {x: 0.5, y: -0.5, z: 0}}\n },\n\n init: function (data) {\n var geometry;\n var normal;\n var triangle;\n var uvA;\n var uvB;\n var uvC;\n\n triangle = new THREE.Triangle();\n triangle.a.set(data.vertexA.x, data.vertexA.y, data.vertexA.z);\n triangle.b.set(data.vertexB.x, data.vertexB.y, data.vertexB.z);\n triangle.c.set(data.vertexC.x, data.vertexC.y, data.vertexC.z);\n normal = triangle.getNormal(new THREE.Vector3());\n\n // Rotate the 3D triangle to be parallel to XY plane.\n quaternion.setFromUnitVectors(normal, rotateVector);\n uvA = triangle.a.clone().applyQuaternion(quaternion);\n uvB = triangle.b.clone().applyQuaternion(quaternion);\n uvC = triangle.c.clone().applyQuaternion(quaternion);\n\n // Compute UVs.\n // Normalize x/y values of UV so they are within 0 to 1.\n uvMinVector.set(Math.min(uvA.x, uvB.x, uvC.x), Math.min(uvA.y, uvB.y, uvC.y));\n uvMaxVector.set(Math.max(uvA.x, uvB.x, uvC.x), Math.max(uvA.y, uvB.y, uvC.y));\n uvScaleVector.set(0, 0).subVectors(uvMaxVector, uvMinVector);\n uvA = new THREE.Vector2().subVectors(uvA, uvMinVector).divide(uvScaleVector);\n uvB = new THREE.Vector2().subVectors(uvB, uvMinVector).divide(uvScaleVector);\n uvC = new THREE.Vector2().subVectors(uvC, uvMinVector).divide(uvScaleVector);\n\n geometry = this.geometry = new THREE.Geometry();\n geometry.vertices.push(triangle.a);\n geometry.vertices.push(triangle.b);\n geometry.vertices.push(triangle.c);\n geometry.faces.push(new THREE.Face3(0, 1, 2, normal));\n geometry.faceVertexUvs[0] = [[uvA, uvB, uvC]];\n }\n});\n", - "// Polyfill `Promise`.\nwindow.Promise = window.Promise || require('promise-polyfill');\n\nvar isOculusBrowser = /(OculusBrowser)/i.test(window.navigator.userAgent);\n\n// WebVR polyfill\n// Check before the polyfill runs.\nwindow.hasNativeWebVRImplementation = !!window.navigator.getVRDisplays ||\n !!window.navigator.getVRDevices;\nwindow.hasNativeWebXRImplementation = !isOculusBrowser && navigator.xr !== undefined;\n\n// If native WebXR or WebVR are defined WebVRPolyfill does not initialize.\nif (!window.hasNativeWebXRImplementation && !window.hasNativeWebVRImplementation) {\n var isIOSOlderThan10 = require('./utils/isIOSOlderThan10');\n // Workaround for iOS Safari canvas sizing issues in stereo (webvr-polyfill/issues/102).\n // Only for iOS on versions older than 10.\n var bufferScale = isIOSOlderThan10(window.navigator.userAgent) ? 1 / window.devicePixelRatio : 1;\n var WebVRPolyfill = require('webvr-polyfill');\n var polyfillConfig = {\n BUFFER_SCALE: bufferScale,\n CARDBOARD_UI_DISABLED: true,\n ROTATE_INSTRUCTIONS_DISABLED: true\n };\n window.webvrpolyfill = new WebVRPolyfill(polyfillConfig);\n}\n\nvar utils = require('./utils/');\nvar debug = utils.debug;\n\nif (utils.isIE11) {\n // Polyfill `CustomEvent`.\n require('custom-event-polyfill');\n // Polyfill String.startsWith.\n require('../vendor/starts-with-polyfill');\n}\n\nvar error = debug('A-Frame:error');\nvar warn = debug('A-Frame:warn');\n\nif (window.document.currentScript && window.document.currentScript.parentNode !==\n window.document.head && !window.debug) {\n warn('Put the A-Frame