Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

a-frame-components

Package Overview
Dependencies
Maintainers
1
Versions
321
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-frame-components - npm Package Compare versions

Comparing version 1.0.254 to 1.0.255

4

dist/react/components/canvas-image.js

@@ -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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc