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.19 to 1.0.21

docs/menu-container.md

10

dist/gui/components/menu-container.js

@@ -71,2 +71,9 @@ import { AFRAME } from "../../painter/root";

});
entryPanel.addEventListener('open-changed', function (evt) {
var detail = evt.detail;
entryPanel.setAttribute('open', !detail.open);
});
entryPanel.addEventListener('close-menu', function (evt) {
entryPanel.setAttribute('open', false);
});
// entity.setAttribute('position', `${x} ${y} ${z}`);

@@ -98,2 +105,3 @@ this.entryPanelContainer = entity;

entryPanel.setAttribute('font-size', ".07");
entryPanel.addEventListener('clicked', function () { });
var entity = document.createElement('a-entity');

@@ -344,3 +352,3 @@ entity.appendChild(entryPanel);

});
AFRAME.registerPrimitive('a-gui-menu-container', {
AFRAME.registerPrimitive('a-menu-container', {
defaultComponents: {

@@ -347,0 +355,0 @@ 'gui-item': { type: 'menu-container' },

4

dist/gui/components/model-item.js

@@ -57,3 +57,3 @@ import { AFRAME } from "../../painter/root";

var open = false;
var menuContainer = document.createElement('a-gui-menu-container');
var menuContainer = document.createElement('a-menu-container');
menuContainer.setAttribute('menu-direction', 'up');

@@ -91,3 +91,3 @@ menuContainer.setAttribute('flex-direction', 'column');

return entity;
// <a-gui-menu-container
// <a-menu-container
// ref={menuContainerRef}

@@ -94,0 +94,0 @@ // menu-direction={'up'}

@@ -249,3 +249,3 @@ var __assign = (this && this.__assign) || function () {

var _c = _a.text, text = _c === void 0 ? 'Menu' : _c, _d = _a.height, height = _d === void 0 ? .2 : _d, _e = _a.width, width = _e === void 0 ? 1 : _e, _f = _a.forwardStep, forwardStep = _f === void 0 ? .01 : _f, _g = _a.children, children = _g === void 0 ? [] : _g;
var menu = createElement('a-gui-menu-container', (_b = {},
var menu = createElement('a-menu-container', (_b = {},
_b["menu-direction"] = "up",

@@ -262,10 +262,10 @@ _b["flex-direction"] = "column",

_b))({});
menu.addEventListener('open-changed', function (evt) {
var detail = evt.detail;
menu.setAttribute('open', !detail.open);
});
menu.addEventListener('close-menu', function (evt) {
var detail = evt.detail;
menu.setAttribute('open', false);
});
// menu.addEventListener('open-changed', (evt) => {
// const { detail } = evt;
// menu.setAttribute('open', !detail.open);
// })
// menu.addEventListener('close-menu', (evt) => {
// const { detail } = evt;
// menu.setAttribute('open', false);
// })
children.map(function (c) {

@@ -272,0 +272,0 @@ menu.appendChild(c.element({}));

{
"name": "a-frame-components",
"version": "1.0.19",
"version": "1.0.21",
"description": "",

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

@@ -98,3 +98,3 @@ # AFrame Components Repository

- [Gui Menu Container](docs/gui-menu-container.md)
- [Gui Menu Container](docs/menu-container.md)
- [Radio Buttons](docs/radio-component.md)

@@ -101,0 +101,0 @@

@@ -76,2 +76,9 @@ import { AFRAME } from "../../painter/root";

})
entryPanel.addEventListener('open-changed', (evt) => {
const { detail } = evt;
entryPanel.setAttribute('open', !detail.open);
})
entryPanel.addEventListener('close-menu', (evt) => {
entryPanel.setAttribute('open', false);
})
// entity.setAttribute('position', `${x} ${y} ${z}`);

@@ -105,2 +112,3 @@ this.entryPanelContainer = entity;

entryPanel.setAttribute('font-size', ".07")
entryPanel.addEventListener('clicked', () => { })
let entity = document.createElement('a-entity');

@@ -344,3 +352,3 @@ entity.appendChild(entryPanel);

AFRAME.registerPrimitive('a-gui-menu-container', {
AFRAME.registerPrimitive('a-menu-container', {
defaultComponents: {

@@ -347,0 +355,0 @@ 'gui-item': { type: 'menu-container' },

@@ -60,3 +60,3 @@ import { AFRAME } from "../../painter/root";

let open = false;
let menuContainer = document.createElement('a-gui-menu-container');
let menuContainer = document.createElement('a-menu-container');
menuContainer.setAttribute('menu-direction', 'up');

@@ -96,3 +96,3 @@ menuContainer.setAttribute('flex-direction', 'column');

return entity;
// <a-gui-menu-container
// <a-menu-container
// ref={menuContainerRef}

@@ -99,0 +99,0 @@ // menu-direction={'up'}

@@ -332,3 +332,3 @@ export interface Container {

}) {
let menu = createElement('a-gui-menu-container',
let menu = createElement('a-menu-container',
{

@@ -347,10 +347,10 @@ [`menu-direction`]: "up",

)({});
menu.addEventListener('open-changed', (evt) => {
const { detail } = evt;
menu.setAttribute('open', !detail.open);
})
menu.addEventListener('close-menu', (evt) => {
const { detail } = evt;
menu.setAttribute('open', false);
})
// menu.addEventListener('open-changed', (evt) => {
// const { detail } = evt;
// menu.setAttribute('open', !detail.open);
// })
// menu.addEventListener('close-menu', (evt) => {
// const { detail } = evt;
// menu.setAttribute('open', false);
// })
children.map((c) => {

@@ -357,0 +357,0 @@ menu.appendChild(c.element({}));

@@ -447,3 +447,3 @@ // aframe.d.ts

};
'a-gui-menu-container': {
'a-menu-container': {
// Direct mappings from A-Frame to JSX props

@@ -450,0 +450,0 @@ width?: string;

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