@dcl/playground-assets 7.8.9-15283822925.commit-b281f0c → 7.8.10-15453890617.commit-9dc90d3
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 +67 -0
- package/dist/beta.d.ts +67 -0
- package/dist/index.bundled.d.ts +67 -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 +67 -0
- package/etc/playground-assets.api.json +428 -8
- package/etc/playground-assets.api.md +26 -7
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
@@ -1318,6 +1318,7 @@ export declare const componentDefinitionByName: {
|
|
1318
1318
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1319
1319
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1320
1320
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1321
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1321
1322
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1322
1323
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1323
1324
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
@@ -5052,6 +5053,48 @@ export declare namespace PBPosition {
|
|
5052
5053
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5053
5054
|
}
|
5054
5055
|
|
5056
|
+
/**
|
5057
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
5058
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
5059
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
5060
|
+
*
|
5061
|
+
* This component is essential for:
|
5062
|
+
* - Tracking cursor/pointer position and movement
|
5063
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
5064
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
5065
|
+
* - Enabling ray-based interactions for 3D object selection
|
5066
|
+
*
|
5067
|
+
* The component can be used to:
|
5068
|
+
* - Implement drag-and-drop functionality
|
5069
|
+
* - Handle touch interactions on mobile devices
|
5070
|
+
* - Support gamepad navigation
|
5071
|
+
* - Enable VR controller interactions
|
5072
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
5073
|
+
*
|
5074
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
5075
|
+
*/
|
5076
|
+
/**
|
5077
|
+
* @public
|
5078
|
+
*/
|
5079
|
+
export declare interface PBPrimaryPointerInfo {
|
5080
|
+
/** The type of input device being used */
|
5081
|
+
pointerType?: PointerType | undefined;
|
5082
|
+
/** Current position in screen space (pixels) */
|
5083
|
+
screenCoordinates?: PBVector2 | undefined;
|
5084
|
+
/** Movement since last frame (pixels) */
|
5085
|
+
screenDelta?: PBVector2 | undefined;
|
5086
|
+
/** Direction vector for 3D ray casting */
|
5087
|
+
worldRayDirection?: PBVector3 | undefined;
|
5088
|
+
}
|
5089
|
+
|
5090
|
+
/**
|
5091
|
+
* @public
|
5092
|
+
*/
|
5093
|
+
export declare namespace PBPrimaryPointerInfo {
|
5094
|
+
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5095
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5096
|
+
}
|
5097
|
+
|
5055
5098
|
/**
|
5056
5099
|
* @public
|
5057
5100
|
*/
|
@@ -5156,12 +5199,19 @@ export declare namespace PBRaycastResult {
|
|
5156
5199
|
* @public
|
5157
5200
|
*/
|
5158
5201
|
export declare interface PBRealmInfo {
|
5202
|
+
/** the domain of the realm server */
|
5159
5203
|
baseUrl: string;
|
5204
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
5160
5205
|
realmName: string;
|
5206
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
5161
5207
|
networkId: number;
|
5208
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
5162
5209
|
commsAdapter: string;
|
5210
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
5163
5211
|
isPreview: boolean;
|
5212
|
+
/** the room session id. */
|
5164
5213
|
room?: string | undefined;
|
5214
|
+
/** true if the user is connected to the scene room. */
|
5165
5215
|
isConnectedSceneRoom?: boolean | undefined;
|
5166
5216
|
}
|
5167
5217
|
|
@@ -5957,6 +6007,20 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
5957
6007
|
/** @public */
|
5958
6008
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
5959
6009
|
|
6010
|
+
/**
|
6011
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
6012
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
6013
|
+
*/
|
6014
|
+
/**
|
6015
|
+
* @public
|
6016
|
+
*/
|
6017
|
+
export declare const enum PointerType {
|
6018
|
+
/** POT_NONE - No pointer input */
|
6019
|
+
POT_NONE = 0,
|
6020
|
+
/** POT_MOUSE - Traditional mouse input */
|
6021
|
+
POT_MOUSE = 1
|
6022
|
+
}
|
6023
|
+
|
5960
6024
|
/**
|
5961
6025
|
* Type used for defining the position of the element. i.e. margin, padding
|
5962
6026
|
* @public
|
@@ -5994,6 +6058,9 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
5994
6058
|
*/
|
5995
6059
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
5996
6060
|
|
6061
|
+
/** @public */
|
6062
|
+
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6063
|
+
|
5997
6064
|
export declare enum ProcessMessageResultType {
|
5998
6065
|
/**
|
5999
6066
|
* Typical message and new state set.
|
package/dist/beta.d.ts
CHANGED
@@ -1318,6 +1318,7 @@ export declare const componentDefinitionByName: {
|
|
1318
1318
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1319
1319
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1320
1320
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1321
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1321
1322
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1322
1323
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1323
1324
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
@@ -5024,6 +5025,48 @@ export declare namespace PBPosition {
|
|
5024
5025
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5025
5026
|
}
|
5026
5027
|
|
5028
|
+
/**
|
5029
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
5030
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
5031
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
5032
|
+
*
|
5033
|
+
* This component is essential for:
|
5034
|
+
* - Tracking cursor/pointer position and movement
|
5035
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
5036
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
5037
|
+
* - Enabling ray-based interactions for 3D object selection
|
5038
|
+
*
|
5039
|
+
* The component can be used to:
|
5040
|
+
* - Implement drag-and-drop functionality
|
5041
|
+
* - Handle touch interactions on mobile devices
|
5042
|
+
* - Support gamepad navigation
|
5043
|
+
* - Enable VR controller interactions
|
5044
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
5045
|
+
*
|
5046
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
5047
|
+
*/
|
5048
|
+
/**
|
5049
|
+
* @public
|
5050
|
+
*/
|
5051
|
+
export declare interface PBPrimaryPointerInfo {
|
5052
|
+
/** The type of input device being used */
|
5053
|
+
pointerType?: PointerType | undefined;
|
5054
|
+
/** Current position in screen space (pixels) */
|
5055
|
+
screenCoordinates?: PBVector2 | undefined;
|
5056
|
+
/** Movement since last frame (pixels) */
|
5057
|
+
screenDelta?: PBVector2 | undefined;
|
5058
|
+
/** Direction vector for 3D ray casting */
|
5059
|
+
worldRayDirection?: PBVector3 | undefined;
|
5060
|
+
}
|
5061
|
+
|
5062
|
+
/**
|
5063
|
+
* @public
|
5064
|
+
*/
|
5065
|
+
export declare namespace PBPrimaryPointerInfo {
|
5066
|
+
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5067
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5068
|
+
}
|
5069
|
+
|
5027
5070
|
/**
|
5028
5071
|
* @public
|
5029
5072
|
*/
|
@@ -5128,12 +5171,19 @@ export declare namespace PBRaycastResult {
|
|
5128
5171
|
* @public
|
5129
5172
|
*/
|
5130
5173
|
export declare interface PBRealmInfo {
|
5174
|
+
/** the domain of the realm server */
|
5131
5175
|
baseUrl: string;
|
5176
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
5132
5177
|
realmName: string;
|
5178
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
5133
5179
|
networkId: number;
|
5180
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
5134
5181
|
commsAdapter: string;
|
5182
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
5135
5183
|
isPreview: boolean;
|
5184
|
+
/** the room session id. */
|
5136
5185
|
room?: string | undefined;
|
5186
|
+
/** true if the user is connected to the scene room. */
|
5137
5187
|
isConnectedSceneRoom?: boolean | undefined;
|
5138
5188
|
}
|
5139
5189
|
|
@@ -5929,6 +5979,20 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
5929
5979
|
/** @public */
|
5930
5980
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
5931
5981
|
|
5982
|
+
/**
|
5983
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
5984
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
5985
|
+
*/
|
5986
|
+
/**
|
5987
|
+
* @public
|
5988
|
+
*/
|
5989
|
+
export declare const enum PointerType {
|
5990
|
+
/** POT_NONE - No pointer input */
|
5991
|
+
POT_NONE = 0,
|
5992
|
+
/** POT_MOUSE - Traditional mouse input */
|
5993
|
+
POT_MOUSE = 1
|
5994
|
+
}
|
5995
|
+
|
5932
5996
|
/**
|
5933
5997
|
* Type used for defining the position of the element. i.e. margin, padding
|
5934
5998
|
* @public
|
@@ -5966,6 +6030,9 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
5966
6030
|
*/
|
5967
6031
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
5968
6032
|
|
6033
|
+
/** @public */
|
6034
|
+
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6035
|
+
|
5969
6036
|
export declare enum ProcessMessageResultType {
|
5970
6037
|
/**
|
5971
6038
|
* Typical message and new state set.
|
package/dist/index.bundled.d.ts
CHANGED
@@ -1318,6 +1318,7 @@ export declare const componentDefinitionByName: {
|
|
1318
1318
|
"core::PointerEvents": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerEvents>>;
|
1319
1319
|
"core::PointerEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBPointerEventsResult>>;
|
1320
1320
|
"core::PointerLock": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPointerLock>>;
|
1321
|
+
"core::PrimaryPointerInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>>;
|
1321
1322
|
"core::Raycast": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycast>>;
|
1322
1323
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
1323
1324
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
@@ -5024,6 +5025,48 @@ export declare namespace PBPosition {
|
|
5024
5025
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
5025
5026
|
}
|
5026
5027
|
|
5028
|
+
/**
|
5029
|
+
* The PBPrimaryPointerInfo component provides information about the current state of the primary
|
5030
|
+
* pointer input device (mouse, touch, gamepad, or VR controller). It tracks the pointer's position,
|
5031
|
+
* movement, and interaction capabilities in both 2D screen space and 3D world space.
|
5032
|
+
*
|
5033
|
+
* This component is essential for:
|
5034
|
+
* - Tracking cursor/pointer position and movement
|
5035
|
+
* - Converting 2D screen coordinates to 3D world space interactions
|
5036
|
+
* - Supporting multiple input methods (mouse, touch, gamepad, VR)
|
5037
|
+
* - Enabling ray-based interactions for 3D object selection
|
5038
|
+
*
|
5039
|
+
* The component can be used to:
|
5040
|
+
* - Implement drag-and-drop functionality
|
5041
|
+
* - Handle touch interactions on mobile devices
|
5042
|
+
* - Support gamepad navigation
|
5043
|
+
* - Enable VR controller interactions
|
5044
|
+
* - Convert screen coordinates to world space rays for 3D interactions
|
5045
|
+
*
|
5046
|
+
* Note: Touch, Pad, and Wand support, as well as dragging, will be added later.
|
5047
|
+
*/
|
5048
|
+
/**
|
5049
|
+
* @public
|
5050
|
+
*/
|
5051
|
+
export declare interface PBPrimaryPointerInfo {
|
5052
|
+
/** The type of input device being used */
|
5053
|
+
pointerType?: PointerType | undefined;
|
5054
|
+
/** Current position in screen space (pixels) */
|
5055
|
+
screenCoordinates?: PBVector2 | undefined;
|
5056
|
+
/** Movement since last frame (pixels) */
|
5057
|
+
screenDelta?: PBVector2 | undefined;
|
5058
|
+
/** Direction vector for 3D ray casting */
|
5059
|
+
worldRayDirection?: PBVector3 | undefined;
|
5060
|
+
}
|
5061
|
+
|
5062
|
+
/**
|
5063
|
+
* @public
|
5064
|
+
*/
|
5065
|
+
export declare namespace PBPrimaryPointerInfo {
|
5066
|
+
export function encode(message: PBPrimaryPointerInfo, writer?: _m0.Writer): _m0.Writer;
|
5067
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBPrimaryPointerInfo;
|
5068
|
+
}
|
5069
|
+
|
5027
5070
|
/**
|
5028
5071
|
* @public
|
5029
5072
|
*/
|
@@ -5128,12 +5171,19 @@ export declare namespace PBRaycastResult {
|
|
5128
5171
|
* @public
|
5129
5172
|
*/
|
5130
5173
|
export declare interface PBRealmInfo {
|
5174
|
+
/** the domain of the realm server */
|
5131
5175
|
baseUrl: string;
|
5176
|
+
/** the name of the realm server (more info https://adr.decentraland.org/adr/ADR-110) */
|
5132
5177
|
realmName: string;
|
5178
|
+
/** the network id (1=Ethereum, more info https://chainlist.org/) */
|
5133
5179
|
networkId: number;
|
5180
|
+
/** comms adapter (more info https://adr.decentraland.org/adr/ADR-180) */
|
5134
5181
|
commsAdapter: string;
|
5182
|
+
/** true if the scene is running as a local preview, instead of published in Decentraland. */
|
5135
5183
|
isPreview: boolean;
|
5184
|
+
/** the room session id. */
|
5136
5185
|
room?: string | undefined;
|
5186
|
+
/** true if the user is connected to the scene room. */
|
5137
5187
|
isConnectedSceneRoom?: boolean | undefined;
|
5138
5188
|
}
|
5139
5189
|
|
@@ -5929,6 +5979,20 @@ export declare type PointerFilterType = 'none' | 'block';
|
|
5929
5979
|
/** @public */
|
5930
5980
|
export declare const PointerLock: LastWriteWinElementSetComponentDefinition<PBPointerLock>;
|
5931
5981
|
|
5982
|
+
/**
|
5983
|
+
* PointerType enumerates the different input devices that can be used for pointer interactions.
|
5984
|
+
* Each type has specific characteristics and use cases in the virtual world.
|
5985
|
+
*/
|
5986
|
+
/**
|
5987
|
+
* @public
|
5988
|
+
*/
|
5989
|
+
export declare const enum PointerType {
|
5990
|
+
/** POT_NONE - No pointer input */
|
5991
|
+
POT_NONE = 0,
|
5992
|
+
/** POT_MOUSE - Traditional mouse input */
|
5993
|
+
POT_MOUSE = 1
|
5994
|
+
}
|
5995
|
+
|
5932
5996
|
/**
|
5933
5997
|
* Type used for defining the position of the element. i.e. margin, padding
|
5934
5998
|
* @public
|
@@ -5966,6 +6030,9 @@ export declare type PositionType = 'absolute' | 'relative';
|
|
5966
6030
|
*/
|
5967
6031
|
export declare type PositionUnit = `${number}px` | `${number}%` | number | `${number}` | ScaleUnit;
|
5968
6032
|
|
6033
|
+
/** @public */
|
6034
|
+
export declare const PrimaryPointerInfo: LastWriteWinElementSetComponentDefinition<PBPrimaryPointerInfo>;
|
6035
|
+
|
5969
6036
|
export declare enum ProcessMessageResultType {
|
5970
6037
|
/**
|
5971
6038
|
* Typical message and new state set.
|