@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.18.2-
|
|
4
|
+
"version": "7.18.2-21457748765.commit-7ae2e38",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"types": "./index.d.ts",
|
|
37
37
|
"typings": "./index.d.ts",
|
|
38
|
-
"commit": "
|
|
38
|
+
"commit": "7ae2e3848e600c323d6828ece5bcecd5fd9f3911"
|
|
39
39
|
}
|
|
@@ -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
|
/**
|
|
@@ -19398,7 +19398,7 @@
|
|
|
19398
19398
|
},
|
|
19399
19399
|
{
|
|
19400
19400
|
"kind": "Content",
|
|
19401
|
-
"text": ";\n hoverText?: string;\n maxDistance?: number;\n showFeedback?: boolean;\n showHighlight?: boolean;\n}"
|
|
19401
|
+
"text": ";\n hoverText?: string;\n maxDistance?: number;\n showFeedback?: boolean;\n showHighlight?: boolean;\n maxPlayerDistance?: number;\n}"
|
|
19402
19402
|
},
|
|
19403
19403
|
{
|
|
19404
19404
|
"kind": "Content",
|
|
@@ -49161,6 +49161,33 @@
|
|
|
49161
49161
|
"endIndex": 2
|
|
49162
49162
|
}
|
|
49163
49163
|
},
|
|
49164
|
+
{
|
|
49165
|
+
"kind": "PropertySignature",
|
|
49166
|
+
"canonicalReference": "@dcl/playground-assets!PBPointerEvents_Info#maxPlayerDistance:member",
|
|
49167
|
+
"docComment": "/**\n * range of interaction from the avatar's position (default 0)\n */\n",
|
|
49168
|
+
"excerptTokens": [
|
|
49169
|
+
{
|
|
49170
|
+
"kind": "Content",
|
|
49171
|
+
"text": "maxPlayerDistance?: "
|
|
49172
|
+
},
|
|
49173
|
+
{
|
|
49174
|
+
"kind": "Content",
|
|
49175
|
+
"text": "number | undefined"
|
|
49176
|
+
},
|
|
49177
|
+
{
|
|
49178
|
+
"kind": "Content",
|
|
49179
|
+
"text": ";"
|
|
49180
|
+
}
|
|
49181
|
+
],
|
|
49182
|
+
"isReadonly": false,
|
|
49183
|
+
"isOptional": true,
|
|
49184
|
+
"releaseTag": "Public",
|
|
49185
|
+
"name": "maxPlayerDistance",
|
|
49186
|
+
"propertyTypeTokenRange": {
|
|
49187
|
+
"startIndex": 1,
|
|
49188
|
+
"endIndex": 2
|
|
49189
|
+
}
|
|
49190
|
+
},
|
|
49164
49191
|
{
|
|
49165
49192
|
"kind": "PropertySignature",
|
|
49166
49193
|
"canonicalReference": "@dcl/playground-assets!PBPointerEvents_Info#showFeedback:member",
|
|
@@ -1156,6 +1156,7 @@ export type EventSystemOptions = {
|
|
|
1156
1156
|
maxDistance?: number;
|
|
1157
1157
|
showFeedback?: boolean;
|
|
1158
1158
|
showHighlight?: boolean;
|
|
1159
|
+
maxPlayerDistance?: number;
|
|
1159
1160
|
};
|
|
1160
1161
|
|
|
1161
1162
|
// @public
|
|
@@ -2886,6 +2887,7 @@ export interface PBPointerEvents_Info {
|
|
|
2886
2887
|
button?: InputAction | undefined;
|
|
2887
2888
|
hoverText?: string | undefined;
|
|
2888
2889
|
maxDistance?: number | undefined;
|
|
2890
|
+
maxPlayerDistance?: number | undefined;
|
|
2889
2891
|
showFeedback?: boolean | undefined;
|
|
2890
2892
|
showHighlight?: boolean | undefined;
|
|
2891
2893
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.18.2-
|
|
4
|
+
"version": "7.18.2-21457748765.commit-7ae2e38",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.18.2-
|
|
8
|
-
"@dcl/sdk": "7.18.2-
|
|
7
|
+
"@dcl/js-runtime": "7.18.2-21457748765.commit-7ae2e38",
|
|
8
|
+
"@dcl/sdk": "7.18.2-21457748765.commit-7ae2e38"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
34
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "7ae2e3848e600c323d6828ece5bcecd5fd9f3911"
|
|
36
36
|
}
|