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.336 to 1.0.337

25

dist/react/components/infinite-list.js

@@ -372,5 +372,8 @@ var __assign = (this && this.__assign) || function () {

to_add.forEach(function (option) {
var entity = me.createOptionEl(option, (Math.PI / me.visible_items / 2) * option.id).entity;
var _a = me.createOptionEl(option, (Math.PI / me.visible_items / 2) * option.id), entity = _a.entity, onAppend = _a.onAppend;
me.sprocket.appendChild(entity);
me.visibleObjects[option.id] = entity;
if (onAppend) {
onAppend();
}
});

@@ -414,14 +417,18 @@ // console.log(`me.currentIndexScroll: ${me.currentIndexScroll}`)

if ((_a = me === null || me === void 0 ? void 0 : me.data) === null || _a === void 0 ? void 0 : _a.itemtemplate) {
var item = document.createElement(me.data.itemtemplate);
var item_1 = document.createElement(me.data.itemtemplate);
if (!me.data.direct) {
item.setAttribute('options', JSON.stringify(__assign(__assign({}, options), { imageMargin: me.imageMargin, selectionevent: me.data.selectionevent, guiItem: me.guiItem, value: value, id: id, text: text, url: url })));
item_1.setAttribute('options', JSON.stringify(__assign(__assign({}, options), { imageMargin: me.imageMargin, selectionevent: me.data.selectionevent, guiItem: me.guiItem, value: value, id: id, text: text, url: url })));
}
item.setAttribute('selectionevent', this.data.selectionevent);
item_1.setAttribute('selectionevent', this.data.selectionevent);
var entity_1 = document.createElement('a-entity');
entity_1.setAttribute('rotation', "0 0 0");
entity_1.appendChild(item);
if (me.data.direct) {
updateAttributeEl(item, 'options', __assign(__assign({}, options), { imageMargin: me.imageMargin, selectionevent: me.data.selectionevent, guiItem: me.guiItem, value: value, id: id, text: text, url: url }));
}
return { entity: entity_1 };
entity_1.appendChild(item_1);
return {
entity: entity_1,
onAppend: function () {
if (me.data.direct) {
updateAttributeEl(item_1, 'options', __assign(__assign({}, options), { imageMargin: me.imageMargin, selectionevent: me.data.selectionevent, guiItem: me.guiItem, value: value, id: id, text: text, url: url }));
}
}
};
}

@@ -428,0 +435,0 @@ var entity = document.createElement('a-entity');

{
"name": "a-frame-components",
"version": "1.0.336",
"version": "1.0.337",
"description": "",

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

@@ -378,5 +378,6 @@ import { AFRAME } from '../systems/brush';

to_add.forEach((option: { id: number, value: number, text: string }) => {
let { entity } = me.createOptionEl(option, (Math.PI / me.visible_items / 2) * option.id);
let { entity, onAppend } = me.createOptionEl(option, (Math.PI / me.visible_items / 2) * option.id);
me.sprocket.appendChild(entity);
me.visibleObjects[option.id] = entity;
if (onAppend) { onAppend(); }
})

@@ -437,15 +438,20 @@ // console.log(`me.currentIndexScroll: ${me.currentIndexScroll}`)

entity.appendChild(item);
if (me.data.direct) {
updateAttributeEl(item, 'options', {
...options,
imageMargin: me.imageMargin,
selectionevent: me.data.selectionevent,
guiItem: me.guiItem,
value,
id,
text,
url,
})
}
return { entity };
return {
entity,
onAppend: () => {
if (me.data.direct) {
updateAttributeEl(item, 'options', {
...options,
imageMargin: me.imageMargin,
selectionevent: me.data.selectionevent,
guiItem: me.guiItem,
value,
id,
text,
url,
})
}
}
};
}

@@ -452,0 +458,0 @@ let entity: 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