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.11 to 1.0.12

28

dist/painter/systems/ui.js

@@ -57,3 +57,3 @@ /* globals AFRAME */

init: function () {
this.initTextures();
// this.initTextures();
this.liveInteractions = {};

@@ -197,15 +197,15 @@ this.liveInteractingKeys = [];

},
initTextures: function () {
var self = this;
var hoverTextureUrl = 'assets/images/ui-hover.png';
var pressedTextureUrl = 'assets/images/ui-pressed.png';
this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture);
this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture);
function onLoadedHoverTexture(texture) {
self.hoverTexture = texture;
}
function onLoadedPressedTexture(texture) {
self.pressedTexture = texture;
}
},
// initTextures: function () {
// var self = this;
// var hoverTextureUrl = 'assets/images/ui-hover.png';
// var pressedTextureUrl = 'assets/images/ui-pressed.png';
// this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture);
// this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture);
// function onLoadedHoverTexture(texture) {
// self.hoverTexture = texture;
// }
// function onLoadedPressedTexture(texture) {
// self.pressedTexture = texture;
// }
// },
closeAll: function () {

@@ -212,0 +212,0 @@ var els = document.querySelectorAll('[ui]');

{
"name": "a-frame-components",
"version": "1.0.11",
"version": "1.0.12",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -60,3 +60,3 @@ /* globals AFRAME */

init: function () {
this.initTextures();
// this.initTextures();
this.liveInteractions = {}

@@ -196,15 +196,15 @@ this.liveInteractingKeys = [];

initTextures: function () {
var self = this;
var hoverTextureUrl = 'assets/images/ui-hover.png';
var pressedTextureUrl = 'assets/images/ui-pressed.png';
this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture);
this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture);
function onLoadedHoverTexture(texture) {
self.hoverTexture = texture;
}
function onLoadedPressedTexture(texture) {
self.pressedTexture = texture;
}
},
// initTextures: function () {
// var self = this;
// var hoverTextureUrl = 'assets/images/ui-hover.png';
// var pressedTextureUrl = 'assets/images/ui-pressed.png';
// this.sceneEl.systems.material.loadTexture(hoverTextureUrl, { src: hoverTextureUrl }, onLoadedHoverTexture);
// this.sceneEl.systems.material.loadTexture(pressedTextureUrl, { src: pressedTextureUrl }, onLoadedPressedTexture);
// function onLoadedHoverTexture(texture) {
// self.hoverTexture = texture;
// }
// function onLoadedPressedTexture(texture) {
// self.pressedTexture = texture;
// }
// },

@@ -211,0 +211,0 @@ closeAll: function () {

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