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.307 to 1.0.308

4

dist/react/useEventListenerOn.js

@@ -166,2 +166,6 @@ import { useEffect, useState, useRef } from 'react';

}
export function findFrameElement(props) {
var el = document.querySelector("[frame-id=\"".concat(props['frame-id'], "\"]"));
return el;
}
export function useBindEventOn(evtName, attributeName, getFunction, initSelector) {

@@ -168,0 +172,0 @@ var res = useEventListenerOn(evtName, function (evt, element) {

5

dist/util.js

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

}
positions.push({ x: x - (maxContainerWidth / 2), y: -y + (maxContainerHeight / 2) }); // Adjust y to invert direction
positions.push({
x: x - (maxContainerWidth / 2),
y: -y + (maxContainerHeight / 2)
}); // Adjust y to invert direction
});

@@ -369,0 +372,0 @@ return {

{
"name": "a-frame-components",
"version": "1.0.307",
"version": "1.0.308",
"description": "",

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

@@ -196,2 +196,7 @@ import { useEffect, useState, useRef } from 'react';

export function findFrameElement(props: { [`frame-id`]: string }) {
let el = document.querySelector(`[frame-id="${props['frame-id']}"]`)
return el;
}
export function useBindEventOn(

@@ -198,0 +203,0 @@ evtName: string,

@@ -465,3 +465,6 @@ export interface Container {

positions.push({ x: x - (maxContainerWidth / 2), y: -y + (maxContainerHeight / 2) }); // Adjust y to invert direction
positions.push({
x: x - (maxContainerWidth / 2),
y: -y + (maxContainerHeight / 2)
}); // Adjust y to invert direction
});

@@ -468,0 +471,0 @@

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

export async function load(): Promise<void>;
export function findFrameElement(props: { [`frame-id`]: string }): any;
export function setAttribute(props: { [`frame-id`]: string }, name: string, value: any);

@@ -9,0 +9,0 @@ export function createElement(elementType: any, attributesDic: { [str: string]: any }): (moreAttr: { [str: string]: any }) => Element;

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