@dcl/playground-assets 7.1.8-4747179772.commit-377c8b9 → 7.1.8-4756315995.commit-6d7fbd0
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 +41 -2
- package/dist/beta.d.ts +41 -2
- package/dist/index.bundled.d.ts +41 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +4 -4
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +41 -2
- package/etc/playground-assets.api.json +323 -2
- package/etc/playground-assets.api.md +24 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -207,7 +207,10 @@ export declare interface BaseComponent<T> {
|
|
|
207
207
|
/** @public */
|
|
208
208
|
export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
209
209
|
|
|
210
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
|
|
212
|
+
* Only the values below and the (BM_X | BM_Y) combination are valid.
|
|
213
|
+
*/
|
|
211
214
|
/**
|
|
212
215
|
* @public
|
|
213
216
|
*/
|
|
@@ -1147,6 +1150,7 @@ export declare const componentDefinitionByName: {
|
|
|
1147
1150
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
1148
1151
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1149
1152
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
|
1153
|
+
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
|
1150
1154
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1151
1155
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1152
1156
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
@@ -3912,7 +3916,7 @@ export declare interface PBRaycast {
|
|
|
3912
3916
|
* otherwise it will be performed only once, defaults to false
|
|
3913
3917
|
*/
|
|
3914
3918
|
continuous?: boolean | undefined;
|
|
3915
|
-
/** Collision mask, by default
|
|
3919
|
+
/** Collision mask, by default CL_POINTER | CL_PHYSICS */
|
|
3916
3920
|
collisionMask?: number | undefined;
|
|
3917
3921
|
}
|
|
3918
3922
|
|
|
@@ -4007,6 +4011,27 @@ export declare interface PBUiBackground {
|
|
|
4007
4011
|
uvs: number[];
|
|
4008
4012
|
}
|
|
4009
4013
|
|
|
4014
|
+
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
|
4015
|
+
/**
|
|
4016
|
+
* @public
|
|
4017
|
+
*/
|
|
4018
|
+
export declare interface PBUiCanvasInformation {
|
|
4019
|
+
/** informs the scene about the resolution used for the UI rendering */
|
|
4020
|
+
devicePixelRatio: number;
|
|
4021
|
+
/** informs about the width of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4022
|
+
width: number;
|
|
4023
|
+
/** informs about the height of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4024
|
+
height: number;
|
|
4025
|
+
/**
|
|
4026
|
+
* informs the sdk about the interactable area. some implementations may change
|
|
4027
|
+
* this area depending on the HUD that is being shown. this value may change at
|
|
4028
|
+
* any time by the Renderer to create reactive UIs. as an example, an explorer with the
|
|
4029
|
+
* chat UI hidden and with no minimap could have a rect that covers the whole screen.
|
|
4030
|
+
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
4031
|
+
*/
|
|
4032
|
+
interactableArea: BorderRect | undefined;
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4010
4035
|
/**
|
|
4011
4036
|
* @public
|
|
4012
4037
|
*/
|
|
@@ -4870,6 +4895,17 @@ export declare type ReceiveMessage = CrdtMessageBody & {
|
|
|
4870
4895
|
messageBuffer: Uint8Array;
|
|
4871
4896
|
};
|
|
4872
4897
|
|
|
4898
|
+
/** Defines a rect with x, y, width and height */
|
|
4899
|
+
/**
|
|
4900
|
+
* @public
|
|
4901
|
+
*/
|
|
4902
|
+
export declare interface Rect {
|
|
4903
|
+
x: number;
|
|
4904
|
+
y: number;
|
|
4905
|
+
width: number;
|
|
4906
|
+
height: number;
|
|
4907
|
+
}
|
|
4908
|
+
|
|
4873
4909
|
export declare type RPCSendableMessage = {
|
|
4874
4910
|
jsonrpc: '2.0';
|
|
4875
4911
|
id: number;
|
|
@@ -5397,6 +5433,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
|
5397
5433
|
disabled?: boolean;
|
|
5398
5434
|
}
|
|
5399
5435
|
|
|
5436
|
+
/** @public */
|
|
5437
|
+
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
|
5438
|
+
|
|
5400
5439
|
/**
|
|
5401
5440
|
* @public
|
|
5402
5441
|
*/
|
package/dist/beta.d.ts
CHANGED
|
@@ -207,7 +207,10 @@ export declare interface BaseComponent<T> {
|
|
|
207
207
|
/** @public */
|
|
208
208
|
export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
209
209
|
|
|
210
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
|
|
212
|
+
* Only the values below and the (BM_X | BM_Y) combination are valid.
|
|
213
|
+
*/
|
|
211
214
|
/**
|
|
212
215
|
* @public
|
|
213
216
|
*/
|
|
@@ -1147,6 +1150,7 @@ export declare const componentDefinitionByName: {
|
|
|
1147
1150
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
1148
1151
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1149
1152
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
|
1153
|
+
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
|
1150
1154
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1151
1155
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1152
1156
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
@@ -3908,7 +3912,7 @@ export declare interface PBRaycast {
|
|
|
3908
3912
|
* otherwise it will be performed only once, defaults to false
|
|
3909
3913
|
*/
|
|
3910
3914
|
continuous?: boolean | undefined;
|
|
3911
|
-
/** Collision mask, by default
|
|
3915
|
+
/** Collision mask, by default CL_POINTER | CL_PHYSICS */
|
|
3912
3916
|
collisionMask?: number | undefined;
|
|
3913
3917
|
}
|
|
3914
3918
|
|
|
@@ -4003,6 +4007,27 @@ export declare interface PBUiBackground {
|
|
|
4003
4007
|
uvs: number[];
|
|
4004
4008
|
}
|
|
4005
4009
|
|
|
4010
|
+
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
|
4011
|
+
/**
|
|
4012
|
+
* @public
|
|
4013
|
+
*/
|
|
4014
|
+
export declare interface PBUiCanvasInformation {
|
|
4015
|
+
/** informs the scene about the resolution used for the UI rendering */
|
|
4016
|
+
devicePixelRatio: number;
|
|
4017
|
+
/** informs about the width of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4018
|
+
width: number;
|
|
4019
|
+
/** informs about the height of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4020
|
+
height: number;
|
|
4021
|
+
/**
|
|
4022
|
+
* informs the sdk about the interactable area. some implementations may change
|
|
4023
|
+
* this area depending on the HUD that is being shown. this value may change at
|
|
4024
|
+
* any time by the Renderer to create reactive UIs. as an example, an explorer with the
|
|
4025
|
+
* chat UI hidden and with no minimap could have a rect that covers the whole screen.
|
|
4026
|
+
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
4027
|
+
*/
|
|
4028
|
+
interactableArea: BorderRect | undefined;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4006
4031
|
/**
|
|
4007
4032
|
* @public
|
|
4008
4033
|
*/
|
|
@@ -4866,6 +4891,17 @@ export declare type ReceiveMessage = CrdtMessageBody & {
|
|
|
4866
4891
|
messageBuffer: Uint8Array;
|
|
4867
4892
|
};
|
|
4868
4893
|
|
|
4894
|
+
/** Defines a rect with x, y, width and height */
|
|
4895
|
+
/**
|
|
4896
|
+
* @public
|
|
4897
|
+
*/
|
|
4898
|
+
export declare interface Rect {
|
|
4899
|
+
x: number;
|
|
4900
|
+
y: number;
|
|
4901
|
+
width: number;
|
|
4902
|
+
height: number;
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4869
4905
|
export declare type RPCSendableMessage = {
|
|
4870
4906
|
jsonrpc: '2.0';
|
|
4871
4907
|
id: number;
|
|
@@ -5393,6 +5429,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
|
5393
5429
|
disabled?: boolean;
|
|
5394
5430
|
}
|
|
5395
5431
|
|
|
5432
|
+
/** @public */
|
|
5433
|
+
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
|
5434
|
+
|
|
5396
5435
|
/**
|
|
5397
5436
|
* @public
|
|
5398
5437
|
*/
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -207,7 +207,10 @@ export declare interface BaseComponent<T> {
|
|
|
207
207
|
/** @public */
|
|
208
208
|
export declare const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
209
209
|
|
|
210
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
|
|
212
|
+
* Only the values below and the (BM_X | BM_Y) combination are valid.
|
|
213
|
+
*/
|
|
211
214
|
/**
|
|
212
215
|
* @public
|
|
213
216
|
*/
|
|
@@ -1147,6 +1150,7 @@ export declare const componentDefinitionByName: {
|
|
|
1147
1150
|
"core::RaycastResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRaycastResult>>;
|
|
1148
1151
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1149
1152
|
"core::UiBackground": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiBackground>>;
|
|
1153
|
+
"core::UiCanvasInformation": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>>;
|
|
1150
1154
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1151
1155
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1152
1156
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
@@ -3908,7 +3912,7 @@ export declare interface PBRaycast {
|
|
|
3908
3912
|
* otherwise it will be performed only once, defaults to false
|
|
3909
3913
|
*/
|
|
3910
3914
|
continuous?: boolean | undefined;
|
|
3911
|
-
/** Collision mask, by default
|
|
3915
|
+
/** Collision mask, by default CL_POINTER | CL_PHYSICS */
|
|
3912
3916
|
collisionMask?: number | undefined;
|
|
3913
3917
|
}
|
|
3914
3918
|
|
|
@@ -4003,6 +4007,27 @@ export declare interface PBUiBackground {
|
|
|
4003
4007
|
uvs: number[];
|
|
4004
4008
|
}
|
|
4005
4009
|
|
|
4010
|
+
/** This component is created by the renderer and used by the scenes to know the resolution of the UI canvas */
|
|
4011
|
+
/**
|
|
4012
|
+
* @public
|
|
4013
|
+
*/
|
|
4014
|
+
export declare interface PBUiCanvasInformation {
|
|
4015
|
+
/** informs the scene about the resolution used for the UI rendering */
|
|
4016
|
+
devicePixelRatio: number;
|
|
4017
|
+
/** informs about the width of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4018
|
+
width: number;
|
|
4019
|
+
/** informs about the height of the canvas, in virtual pixels. this value does not change when the pixel ratio changes. */
|
|
4020
|
+
height: number;
|
|
4021
|
+
/**
|
|
4022
|
+
* informs the sdk about the interactable area. some implementations may change
|
|
4023
|
+
* this area depending on the HUD that is being shown. this value may change at
|
|
4024
|
+
* any time by the Renderer to create reactive UIs. as an example, an explorer with the
|
|
4025
|
+
* chat UI hidden and with no minimap could have a rect that covers the whole screen.
|
|
4026
|
+
* on the contrary, if the chat UI is shown, the rect would be smaller.
|
|
4027
|
+
*/
|
|
4028
|
+
interactableArea: BorderRect | undefined;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4006
4031
|
/**
|
|
4007
4032
|
* @public
|
|
4008
4033
|
*/
|
|
@@ -4866,6 +4891,17 @@ export declare type ReceiveMessage = CrdtMessageBody & {
|
|
|
4866
4891
|
messageBuffer: Uint8Array;
|
|
4867
4892
|
};
|
|
4868
4893
|
|
|
4894
|
+
/** Defines a rect with x, y, width and height */
|
|
4895
|
+
/**
|
|
4896
|
+
* @public
|
|
4897
|
+
*/
|
|
4898
|
+
export declare interface Rect {
|
|
4899
|
+
x: number;
|
|
4900
|
+
y: number;
|
|
4901
|
+
width: number;
|
|
4902
|
+
height: number;
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4869
4905
|
export declare type RPCSendableMessage = {
|
|
4870
4906
|
jsonrpc: '2.0';
|
|
4871
4907
|
id: number;
|
|
@@ -5393,6 +5429,9 @@ export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
|
5393
5429
|
disabled?: boolean;
|
|
5394
5430
|
}
|
|
5395
5431
|
|
|
5432
|
+
/** @public */
|
|
5433
|
+
export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinition<PBUiCanvasInformation>;
|
|
5434
|
+
|
|
5396
5435
|
/**
|
|
5397
5436
|
* @public
|
|
5398
5437
|
*/
|