a-frame-components
Advanced tools
Comparing version 1.0.254 to 1.0.255
@@ -91,3 +91,3 @@ var __assign = (this && this.__assign) || function () { | ||
}, getWidth: function () { | ||
return parseFloat("".concat(this.data.height || 0)); | ||
return parseFloat("".concat(this.data.width || 0)); | ||
}, getHeight: function () { | ||
@@ -118,2 +118,4 @@ return parseFloat("".concat(this.data.height || 0)); | ||
mesh = new THREE.Mesh(new THREE.PlaneGeometry(width, height), material); | ||
me.el.setAttribute('width', width); | ||
me.el.setAttribute('height', height); | ||
layerDisplayEntity = document.createElement('a-entity'); | ||
@@ -120,0 +122,0 @@ // layerDisplayEntity.setAttribute('layer', 'display') |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.254", | ||
"version": "1.0.255", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -46,3 +46,3 @@ import mixin from '../../gui/components/mixin'; | ||
getWidth: function () { | ||
return parseFloat(`${this.data.height || 0}`); | ||
return parseFloat(`${this.data.width || 0}`); | ||
}, | ||
@@ -73,2 +73,4 @@ getHeight: function () { | ||
); | ||
me.el.setAttribute('width', width); | ||
me.el.setAttribute('height', height); | ||
// Create an A-Frame entity to wrap the Three.js mesh | ||
@@ -75,0 +77,0 @@ let layerDisplayEntity: any = document.createElement('a-entity'); |
1761791
30046