@dcl/playground-assets 7.22.1 → 7.22.2-23601767788.commit-ff97f2f
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 +220 -2
- package/dist/beta.d.ts +220 -2
- package/dist/index.bundled.d.ts +220 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/pointer-events.ts +14 -7
- package/dist/playground-assets.d.ts +220 -2
- package/etc/playground-assets.api.json +2277 -62
- package/etc/playground-assets.api.md +129 -0
- package/package.json +4 -4
|
@@ -70,6 +70,31 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
72
72
|
|
|
73
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysis" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
74
|
+
//
|
|
75
|
+
// @public (undocumented)
|
|
76
|
+
export const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
77
|
+
|
|
78
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
79
|
+
//
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
82
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
83
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
84
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
85
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
86
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
87
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisView" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
91
|
+
//
|
|
92
|
+
// @public
|
|
93
|
+
export type AudioAnalysisView = {
|
|
94
|
+
amplitude: number;
|
|
95
|
+
bands: number[];
|
|
96
|
+
};
|
|
97
|
+
|
|
73
98
|
// @public (undocumented)
|
|
74
99
|
export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
75
100
|
|
|
@@ -162,6 +187,9 @@ export const AvatarEmoteCommand: GrowOnlyValueSetComponentDefinition<PBAvatarEmo
|
|
|
162
187
|
// @public (undocumented)
|
|
163
188
|
export const AvatarEquippedData: LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>;
|
|
164
189
|
|
|
190
|
+
// @public (undocumented)
|
|
191
|
+
export const AvatarLocomotionSettings: LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>;
|
|
192
|
+
|
|
165
193
|
// @public (undocumented)
|
|
166
194
|
export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>;
|
|
167
195
|
|
|
@@ -644,6 +672,7 @@ export const componentDefinitionByName: {
|
|
|
644
672
|
"core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
|
|
645
673
|
"core::AssetLoad": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAssetLoad>>;
|
|
646
674
|
"core::AssetLoadLoadingState": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAssetLoadLoadingState>>;
|
|
675
|
+
"core::AudioAnalysis": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioAnalysis>>;
|
|
647
676
|
"core::AudioEvent": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAudioEvent>>;
|
|
648
677
|
"core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
|
|
649
678
|
"core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
|
|
@@ -651,6 +680,7 @@ export const componentDefinitionByName: {
|
|
|
651
680
|
"core::AvatarBase": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarBase>>;
|
|
652
681
|
"core::AvatarEmoteCommand": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBAvatarEmoteCommand>>;
|
|
653
682
|
"core::AvatarEquippedData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarEquippedData>>;
|
|
683
|
+
"core::AvatarLocomotionSettings": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarLocomotionSettings>>;
|
|
654
684
|
"core::AvatarModifierArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarModifierArea>>;
|
|
655
685
|
"core::AvatarShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAvatarShape>>;
|
|
656
686
|
"core::Billboard": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBBillboard>>;
|
|
@@ -1181,6 +1211,7 @@ export type EventSystemOptions = {
|
|
|
1181
1211
|
showFeedback?: boolean;
|
|
1182
1212
|
showHighlight?: boolean;
|
|
1183
1213
|
maxPlayerDistance?: number;
|
|
1214
|
+
priority?: number;
|
|
1184
1215
|
};
|
|
1185
1216
|
|
|
1186
1217
|
// @public
|
|
@@ -1504,6 +1535,8 @@ export const enum InputAction {
|
|
|
1504
1535
|
// (undocumented)
|
|
1505
1536
|
IA_LEFT = 7,
|
|
1506
1537
|
// (undocumented)
|
|
1538
|
+
IA_MODIFIER = 14,
|
|
1539
|
+
// (undocumented)
|
|
1507
1540
|
IA_POINTER = 0,
|
|
1508
1541
|
// (undocumented)
|
|
1509
1542
|
IA_PRIMARY = 1,
|
|
@@ -1547,6 +1580,14 @@ export type InstanceCompositeOptions = {
|
|
|
1547
1580
|
alreadyRequestedSrc?: Set<string>;
|
|
1548
1581
|
};
|
|
1549
1582
|
|
|
1583
|
+
// @public (undocumented)
|
|
1584
|
+
export const enum InteractionType {
|
|
1585
|
+
// (undocumented)
|
|
1586
|
+
CURSOR = 0,
|
|
1587
|
+
// (undocumented)
|
|
1588
|
+
PROXIMITY = 1
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1550
1591
|
// @public (undocumented)
|
|
1551
1592
|
export interface ISchema<T = any> {
|
|
1552
1593
|
// (undocumented)
|
|
@@ -2291,6 +2332,46 @@ export namespace PBAssetLoadLoadingState {
|
|
|
2291
2332
|
export function encode(message: PBAssetLoadLoadingState, writer?: _m0.Writer): _m0.Writer;
|
|
2292
2333
|
}
|
|
2293
2334
|
|
|
2335
|
+
// @public (undocumented)
|
|
2336
|
+
export interface PBAudioAnalysis {
|
|
2337
|
+
amplitude: number;
|
|
2338
|
+
amplitudeGain?: number | undefined;
|
|
2339
|
+
// Warning: (tsdoc-escape-greater-than) The ">" character should be escaped using a backslash to avoid confusion with an HTML tag
|
|
2340
|
+
band0: number;
|
|
2341
|
+
// (undocumented)
|
|
2342
|
+
band1: number;
|
|
2343
|
+
// (undocumented)
|
|
2344
|
+
band2: number;
|
|
2345
|
+
// (undocumented)
|
|
2346
|
+
band3: number;
|
|
2347
|
+
// (undocumented)
|
|
2348
|
+
band4: number;
|
|
2349
|
+
// (undocumented)
|
|
2350
|
+
band5: number;
|
|
2351
|
+
// (undocumented)
|
|
2352
|
+
band6: number;
|
|
2353
|
+
// (undocumented)
|
|
2354
|
+
band7: number;
|
|
2355
|
+
bandsGain?: number | undefined;
|
|
2356
|
+
mode: PBAudioAnalysisMode;
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
// @public (undocumented)
|
|
2360
|
+
export namespace PBAudioAnalysis {
|
|
2361
|
+
// (undocumented)
|
|
2362
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioAnalysis;
|
|
2363
|
+
// (undocumented)
|
|
2364
|
+
export function encode(message: PBAudioAnalysis, writer?: _m0.Writer): _m0.Writer;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
// @public (undocumented)
|
|
2368
|
+
export const enum PBAudioAnalysisMode {
|
|
2369
|
+
// (undocumented)
|
|
2370
|
+
MODE_LOGARITHMIC = 1,
|
|
2371
|
+
// (undocumented)
|
|
2372
|
+
MODE_RAW = 0
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2294
2375
|
// @public (undocumented)
|
|
2295
2376
|
export interface PBAudioEvent {
|
|
2296
2377
|
// (undocumented)
|
|
@@ -2412,6 +2493,27 @@ export namespace PBAvatarEquippedData {
|
|
|
2412
2493
|
export function encode(message: PBAvatarEquippedData, writer?: _m0.Writer): _m0.Writer;
|
|
2413
2494
|
}
|
|
2414
2495
|
|
|
2496
|
+
// @public (undocumented)
|
|
2497
|
+
export interface PBAvatarLocomotionSettings {
|
|
2498
|
+
doubleJumpHeight?: number | undefined;
|
|
2499
|
+
glidingFallingSpeed?: number | undefined;
|
|
2500
|
+
glidingSpeed?: number | undefined;
|
|
2501
|
+
hardLandingCooldown?: number | undefined;
|
|
2502
|
+
jogSpeed?: number | undefined;
|
|
2503
|
+
jumpHeight?: number | undefined;
|
|
2504
|
+
runJumpHeight?: number | undefined;
|
|
2505
|
+
runSpeed?: number | undefined;
|
|
2506
|
+
walkSpeed?: number | undefined;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
// @public (undocumented)
|
|
2510
|
+
export namespace PBAvatarLocomotionSettings {
|
|
2511
|
+
// (undocumented)
|
|
2512
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarLocomotionSettings;
|
|
2513
|
+
// (undocumented)
|
|
2514
|
+
export function encode(message: PBAvatarLocomotionSettings, writer?: _m0.Writer): _m0.Writer;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2415
2517
|
// @public (undocumented)
|
|
2416
2518
|
export interface PBAvatarModifierArea {
|
|
2417
2519
|
area: PBVector3 | undefined;
|
|
@@ -3006,6 +3108,7 @@ export namespace PBPointerEvents {
|
|
|
3006
3108
|
export interface PBPointerEvents_Entry {
|
|
3007
3109
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
3008
3110
|
eventType: PointerEventType;
|
|
3111
|
+
interactionType?: InteractionType | undefined;
|
|
3009
3112
|
}
|
|
3010
3113
|
|
|
3011
3114
|
// @public (undocumented)
|
|
@@ -3022,6 +3125,7 @@ export interface PBPointerEvents_Info {
|
|
|
3022
3125
|
hoverText?: string | undefined;
|
|
3023
3126
|
maxDistance?: number | undefined;
|
|
3024
3127
|
maxPlayerDistance?: number | undefined;
|
|
3128
|
+
priority?: number | undefined;
|
|
3025
3129
|
showFeedback?: boolean | undefined;
|
|
3026
3130
|
showHighlight?: boolean | undefined;
|
|
3027
3131
|
}
|
|
@@ -3688,6 +3792,7 @@ export namespace PBVideoPlayer {
|
|
|
3688
3792
|
export interface PBVirtualCamera {
|
|
3689
3793
|
// (undocumented)
|
|
3690
3794
|
defaultTransition?: CameraTransition | undefined;
|
|
3795
|
+
fov?: number | undefined;
|
|
3691
3796
|
// (undocumented)
|
|
3692
3797
|
lookAtEntity?: number | undefined;
|
|
3693
3798
|
}
|
|
@@ -3804,10 +3909,30 @@ export interface PointerEventsSystem {
|
|
|
3804
3909
|
}, cb: EventSystemCallback): void;
|
|
3805
3910
|
// @deprecated (undocumented)
|
|
3806
3911
|
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
3912
|
+
onProximityDown(pointerData: {
|
|
3913
|
+
entity: Entity;
|
|
3914
|
+
opts?: Partial<EventSystemOptions>;
|
|
3915
|
+
}, cb: EventSystemCallback): void;
|
|
3916
|
+
onProximityEnter(pointerData: {
|
|
3917
|
+
entity: Entity;
|
|
3918
|
+
opts?: Partial<EventSystemOptions>;
|
|
3919
|
+
}, cb: EventSystemCallback): void;
|
|
3920
|
+
onProximityLeave(pointerData: {
|
|
3921
|
+
entity: Entity;
|
|
3922
|
+
opts?: Partial<EventSystemOptions>;
|
|
3923
|
+
}, cb: EventSystemCallback): void;
|
|
3924
|
+
onProximityUp(pointerData: {
|
|
3925
|
+
entity: Entity;
|
|
3926
|
+
opts?: Partial<EventSystemOptions>;
|
|
3927
|
+
}, cb: EventSystemCallback): void;
|
|
3807
3928
|
removeOnPointerDown(entity: Entity): void;
|
|
3808
3929
|
removeOnPointerHoverEnter(entity: Entity): void;
|
|
3809
3930
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
3810
3931
|
removeOnPointerUp(entity: Entity): void;
|
|
3932
|
+
removeOnProximityDown(entity: Entity): void;
|
|
3933
|
+
removeOnProximityEnter(entity: Entity): void;
|
|
3934
|
+
removeOnProximityLeave(entity: Entity): void;
|
|
3935
|
+
removeOnProximityUp(entity: Entity): void;
|
|
3811
3936
|
}
|
|
3812
3937
|
|
|
3813
3938
|
// @public
|
|
@@ -3822,6 +3947,10 @@ export const enum PointerEventType {
|
|
|
3822
3947
|
// (undocumented)
|
|
3823
3948
|
PET_HOVER_LEAVE = 3,
|
|
3824
3949
|
// (undocumented)
|
|
3950
|
+
PET_PROXIMITY_ENTER = 4,
|
|
3951
|
+
// (undocumented)
|
|
3952
|
+
PET_PROXIMITY_LEAVE = 5,
|
|
3953
|
+
// (undocumented)
|
|
3825
3954
|
PET_UP = 0
|
|
3826
3955
|
}
|
|
3827
3956
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.22.
|
|
4
|
+
"version": "7.22.2-23601767788.commit-ff97f2f",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.22.
|
|
8
|
-
"@dcl/sdk": "7.22.
|
|
7
|
+
"@dcl/js-runtime": "7.22.2-23601767788.commit-ff97f2f",
|
|
8
|
+
"@dcl/sdk": "7.22.2-23601767788.commit-ff97f2f"
|
|
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": "ff97f2f45a5d3f23080fb3f22de85711b15f0858"
|
|
36
36
|
}
|