@dcl/playground-assets 7.18.2-21453292414.commit-1da934f → 7.18.2-21457748765.commit-7ae2e38
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 +26 -0
- package/dist/beta.d.ts +26 -0
- package/dist/index.bundled.d.ts +26 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +2 -2
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +26 -0
- package/etc/playground-assets.api.json +28 -1
- package/etc/playground-assets.api.md +2 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -2004,6 +2004,7 @@ export declare type EventSystemOptions = {
|
|
|
2004
2004
|
maxDistance?: number;
|
|
2005
2005
|
showFeedback?: boolean;
|
|
2006
2006
|
showHighlight?: boolean;
|
|
2007
|
+
maxPlayerDistance?: number;
|
|
2007
2008
|
};
|
|
2008
2009
|
|
|
2009
2010
|
/**
|
|
@@ -5313,6 +5314,29 @@ export declare namespace PBPlayerIdentityData {
|
|
|
5313
5314
|
*
|
|
5314
5315
|
* It also supports simple visual feedback when interactions occur, by showing floating text.
|
|
5315
5316
|
* More sophisticated feedback requires the use of other components.
|
|
5317
|
+
*
|
|
5318
|
+
* Distance rules
|
|
5319
|
+
* --------------
|
|
5320
|
+
* PointerEvents can enforce interaction range using two independent distance checks:
|
|
5321
|
+
*
|
|
5322
|
+
* - Camera distance (`max_distance`): distance from the active camera to the target entity.
|
|
5323
|
+
* - Player distance (`max_player_distance`): distance from the avatar/player position to the target entity.
|
|
5324
|
+
*
|
|
5325
|
+
* How the interaction checks are combined:
|
|
5326
|
+
*
|
|
5327
|
+
* 1) Only `max_distance` is present
|
|
5328
|
+
* - The interaction is allowed only if the camera distance is <= `max_distance`.
|
|
5329
|
+
*
|
|
5330
|
+
* 2) Only `max_player_distance` is present
|
|
5331
|
+
* - The interaction is allowed only if the player distance is <= `max_player_distance`.
|
|
5332
|
+
*
|
|
5333
|
+
* 3) Both `max_distance` and `max_player_distance` are present
|
|
5334
|
+
* - The interaction is allowed if ANY of the checks passes (OR logic):
|
|
5335
|
+
* (camera distance <= `max_distance`) OR (player distance <= `max_player_distance`).
|
|
5336
|
+
*
|
|
5337
|
+
* 4) Neither `max_distance` nor `max_player_distance` is present
|
|
5338
|
+
* - The system behaves as if `max_distance` were set to its default value (10),
|
|
5339
|
+
* i.e., it uses the camera distance check with a threshold of 10.
|
|
5316
5340
|
*/
|
|
5317
5341
|
/**
|
|
5318
5342
|
* @public
|
|
@@ -5362,6 +5386,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5362
5386
|
showFeedback?: boolean | undefined;
|
|
5363
5387
|
/** enable or disable hover highlight (default true) */
|
|
5364
5388
|
showHighlight?: boolean | undefined;
|
|
5389
|
+
/** range of interaction from the avatar's position (default 0) */
|
|
5390
|
+
maxPlayerDistance?: number | undefined;
|
|
5365
5391
|
}
|
|
5366
5392
|
|
|
5367
5393
|
/**
|
package/dist/beta.d.ts
CHANGED
|
@@ -2004,6 +2004,7 @@ export declare type EventSystemOptions = {
|
|
|
2004
2004
|
maxDistance?: number;
|
|
2005
2005
|
showFeedback?: boolean;
|
|
2006
2006
|
showHighlight?: boolean;
|
|
2007
|
+
maxPlayerDistance?: number;
|
|
2007
2008
|
};
|
|
2008
2009
|
|
|
2009
2010
|
/**
|
|
@@ -5285,6 +5286,29 @@ export declare namespace PBPlayerIdentityData {
|
|
|
5285
5286
|
*
|
|
5286
5287
|
* It also supports simple visual feedback when interactions occur, by showing floating text.
|
|
5287
5288
|
* More sophisticated feedback requires the use of other components.
|
|
5289
|
+
*
|
|
5290
|
+
* Distance rules
|
|
5291
|
+
* --------------
|
|
5292
|
+
* PointerEvents can enforce interaction range using two independent distance checks:
|
|
5293
|
+
*
|
|
5294
|
+
* - Camera distance (`max_distance`): distance from the active camera to the target entity.
|
|
5295
|
+
* - Player distance (`max_player_distance`): distance from the avatar/player position to the target entity.
|
|
5296
|
+
*
|
|
5297
|
+
* How the interaction checks are combined:
|
|
5298
|
+
*
|
|
5299
|
+
* 1) Only `max_distance` is present
|
|
5300
|
+
* - The interaction is allowed only if the camera distance is <= `max_distance`.
|
|
5301
|
+
*
|
|
5302
|
+
* 2) Only `max_player_distance` is present
|
|
5303
|
+
* - The interaction is allowed only if the player distance is <= `max_player_distance`.
|
|
5304
|
+
*
|
|
5305
|
+
* 3) Both `max_distance` and `max_player_distance` are present
|
|
5306
|
+
* - The interaction is allowed if ANY of the checks passes (OR logic):
|
|
5307
|
+
* (camera distance <= `max_distance`) OR (player distance <= `max_player_distance`).
|
|
5308
|
+
*
|
|
5309
|
+
* 4) Neither `max_distance` nor `max_player_distance` is present
|
|
5310
|
+
* - The system behaves as if `max_distance` were set to its default value (10),
|
|
5311
|
+
* i.e., it uses the camera distance check with a threshold of 10.
|
|
5288
5312
|
*/
|
|
5289
5313
|
/**
|
|
5290
5314
|
* @public
|
|
@@ -5334,6 +5358,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5334
5358
|
showFeedback?: boolean | undefined;
|
|
5335
5359
|
/** enable or disable hover highlight (default true) */
|
|
5336
5360
|
showHighlight?: boolean | undefined;
|
|
5361
|
+
/** range of interaction from the avatar's position (default 0) */
|
|
5362
|
+
maxPlayerDistance?: number | undefined;
|
|
5337
5363
|
}
|
|
5338
5364
|
|
|
5339
5365
|
/**
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -2004,6 +2004,7 @@ export declare type EventSystemOptions = {
|
|
|
2004
2004
|
maxDistance?: number;
|
|
2005
2005
|
showFeedback?: boolean;
|
|
2006
2006
|
showHighlight?: boolean;
|
|
2007
|
+
maxPlayerDistance?: number;
|
|
2007
2008
|
};
|
|
2008
2009
|
|
|
2009
2010
|
/**
|
|
@@ -5285,6 +5286,29 @@ export declare namespace PBPlayerIdentityData {
|
|
|
5285
5286
|
*
|
|
5286
5287
|
* It also supports simple visual feedback when interactions occur, by showing floating text.
|
|
5287
5288
|
* More sophisticated feedback requires the use of other components.
|
|
5289
|
+
*
|
|
5290
|
+
* Distance rules
|
|
5291
|
+
* --------------
|
|
5292
|
+
* PointerEvents can enforce interaction range using two independent distance checks:
|
|
5293
|
+
*
|
|
5294
|
+
* - Camera distance (`max_distance`): distance from the active camera to the target entity.
|
|
5295
|
+
* - Player distance (`max_player_distance`): distance from the avatar/player position to the target entity.
|
|
5296
|
+
*
|
|
5297
|
+
* How the interaction checks are combined:
|
|
5298
|
+
*
|
|
5299
|
+
* 1) Only `max_distance` is present
|
|
5300
|
+
* - The interaction is allowed only if the camera distance is <= `max_distance`.
|
|
5301
|
+
*
|
|
5302
|
+
* 2) Only `max_player_distance` is present
|
|
5303
|
+
* - The interaction is allowed only if the player distance is <= `max_player_distance`.
|
|
5304
|
+
*
|
|
5305
|
+
* 3) Both `max_distance` and `max_player_distance` are present
|
|
5306
|
+
* - The interaction is allowed if ANY of the checks passes (OR logic):
|
|
5307
|
+
* (camera distance <= `max_distance`) OR (player distance <= `max_player_distance`).
|
|
5308
|
+
*
|
|
5309
|
+
* 4) Neither `max_distance` nor `max_player_distance` is present
|
|
5310
|
+
* - The system behaves as if `max_distance` were set to its default value (10),
|
|
5311
|
+
* i.e., it uses the camera distance check with a threshold of 10.
|
|
5288
5312
|
*/
|
|
5289
5313
|
/**
|
|
5290
5314
|
* @public
|
|
@@ -5334,6 +5358,8 @@ export declare interface PBPointerEvents_Info {
|
|
|
5334
5358
|
showFeedback?: boolean | undefined;
|
|
5335
5359
|
/** enable or disable hover highlight (default true) */
|
|
5336
5360
|
showHighlight?: boolean | undefined;
|
|
5361
|
+
/** range of interaction from the avatar's position (default 0) */
|
|
5362
|
+
maxPlayerDistance?: number | undefined;
|
|
5337
5363
|
}
|
|
5338
5364
|
|
|
5339
5365
|
/**
|