@needle-tools/engine 4.12.0-beta → 4.12.0-next.ca2cebd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.needle.json +1 -1
- package/dist/{needle-engine.bundle-DhdNodjw.min.js → needle-engine.bundle-4A5NjznD.min.js} +1 -1
- package/dist/{needle-engine.bundle-DmY4g6s0.umd.cjs → needle-engine.bundle-BJg4_HhU.umd.cjs} +3 -3
- package/dist/{needle-engine.bundle-DBdgyYGK.js → needle-engine.bundle-CFkbGdL5.js} +2 -2
- package/dist/needle-engine.d.ts +51 -17
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine-components/AlignmentConstraint.d.ts +0 -1
- package/lib/engine-components/AlignmentConstraint.js +0 -1
- package/lib/engine-components/AlignmentConstraint.js.map +1 -1
- package/lib/engine-components/Animation.d.ts +2 -0
- package/lib/engine-components/Animation.js +2 -0
- package/lib/engine-components/Animation.js.map +1 -1
- package/lib/engine-components/Animator.d.ts +1 -0
- package/lib/engine-components/Animator.js +1 -0
- package/lib/engine-components/Animator.js.map +1 -1
- package/lib/engine-components/BasicIKConstraint.d.ts +8 -0
- package/lib/engine-components/BasicIKConstraint.js +8 -0
- package/lib/engine-components/BasicIKConstraint.js.map +1 -1
- package/lib/engine-components/BoxHelperComponent.d.ts +1 -0
- package/lib/engine-components/BoxHelperComponent.js +1 -0
- package/lib/engine-components/BoxHelperComponent.js.map +1 -1
- package/lib/engine-components/Camera.d.ts +1 -1
- package/lib/engine-components/Camera.js +1 -1
- package/lib/engine-components/Collider.d.ts +1 -1
- package/lib/engine-components/Collider.js +1 -1
- package/lib/engine-components/ContactShadows.d.ts +1 -1
- package/lib/engine-components/ContactShadows.js +1 -1
- package/lib/engine-components/Gizmos.d.ts +2 -0
- package/lib/engine-components/Gizmos.js +2 -0
- package/lib/engine-components/Gizmos.js.map +1 -1
- package/lib/engine-components/Joints.d.ts +6 -0
- package/lib/engine-components/Joints.js +6 -0
- package/lib/engine-components/Joints.js.map +1 -1
- package/lib/engine-components/LODGroup.d.ts +1 -1
- package/lib/engine-components/LODGroup.js +1 -1
- package/lib/engine-components/Networking.d.ts +1 -1
- package/lib/engine-components/Networking.js +1 -1
- package/lib/engine-components/ShadowCatcher.d.ts +1 -1
- package/lib/engine-components/ShadowCatcher.js +1 -1
- package/lib/engine-components/SpectatorCamera.d.ts +1 -1
- package/lib/engine-components/SpectatorCamera.js +1 -1
- package/lib/engine-components/Voip.d.ts +1 -1
- package/lib/engine-components/Voip.js +1 -1
- package/lib/engine-components/export/gltf/GltfExport.d.ts +5 -0
- package/lib/engine-components/export/gltf/GltfExport.js +5 -0
- package/lib/engine-components/export/gltf/GltfExport.js.map +1 -1
- package/lib/engine-components/export/usdz/USDZExporter.d.ts +1 -0
- package/lib/engine-components/export/usdz/USDZExporter.js +1 -0
- package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
- package/lib/engine-components/particlesystem/ParticleSystem.d.ts +1 -1
- package/lib/engine-components/particlesystem/ParticleSystem.js +1 -1
- package/lib/engine-components/ui/Button.d.ts +1 -1
- package/lib/engine-components/ui/Button.js +1 -1
- package/lib/engine-components/ui/Canvas.d.ts +1 -1
- package/lib/engine-components/ui/Canvas.js +1 -1
- package/lib/engine-components/ui/CanvasGroup.d.ts +1 -1
- package/lib/engine-components/ui/CanvasGroup.js +1 -1
- package/lib/engine-components/ui/EventSystem.d.ts +1 -1
- package/lib/engine-components/ui/EventSystem.js +1 -1
- package/lib/engine-components/ui/Image.d.ts +1 -1
- package/lib/engine-components/ui/Image.js +1 -1
- package/lib/engine-components/ui/InputField.d.ts +1 -1
- package/lib/engine-components/ui/InputField.js +1 -1
- package/lib/engine-components/ui/Outline.d.ts +1 -1
- package/lib/engine-components/ui/Outline.js +1 -1
- package/lib/engine-components/ui/SpatialHtml.d.ts +7 -0
- package/lib/engine-components/ui/SpatialHtml.js +7 -0
- package/lib/engine-components/ui/SpatialHtml.js.map +1 -1
- package/lib/engine-components/ui/Text.d.ts +2 -0
- package/lib/engine-components/ui/Text.js +2 -0
- package/lib/engine-components/ui/Text.js.map +1 -1
- package/package.json +2 -2
- package/src/engine-components/AlignmentConstraint.ts +0 -1
- package/src/engine-components/Animation.ts +2 -0
- package/src/engine-components/Animator.ts +1 -0
- package/src/engine-components/BasicIKConstraint.ts +8 -0
- package/src/engine-components/BoxHelperComponent.ts +1 -0
- package/src/engine-components/Camera.ts +1 -1
- package/src/engine-components/Collider.ts +1 -1
- package/src/engine-components/ContactShadows.ts +1 -1
- package/src/engine-components/Gizmos.ts +2 -0
- package/src/engine-components/Joints.ts +6 -0
- package/src/engine-components/LODGroup.ts +1 -1
- package/src/engine-components/Networking.ts +1 -1
- package/src/engine-components/ShadowCatcher.ts +1 -1
- package/src/engine-components/SpectatorCamera.ts +1 -1
- package/src/engine-components/Voip.ts +1 -1
- package/src/engine-components/export/gltf/GltfExport.ts +5 -0
- package/src/engine-components/export/usdz/USDZExporter.ts +1 -0
- package/src/engine-components/particlesystem/ParticleSystem.ts +1 -1
- package/src/engine-components/ui/Button.ts +1 -1
- package/src/engine-components/ui/Canvas.ts +1 -1
- package/src/engine-components/ui/CanvasGroup.ts +1 -1
- package/src/engine-components/ui/EventSystem.ts +1 -1
- package/src/engine-components/ui/Image.ts +1 -1
- package/src/engine-components/ui/InputField.ts +1 -1
- package/src/engine-components/ui/Outline.ts +1 -1
- package/src/engine-components/ui/SpatialHtml.ts +7 -0
- package/src/engine-components/ui/Text.ts +2 -0
|
@@ -64,7 +64,7 @@ class AnimationTriggers {
|
|
|
64
64
|
* Button is a UI component that can be clicked by the user to perform an action.
|
|
65
65
|
* It supports different visual states such as normal, highlighted, pressed, and disabled.
|
|
66
66
|
* You can customize the button's appearance using colors or animations for each state.
|
|
67
|
-
* @summary Button
|
|
67
|
+
* @summary UI Button that can be clicked to perform actions
|
|
68
68
|
* @category User Interface
|
|
69
69
|
* @group Components
|
|
70
70
|
*/
|
|
@@ -29,7 +29,7 @@ const debugLayout = getParam("debuguilayout");
|
|
|
29
29
|
* It defines the area where UI elements are rendered and manages their layout and rendering settings.
|
|
30
30
|
* Canvases can be set to render in world space or screen space (overlay or camera).
|
|
31
31
|
* Multiple canvases can exist in a scene, each with its own settings and hierarchy of UI elements.
|
|
32
|
-
* @summary
|
|
32
|
+
* @summary Root component for UI elements, managing layout and rendering settings
|
|
33
33
|
* @category User Interface
|
|
34
34
|
* @group Components
|
|
35
35
|
*/
|
|
@@ -10,7 +10,7 @@ import { type ICanvasGroup, type IHasAlphaFactor } from "./Interfaces.js";
|
|
|
10
10
|
* CanvasGroup is a UI component that allows you to control the transparency and interactivity of a group of UI elements.
|
|
11
11
|
* By adjusting the alpha property, you can fade in or out all child UI elements simultaneously.
|
|
12
12
|
* The interactable and blocksRaycasts properties let you enable or disable user interaction for the entire group.
|
|
13
|
-
* @summary
|
|
13
|
+
* @summary Group UI elements to control transparency and interactivity
|
|
14
14
|
* @category User Interface
|
|
15
15
|
* @group Components
|
|
16
16
|
*/
|
|
@@ -37,7 +37,7 @@ onInitialized((ctx) => {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* The EventSystem is responsible for managing and dispatching input events to UI components within the scene.
|
|
40
|
-
* @summary
|
|
40
|
+
* @summary Manages and dispatches input events to UI components
|
|
41
41
|
* @category User Interface
|
|
42
42
|
* @group Components
|
|
43
43
|
*/
|
|
@@ -15,7 +15,7 @@ class Sprite {
|
|
|
15
15
|
* Image is a UI component that displays a sprite (2D image) in the user interface.
|
|
16
16
|
* You can set the image property to assign a texture to be displayed.
|
|
17
17
|
* The sprite can be customized with various properties such as color tinting and pixel density.
|
|
18
|
-
* @summary
|
|
18
|
+
* @summary Display a 2D image in the UI
|
|
19
19
|
* @category User Interface
|
|
20
20
|
* @group Components
|
|
21
21
|
*/
|
|
@@ -13,7 +13,7 @@ const debug = getParam("debuginputfield");
|
|
|
13
13
|
* InputField is a UI component that allows users to enter and edit text.
|
|
14
14
|
* It provides a text input area where users can type, delete, and modify text.
|
|
15
15
|
* The InputField supports placeholder text, events for value changes, and end edit actions.
|
|
16
|
-
* @summary Text
|
|
16
|
+
* @summary Text field for user input
|
|
17
17
|
* @category User Interface
|
|
18
18
|
* @group Components
|
|
19
19
|
*/
|
|
@@ -7,7 +7,7 @@ import { Behaviour } from "../Component.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Outline is a UI component that adds an outline effect to UI elements.
|
|
9
9
|
* You can customize the outline color and distance to create a visual border around the UI element.
|
|
10
|
-
* @summary
|
|
10
|
+
* @summary Add an outline effect to UI elements
|
|
11
11
|
* @category User Interface
|
|
12
12
|
* @group Components
|
|
13
13
|
*/
|
|
@@ -6,6 +6,13 @@ import { serializable } from '../../engine/engine_serialization.js';
|
|
|
6
6
|
import { getWorldRotation, setWorldRotationXYZ } from '../../engine/engine_three_utils.js';
|
|
7
7
|
import { Behaviour } from '../Component.js';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* SpatialHtml is a component that allows you to integrate HTML elements into a 3D scene.
|
|
11
|
+
* By specifying the ID of an existing HTML element, you can render it as a 3D object within the scene.
|
|
12
|
+
* @summary Render HTML elements as 3D objects in the scene
|
|
13
|
+
* @category User Interface
|
|
14
|
+
* @group Components
|
|
15
|
+
*/
|
|
9
16
|
export class SpatialHtml extends Behaviour {
|
|
10
17
|
|
|
11
18
|
@serializable()
|