a-frame-components
Advanced tools
Comparing version 1.0.56 to 1.0.57
@@ -1,2 +0,2 @@ | ||
# Documentation: Using the `a-radio` in A-Frame | ||
# Using the `a-radio` in A-Frame | ||
@@ -3,0 +3,0 @@ The `a-radio` is a custom A-Frame component designed for creating interactive radio button groups in virtual reality environments. It allows users to select a single option from a set of choices. This document provides a comprehensive guide on how to use the `a-radio`. |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.56", | ||
"version": "1.0.57", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,5 +11,6 @@ # AFrame Components Repository | ||
- **Component 1**: Radio. | ||
- **Component 2**: Container. | ||
- **Component 3**: Menu. | ||
- Radio | ||
- Container | ||
- Menu | ||
- Button | ||
@@ -23,3 +24,5 @@ ## Installation | ||
```html | ||
<script src="https://aframe.io/releases/<some version>/aframe.min.js"></script> | ||
<head> | ||
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script> | ||
</head> | ||
``` | ||
@@ -139,13 +142,4 @@ | ||
## How to Include Type Definitions from a-frame-components in Your TypeScript Project | ||
### Ensure TypeScript can fully utilize the a-frame-components package's TypeScript type definitions by incorporating them in your compilation configuration. Follow these wholesome configurations to embrace the in-packaged TypeScript types. | ||
### Ensure TypeScript can fully utilize the a-frame-components package's TypeScript type definitions by incorporating them in your compilation configuration. | ||
1. Get to Know Your tsconfig.json | ||
The tsconfig.json file is the center-stage of any settings inherent to the cycle and reach of TypeScript within your project. It delivers the capstone instructions to TypeScript's compiler. | ||
2. Aim to include The Paths | ||
Modulate your tsconfig.json file by sprucing it up with a direction for "the known" TypeScript sources, specifically focusing on the rich types springing from your a-frame-components NPM package. | ||
Construct the tsconfig.json for Enlightenment | ||
The synthesis of the types from a-frame-components will be perceived if you mark a structured setting like so within your tsconfig.json: | ||
```json | ||
@@ -170,2 +164,3 @@ { | ||
- [Container](docs/container.md) | ||
- [Button](docs/gui-button.md) | ||
@@ -172,0 +167,0 @@ |
@@ -6,4 +6,4 @@ // aframe.d.ts | ||
export async function load(): Promise<void>; | ||
export function useEventListenerOn(selector: string, evtName: string, evtHandler: (event: Event) => void): void | ||
} | ||
declare namespace JSX { | ||
@@ -10,0 +10,0 @@ interface IntrinsicElements { |
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
1684671
177
28540
172