a-frame-components
Advanced tools
Comparing version 1.0.307 to 1.0.308
@@ -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) { |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1773729
30278