@dcl/playground-assets 7.17.1-21217092165.commit-1c2ff72 → 7.17.1-21366395728.commit-ada88b6
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 +18 -2
- package/dist/beta.d.ts +18 -2
- package/dist/index.bundled.d.ts +18 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +3 -3
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +18 -2
- package/etc/playground-assets.api.json +68 -8
- package/etc/playground-assets.api.md +8 -4
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.17.1-
|
|
4
|
+
"version": "7.17.1-21366395728.commit-ada88b6",
|
|
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": "ada88b6fe8e93150056e0cade4b94e0c1e7dc850"
|
|
39
39
|
}
|
|
@@ -6926,8 +6926,14 @@ export declare type RaycastSystemOptions = {
|
|
|
6926
6926
|
* @public
|
|
6927
6927
|
*/
|
|
6928
6928
|
export declare interface ReactBasedUiSystem {
|
|
6929
|
+
/**
|
|
6930
|
+
* Destroy all UI entities and unregister related systems.
|
|
6931
|
+
*/
|
|
6929
6932
|
destroy(): void;
|
|
6930
|
-
|
|
6933
|
+
/**
|
|
6934
|
+
* Set the main UI renderer. Optional virtual size defines the global UI scale factor.
|
|
6935
|
+
*/
|
|
6936
|
+
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
6931
6937
|
/**
|
|
6932
6938
|
* Add a UI renderer associated with an entity. The UI will be automatically cleaned up
|
|
6933
6939
|
* when the entity is removed from the engine.
|
|
@@ -6940,10 +6946,12 @@ export declare interface ReactBasedUiSystem {
|
|
|
6940
6946
|
* @param entity - The entity to associate with this UI renderer. When the entity is removed,
|
|
6941
6947
|
* the UI renderer is automatically cleaned up.
|
|
6942
6948
|
* @param ui - The UI component to render
|
|
6949
|
+
* @param options - Optional virtual size used for UI scale factor when main UI has none
|
|
6943
6950
|
*/
|
|
6944
|
-
addUiRenderer(entity: Entity, ui: UiComponent): void;
|
|
6951
|
+
addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
|
|
6945
6952
|
/**
|
|
6946
6953
|
* Remove a previously added UI renderer by its associated entity.
|
|
6954
|
+
* It does not affect the main UI renderer.
|
|
6947
6955
|
* @param entity - The entity whose UI renderer should be removed
|
|
6948
6956
|
*/
|
|
6949
6957
|
removeUiRenderer(entity: Entity): void;
|
|
@@ -8150,6 +8158,14 @@ export declare interface UiLabelProps {
|
|
|
8150
8158
|
*/
|
|
8151
8159
|
export declare type uint32 = number;
|
|
8152
8160
|
|
|
8161
|
+
/**
|
|
8162
|
+
* @public
|
|
8163
|
+
*/
|
|
8164
|
+
export declare type UiRendererOptions = {
|
|
8165
|
+
virtualWidth: number;
|
|
8166
|
+
virtualHeight: number;
|
|
8167
|
+
};
|
|
8168
|
+
|
|
8153
8169
|
/** @public */
|
|
8154
8170
|
export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
8155
8171
|
|
|
@@ -66759,7 +66759,7 @@
|
|
|
66759
66759
|
{
|
|
66760
66760
|
"kind": "MethodSignature",
|
|
66761
66761
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#addUiRenderer:member(1)",
|
|
66762
|
-
"docComment": "/**\n * Add a UI renderer associated with an entity. The UI will be automatically cleaned up when the entity is removed from the engine.\n *\n * If a renderer is already associated with the given entity, it will be replaced.\n *\n * This allows dynamically adding UI Renderers that are rendered alongside the main UI set via setUiRenderer().\n *\n * @param entity - The entity to associate with this UI renderer. When the entity is removed, the UI renderer is automatically cleaned up.\n *\n * @param ui - The UI component to render\n */\n",
|
|
66762
|
+
"docComment": "/**\n * Add a UI renderer associated with an entity. The UI will be automatically cleaned up when the entity is removed from the engine.\n *\n * If a renderer is already associated with the given entity, it will be replaced.\n *\n * This allows dynamically adding UI Renderers that are rendered alongside the main UI set via setUiRenderer().\n *\n * @param entity - The entity to associate with this UI renderer. When the entity is removed, the UI renderer is automatically cleaned up.\n *\n * @param ui - The UI component to render\n *\n * @param options - Optional virtual size used for UI scale factor when main UI has none\n */\n",
|
|
66763
66763
|
"excerptTokens": [
|
|
66764
66764
|
{
|
|
66765
66765
|
"kind": "Content",
|
|
@@ -66779,6 +66779,15 @@
|
|
|
66779
66779
|
"text": "UiComponent",
|
|
66780
66780
|
"canonicalReference": "@dcl/playground-assets!UiComponent:type"
|
|
66781
66781
|
},
|
|
66782
|
+
{
|
|
66783
|
+
"kind": "Content",
|
|
66784
|
+
"text": ", options?: "
|
|
66785
|
+
},
|
|
66786
|
+
{
|
|
66787
|
+
"kind": "Reference",
|
|
66788
|
+
"text": "UiRendererOptions",
|
|
66789
|
+
"canonicalReference": "@dcl/playground-assets!UiRendererOptions:type"
|
|
66790
|
+
},
|
|
66782
66791
|
{
|
|
66783
66792
|
"kind": "Content",
|
|
66784
66793
|
"text": "): "
|
|
@@ -66794,8 +66803,8 @@
|
|
|
66794
66803
|
],
|
|
66795
66804
|
"isOptional": false,
|
|
66796
66805
|
"returnTypeTokenRange": {
|
|
66797
|
-
"startIndex":
|
|
66798
|
-
"endIndex":
|
|
66806
|
+
"startIndex": 7,
|
|
66807
|
+
"endIndex": 8
|
|
66799
66808
|
},
|
|
66800
66809
|
"releaseTag": "Public",
|
|
66801
66810
|
"overloadIndex": 1,
|
|
@@ -66815,6 +66824,14 @@
|
|
|
66815
66824
|
"endIndex": 4
|
|
66816
66825
|
},
|
|
66817
66826
|
"isOptional": false
|
|
66827
|
+
},
|
|
66828
|
+
{
|
|
66829
|
+
"parameterName": "options",
|
|
66830
|
+
"parameterTypeTokenRange": {
|
|
66831
|
+
"startIndex": 5,
|
|
66832
|
+
"endIndex": 6
|
|
66833
|
+
},
|
|
66834
|
+
"isOptional": true
|
|
66818
66835
|
}
|
|
66819
66836
|
],
|
|
66820
66837
|
"name": "addUiRenderer"
|
|
@@ -66822,7 +66839,7 @@
|
|
|
66822
66839
|
{
|
|
66823
66840
|
"kind": "MethodSignature",
|
|
66824
66841
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#destroy:member(1)",
|
|
66825
|
-
"docComment": "",
|
|
66842
|
+
"docComment": "/**\n * Destroy all UI entities and unregister related systems.\n */\n",
|
|
66826
66843
|
"excerptTokens": [
|
|
66827
66844
|
{
|
|
66828
66845
|
"kind": "Content",
|
|
@@ -66850,7 +66867,7 @@
|
|
|
66850
66867
|
{
|
|
66851
66868
|
"kind": "MethodSignature",
|
|
66852
66869
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#removeUiRenderer:member(1)",
|
|
66853
|
-
"docComment": "/**\n * Remove a previously added UI renderer by its associated entity.\n *\n * @param entity - The entity whose UI renderer should be removed\n */\n",
|
|
66870
|
+
"docComment": "/**\n * Remove a previously added UI renderer by its associated entity. It does not affect the main UI renderer.\n *\n * @param entity - The entity whose UI renderer should be removed\n */\n",
|
|
66854
66871
|
"excerptTokens": [
|
|
66855
66872
|
{
|
|
66856
66873
|
"kind": "Content",
|
|
@@ -66896,7 +66913,7 @@
|
|
|
66896
66913
|
{
|
|
66897
66914
|
"kind": "MethodSignature",
|
|
66898
66915
|
"canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#setUiRenderer:member(1)",
|
|
66899
|
-
"docComment": "",
|
|
66916
|
+
"docComment": "/**\n * Set the main UI renderer. Optional virtual size defines the global UI scale factor.\n */\n",
|
|
66900
66917
|
"excerptTokens": [
|
|
66901
66918
|
{
|
|
66902
66919
|
"kind": "Content",
|
|
@@ -66907,6 +66924,15 @@
|
|
|
66907
66924
|
"text": "UiComponent",
|
|
66908
66925
|
"canonicalReference": "@dcl/playground-assets!UiComponent:type"
|
|
66909
66926
|
},
|
|
66927
|
+
{
|
|
66928
|
+
"kind": "Content",
|
|
66929
|
+
"text": ", options?: "
|
|
66930
|
+
},
|
|
66931
|
+
{
|
|
66932
|
+
"kind": "Reference",
|
|
66933
|
+
"text": "UiRendererOptions",
|
|
66934
|
+
"canonicalReference": "@dcl/playground-assets!UiRendererOptions:type"
|
|
66935
|
+
},
|
|
66910
66936
|
{
|
|
66911
66937
|
"kind": "Content",
|
|
66912
66938
|
"text": "): "
|
|
@@ -66922,8 +66948,8 @@
|
|
|
66922
66948
|
],
|
|
66923
66949
|
"isOptional": false,
|
|
66924
66950
|
"returnTypeTokenRange": {
|
|
66925
|
-
"startIndex":
|
|
66926
|
-
"endIndex":
|
|
66951
|
+
"startIndex": 5,
|
|
66952
|
+
"endIndex": 6
|
|
66927
66953
|
},
|
|
66928
66954
|
"releaseTag": "Public",
|
|
66929
66955
|
"overloadIndex": 1,
|
|
@@ -66935,6 +66961,14 @@
|
|
|
66935
66961
|
"endIndex": 2
|
|
66936
66962
|
},
|
|
66937
66963
|
"isOptional": false
|
|
66964
|
+
},
|
|
66965
|
+
{
|
|
66966
|
+
"parameterName": "options",
|
|
66967
|
+
"parameterTypeTokenRange": {
|
|
66968
|
+
"startIndex": 3,
|
|
66969
|
+
"endIndex": 4
|
|
66970
|
+
},
|
|
66971
|
+
"isOptional": true
|
|
66938
66972
|
}
|
|
66939
66973
|
],
|
|
66940
66974
|
"name": "setUiRenderer"
|
|
@@ -78335,6 +78369,32 @@
|
|
|
78335
78369
|
"endIndex": 2
|
|
78336
78370
|
}
|
|
78337
78371
|
},
|
|
78372
|
+
{
|
|
78373
|
+
"kind": "TypeAlias",
|
|
78374
|
+
"canonicalReference": "@dcl/playground-assets!UiRendererOptions:type",
|
|
78375
|
+
"docComment": "/**\n * @public\n */\n",
|
|
78376
|
+
"excerptTokens": [
|
|
78377
|
+
{
|
|
78378
|
+
"kind": "Content",
|
|
78379
|
+
"text": "export type UiRendererOptions = "
|
|
78380
|
+
},
|
|
78381
|
+
{
|
|
78382
|
+
"kind": "Content",
|
|
78383
|
+
"text": "{\n virtualWidth: number;\n virtualHeight: number;\n}"
|
|
78384
|
+
},
|
|
78385
|
+
{
|
|
78386
|
+
"kind": "Content",
|
|
78387
|
+
"text": ";"
|
|
78388
|
+
}
|
|
78389
|
+
],
|
|
78390
|
+
"fileUrlPath": "../react-ecs/dist/system.d.ts",
|
|
78391
|
+
"releaseTag": "Public",
|
|
78392
|
+
"name": "UiRendererOptions",
|
|
78393
|
+
"typeTokenRange": {
|
|
78394
|
+
"startIndex": 1,
|
|
78395
|
+
"endIndex": 2
|
|
78396
|
+
}
|
|
78397
|
+
},
|
|
78338
78398
|
{
|
|
78339
78399
|
"kind": "Variable",
|
|
78340
78400
|
"canonicalReference": "@dcl/playground-assets!UiText:var",
|
|
@@ -3877,12 +3877,10 @@ export type RaycastSystemOptions = {
|
|
|
3877
3877
|
|
|
3878
3878
|
// @public (undocumented)
|
|
3879
3879
|
export interface ReactBasedUiSystem {
|
|
3880
|
-
addUiRenderer(entity: Entity, ui: UiComponent): void;
|
|
3881
|
-
// (undocumented)
|
|
3880
|
+
addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
|
|
3882
3881
|
destroy(): void;
|
|
3883
3882
|
removeUiRenderer(entity: Entity): void;
|
|
3884
|
-
|
|
3885
|
-
setUiRenderer(ui: UiComponent): void;
|
|
3883
|
+
setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
|
|
3886
3884
|
}
|
|
3887
3885
|
|
|
3888
3886
|
// @public (undocumented)
|
|
@@ -4656,6 +4654,12 @@ export interface UiLabelProps {
|
|
|
4656
4654
|
// @public
|
|
4657
4655
|
export type uint32 = number;
|
|
4658
4656
|
|
|
4657
|
+
// @public (undocumented)
|
|
4658
|
+
export type UiRendererOptions = {
|
|
4659
|
+
virtualWidth: number;
|
|
4660
|
+
virtualHeight: number;
|
|
4661
|
+
};
|
|
4662
|
+
|
|
4659
4663
|
// @public (undocumented)
|
|
4660
4664
|
export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
|
|
4661
4665
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.17.1-
|
|
4
|
+
"version": "7.17.1-21366395728.commit-ada88b6",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.17.1-
|
|
8
|
-
"@dcl/sdk": "7.17.1-
|
|
7
|
+
"@dcl/js-runtime": "7.17.1-21366395728.commit-ada88b6",
|
|
8
|
+
"@dcl/sdk": "7.17.1-21366395728.commit-ada88b6"
|
|
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": "ada88b6fe8e93150056e0cade4b94e0c1e7dc850"
|
|
36
36
|
}
|