@dcl/playground-assets 7.17.1-21043804740.commit-3c928e0 → 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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.17.1-21043804740.commit-3c928e0",
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": "3c928e0a4e46c8020bd70368e02a57efb6f5788c"
38
+ "commit": "ada88b6fe8e93150056e0cade4b94e0c1e7dc850"
39
39
  }
@@ -6926,8 +6926,35 @@ 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
- setUiRenderer(ui: UiComponent): void;
6933
+ /**
6934
+ * Set the main UI renderer. Optional virtual size defines the global UI scale factor.
6935
+ */
6936
+ setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
6937
+ /**
6938
+ * Add a UI renderer associated with an entity. The UI will be automatically cleaned up
6939
+ * when the entity is removed from the engine.
6940
+ *
6941
+ * If a renderer is already associated with the given entity, it will be replaced.
6942
+ *
6943
+ * This allows dynamically adding UI Renderers that are rendered alongside the main
6944
+ * UI set via setUiRenderer().
6945
+ *
6946
+ * @param entity - The entity to associate with this UI renderer. When the entity is removed,
6947
+ * the UI renderer is automatically cleaned up.
6948
+ * @param ui - The UI component to render
6949
+ * @param options - Optional virtual size used for UI scale factor when main UI has none
6950
+ */
6951
+ addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
6952
+ /**
6953
+ * Remove a previously added UI renderer by its associated entity.
6954
+ * It does not affect the main UI renderer.
6955
+ * @param entity - The entity whose UI renderer should be removed
6956
+ */
6957
+ removeUiRenderer(entity: Entity): void;
6931
6958
  }
6932
6959
 
6933
6960
  /**
@@ -8131,6 +8158,14 @@ export declare interface UiLabelProps {
8131
8158
  */
8132
8159
  export declare type uint32 = number;
8133
8160
 
8161
+ /**
8162
+ * @public
8163
+ */
8164
+ export declare type UiRendererOptions = {
8165
+ virtualWidth: number;
8166
+ virtualHeight: number;
8167
+ };
8168
+
8134
8169
  /** @public */
8135
8170
  export declare const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
8136
8171
 
@@ -66756,10 +66756,90 @@
66756
66756
  "name": "ReactBasedUiSystem",
66757
66757
  "preserveMemberOrder": false,
