@dcl/playground-assets 7.8.9 → 7.8.10-15468321387.commit-ea03486
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/dist/alpha.d.ts +176 -0
- package/dist/beta.d.ts +176 -0
- package/dist/index.bundled.d.ts +176 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/apis.d.ts +7 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +176 -0
- package/etc/playground-assets.api.json +2006 -432
- package/etc/playground-assets.api.md +106 -7
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
|
|
1309
1309
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1310
1310
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1311
1311
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1312
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
1312
1313
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1313
1314
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1314
1315
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -1318,6 +1319,7 @@ export declare const componentDefinitionByName: {
|
|
1318
1319
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1319
1320
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1320
1321
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1322
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1321
1323
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1322
1324
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1323
1325
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
@@ -2674,6 +2676,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2674
2676
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2675
2677
|
}
|
2676
2678
|
|
2679
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2680
|
+
|
2681
|
+
/**
|
2682
|
+
* @public
|
2683
|
+
*/
|
2684
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2685
|
+
/**
|
2686
|
+
* LightSource helper with constructor
|
2687
|
+
*/
|
2688
|
+
Type: LightSourceHelper;
|
2689
|
+
}
|
2690
|
+
|
2691
|
+
/**
|
2692
|
+
* @public
|
2693
|
+
*/
|
2694
|
+
export declare interface LightSourceHelper {
|
2695
|
+
/**
|
2696
|
+
* @returns a Light Source type
|
2697
|
+
*/
|
2698
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2699
|
+
/**
|
2700
|
+
* @returns a Light Source type
|
2701
|
+
*/
|
2702
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2703
|
+
}
|
2704
|
+
|
2677
2705
|
/**
|
2678
2706
|
* User key event Listeners
|
2679
2707
|
* @public
|
@@ -4549,6 +4577,85 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4549
4577
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4550
4578
|
}
|
4551
4579
|
|
4580
|
+
/**
|
4581
|
+
* @public
|
4582
|
+
*/
|
4583
|
+
export declare interface PBLightSource {
|
4584
|
+
/** default = true, whether the lightSource is active or not. */
|
4585
|
+
active?: boolean | undefined;
|
4586
|
+
/** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
|
4587
|
+
color?: PBColor3 | undefined;
|
4588
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4589
|
+
brightness?: number | undefined;
|
4590
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4591
|
+
range?: number | undefined;
|
4592
|
+
type?: {
|
4593
|
+
$case: "point";
|
4594
|
+
point: PBLightSource_Point;
|
4595
|
+
} | {
|
4596
|
+
$case: "spot";
|
4597
|
+
spot: PBLightSource_Spot;
|
4598
|
+
} | undefined;
|
4599
|
+
}
|
4600
|
+
|
4601
|
+
/**
|
4602
|
+
* @public
|
4603
|
+
*/
|
4604
|
+
export declare namespace PBLightSource {
|
4605
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4606
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4607
|
+
}
|
4608
|
+
|
4609
|
+
/**
|
4610
|
+
* @public
|
4611
|
+
*/
|
4612
|
+
export declare interface PBLightSource_Point {
|
4613
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4614
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4615
|
+
}
|
4616
|
+
|
4617
|
+
/**
|
4618
|
+
* @public
|
4619
|
+
*/
|
4620
|
+
export declare namespace PBLightSource_Point {
|
4621
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4622
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4623
|
+
}
|
4624
|
+
|
4625
|
+
/**
|
4626
|
+
* @public
|
4627
|
+
*/
|
4628
|
+
export declare const enum PBLightSource_ShadowType {
|
4629
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4630
|
+
ST_NONE = 0,
|
4631
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4632
|
+
ST_SOFT = 1,
|
4633
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4634
|
+
ST_HARD = 2
|
4635
|
+
}
|
4636
|
+
|
4637
|
+
/**
|
4638
|
+
* @public
|
4639
|
+
*/
|
4640
|
+
export declare interface PBLightSource_Spot {
|
4641
|
+
/** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
|
4642
|
+
innerAngle?: number | undefined;
|
4643
|
+
/** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
|
4644
|
+
outerAngle?: number | undefined;
|
4645
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4646
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4647
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4648
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4649
|
+
}
|
4650
|
+
|
4651
|
+
/**
|
4652
|
+
* @public
|
4653
|
+
*/
|
4654
|
+
export declare namespace PBLightSource_Spot {
|
4655
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4656
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4657
|
+
}
|
4658
|
+
|
4552
4659
|
/**
|
4553
4660
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
4554
4661
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5052,6 +5159,48 @@ export declare namespace PBPosition {
|
|
5052
5159
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5053
5160
|
}
|
5054
5161
|
|
5162
|
+
/**
|
5163
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
5164
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
5165
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
5166
|
+
*
|
5167
|
+
* This component is essential for:
|
5168
|
+
* - Tracking cursor/pointer position and movement
|
5169
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
5170
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
5171
|
+
* - Enabling ray-based interactions for 3D object selection
|
5172
|
+
*
|
5173
|
+
* The component can be used to:
|
5174
|
+
* - Implement drag-and-drop functionality
|
5175
|
+
* - Handle touch interactions on mobile devices
|
5176
|
+
* - Support gamepad navigation
|
5177
|
+
* - Enable VR controller interactions
|
5178
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
5179
|
+
*
|
5180
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
5181
|
+
*/
|
5182
|
+
/**
|
5183
|
+
* @public
|
5184
|
+
*/
|
5185
|
+
export declare interface PBPrimaryPointerInfo {
|
5186
|
+
/** The type of input device being used */
|
5187
|
+
pointerType?: PointerType | undefined;
|
5188
|
+
/** Current position in screen space (pixels) */
|
5189
|
+
screenCoordinates?: PBVector2 | undefined;
|
5190
|
+
/** Movement since last frame (pixels) */
|
5191
|
+
screenDelta?: PBVector2 | undefined;
|
5192
|
+
/** Direction vector for 3D ray casting */
|
5193
|
+
worldRayDirection?: PBVector3 | undefined;
|
5194
|
+
}
|
5195
|
+
|
5196
|
+
/**
|
5197
|
+
* @public
|
5198
|
+
*/
|
5199
|
+
export declare namespace PBPrimaryPointerInfo {
|
5200
|
+
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5201
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5202
|
+
}
|
5203
|
+
|
5055
5204
|
/**
|
5056
5205
|
* @public
|
5057
5206
|
*/
|
@@ -5156,12 +5305,19 @@ export declare namespace PBRaycastResult {
|
|
5156
5305
|
* @public
|
5157
5306
|
*/
|
5158
5307
|
export declare interface PBRealmInfo {
|
5308
|
+
/** the domain of the realm server */
|
5159
5309
|
baseUrl: string;
|
5310
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
5160
5311
|
realmName: string;
|
5312
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
5161
5313
|
networkId: number;
|
5314
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
5162
5315
|
commsAdapter: string;
|
5316
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
5163
5317
|
isPreview: boolean;
|
5318
|
+
/** the room session id. */
|
5164
5319
|
room?: string | undefined;
|
5320
|
+
/** true if the user is connected to the scene room. */
|
5165
5321
|
isConnectedSceneRoom?: boolean | undefined;
|
5166
5322
|
}
|
5167
5323
|
|
@@ -5679,6 +5835,7 @@ export declare namespace PBVideoPlayer {
|
|
5679
5835
|
* an 'instant' transition (like using speed/time = 0)
|
5680
5836
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5681
5837
|
* the holding entity transform).
|
5838
|
+
* * The fov defines the Field of View of the virtual camera
|
5682
5839
|
*/
|
5683
5840
|
/**
|
5684
5841
|
* @public
|
@@ -5686,6 +5843,8 @@ export declare namespace PBVideoPlayer {
|
|
5686
5843
|
export declare interface PBVirtualCamera {
|
5687
5844
|
defaultTransition?: CameraTransition | undefined;
|
5688
5845
|
lookAtEntity?: number | undefined;
|
5846
|
+
/** default: 60 */
|
5847
|
+
fov?: number | undefined;
|
5689
5848
|
}
|
5690
5849
|
|
5691
5850
|
/**
|
@@ -5957,6 +6116,20 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
5957
6116
|
/** @public */
|
5958
6117
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
5959
6118
|
|
6119
|
+
/**
|
6120
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
6121
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
6122
|
+
*/
|
6123
|
+
/**
|
6124
|
+
* @public
|
6125
|
+
*/
|
6126
|
+
export declare const enum PointerType {
|
6127
|
+
/** POT_NONE - No pointer input */
|
6128
|
+
POT_NONE = 0,
|
6129
|
+
/** POT_MOUSE - Traditional mouse input */
|
6130
|
+
POT_MOUSE = 1
|
6131
|
+
}
|
6132
|
+
|
5960
6133
|
/**
|
5961
6134
|
* Type used for defining the position of the element. i.e. margin, padding
|
5962
6135
|
* @public
|
@@ -5994,6 +6167,9 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
5994
6167
|
*/
|
5995
6168
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
5996
6169
|
|
6170
|
+
/** @public */
|
6171
|
+
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6172
|
+
|
5997
6173
|
export declare enum ProcessMessageResultType {
|
5998
6174
|
/**
|
5999
6175
|
* Typical message and new state set.
|
package/dist/beta.d.ts
CHANGED
@@ -1309,6 +1309,7 @@ export declare const componentDefinitionByName: {
|
|
1309
1309
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
1310
1310
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
1311
1311
|
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
|
1312
|
+
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
|
1312
1313
|
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
|
1313
1314
|
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
|
1314
1315
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
@@ -1318,6 +1319,7 @@ export declare const componentDefinitionByName: {
|
|
1318
1319
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1319
1320
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1320
1321
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1322
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1321
1323
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1322
1324
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1323
1325
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
@@ -2665,6 +2667,32 @@ export declare interface LastWriteWinElementSetComponentDefinition<T> extends Ba
|
|
2665
2667
|
getOrCreateMutable(entity: Entity, initialValue?: T): T;
|
2666
2668
|
}
|
2667
2669
|
|
2670
|
+
export declare const LightSource: LightSourceComponentDefinitionExtended;
|
2671
|
+
|
2672
|
+
/**
|
2673
|
+
* @public
|
2674
|
+
*/
|
2675
|
+
export declare interface LightSourceComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBLightSource> {
|
2676
|
+
/**
|
2677
|
+
* LightSource helper with constructor
|
2678
|
+
*/
|
2679
|
+
Type: LightSourceHelper;
|
2680
|
+
}
|
2681
|
+
|
2682
|
+
/**
|
2683
|
+
* @public
|
2684
|
+
*/
|
2685
|
+
export declare interface LightSourceHelper {
|
2686
|
+
/**
|
2687
|
+
* @returns a Light Source type
|
2688
|
+
*/
|
2689
|
+
Point: (point: PBLightSource_Point) => PBLightSource['type'];
|
2690
|
+
/**
|
2691
|
+
* @returns a Light Source type
|
2692
|
+
*/
|
2693
|
+
Spot: (spot: PBLightSource_Spot) => PBLightSource['type'];
|
2694
|
+
}
|
2695
|
+
|
2668
2696
|
/**
|
2669
2697
|
* User key event Listeners
|
2670
2698
|
* @public
|
@@ -4521,6 +4549,85 @@ export declare namespace PBInputModifier_StandardInput {
|
|
4521
4549
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBInputModifier_StandardInput;
|
4522
4550
|
}
|
4523
4551
|
|
4552
|
+
/**
|
4553
|
+
* @public
|
4554
|
+
*/
|
4555
|
+
export declare interface PBLightSource {
|
4556
|
+
/** default = true, whether the lightSource is active or not. */
|
4557
|
+
active?: boolean | undefined;
|
4558
|
+
/** default = Color.white, the tint of the light, in RGB format where each component is a floating point value with a range from 0 to 1. */
|
4559
|
+
color?: PBColor3 | undefined;
|
4560
|
+
/** default = 250, ranges from 1 (dim) to 100,000 (very bright), expressed in Lumens for Point and Spot. */
|
4561
|
+
brightness?: number | undefined;
|
4562
|
+
/** default = 10, how far the light travels, expressed in meters. */
|
4563
|
+
range?: number | undefined;
|
4564
|
+
type?: {
|
4565
|
+
$case: "point";
|
4566
|
+
point: PBLightSource_Point;
|
4567
|
+
} | {
|
4568
|
+
$case: "spot";
|
4569
|
+
spot: PBLightSource_Spot;
|
4570
|
+
} | undefined;
|
4571
|
+
}
|
4572
|
+
|
4573
|
+
/**
|
4574
|
+
* @public
|
4575
|
+
*/
|
4576
|
+
export declare namespace PBLightSource {
|
4577
|
+
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
|
4578
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
|
4579
|
+
}
|
4580
|
+
|
4581
|
+
/**
|
4582
|
+
* @public
|
4583
|
+
*/
|
4584
|
+
export declare interface PBLightSource_Point {
|
4585
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4586
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4587
|
+
}
|
4588
|
+
|
4589
|
+
/**
|
4590
|
+
* @public
|
4591
|
+
*/
|
4592
|
+
export declare namespace PBLightSource_Point {
|
4593
|
+
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
|
4594
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
|
4595
|
+
}
|
4596
|
+
|
4597
|
+
/**
|
4598
|
+
* @public
|
4599
|
+
*/
|
4600
|
+
export declare const enum PBLightSource_ShadowType {
|
4601
|
+
/** ST_NONE - No shadows are cast from this LightSource. */
|
4602
|
+
ST_NONE = 0,
|
4603
|
+
/** ST_SOFT - More realistic type of shadow that reduces block artifacts, noise or pixelation, but requires more processing. */
|
4604
|
+
ST_SOFT = 1,
|
4605
|
+
/** ST_HARD - Less realistic type of shadow but more performant, uses hard edges. */
|
4606
|
+
ST_HARD = 2
|
4607
|
+
}
|
4608
|
+
|
4609
|
+
/**
|
4610
|
+
* @public
|
4611
|
+
*/
|
4612
|
+
export declare interface PBLightSource_Spot {
|
4613
|
+
/** default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179. */
|
4614
|
+
innerAngle?: number | undefined;
|
4615
|
+
/** default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179. */
|
4616
|
+
outerAngle?: number | undefined;
|
4617
|
+
/** default = ShadowType.ST_NONE The type of shadow the light source supports. */
|
4618
|
+
shadow?: PBLightSource_ShadowType | undefined;
|
4619
|
+
/** Texture mask through which shadows are cast to simulate caustics, soft shadows, and light shapes such as light entering from a window. */
|
4620
|
+
shadowMaskTexture?: TextureUnion | undefined;
|
4621
|
+
}
|
4622
|
+
|
4623
|
+
/**
|
4624
|
+
* @public
|
4625
|
+
*/
|
4626
|
+
export declare namespace PBLightSource_Spot {
|
4627
|
+
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
|
4628
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
|
4629
|
+
}
|
4630
|
+
|
4524
4631
|
/**
|
4525
4632
|
* PBMainCamera.virtualCameraEntity defines which VirtualCamera entity is active at the moment.
|
4526
4633
|
* This component may hold 'repeated common.CameraTransition' transitionOverrides in the future
|
@@ -5024,6 +5131,48 @@ export declare namespace PBPosition {
|
|
5024
5131
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5025
5132
|
}
|
5026
5133
|
|
5134
|
+
/**
|
5135
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
5136
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
5137
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
5138
|
+
*
|
5139
|
+
* This component is essential for:
|
5140
|
+
* - Tracking cursor/pointer position and movement
|
5141
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
5142
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
5143
|
+
* - Enabling ray-based interactions for 3D object selection
|
5144
|
+
*
|
5145
|
+
* The component can be used to:
|
5146
|
+
* - Implement drag-and-drop functionality
|
5147
|
+
* - Handle touch interactions on mobile devices
|
5148
|
+
* - Support gamepad navigation
|
5149
|
+
* - Enable VR controller interactions
|
5150
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
5151
|
+
*
|
5152
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
5153
|
+
*/
|
5154
|
+
/**
|
5155
|
+
* @public
|
5156
|
+
*/
|
5157
|
+
export declare interface PBPrimaryPointerInfo {
|
5158
|
+
/** The type of input device being used */
|
5159
|
+
pointerType?: PointerType | undefined;
|
5160
|
+
/** Current position in screen space (pixels) */
|
5161
|
+
screenCoordinates?: PBVector2 | undefined;
|
5162
|
+
/** Movement since last frame (pixels) */
|
5163
|
+
screenDelta?: PBVector2 | undefined;
|
5164
|
+
/** Direction vector for 3D ray casting */
|
5165
|
+
worldRayDirection?: PBVector3 | undefined;
|
5166
|
+
}
|
5167
|
+
|
5168
|
+
/**
|
5169
|
+
* @public
|
5170
|
+
*/
|
5171
|
+
export declare namespace PBPrimaryPointerInfo {
|
5172
|
+
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5173
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5174
|
+
}
|
5175
|
+
|
5027
5176
|
/**
|
5028
5177
|
* @public
|
5029
5178
|
*/
|
@@ -5128,12 +5277,19 @@ export declare namespace PBRaycastResult {
|
|
5128
5277
|
* @public
|
5129
5278
|
*/
|
5130
5279
|
export declare interface PBRealmInfo {
|
5280
|
+
/** the domain of the realm server */
|
5131
5281
|
baseUrl: string;
|
5282
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
5132
5283
|
realmName: string;
|
5284
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
5133
5285
|
networkId: number;
|
5286
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
5134
5287
|
commsAdapter: string;
|
5288
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
5135
5289
|
isPreview: boolean;
|
5290
|
+
/** the room session id. */
|
5136
5291
|
room?: string | undefined;
|
5292
|
+
/** true if the user is connected to the scene room. */
|
5137
5293
|
isConnectedSceneRoom?: boolean | undefined;
|
5138
5294
|
}
|
5139
5295
|
|
@@ -5651,6 +5807,7 @@ export declare namespace PBVideoPlayer {
|
|
5651
5807
|
* an 'instant' transition (like using speed/time = 0)
|
5652
5808
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
5653
5809
|
* the holding entity transform).
|
5810
|
+
* * The fov defines the Field of View of the virtual camera
|
5654
5811
|
*/
|
5655
5812
|
/**
|
5656
5813
|
* @public
|
@@ -5658,6 +5815,8 @@ export declare namespace PBVideoPlayer {
|
|
5658
5815
|
export declare interface PBVirtualCamera {
|
5659
5816
|
defaultTransition?: CameraTransition | undefined;
|
5660
5817
|
lookAtEntity?: number | undefined;
|
5818
|
+
/** default: 60 */
|
5819
|
+
fov?: number | undefined;
|
5661
5820
|
}
|
5662
5821
|
|
5663
5822
|
/**
|
@@ -5929,6 +6088,20 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
5929
6088
|
/** @public */
|
5930
6089
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
5931
6090
|
|
6091
|
+
/**
|
6092
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
6093
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
6094
|
+
*/
|
6095
|
+
/**
|
6096
|
+
* @public
|
6097
|
+
*/
|
6098
|
+
export declare const enum PointerType {
|
6099
|
+
/** POT_NONE - No pointer input */
|
6100
|
+
POT_NONE = 0,
|
6101
|
+
/** POT_MOUSE - Traditional mouse input */
|
6102
|
+
POT_MOUSE = 1
|
6103
|
+
}
|
6104
|
+
|
5932
6105
|
/**
|
5933
6106
|
* Type used for defining the position of the element. i.e. margin, padding
|
5934
6107
|
* @public
|
@@ -5966,6 +6139,9 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
5966
6139
|
*/
|
5967
6140
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
5968
6141
|
|
6142
|
+
/** @public */
|
6143
|
+
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6144
|
+
|
5969
6145
|
export declare enum ProcessMessageResultType {
|
5970
6146
|
/**
|
5971
6147
|
* Typical message and new state set.
|