66758
66758
  "members": [
66759
+ {
66760
+ "kind": "MethodSignature",
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 * @param options - Optional virtual size used for UI scale factor when main UI has none\n */\n",
66763
+ "excerptTokens": [
66764
+ {
66765
+ "kind": "Content",
66766
+ "text": "addUiRenderer(entity: "
66767
+ },
66768
+ {
66769
+ "kind": "Reference",
66770
+ "text": "Entity",
66771
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
66772
+ },
66773
+ {
66774
+ "kind": "Content",
66775
+ "text": ", ui: "
66776
+ },
66777
+ {
66778
+ "kind": "Reference",
66779
+ "text": "UiComponent",
66780
+ "canonicalReference": "@dcl/playground-assets!UiComponent:type"
66781
+ },
66782
+ {
66783
+ "kind": "Content",
66784
+ "text": ", options?: "
66785
+ },
66786
+ {
66787
+ "kind": "Reference",
66788
+ "text": "UiRendererOptions",
66789
+ "canonicalReference": "@dcl/playground-assets!UiRendererOptions:type"
66790
+ },
66791
+ {
66792
+ "kind": "Content",
66793
+ "text": "): "
66794
+ },
66795
+ {
66796
+ "kind": "Content",
66797
+ "text": "void"
66798
+ },
66799
+ {
66800
+ "kind": "Content",
66801
+ "text": ";"
66802
+ }
66803
+ ],
66804
+ "isOptional": false,
66805
+ "returnTypeTokenRange": {
66806
+ "startIndex": 7,
66807
+ "endIndex": 8
66808
+ },
66809
+ "releaseTag": "Public",
66810
+ "overloadIndex": 1,
66811
+ "parameters": [
66812
+ {
66813
+ "parameterName": "entity",
66814
+ "parameterTypeTokenRange": {
66815
+ "startIndex": 1,
66816
+ "endIndex": 2
66817
+ },
66818
+ "isOptional": false
66819
+ },
66820
+ {
66821
+ "parameterName": "ui",
66822
+ "parameterTypeTokenRange": {
66823
+ "startIndex": 3,
66824
+ "endIndex": 4
66825
+ },
66826
+ "isOptional": false
66827
+ },
66828
+ {
66829
+ "parameterName": "options",
66830
+ "parameterTypeTokenRange": {
66831
+ "startIndex": 5,
66832
+ "endIndex": 6
66833
+ },
66834
+ "isOptional": true
66835
+ }
66836
+ ],
66837
+ "name": "addUiRenderer"
66838
+ },
66759
66839
  {
66760
66840
  "kind": "MethodSignature",
66761
66841
  "canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#destroy:member(1)",
66762
- "docComment": "",
66842
+ "docComment": "/**\n * Destroy all UI entities and unregister related systems.\n */\n",
66763
66843
  "excerptTokens": [
66764
66844
  {
66765
66845
  "kind": "Content",
@@ -66784,10 +66864,56 @@
66784
66864
  "parameters": [],
66785
66865
  "name": "destroy"
66786
66866
  },
66867
+ {
66868
+ "kind": "MethodSignature",
66869
+ "canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#removeUiRenderer:member(1)",
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",
66871
+ "excerptTokens": [
66872
+ {
66873
+ "kind": "Content",
66874
+ "text": "removeUiRenderer(entity: "
66875
+ },
66876
+ {
66877
+ "kind": "Reference",
66878
+ "text": "Entity",
66879
+ "canonicalReference": "@dcl/playground-assets!Entity:type"
66880
+ },
66881
+ {
66882
+ "kind": "Content",
66883
+ "text": "): "
66884
+ },
66885
+ {
66886
+ "kind": "Content",
66887
+ "text": "void"
66888
+ },
66889
+ {
66890
+ "kind": "Content",
66891
+ "text": ";"
66892
+ }
66893
+ ],
66894
+ "isOptional": false,
66895
+ "returnTypeTokenRange": {
66896
+ "startIndex": 3,
66897
+ "endIndex": 4
66898
+ },
66899
+ "releaseTag": "Public",
66900
+ "overloadIndex": 1,
66901
+ "parameters": [
66902
+ {
66903
+ "parameterName": "entity",
66904
+ "parameterTypeTokenRange": {
66905
+ "startIndex": 1,
66906
+ "endIndex": 2
66907
+ },
66908
+ "isOptional": false
66909
+ }
66910
+ ],
66911
+ "name": "removeUiRenderer"
66912
+ },
66787
66913
  {
66788
66914
  "kind": "MethodSignature",
66789
66915
  "canonicalReference": "@dcl/playground-assets!ReactBasedUiSystem#setUiRenderer:member(1)",
66790
- "docComment": "",
66916
+ "docComment": "/**\n * Set the main UI renderer. Optional virtual size defines the global UI scale factor.\n */\n",
66791
66917
  "excerptTokens": [
66792
66918
  {
66793
66919
  "kind": "Content",
@@ -66798,6 +66924,15 @@
66798
66924
  "text": "UiComponent",
66799
66925
  "canonicalReference": "@dcl/playground-assets!UiComponent:type"
66800
66926
  },
66927
+ {
66928
+ "kind": "Content",
66929
+ "text": ", options?: "
66930
+ },
66931
+ {
66932
+ "kind": "Reference",
66933
+ "text": "UiRendererOptions",
66934
+ "canonicalReference": "@dcl/playground-assets!UiRendererOptions:type"
66935
+ },
66801
66936
  {
66802
66937
  "kind": "Content",
66803
66938
  "text": "): "
@@ -66813,8 +66948,8 @@
66813
66948
  ],
66814
66949
  "isOptional": false,
66815
66950
  "returnTypeTokenRange": {
66816
- "startIndex": 3,
66817
- "endIndex": 4
66951
+ "startIndex": 5,
66952
+ "endIndex": 6
66818
66953
  },
66819
66954
  "releaseTag": "Public",
66820
66955
  "overloadIndex": 1,
@@ -66826,6 +66961,14 @@
66826
66961
  "endIndex": 2
66827
66962
  },
66828
66963
  "isOptional": false
66964
+ },
66965
+ {
66966
+ "parameterName": "options",
66967
+ "parameterTypeTokenRange": {
66968
+ "startIndex": 3,
66969
+ "endIndex": 4
66970
+ },
66971
+ "isOptional": true
66829
66972
  }
66830
66973
  ],
66831
66974
  "name": "setUiRenderer"
@@ -78226,6 +78369,32 @@
78226
78369
  "endIndex": 2
78227
78370
  }
78228
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
+ },
78229
78398
  {
78230
78399
  "kind": "Variable",
78231
78400
  "canonicalReference": "@dcl/playground-assets!UiText:var",
@@ -3877,10 +3877,10 @@ export type RaycastSystemOptions = {
3877
3877
 
3878
3878
  // @public (undocumented)
3879
3879
  export interface ReactBasedUiSystem {
3880
- // (undocumented)
3880
+ addUiRenderer(entity: Entity, ui: UiComponent, options?: UiRendererOptions): void;
3881
3881
  destroy(): void;
3882
- // (undocumented)
3883
- setUiRenderer(ui: UiComponent): void;
3882
+ removeUiRenderer(entity: Entity): void;
3883
+ setUiRenderer(ui: UiComponent, options?: UiRendererOptions): void;
3884
3884
  }
3885
3885
 
3886
3886
  // @public (undocumented)
@@ -4654,6 +4654,12 @@ export interface UiLabelProps {
4654
4654
  // @public
4655
4655
  export type uint32 = number;
4656
4656
 
4657
+ // @public (undocumented)
4658
+ export type UiRendererOptions = {
4659
+ virtualWidth: number;
4660
+ virtualHeight: number;
4661
+ };
4662
+
4657
4663
  // @public (undocumented)
4658
4664
  export const UiText: LastWriteWinElementSetComponentDefinition<PBUiText>;
4659
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-21043804740.commit-3c928e0",
4
+ "version": "7.17.1-21366395728.commit-ada88b6",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.17.1-21043804740.commit-3c928e0",
8
- "@dcl/sdk": "7.17.1-21043804740.commit-3c928e0"
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": "3c928e0a4e46c8020bd70368e02a57efb6f5788c"
35
+ "commit": "ada88b6fe8e93150056e0cade4b94e0c1e7dc850"
36
36
  }